/**
 * Home CSS - Dandra
 * Hero slider, benefícios, categorias, produtos, promoção e newsletter
 */

/* ========== HERO SLIDER ========== */
.hero {
    padding: 34px 0 18px;
}

.slider {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    border-radius: 26px;
    background: #F4EDDD;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.55s ease;
}

.slide {
    min-width: 100%;
    min-height: 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.slide-copy {
    padding: clamp(34px, 6vw, 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.slide-copy p {
    max-width: 470px;
    margin: 0 0 26px;
    color: #6E6A63;
    font-size: 1.04rem;
    line-height: 1.6;
}

.slide-one .slide-copy {
    background: linear-gradient(115deg, #F6EFDF, #FDF8EC);
}

.slide-two .slide-copy {
    color: #fff;
    background: linear-gradient(115deg, #1A1A1A, #C5A059);
}

.slide-two .slide-copy p {
    color: #F6EFDF;
}

.slide-two .eyebrow {
    color: #D4AF37;
}

.slide-three .slide-copy {
    background: linear-gradient(115deg, #F4E6C3, #FDF8EC);
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.slide-two .btn-primary {
    color: #121212;
    background: #fff;
    box-shadow: none;
}

.slide-two .btn-primary:hover {
    background: #F6EFDF;
}

.slide-two .btn-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    background: transparent;
}

.slide-two .btn-light:hover {
    color: var(--primary);
    background: #fff;
}

.slide-art {
    position: relative;
    min-height: 320px;
    overflow: hidden;
}

.slide-art svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide-one .slide-art {
    background: linear-gradient(135deg, #D4AF37, #C5A059);
}

.slide-two .slide-art {
    background: linear-gradient(135deg, #F0DFC0, #D4AF37);
}

.slide-three .slide-art {
    background: linear-gradient(135deg, #C5A059, #C5A059);
}

.slider-controls {
    position: absolute;
    right: 24px;
    bottom: 22px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.55);
    transition: 0.2s;
    cursor: pointer;
}

.slider-dot.active {
    width: 28px;
    background: #fff;
}

.slider-arrow {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    color: #fff;
    background: rgba(18, 18, 18, 0.10);
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ========== BENEFÍCIOS ========== */
.benefits {
    padding: 20px 0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.benefit {
    min-height: 90px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid var(--line);
    background: #fff;
}

.benefit:last-child {
    border-right: 0;
}

.benefit-icon {
    flex: 0 0 auto;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--primary);
    background: var(--primary-soft);
}

.benefit-icon svg {
    width: 20px;
}

.benefit b {
    display: block;
    font-size: 0.86rem;
}

.benefit span {
    color: var(--muted);
    font-size: 0.76rem;
}

/* ========== CATEGORIAS ========== */
.categories {
    background: var(--soft);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.category-card {
    min-height: 170px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    color: #fff;
    background: #121212;
    transition: var(--transition);
}

.category-card:nth-child(2) { background: #A6823B; }
.category-card:nth-child(3) { background: #2A2A2A; }
.category-card:nth-child(4) { background: #A6823B; }
.category-card:nth-child(5) { background: #C5A059; }
.category-card:nth-child(6) { background: #7E6023; }

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: #fff;
}

.category-card img,
.category-card svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.25s ease;
}

.category-card:hover img,
.category-card:hover svg {
    transform: scale(1.07);
}

.category-card strong,
.category-card span {
    position: relative;
    z-index: 1;
}

.category-card strong {
    font-size: 1rem;
}

.category-card span {
    margin-top: 3px;
    font-size: 0.78rem;
    opacity: 0.85;
}

/* ========== PRODUTOS ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product {
    position: relative;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: 0.22s;
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-image {
    aspect-ratio: 1 / 1.08;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #F9F8F6;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 900;
}

.product-info {
    padding: 13px 5px 5px;
}

.rating {
    color: #C5A059;
    font-size: 0.79rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating small {
    color: var(--muted);
    letter-spacing: 0;
}

.product h3 {
    min-height: 42px;
    margin: 7px 0 8px;
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 700;
}

.product h3 a:hover {
    color: var(--primary);
}

.old-price {
    display: block;
    color: #8A857C;
    font-size: 0.78rem;
    text-decoration: line-through;
}

.price {
    display: block;
    margin-top: 1px;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--ink);
}

.price ins {
    text-decoration: none;
}

.installment {
    display: block;
    margin-top: 3px;
    color: var(--success);
    font-size: 0.74rem;
}

.quick-add {
    width: 100%;
    margin-top: 12px;
    min-height: 39px;
    border: 1px solid #EAD9B0;
    border-radius: 10px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 0.8rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
}

.quick-add:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
}

.quick-add.added {
    color: #fff;
    border-color: var(--success);
    background: var(--success);
}

/* ========== PROMO ========== */
.promo {
    padding-top: 18px;
}

.promo-box {
    min-height: 230px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    border-radius: 24px;
    color: #fff;
    background: #0A0A0A;
}

.promo-copy {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.promo-copy h2 {
    max-width: 430px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.promo-copy p {
    max-width: 430px;
    color: #F6EFDF;
    line-height: 1.5;
}

.promo-btn {
    background: var(--accent) !important;
    color: #7E6023 !important;
    box-shadow: none !important;
}

.promo-btn:hover {
    background: #D4AF37 !important;
}

.promo-art {
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg, #D4AF37, #D4AF37);
}

.promo-art svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* ========== NEWSLETTER ========== */
.newsletter {
    background: var(--soft);
}

.newsletter-box {
    padding: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}

.newsletter-copy h2 {
    font-size: 1.55rem;
}

.newsletter-copy p {
    margin: 7px 0 0;
    color: var(--muted);
}

.newsletter-form {
    min-width: min(100%, 440px);
    display: flex;
    gap: 9px;
}

.newsletter-form input {
    min-width: 0;
    flex: 1;
    height: 47px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary);
}
