/* --- Reset e Variáveis --- */
:root {
    --text-main: #111;
    --text-light: #666;
    --red-sale: #8b0000; 
    --gold-stars: #d4af37;
    --bg-card-light: #f9f9f9;
    --border-color-light: #eee;
    --font-stack: 'Montserrat', sans-serif;
}

@font-face {
    font-family: 'Calgary';
    src: url('./fonts/Calgary.ttf') format('truetype'); /* Ajuste o nome do arquivo se for .otf */
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-stack);
}

body {
    background-color: #fff;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* --- Utilitários --- */
.container-fluid { width: 100%; padding: 0 5%; }
.container { width: 90%; max-width: 1400px; margin: 0 auto; }

/* --- Top Bar Promo --- */
.top-bar-promo {
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    gap: 15px;
    text-align: center;
}
.countdown { font-family: monospace; font-size: 0.95rem; }

/* --- Utility Bar --- */
.utility-bar {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.7rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color-light);
}
.utility-bar .container-fluid { display: flex; justify-content: space-between; }
.utility-bar a { color: var(--text-light); text-decoration: none; margin-right: 12px; }
.utility-bar a:hover { text-decoration: underline; }

/* --- Menu Fixo (Sticky Header) --- */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #fff;
}

/* --- Header Principal --- */
.main-header { display: flex; align-items: center; padding: 20px 0; }
.header-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 700; letter-spacing: 4px; font-family: 'Calgary', sans-serif;}

/* --- Botões de Login e Carrinho --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px; 
    cursor: pointer; 
    font-size: 1.1rem;
}
.header-right .icon.currency { font-size: 0.8rem; font-weight: 600; }
.header-right .icon.cart { font-weight: 600; }

.login-btn-header {
    display: flex;
    align-items: center;
    gap: 6px; 
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.2s ease;
}
.login-btn-header:hover { color: var(--text-light); }

/* --- Navegação Principal --- */
.main-nav { padding: 10px 0 15px 0; border-bottom: none; }
.main-nav ul { display: flex; justify-content: center; gap: 22px; list-style: none; }
.main-nav a { text-decoration: none; color: var(--text-main); font-size: 0.8rem; font-weight: 500; letter-spacing: 1px; transition: color 0.2s; }
.main-nav a:hover { color: var(--text-light); }
.main-nav a.active { font-weight: 600; border-bottom: 1px solid #000; padding-bottom: 2px; }

/* --- Carrossel de Avisos (Ticker) --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color-light);
    padding: 10px 0;
    white-space: nowrap;
}
.ticker-move {
    display: inline-block;
    animation: ticker 25s linear infinite;
}
.ticker-item {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-main);
    padding: 0 40px;
}
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* --- Banner Area --- */
.banner-area { display: flex; flex-direction: column; }
.main-banner { width: 100%; height: 90vh; background-size: cover; background-position: center; background-repeat: no-repeat; }
.gif-banner { 
    position: relative; 
    overflow: hidden; 
    background-color: #000; /* Fundo preto enquanto o vídeo carrega */
}


/* Esconde o vídeo de celular por padrão (para quem acessa do PC) */
.video-mobile {
    display: none;
}

/* Regra para Celulares e Tablets pequenos (telas com até 768px de largura) */
@media (max-width: 768px) {
    /* Esconde o vídeo de PC */
    .video-desktop {
        display: none;
    }
    /* Mostra o vídeo de Celular */
    .video-mobile {
        display: block;
    }
}

/* Faz o vídeo se comportar exatamente como um background-size: cover */
.gif-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none; /* Evita que o usuário clique com o botão direito e pause o vídeo */
}

