/* =========================================
   🎨 IDENTIDADE VISUAL (ESTILO PLATÔ)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Barlow:wght@400;500;600;700&display=swap');

:root {
    /* Paleta Clean e Minimalista */
    --primary: #111111;
    /* Preto profundo para botões e textos fortes */
    --primary-hover: #333333;
    /* Cinza escuro para hover */
    --accent: #E5E5E5;
    /* Cor de destaque suave (bordas e fundos) */

    /* Tons Neutros e Elegantes */
    --black: #111111;
    --dark-gray: #4A4A4A;
    /* Para textos secundários */
    --gray: #888888;
    /* Para textos menores e detalhes */
    --light-gray: #F7F7F7;
    /* Fundo das fotos dos produtos (estilo clean) */
    --white: #FFFFFF;
    --border: #EAEAEA;
    /* Bordas finas e sutis */
    --bg-site: #FFFFFF;
    /* Fundo geral limpo */

    /* Mantido temporariamente para não quebrar ícones antigos */
    --gold: #111111;
    --gold-hover: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Fonte premium principal */
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-site);
    color: var(--black);
    padding-top: 35px;
    /* Mantém o espaço para a faixa de aviso no topo */
    -webkit-font-smoothing: antialiased;
    /* Tática Apple: deixa a fonte mais suave e refinada na tela */
}

/* =========================================
   🚑 VACINA SUPREMA ANTI-BLECAUTE (PRIORIDADE MÁXIMA)
   ========================================= */

/* 1. SELOS E ETIQUETAS (Fundo Preto, Letra Branca Forçada) */
.badge-discount,
.badge-esgotado,
.badge-soldout,
.badge-promo {
    background-color: #111111 !important;
    color: #FFFFFF !important;
}

.badge-discount *,
.badge-esgotado *,
.badge-soldout *,
.badge-promo * {
    color: #FFFFFF !important;
}

/* 2. CARRINHO LATERAL (Fundo Branco, Letra Preta) */
#carrinho-lateral,
.cart-sidebar,
.carrinho-lateral {
    background-color: #FFFFFF !important;
    color: #111111 !important;
}

#carrinho-lateral span,
#carrinho-lateral div,
#carrinho-lateral p,
#carrinho-lateral h3 {
    color: #111111 !important;
}

/* 3. OPÇÕES DE ENTREGA / RETIRADA (Quando Selecionado) */
/* Força a letra a ficar branca quando o fundo fica preto */
.opcao-entrega.active,
.metodo-frete.active,
.tipo-frete.active,
.selecionado,
.active-frete {
    background-color: #111111 !important;
    color: #FFFFFF !important;
    border: 1px solid #111111 !important;
}

.opcao-entrega.active *,
.metodo-frete.active *,
.tipo-frete.active *,
.selecionado * {
    color: #FFFFFF !important;
}

/* 4. BOTÃO FINALIZAR COMPRA DO CARRINHO */
#btn-finalizar-compra,
.btn-finalizar {
    background-color: #111111 !important;
    color: #FFFFFF !important;
}

#btn-finalizar-compra *,
.btn-finalizar * {
    color: #FFFFFF !important;
}

/* ========================================= */

/* =========================================
   1. CABEÇALHO E NAVEGAÇÃO (ESTILO CLEAN PLATÔ)
   ========================================= */

