:root {
    --vinho-principal: #581225;
    --vinho-escuro: #3B0A17;
    --dourado: #D4AF37;
    --dourado-claro: #E6CA65;
    --offwhite: #FDFBF7;
    --offwhite-card: #F9F6F0;
    --texto-escuro: #2A1219;
    --texto-suave: #665257;
    --borda: #E8DFD5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--offwhite);
    color: var(--texto-escuro);
    overflow-x: hidden;
}

/* FAIXA SUPERIOR */
.top-bar {
    background-color: var(--vinho-escuro);
    color: var(--dourado);
    text-align: center;
    padding: 8px 15px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* CABEÇALHO */
.navbar {
    background-color: var(--offwhite);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 3%;
    border-bottom: 1px solid var(--borda);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 10px;
}

.logo-container {
    text-align: left;
}

.logo-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: var(--vinho-principal);
    font-weight: 700;
    line-height: 1;
}

.logo-title span {
    color: var(--dourado);
}

.logo-subtitle {
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--dourado);
    font-weight: 600;
    margin-top: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.nav-links a {
    text-decoration: none;
    color: var(--texto-escuro);
    margin: 0 15px;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--dourado);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--vinho-principal);
    font-weight: 600;
}

.btn-header-wa {
    background-color: var(--vinho-principal);
    color: var(--offwhite);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-header-wa:hover {
    background-color: var(--vinho-escuro);
}

/* HERO BANNER */
.hero-split {
    display: flex;
    height: 80vh;
    background-color: var(--vinho-principal);
}

.hero-left {
    flex: 1;
    background: linear-gradient(135deg, #581225 0%, #3B0A17 100%);
    color: var(--offwhite);
    padding: 50px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-tag {
    color: var(--dourado);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title em {
    font-style: italic;
    color: var(--dourado-claro);
}

.hero-desc {
    font-size: 14px;
    color: #E2D2D6;
    max-width: 420px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-gold {
    background-color: var(--dourado);
    color: var(--vinho-principal);
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    width: fit-content;
    transition: transform 0.2s, background 0.3s;
}

.btn-gold:hover {
    background-color: var(--dourado-claro);
    transform: translateY(-2px);
}

.slider-dots {
    display: flex;
    gap: 8px;
    position: absolute;
    bottom: 30px;
    left: 5%;
}

.dot {
    width: 30px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.dot.active {
    background-color: var(--dourado);
}

.hero-right {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 80vh;
}

.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.slider-arrows {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
}

.slider-arrows button {
    background: rgba(88, 18, 37, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}

.slider-arrows button:hover {
    background: var(--dourado);
    color: var(--vinho-principal);
}

/* BARRA DE BENEFÍCIOS */
.benefits-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #FFF;
    padding: 30px 5%;
    border-bottom: 1px solid var(--borda);
    flex-wrap: wrap;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #FAF4E6;
    border: 1px solid var(--dourado);
    color: var(--vinho-principal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.benefit-item h4 {
    font-size: 13px;
    color: var(--vinho-principal);
    font-weight: 600;
}

.benefit-item p {
    font-size: 11px;
    color: var(--texto-suave);
}

/* CATEGORIAS */
.section-categories,
.section-vitrine {
    padding: 60px 5%;
    text-align: center;
}

.section-tag {
    color: var(--dourado);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    color: var(--vinho-principal);
    margin: 8px 0;
}

.section-title em {
    font-style: italic;
}

.section-sub {
    font-size: 13px;
    color: var(--texto-suave);
    margin-bottom: 40px;
}

.categories-circles {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cat-item {
    cursor: pointer;
}

.circle-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    padding: 5px;
    border: 2px solid var(--dourado);
    margin: 0 auto 15px auto;
    overflow: hidden;
    transition: transform 0.3s;
}

.circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

.cat-item:hover .circle-img {
    transform: scale(1.05);
}

.cat-item h3 {
    font-size: 14px;
    color: var(--vinho-principal);
}

.cat-item p {
    font-size: 11px;
    color: var(--texto-suave);
}

/* FILTROS DA VITRINE */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 20px;
    border: 1px solid var(--borda);
    background: white;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    color: var(--texto-escuro);
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--vinho-principal);
    color: white;
    border-color: var(--vinho-principal);
}

/* VITRINE E CARDS DO WOOCOMMERCE (Alinhamento rigoroso) */
/* Força a grelha a esticar os cartões para terem exatamente a mesma altura */x
#vitrine-produtos,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 280px));
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    align-items: stretch;
}

/* O cartão preenche 100% da altura da linha da grelha */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--borda);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(88, 18, 37, 0.12);
}

/* CONTAINER DA IMAGEM */
.card-img-wrap {
    width: 100%;
    height: 350px !important;
    overflow: hidden;
    position: relative;
    background-color: #F9F6F0;
    flex-shrink: 0;
}

.product-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-wrap img {
    transform: scale(1.03);
}

/* INFORMAÇÕES DO CARD */
.card-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 8px;
}

.product-card .card-cat {
    font-size: 10px;
    color: var(--texto-suave);
    letter-spacing: 1.5px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-card h4 {
    font-size: 15px;
    color: var(--vinho-principal);
    margin: 2px 0;
    line-height: 1.3;
    font-weight: 600;
}

.product-card .card-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--dourado);
    margin: 4px 0;
}

/* SELETOR DE TAMANHOS (Com reserva de altura fixa para nivelar os cartões) */
.product-card .size-hint {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.product-card .size-selector {
    display: flex;
    gap: 6px;
    margin: 6px 0 10px 0;
    flex-wrap: wrap;
    min-height: 40px; /* Garante espaço igual mesmo se não houver tamanhos */
}

.product-card .size-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--borda);
    background-color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: var(--texto-escuro);
}