.carousel-container { width: 100vw; max-width: 100%; overflow: hidden; position: relative; background-color: #f4f4f4; }
.carousel-slide { 
    display: flex; 
    width: 500%;
    animation: scrollCarousel 25s infinite;
    flex-wrap: nowrap; 
}

/* Layout do Banner Dividido 50/50 */
.banner-item {
    width: 20% !important;
    flex: 0 0 20% !important; 
    height: 75vh; 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f4f4f4;
    padding: 0;
    overflow: hidden; 
}

@keyframes scrollCarousel {
    0%, 15%   { transform: translateX(0); }
    20%, 35%  { transform: translateX(-20%); }
    40%, 55%  { transform: translateX(-40%); }
    60%, 75%  { transform: translateX(-60%); }
    80%, 95%  { transform: translateX(-80%); }
    100%      { transform: translateX(0); }
}

/* No meio do seu @media (max-width: 768px), atualize o banner-item do mobile: */
@media (max-width: 768px) {
    /* ... suas outras regras mobile ... */

    .banner-item { 
        flex: 0 0 20% !important; /* Obriga a ser 20% no celular também */
        width: 20% !important;
        flex-direction: column; 
        height: auto; 
        padding: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
    }
}

.banner-text {
    position: relative;
    z-index: 2;
    width: 50%;
    padding: 0 5% 0 8%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.banner-item img {
    position: relative;
    width: 50%;
    height: 100%;
    object-fit: cover; 
    z-index: 1;
}

.banner-text h2 { font-size: 3.8rem; font-weight: 400; margin-bottom: 5px; color: #000; letter-spacing: -1px; }
.banner-text p { font-size: 1.3rem; color: #000; margin-bottom: 35px; letter-spacing: 1px; font-weight: 400; }
.btn-outline-carousel { display: inline-block; padding: 12px 40px; background-color: transparent; border: 1px solid #000; color: #000; text-decoration: none; font-size: 0.8rem; font-weight: 500; letter-spacing: 2px; transition: all 0.3s ease; margin-bottom: 40px; }
.btn-outline-carousel:hover { background-color: #000; color: #fff; }
.small-disclaimer { font-size: 0.65rem !important; color: #666 !important; text-transform: uppercase; letter-spacing: 1px !important; margin-bottom: 0 !important; line-height: 1.5; max-width: 100%; }

/* --- Categorias (Estilo Clean / Quadradinhos) --- */
.category-grid-section { 
    text-align: center; 
    padding: 50px 0; 
    background: #fff;
}

.category-carousel-wrapper { 
    display: flex; 
    justify-content: flex-start; 
    gap: 15px; 
    overflow-x: auto; 
    padding: 10px 40px; 
    scrollbar-width: none; 
    scroll-behavior: smooth;
}
.category-carousel-wrapper::-webkit-scrollbar { display: none; }

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 170px; 
    flex: 0 0 auto;
}

.cat-image-container {
    width: 170px;
    height: 170px; 
    background-color: #f4f4f4; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.cat-image-container img {
    max-width: 80%; 
    max-height: 80%;
    object-fit: contain; 
}

.cat-card:hover .cat-image-container {
    transform: translateY(-5px); 
}

.cat-bottom-text {
    font-family: var(--font-stack);
    font-size: 0.75rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Setas do Carrossel Geral */
.carousel-arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: background 0.2s;
}
.carousel-arrow:hover { background: #f9f9f9; }
.prev-arrow { left: 0; }
.next-arrow { right: 0; }

/* --- Novo Carrossel de Produtos (Vitrine Infinita) --- */
.product-carousel-section {
    padding: 0 0 60px 0;
    background: #fff;
}

.product-carousel-wrapper {
    display: flex;
    justify-content: flex-start;
    gap: 30px; 
    overflow-x: auto;
    padding: 10px 40px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.product-carousel-wrapper::-webkit-scrollbar { display: none; }

.product-card-carousel {
    flex: 0 0 auto;
    width: 260px; 
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
}

/* Estilo interno do Card de Produto (Reaproveitado) */
.product-image-wrapper { background-color: var(--bg-card-light); height: 350px; position: relative; margin-bottom: 18px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.product-image-wrapper img { max-height: 90%; max-width: 90%; object-fit: contain; }
.badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; color: #fff; font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; }
.badge.sale { background-color: var(--red-sale); }
.badge.new { background-color: #000; }
.fav-icon { position: absolute; top: 12px; right: 12px; font-size: 1.3rem; cursor: pointer; color: #aaa; }
.fav-icon:hover { color: var(--red-sale); }
.options-text { font-size: 0.7rem; color: var(--text-light); margin-bottom: 8px; }
.color-swatches { display: flex; gap: 7px; margin-bottom: 18px; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #ddd; cursor: pointer; position: relative; }
.swatch.active::after { content: ''; position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px; border: 1px solid #000; border-radius: 50%; }
.swatch.black { background: #000; }
.swatch.rose { background: #b76e79; }
.swatch.silver { background: #c0c0c0; }
.swatch.gold { background: #d4af37; }
.btn-promo-black { width: 100%; background: #000; color: #fff; border: none; padding: 12px; font-weight: 600; font-size: 0.7rem; letter-spacing: 1px; margin-bottom: 18px; cursor: pointer; transition: background 0.2s; }
.btn-promo-black:hover { background-color: #333; }
.product-title { font-size: 0.8rem; font-weight: 400; color: var(--text-light); line-height: 1.5; margin-bottom: 8px; }
.stars { color: var(--gold-stars); font-size: 0.8rem; margin-bottom: 12px; }
.review-count { color: var(--text-light); font-weight: 400; }
.pricing { display: flex; flex-direction: column; }
.old-price { font-size: 0.8rem; text-decoration: line-through; color: #999; margin-bottom: 2px; }
.new-price { font-size: 1.1rem; font-weight: 700; color: #000; display: flex; align-items: center; gap: 10px; }
.discount { font-size: 0.7rem; font-weight: 600; color: var(--text-main); }

/* Ajuste das setas para a seção de produtos */
.product-prev { left: -20px; top: 40%; }
.product-next { right: -20px; top: 40%; }

/* =========================================================
   RODAPÉ (FOOTER PROFISSIONAL)
   ========================================================= */
.main-footer {
    background-color: #fff;
    padding-top: 50px;
    border-top: 1px solid var(--border-color-light);
    margin-top: 60px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-column a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/* Área de Pagamento e Envio */
.footer-methods {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color-light);
}

.methods-left, .methods-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.methods-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.payment-icons, .shipping-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-icons img, .shipping-icons img {
    height: 25px;
    object-fit: contain;
}

/* Base Cinza (Copyright e Desenvolvedor) */
.footer-bottom {
    background-color: #f4f4f4;
    padding: 20px 0;
}

.footer-bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.65rem;
    color: var(--text-light);
}

.developer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    color: var(--text-light);
}

.dev-logo-link {
    text-decoration: none;
}

/* Logo Temporária em Texto */
.dcw-logo {
    font-weight: 700;
    font-size: 0.85rem;
    color: #111;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.form-footer-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 40px; /* Dá um respiro dos campos de texto */
        }

        .form-footer-actions .btn-update {
            margin-top: 0; /* Remove a margem antiga para alinhar com o vídeo */
        }

.moeda-video-container {
            width: 140px; 
            height: 140px;
            border-radius: 50%; /* Garante o formato redondo da caixa */
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            pointer-events: none;
            /* Remova o mix-blend-mode daqui e passe para o vídeo */
        }

        .moeda-video-container video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%; /* Força o vídeo a ficar redondo também */
            
            /* TRUQUE DEFINITIVO PARA APAGAR O FUNDO: */
            /* 1. Transforma em Preto e Branco (tira reflexos coloridos do fundo) */
            /* 2. Estoura o brilho e o contraste para o cinza virar BRANCO PURO */
            filter: grayscale(100%) brightness(1.4) contrast(1.5); 
            
            /* 3. Como agora o fundo é branco puro, o multiply apaga ele 100% */
            mix-blend-mode: multiply; 
        }

        /* --- Adaptação Perfeita para Celular --- */
        @media (max-width: 900px) {
            .form-footer-actions {
                flex-direction: column-reverse; /* No celular, coloca a moeda em cima e o botão em baixo */
                gap: 30px;
                justify-content: center;
            }
            .form-footer-actions .btn-update {
                width: 100%; /* O botão ocupa a tela toda no celular */
            }
        }

.dcw-logo:hover {
    opacity: 0.7;
}

/* =========================================================
   1. RESPONSIVIDADE: NOTEBOOKS E TABLETS (Até 1024px)
   ========================================================= */
@media (max-width: 1024px) {
    .container { width: 95%; }
    
    /* Previne que o Header e o Menu fiquem espremidos */
    .logo { font-size: 1.3rem; letter-spacing: 2px; }
    .main-nav ul { gap: 15px; }
    .main-nav a { font-size: 0.75rem; }

    /* Ajuste de fontes do Banner Principal */
    .banner-text h2 { font-size: 2.8rem; }
    .banner-text p { font-size: 1.1rem; }
    
    /* Ajuste da Grid da página de Conjuntos */
    .shop-grid { grid-template-columns: 200px 1fr; gap: 20px; }
}

/* =========================================================
   2. RESPONSIVIDADE: CELULARES (Até 768px)
   ========================================================= */
@media (max-width: 768px) {
    /* Barra de Utilidades: Simplificada para poupar espaço vertical */
    .top-bar-promo { flex-direction: column; gap: 5px; font-size: 0.7rem; padding: 8px; }
    .utility-bar { display: none; } 

    /* Header Principal: Solução para a quebra do Logotipo */
    .main-header { padding: 15px 0; }
    .header-wrapper { flex-wrap: wrap; gap: 10px; justify-content: space-between; }
    .header-left, .header-right { flex: 1; }
    .header-right { justify-content: flex-end; gap: 12px; font-size: 1.1rem; }
    .header-center { flex: 2; text-align: center; }
    
    .logo { 
        font-size: 1.1rem; 
        letter-spacing: 1px; 
        white-space: nowrap; /* REGRA DE OURO: Impede que o logo vire uma coluna */
    }

    .header-right .currency { display: none; } /* Oculta a moeda no mobile para visual limpo */

    /* Navegação: Transforma os links em um menu arrastável (scroll) */
    .main-nav { padding: 5px 0 10px 0; }
    .main-nav ul { 
        justify-content: flex-start; 
        overflow-x: auto; 
        padding-bottom: 5px; 
        white-space: nowrap; 
        scrollbar-width: none; 
    }
    .main-nav ul::-webkit-scrollbar { display: none; }

    /* Banners: Imagem em cima, texto centralizado embaixo */
    .banner-item { flex-direction: column; height: auto; }
    .banner-item img { width: 100%; height: 350px; order: 1; }
    .banner-text { width: 100%; padding: 30px 20px; align-items: center; text-align: center; order: 2; }
    .banner-text h2 { font-size: 2.2rem; }
    .banner-text p { font-size: 1rem; margin-bottom: 20px; }

    /* Carrosséis de Produtos e Categorias */
    .category-carousel-wrapper { padding: 10px 0; }
    .cat-card { min-width: 120px; }
    .cat-image-container { width: 120px; height: 120px; }
    
    .product-carousel-wrapper { padding: 10px 0; gap: 15px; }
    .product-card-carousel { width: 220px; }
    
    .carousel-arrow { display: none; } /* Oculta as setas de desktop no celular */

    /* Página Interna (Conjuntos e Filtros) */
    .page-title { font-size: 2.2rem; margin-bottom: 25px; }
    .shop-grid { grid-template-columns: 1fr; }
    
    /* Transforma a barra lateral de filtros em um menu superior arrastável */
    .sidebar-filters { 
        display: flex; 
        overflow-x: auto; 
        gap: 20px; 
        padding-bottom: 15px; 
        border-bottom: 1px solid #eee; 
        margin-bottom: 25px; 
        white-space: nowrap; 
    }
    .sidebar-filters::-webkit-scrollbar { display: none; }
    .filter-box { margin-bottom: 0; min-width: 150px; }

    /* Rodapé */
    .footer-links { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-methods { flex-direction: column; align-items: center; text-align: center; }
    .footer-bottom-wrapper { flex-direction: column; text-align: center; justify-content: center; }
    .developer { justify-content: center; width: 100%; margin-top: 15px; }
}

/* Responsividade do Footer */
@media (max-width: 768px) {
    .footer-methods {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-bottom-wrapper {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    .developer {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
}


/* =========================================================
   COMPORTAMENTO DAS ABAS E TELA DE CONJUNTOS
   ========================================================= */
.page-view { display: none; animation: fadeIn 0.4s ease-in-out; }
.page-view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Layout da Página "Conjuntos" */
.page-layout { padding: 40px 0 80px 0; }
.breadcrumb { font-size: 0.8rem; color: #666; margin-bottom: 20px; }
.page-title { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 500; color: #111; margin-bottom: 50px; border-bottom: 1px solid #eee; padding-bottom: 30px; }
.shop-grid { display: grid; grid-template-columns: 250px 1fr; gap: 40px; }

/* Barra Lateral (Filtros) */
.sidebar-filters h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 15px; color: #333; }
.filter-box { margin-bottom: 30px; }
.filter-box label { font-size: 0.85rem; color: #444; display: block; margin-bottom: 8px; cursor: pointer; }
.custom-select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.85rem; background: #fff; margin-top: 10px; }
.check-label input { margin-right: 8px; cursor: pointer; }

/* Grid de Produtos da Aba Conjuntos */
.product-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.catalog-item { text-align: center; }
.catalog-img-wrapper { background: #fff; padding: 20px; margin-bottom: 15px; display: flex; justify-content: center; align-items: center; border: 1px solid #f0f0f0; border-radius: 8px;}
.catalog-img-wrapper img { max-width: 100%; height: auto; object-fit: contain; }
.catalog-title { font-size: 0.85rem; font-weight: 600; color: #333; margin-bottom: 5px; }
.catalog-price { font-size: 1rem; font-weight: 600; color: #111; }

/* Responsividade Celular */
@media (max-width: 768px) {
    .category-carousel-wrapper { padding: 10px 5px; }
    .cat-card { min-width: 130px; }
    .cat-image-container { width: 130px; height: 130px; }
    .carousel-arrow { display: none; }
    .banner-item { flex-direction: column; height: auto; }
    .banner-text, .banner-item img { width: 100%; }
    .banner-text { padding: 40px 20px; align-items: center; text-align: center; }
    .shop-grid { grid-template-columns: 1fr; }
    
    /* Celular: Carrossel de produtos */
    .product-carousel-wrapper { padding: 10px 5px; }
    .product-card-carousel { width: 220px; }
    .product-prev, .product-next { display: none; }
}