/* FAIXA FIXA MINIMALISTA */
.marquee-bar {
    background: var(--light-gray);
    color: var(--black);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 80s linear infinite !important;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* HEADER BRANCO PREMIUM */
header {
    background: var(--white);
    color: var(--black);
    padding: 12px 0;
    position: sticky;
    top: 32px;
    z-index: 900;
    box-shadow: none;
    border-bottom: 1px solid var(--border);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* LOGO E TEXTOS BARLOW */
.brand {
    font-family: 'Barlow', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand i {
    color: var(--black);
}

.slogan {
    font-size: 0.65rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* MENU LATERAL (SIDEBAR CLEAN) */
.btn-menu-mobile {
    background: none;
    border: none;
    color: var(--black);
    font-size: 1.8rem;
    cursor: pointer;
    display: block;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 2100;
    transition: 0.3s;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    background: var(--light-gray);
    color: var(--black);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-nav {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.menu-cat-item {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

/* REVENDEDOR & BOTÕES */
.revendedor-bar {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 6px 0;
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
}

.btn-support {
    border: 1px solid var(--black);
    color: var(--black);
    padding: 6px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}

/* =========================================
   2. CARROSSEL DE BANNERS (FORMATO REVISTA PLATÔ)
   ========================================= */
.banner-container {
    width: 100%;
    height: 500px;
    position: relative;
    background: var(--light-gray);
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.banner-container::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .banner-container {
        height: 450px;
    }
}

.banner-img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* =========================================
   3. BENEFÍCIOS (ESTILO MINIMALISTA)
   ========================================= */
.benefits-section {
    background-color: var(--light-gray);
    padding: 25px 0;
    border-bottom: none;
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
}

.benefit-item i {
    font-size: 1.8rem;
    color: var(--black);
    /* Adeus dourado forte, olá minimalismo */
    margin-bottom: 8px;
    font-weight: 300;
}

.benefit-item span {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .benefits-grid {
        gap: 5px;
    }

    .benefit-item i {
        font-size: 1.5rem;
    }

    .benefit-item span {
        font-size: 0.65rem;
        line-height: 1.2;
    }
}

/* =========================================
   4. VITRINE DE PRODUTOS (ESTILO BOUTIQUE)
   ========================================= */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    margin: 50px 0 30px 0;
    text-align: center;
}

.section-header h2 {
    font-family: 'Barlow', sans-serif;
    font-size: 1.6rem;
    color: var(--black);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    border-left: none;
    padding-left: 0;
    margin-bottom: 0;
}

/* Linha ultra-fina em vez da barra grossa */
.golden-line {
    width: 40px;
    height: 1px;
    background-color: var(--black);
    margin-top: 15px;
    display: block;
}

.vitrine {
    display: flex;
    gap: 20px;
    /* Mais espaço para o layout "respirar" */
    overflow-x: auto;
    padding: 10px 15px 40px 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.vitrine::-webkit-scrollbar {
    height: 2px;
    /* Scrollbar quase invisível */
}

.vitrine::-webkit-scrollbar-thumb {
    background: var(--border);
}

/* CARD DE PRODUTO CLEAN */
.prod-card {
    min-width: 260px;
    max-width: 260px;
    background: var(--white);
    border: none;
    /* Removida a borda */
    border-radius: 0;
    /* Cantos retos (High-End Fashion) */
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    box-shadow: none;
    /* Sem sombras artificiais */
    transition: 0.4s;
}

.prod-card:hover {
    opacity: 0.95;
}

.prod-img {
    width: 100%;
    height: 320px;
    /* Imagem mais alta, formato revista */
    object-fit: cover;
    background: var(--light-gray);
}

.prod-body {
    padding: 15px 5px;
    /* Texto alinhado à foto */
    text-align: center;
}

.prod-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-pix {
    color: var(--black);
    font-weight: 600;
    font-size: 1.1rem;
}

.price-old {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.75rem;
    margin-left: 6px;
}

/* =========================================
   5. NAVEGAÇÃO E BOTÕES (ESTILO PLATÔ)
   ========================================= */
.vitrine-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* SETAS DE ROLAGEM MINIMALISTAS */
.btn-scroll {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    /* Mantém redondo por usabilidade */
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-scroll:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-scroll-left {
    left: 10px;
}

.btn-scroll-right {
    right: 10px;
}

@media (max-width: 768px) {
    .btn-scroll {
        display: none !important;
    }
}

/* BOTÃO DO CARD DE PRODUTO (CLEAN E PREMIUM) */
.btn-card {
    margin-top: 15px;
    padding: 12px 0;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--black);
    color: var(--black);
    border-radius: 2px;
    /* Cantos quase retos, estilo boutique */
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Efeito ao passar o rato: Inverte para Preto Sólido */
.btn-card:hover {
    background: var(--black);
    color: var(--white);
}

/* Efeito de Clique Seco */
.btn-card:active {
    transform: scale(0.98);
}

/* SELO DE DESCONTO MINIMALISTA */
.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--black);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 5;
}

/* VÍDEO & FOOTER */
.video-frame-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 4px solid var(--white);
    background: #000;
}

.video-frame-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =========================================
   3. MODAL DE DETALHES (FINAL - COMPACTO E LIMPO)
   ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal-content {
    background: var(--white);
    width: 900px;
    max-width: 100%;
    height: 90vh;
    max-height: 90vh;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* LADO ESQUERDO: FOTO E GALERIA */
.modal-galeria {
    background: #f8f8f8;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #eee;
    overflow: hidden;
}

.main-photo-wrapper {
    width: 100%;
    height: 350px;
    /* Trava altura da foto */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 15px;
}

.main-photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 5px;
}

.thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    object-fit: cover;
    opacity: 0.7;
}

.thumb.active,
.thumb:hover {
    border-color: var(--gold);
    opacity: 1;
}

/* LADO DIREITO: INFO COM SCROLL */
.modal-info {
    padding: 30px;
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ELEMENTOS DO MODAL */
.badge-discount-modal {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background-color: var(--gold);
    color: var(--black);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.features-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f8f8;
    border: 1px solid #eee;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.feature-tag i {
    color: var(--gold);
    font-size: 1.1rem;
}

.colors-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.color-opt {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    /* Bolinha */
    border: 2px solid #eee;
    object-fit: cover;
    transition: 0.2s;
}

.color-opt:hover .color-img {
    border-color: var(--gold);
    transform: scale(1.1);
}

.color-name {
    font-size: 0.7rem;
    color: #999;
    margin-top: 4px;
    display: none;
}

.color-opt:hover .color-name {
    display: block;
}

.btn-nav-img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--black);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: 0.2s;
}

.btn-nav-img:hover {
    background: var(--black);
    color: var(--gold);
}

.btn-prev {
    left: 15px;
}

.btn-next {
    right: 15px;
}

/* =========================================
   6. MODAL DE DETALHES E BOTÃO DE COMPRA (ESTILO PLATÔ)
   ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Fundo mais suave e elegante */
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    padding: 20px;
}

.modal-content {
    background: var(--white);
    width: 900px;
    max-width: 100%;
    height: 90vh;
    max-height: 90vh;
    border-radius: 4px;
    /* Linhas retas estilo Boutique */
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Sombra difusa e chique */
}

/* LADO ESQUERDO: FOTO E GALERIA */
.modal-galeria {
    background: var(--white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
    overflow: hidden;
}

.main-photo-wrapper {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 15px;
}

.main-photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 5px;
}

.thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.3s;
}

.thumb.active,
.thumb:hover {
    border-color: var(--black);
    /* Marcação preta elegante */
    opacity: 1;
}

/* LADO DIREITO: INFO COM SCROLL */
.modal-info {
    padding: 30px;
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ELEMENTOS DO MODAL */
.badge-discount-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background-color: var(--black);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 2px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--light-gray);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--dark-gray);
    font-weight: 500;
    text-transform: uppercase;
}