.product-card .size-box:hover {
    border-color: var(--vinho-principal);
    color: var(--vinho-principal);
}

.product-card .size-box.selected {
    background-color: var(--vinho-principal);
    color: #fff;
    border-color: var(--vinho-principal);
}

/* BOTÃO DE COMPRAR */
.product-card .btn-card-buy {
    display: block;
    text-align: center;
    background-color: var(--vinho-principal);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background 0.3s;
    margin-top: auto; /* Empurra o botão sempre para a base do card */
}

.product-card .btn-card-buy:hover {
    background-color: var(--vinho-escuro);
}

/* MARCAS MARQUEE */
.brands-marquee {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #3b0e1a;
    border-top: 1px solid #5a1e2f;
    border-bottom: 1px solid #5a1e2f;
    overflow: hidden;
    padding: 8px 0;
    display: flex;
    white-space: nowrap;
}

.brands-track {
    display: flex;
    gap: 40px;
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: scrollBrands 18s linear infinite;
}

.brands-track span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #e5c382;
    text-transform: uppercase;
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brands-marquee:hover .brands-track {
    animation-play-state: paused;
}

/* BANNER CTA */
.cta-banner {
    background-color: var(--vinho-principal);
    color: white;
    padding: 50px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cta-tag {
    color: var(--dourado);
    font-size: 10px;
    letter-spacing: 2px;
}

.cta-banner h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 400;
    margin-top: 5px;
}

.cta-banner h2 em {
    font-style: italic;
    color: var(--dourado-claro);
}

.btn-cta-gold {
    background-color: var(--dourado);
    color: var(--vinho-principal);
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

/* RODAPÉ */
.main-footer {
    background-color: var(--vinho-escuro);
    color: var(--offwhite);
    padding: 60px 5% 20px 5%;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.logo-container.light .logo-title {
    color: var(--offwhite);
}

.footer-about {
    font-size: 12px;
    color: #C5B0B5;
    margin: 15px 0;
    line-height: 1.5;
}

.social-icons a {
    color: var(--dourado);
    font-size: 18px;
    margin-right: 15px;
}

.footer-col h4 {
    color: var(--dourado);
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a,
.footer-col p {
    color: #C5B0B5;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.6;
}

.payment-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.payment-badges span {
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 3px 6px;
    font-size: 9px;
    border-radius: 2px;
    color: var(--dourado);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 11px;
    color: #8C7379;
}

/* BOTÃO FLUTUANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
}