.feature-tag i {
    color: var(--black);
    font-size: 1.1rem;
}

.colors-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.color-opt {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    object-fit: cover;
    transition: 0.3s;
}

.color-opt:hover .color-img,
.color-opt.active .color-img {
    border-color: var(--black);
    transform: scale(1.05);
}

.color-name {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 4px;
    display: none;
}

.color-opt:hover .color-name {
    display: block;
}

.btn-nav-img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--black);
    z-index: 5;
    transition: 0.3s;
}

.btn-nav-img:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-prev {
    left: 10px;
}

.btn-next {
    right: 10px;
}

/* =========================================
   BOTÃO DE COMPRA (PREMIUM & SÓLIDO)
   ========================================= */
.btn-buy {
    background: var(--black);
    /* Botão totalmente Preto */
    color: var(--white);
    border: 1px solid var(--black);
    padding: 16px;
    width: 100%;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
    /* Adeus cantos redondos infantis */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    margin-top: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Efeito ao passar o rato (Inverte as cores) */
.btn-buy:hover {
    background: var(--white);
    color: var(--black);
}

.btn-buy:active {
    transform: scale(0.98);
}

.btn-buy i {
    font-size: 1.4rem;
    /* Ícone sem pulsação, a elegância está na estática */
}

/* BOTÃO FECHAR */
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    font-size: 1.2rem;
    color: var(--black);
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.close-modal:hover {
    background: var(--black);
    color: var(--white);
}

/* --- RESPONSIVO (CELULAR) --- */
@media (max-width: 768px) {
    .modal-content {
        display: block;
        width: 95%;
        height: auto;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-galeria {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-shrink: 0;
    }

    .main-photo-wrapper {
        height: 250px;
    }

    .modal-info {
        height: auto;
        overflow: visible;
        padding: 20px;
        display: block;
    }

    .close-modal {
        top: 10px;
        right: 10px;
    }
}

/* --- RESPONSIVO (CELULAR) - CORRIGIDO PARA ROLAR --- */
@media (max-width: 768px) {
    .modal-content {
        display: block;
        /* Remove a trava do Flexbox */
        width: 95%;
        /* Largura segura */
        height: auto;
        /* Altura automática */
        max-height: 85vh;
        /* Limite de altura para caber na tela */
        overflow-y: auto;
        /* <--- ATIVA A ROLAGEM AQUI */
        -webkit-overflow-scrolling: touch;
        /* Rolagem macia no iPhone */
    }

    .modal-galeria {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-shrink: 0;
    }

    .main-photo-wrapper {
        height: 250px;
        /* Foto menor no celular */
    }

    .modal-info {
        height: auto;
        /* Altura livre para o texto crescer */
        overflow: visible;
        /* Quem rola é o pai (.modal-content) */
        padding: 20px;
        display: block;
    }

    /* Ajuste para o botão fechar não ficar em cima do conteúdo rolando */
    .close-modal {
        top: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}


/* =========================================
   RODAPÉ PREMIUM (4 COLUNAS - CORRIGIDO E CLEAN)
   ========================================= */
.footer-premium {
    background: var(--white);
    color: var(--black);
    padding: 60px 0 0 0;
    margin-top: 80px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 colunas iguais no PC */
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--black);
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col .brand {
    font-size: 1.6rem;
    color: var(--black);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slogan-footer-premium {
    color: var(--gray);
    font-style: italic;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* Localização centralizada no mobile */
.location-text {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Listas, Pagamentos e Selos */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--black);
    padding-left: 5px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 1.8rem;
    color: var(--black);
}

.payment-note {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 10px;
}

.security-seals {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seal {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.seal i {
    color: #27ae60;
    font-size: 1.2rem;
}

/* Copyright */
.footer-bottom {
    background: var(--light-gray);
    padding: 20px 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray);
    border-top: 1px solid var(--border);
}

/* BOTÃO WHATSAPP FLUTUANTE */
.whats-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 4000;
    text-decoration: none;
    transition: 0.3s;
}

/* AJUSTE PARA CELULAR */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .location-text {
        justify-content: center;
    }

    /* Centraliza no celular */
    .social-links,
    .payment-methods,
    .security-seals,
    .seal,
    .footer-col .brand {
        justify-content: center;
    }
}

/* BOTÃO FLUTUANTE WHATSAPP (COM ANIMAÇÃO MANTIDA) */
.whats-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 4000;
    text-decoration: none;
    transition: 0.3s;
    animation: pulse-whats 2s infinite;
}

.whats-float:hover {
    transform: scale(1.1);
    background-color: #20b358;
}

.tooltip-whats {
    position: absolute;
    right: 75px;
    background: var(--black);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.whats-float:hover .tooltip-whats {
    opacity: 1;
}

@keyframes pulse-whats {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* AJUSTE RESPONSIVO DO GRID */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* Colunas empilhadas no celular */
    }
}

/* =========================================
   🚀 CABEÇALHO MESTRE (DESKTOP & MOBILE)
   ========================================= */
.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    position: relative;
}

.logo-central {
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-left,
.nav-right-search {
    flex: 1;
    display: flex;
}

.nav-right-search {
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

/* Barra de Busca Premium */
.search-container {
    position: relative;
    width: 100%;
    max-width: 220px;
}

.search-container input {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 13px;
    outline: none;
    background: #fff;
}

.search-container i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* ==========================================
   📱 MOBILE UNIFICADO (LOGO, BUSCA E SCROLL)
   ========================================== */
@media (max-width: 768px) {
    .nav-flex {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 15px 15px 20px 15px;
    }

    /* Alinha o Menu na esquerda */
    .btn-menu-mobile {
        position: relative;
        z-index: 10;
        margin-top: 10px;
    }

    /* Logo Cravada no Centro */
    .logo-area,
    .logo-central {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 15px;
        width: 100%;
        max-width: 250px;
        z-index: 5;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 🎯 ALINHAMENTO DO CARRINHO E BUSCA (Andam Juntos) */
    .nav-right-search {
        width: 100%;
        flex: 0 0 100%;
        margin-top: 65px;
        /* Empurra os dois para baixo da logo ao mesmo tempo */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .search-container {
        flex: 1;
        max-width: 75%;
        /* Dá o espaço exato para o carrinho caber ao lado */
        margin-top: 0 !important;
        /* Remove conflitos de margem individual */
    }

    /* Ícone do Carrinho alinhado com a busca */
    .nav-right-search button[onclick*="abrirCarrinho"] {
        background: none;
        border: none;
        color: var(--gold);
        font-size: 1.8rem;
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    /* 📜 CORREÇÃO DE ROLAGEM NO PAINEL DE GARANTIA */
    #conteudoGarantiaCliente {
        max-height: 50vh;
        /* Trava em metade da tela do celular */
        overflow-y: auto !important;
        padding-right: 10px;
    }
}

/* Estilo para o botão de limpar (X) */
.clear-icon {
    position: absolute;
    right: 35px;
    /* Fica antes da lupa */
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.clear-icon:hover {
    color: #ff4d4d;
    /* Fica vermelhinho ao passar o mouse */
}

/* Esconde a lupa original quando o X aparece (opcional, para não amontoar) */
.search-container input:not(:placeholder-shown)~.search-icon {
    opacity: 0.5;
}

/* ==========================================
   CORREÇÃO DEFINITIVA DA LOGO NO CELULAR
   ========================================== */
@media (max-width: 768px) {
    .nav-flex {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 15px 15px 20px 15px;
    }

    /* Trava o Menu na esquerda */
    .btn-menu-mobile {
        position: relative;
        z-index: 10;
        margin-top: 10px;
    }

    /* Arranca a Logo da lateral e crava no centro exato da tela */
    .logo-area,
    .logo-central {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 15px;
        width: 100%;
        max-width: 250px;
        z-index: 5;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Organiza a caixa de busca para não amassar no celular */
    .nav-right-search {
        width: 100%;
        flex: 0 0 100%;
    }

    /* Empurra a barra de busca para baixo da Logo */
    .search-container {
        width: 100%;
        max-width: 100%;
        margin-top: 65px;
        /* Dá o espaço exato para a logo respirar */
        z-index: 10;
    }
}

/* Adicionar ao loja.css */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Fundo escuro */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    /* Garante que fique por cima de tudo */
    overflow: hidden;
    /* Impede rolagem do body */
}

/* Estilos do card de login (se não existirem) */
.login-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

/* ========================================== */
/* ESTILO DO TOAST (AVISOS BONITOS) */
/* ========================================== */
#toast-container-loja {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    /* Por cima de tudo */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-loja {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--gray);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    animation: slideInRight 0.3s ease-out;
    min-width: 250px;
}

.toast-loja.success {
    border-left-color: var(--primary);
    color: #333;
}

.toast-loja.error {
    border-left-color: var(--red);
    color: var(--red);
}

.toast-loja i {
    font-size: 1.2rem;
}

.toast-loja.success i {
    color: var(--primary);
}

.toast-loja.error i {
    color: var(--red);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================== */
/* AJUSTE DO MODAL NO COMPUTADOR */
/* ========================================== */
@media (min-width: 769px) {

    /* Deixa os modais mais estreitos e centralizados no PC */
    #modalLoginRevendedor .modal-content {
        width: 100%;
        max-width: 400px;
        /* Largura ideal para login */
        border-radius: 15px;
    }

    #modalPainelRevendedor .modal-content {
        width: 100%;
        max-width: 600px;
        /* Largura ideal para lista de preços */
        border-radius: 15px;
    }

    /* Melhora o alinhamento dos itens na lista de preços */
    #listaEdicaoPrecos>div {
        flex-direction: row;
        /* Mantém lado a lado */
        align-items: center;
    }
}

#vitrineOfertas::-webkit-scrollbar {
    display: none;
}

#vitrineOfertas>.produto-card {
    scroll-snap-align: start;
    min-width: 260px;
    max-width: 300px;
    flex: 0 0 auto;
}

/* ========================================== */
/* MODAL VIP DE LEADS (ACESSO PREMIUM)        */
/* ========================================== */
.premium-modal {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    text-align: center;
    border-top: 5px solid var(--gold);
    animation: slideUp 0.4s ease-out;
}

.modal-header-lead h2 {
    color: var(--black);
    font-weight: 800;
    margin: 10px 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.4rem;
}

.modal-header-lead p {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.input-group-premium {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    /* Garante alinhamento do ícone */
}

.input-group-premium i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #aaa;
    transition: 0.3s;
    z-index: 2;
}

.input-group-premium input {
    width: 100%;
    padding: 16px 15px 16px 45px;
    border-radius: 12px;
    border: 2px solid #eee;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
    background: #fcfcfc;
    font-family: inherit;
    color: var(--black);
    font-weight: 600;
}

/* Efeito de Destaque Dourado ao Digitar */
.input-group-premium input:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.input-group-premium input:focus~i {
    color: var(--gold);
}

/* ========================================== */
/* 💼 ESTILOS DO PAINEL B2B (REVENDEDOR)      */
/* ========================================== */

.b2b-panel {
    background: #fff;
    border-radius: 15px;
    padding: 0;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.b2b-header {
    background: var(--black);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--gold);
}

.b2b-product-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #f8fafc;
    transition: 0.3s;
}

.b2b-product-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.1);
    background: #fff;
}

.b2b-price-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
}

.b2b-price-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 48%;
}

.b2b-price-input label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: bold;
    text-transform: uppercase;
}

.b2b-price-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-weight: bold;
    color: var(--black);
    text-align: left;
    transition: 0.3s;
    background: #fff;
}

.b2b-price-input input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Força os alertas visuais a ficarem na frente de QUALQUER modal */
#toast-container-loja {
    z-index: 999999 !important;
}

/* ========================================================
   🌍 FORÇA A LISTA DO GOOGLE A FICAR NA FRENTE DO MODAL
   ======================================================== */
.pac-container {
    z-index: 999999 !important;
}

/* 🛡️ BLINDAGEM DE ROLAGEM: PAINEL DE GARANTIAS */
#conteudoGarantiaCliente {
    max-height: 480px;
    /* Limita a altura para caber em qualquer tela */
    overflow-y: auto;
    /* Ativa a rolagem vertical */
    padding-right: 10px;
    /* Espaço para a barra de rolagem não cobrir o texto */
    scroll-behavior: smooth;
}

/* Deixa a barra de rolagem mais fina e elegante (padrão D'Mara) */
#conteudoGarantiaCliente::-webkit-scrollbar {
    width: 5px;
}

#conteudoGarantiaCliente::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

/* GARANTIA DE LEITURA: ETIQUETAS */
.badge-esgotado,
.badge-soldout {
    background-color: var(--black) !important;
    color: var(--white) !important;
}

