/* --- 1. CONFIGURAÇÃO DE VARIÁVEIS E TEMAS --- */
:root {
    /* Cores Institucionais New Wave extraídas do Logótipo */
    --nw-blue: #1b639a;
    --nw-cyan: #22e1d1;
    --nw-gradient: linear-gradient(135deg, #1b639a 0%, #22e1d1 100%);
}

/* TEMA ESCURO (Padrão Moderno) */
body.dark-theme {
    --bg-body: #0d1117;
    --bg-card: #161b22;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --border-ui: rgba(34, 225, 209, 0.2);
    --shadow: rgba(0, 0, 0, 0.5);
}

/* TEMA CLARO (Corporate Clean) */
body.light-theme {
    --bg-body: #f4f7fa;
    --bg-card: #ffffff;
    --text-main: #1b1f23;
    --text-muted: #57606a;
    --border-ui: rgba(27, 99, 154, 0.1);
    --shadow: rgba(27, 99, 154, 0.08);
}

/* --- 2. BASE E TIPOGRAFIA --- */
body {
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

h2, h3, .footer-title {
    font-family: 'Viga', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* --- 3. HEADER (STUDIO DECORATION) --- */
.studio-header {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-ui);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-link img {
    height: 55px;
    transition: transform 0.3s ease;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a:hover { color: var(--nw-cyan); }

.nwb-highlight {
    background: var(--nw-gradient);
    color: white !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.system-tools {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 10px;
    padding-left: 20px;
    border-left: 1px solid var(--border-ui);
}
/* ==========================================================================
   NEW WAVE - CATÁLOGO FINAL (RESTAURADO E SEM ESPAÇOS MORTOS)
   ========================================================================== */

:root {
    --nw-primary: #70e1ca;
    --nw-text-muted: #888;
    --nw-border: rgba(0,0,0,0.05);
}

/* ============================================================
   1. ESTRUTURA GERAL - CORREÇÃO DE TOPO (MATA ESPAÇOS)
   ============================================================ */
.catalog-page, 
.nw-catalog-wrapper,
.main-content-area { 
    padding-top: 0 !important; 
    margin-top: 0 !important;
    background-color: #fff; 
}

.nw-container-fix {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px; 
    box-sizing: border-box;
}

.catalog-layout {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 30px 15px;
    align-items: flex-start;
}

.catalog-main { flex-grow: 1; }
.catalog-main-full { width: 100%; padding-top: 20px; }

.catalog-sidebar {
    width: 280px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

/* ============================================================
   2. NEW WAVE MINI HERO (RESTORED STYLE)
   ============================================================ */
.nw-hero-mini {
    position: relative;
    min-height: 300px;
    margin-top: 0 !important;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; 
    padding: 20px 5% 15px 5%;
    overflow: hidden;
}

.nw-hero-mini::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.nw-hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.nw-title-compact {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -3px;
    line-height: 0.8;
    margin: 0;
    padding-bottom: 50px; 
    position: relative;
    flex: 1;
}

.nw-title-compact::after {
    content: '';
    position: absolute;
    bottom: 35px;
    left: 0;
    width: 60px;
    height: 6px;
    background: #70e1ca;
    box-shadow: 0 0 15px rgba(112, 225, 202, 0.6);
}

/* Pesquisa e Filtros no Hero */
.nw-search-box-transparent {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 18px;
    margin-bottom: 5px;
}

.nw-mini-form { display: flex; gap: 10px; align-items: center; }

.nw-input-group-glass {
    display: flex;
    background: #fff;
    border-radius: 12px;
    height: 42px;
    overflow: hidden;
}

.nw-mini-select { background: #f4f4f4; border: none; padding: 0 12px; font-weight: 800; font-size: 10px; }
.nw-input-group-glass input { border: none; padding: 0 15px; width: 180px; font-size: 13px; outline: none; }
.nw-mini-btn { background: #000; color: #fff; border: none; width: 45px; cursor: pointer; }

/* ============================================================
   3. BREADCRUMBS E TITULOS INTERNOS
   ============================================================ */
.catalog-modern-header {
    padding: 0 0 20px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.nw-breadcrumbs { margin-bottom: 20px; font-size: 13px; font-weight: 600; color: #bbb; }
.nw-breadcrumbs a { color: #999; text-decoration: none; transition: 0.2s; }
.nw-breadcrumbs a:hover { color: #70e1ca; }
.nw-breadcrumbs .sep { margin: 0 8px; color: #ddd; }
.nw-breadcrumbs .current { color: #000; }

.header-main-title h1 { font-size: 4rem; font-weight: 900; letter-spacing: -3px; line-height: 0.9; margin-bottom: 10px; text-transform: capitalize; }
.badge-count { color: #70e1ca; font-weight: 700; font-size: 14px; text-transform: uppercase; }

/* ============================================================
   4. NAVEGAÇÃO (FAMÍLIAS E SUBFAMÍLIAS)
   ============================================================ */
.nw-families-nav { overflow-x: auto; white-space: nowrap; padding: 15px 0; margin-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.families-list { display: flex; gap: 10px; list-style: none; padding: 0; }
.families-list a { padding: 8px 20px; background: #f0f0f0; border-radius: 50px; text-decoration: none; color: #333; font-weight: 600; font-size: 0.85rem; transition: 0.3s; }
.families-list a.active { background: #00d4ff; color: #fff; }

.subfamilies-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.subfamilies-list a { display: inline-block; font-size: 0.75rem; color: var(--nw-text-muted); text-decoration: none; padding: 4px 10px; border-radius: 15px; background: rgba(128,128,128,0.08); border: 1px solid transparent; transition: 0.2s; }
.subfamilies-list a.active { background: #00d4ff; color: #000; font-weight: 600; }

/* ============================================================
   5. CARDS DE PRODUTO
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; width: 100%; }
.nw-card { background: #fff; border-radius: 12px; overflow: hidden; transition: 0.3s; border: 1px solid #f0f0f0; box-shadow: -3px 0px 0px 0px #70e1ca; display: flex; flex-direction: column; height: 100%; cursor: pointer; }
.nw-card:hover { transform: translateY(-5px); box-shadow: -5px 8px 20px rgba(112, 225, 202, 0.2); }
.nw-card-img { height: 200px; padding: 15px; display: flex; align-items: center; justify-content: center; background: #fdfdfd; }
.nw-card-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.nw-card-body { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.nw-title { font-size: 14px; margin: 8px 0; color: #333; font-weight: 500; height: 2.8em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nw-price { font-weight: 800; font-size: 1.1rem; color: #000; }
.plus-icon { background: #70e1ca; color: #fff; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* ============================================================
   6. PAGINAÇÃO
   ============================================================ */
.nw-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 60px; padding-bottom: 40px; }
.page-link { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #f4f4f4; color: #000; text-decoration: none; font-weight: 800; font-size: 14px; transition: 0.3s; }
.page-link.active { background: #70e1ca; box-shadow: 0 10px 20px rgba(112, 225, 202, 0.3); }

/* ============================================================
   7. MODAIS RESTAURADOS (+18 E PRODUTO)
   ============================================================ */
.nw-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 10000; display: flex; align-items: center; justify-content: center; }
.nw-modal-box { background: #ffffff; padding: 40px; border-radius: 25px; text-align: center; max-width: 400px; width: 90%; }
.btn-yes { background: #000; color: #fff; border: none; padding: 16px; border-radius: 12px; font-weight: 800; cursor: pointer; width: 100%; text-transform: uppercase; }
.btn-yes:hover { background: #70e1ca; color: #000; }

.product-modal { display: none; position: fixed; z-index: 10001; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.product-modal-content { background: #fff; width: 90%; max-width: 950px; max-height: 90vh; border-radius: 30px; position: relative; overflow-y: auto; display: flex; }
.product-modal-grid { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.product-modal-left { background: #fff; padding: 30px; display: flex; align-items: center; justify-content: center; border-right: 1px solid #f0f0f0; }
.product-modal-right { background: #fafafa; padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.modal-price-box .nw-price { font-size: 2rem; color: #70e1ca; }
.btn-whatsapp { background: #25D366; color: #fff; padding: 15px; border-radius: 10px; text-decoration: none; text-align: center; font-weight: bold; margin-bottom: 10px; display: block; }
.btn-email { background: #000; color: #fff; padding: 15px; border-radius: 10px; text-decoration: none; text-align: center; font-weight: bold; display: block; }

/* ============================================================
   8. TEMA DARK
   ============================================================ */
body.dark-theme { background-color: #121212; color: #ffffff; }
body.dark-theme .catalog-page, body.dark-theme .nw-catalog-wrapper { background-color: #121212; }
body.dark-theme .nw-card { background: #1e1e1e; border-color: #333; }
body.dark-theme .nw-title, body.dark-theme .nw-price { color: #fff; }
body.dark-theme .product-modal-content { background: #1e1e1e; }
body.dark-theme .product-modal-left { background: #252525; border-color: #333; }

/* ============================================================
   9. RESPONSIVIDADE (CORREÇÃO MOBILE DEFINITIVA)
   ============================================================ */
@media (max-width: 768px) {
    /* Mata o espaço de 120px que encontraste */
    .nw-catalog-wrapper, 
    .catalog-page { 
        padding-top: 0 !important; 
    }

    .nw-hero-mini { min-height: 250px; padding: 40px 20px 20px 20px; }
    .nw-hero-inner { flex-direction: column; align-items: center; text-align: center; }
    .nw-title-compact { font-size: 2.2rem; padding-bottom: 25px; margin-bottom: 20px; }
    .nw-title-compact::after { left: 50%; transform: translateX(-50%); bottom: 10px; }
    .nw-search-box-transparent { width: 100%; }
    .nw-mini-form { flex-direction: column; }
    .nw-input-group-glass { width: 100%; }
    
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-modal-grid { grid-template-columns: 1fr; }
    .product-modal-left { border-right: none; border-bottom: 1px solid #eee; }
}

/* ============================================================
   DECORAÇÃO: GRID, LOADER E PAGINAÇÃO (NEW WAVE STYLE)
   ============================================================ */

/* 1. Grelha de Produtos */
.nw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    margin-bottom: 20px;
}

.nw-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: #f9f9f9;
    border-radius: 20px;
    color: #888;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px dashed #eee;
}

/* 2. Loader Infinito (Animação da Logo) */
#nw-loader {
    clear: both;
    margin-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

#nw-loader img {
    filter: grayscale(1);
    opacity: 0.5;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

/* 3. Paginação (Fallback e Normal) */
.nw-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f4f4f4;
    color: #000;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.page-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-3px);
}

.page-btn.active, .page-btn:focus {
    background: #70e1ca;
    color: #000;
    box-shadow: 0 10px 20px rgba(112, 225, 202, 0.3);
}

/* Ajuste para o Anchor de scroll infinito */
#nw-load-anchor {
    margin-bottom: 20px;
}

/* ============================================================
   MODO DARK
   ============================================================ */
body.dark-theme .nw-no-results {
    background: #1a1a1a;
    border-color: #333;
    color: #666;
}

body.dark-theme .page-btn {
    background: #252525;
    color: #fff;
}

body.dark-theme .page-btn:hover {
    background: #fff;
    color: #000;
}

/* ============================================================
   RESPONSIVIDADE MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .nw-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .nw-no-results {
        padding: 40px 20px;
        font-size: 0.9rem;
    }

    .page-btn {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }
}
/* ============================================================
   AJUSTE DE TAMANHO DE IMAGEM (NEW WAVE STYLE)
   ============================================================ */

.nw-card-img {
    height: 180px; /* Reduzi de 200px para 180px para dar mais respiro */
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    overflow: hidden; /* Garante que nada sai para fora */
}

.nw-card-img img {
    max-height: 100%; /* A imagem nunca será maior que o contentor */
    max-width: 100%;  /* A imagem nunca será mais larga que o card */
    width: auto;      /* Mantém a proporção original */
    height: auto;     /* Mantém a proporção original */
    object-fit: contain; /* O segredo: encaixa a imagem sem a cortar ou deformar */
    transition: transform 0.5s ease; /* Para o efeito de zoom ao passar o rato */
}

/* Efeito New Wave: Quando passas o rato no card, a imagem cresce só um pouco */
.nw-card:hover .nw-card-img img {
    transform: scale(1.08);
}

/* Ajuste específico para Mobile (Telemóveis) */
@media (max-width: 768px) {
    .nw-card-img {
        height: 140px; /* Imagens mais pequenas em ecrãs pequenos para caberem 2 colunas */
        padding: 10px;
    }
}
/* ============================================================
   NAVEGAÇÃO DE FAMÍLIAS (PILLS)
   ============================================================ */

.nw-pills-nav {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--nw-border);
    position: sticky; /* Fica fixo ao topo se necessário */
    top: 0;
    z-index: 100;
}

.nw-pills-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 5px 30px;
    scrollbar-width: none; /* Esconde scrollbar no Firefox */
}

.nw-pills-scroll::-webkit-scrollbar {
    display: none; /* Esconde scrollbar no Chrome/Safari */
}

.nw-pills-nav .pill {
    display: inline-block;
    padding: 10px 24px;
    background: #f4f4f4;
    color: #444;
    text-decoration: none;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.nw-pills-nav .pill:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

.nw-pills-nav .pill.active {
    background: #000;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* ============================================================
   NAVEGAÇÃO DE SUBFAMÍLIAS (LINKS)
   ============================================================ */

.nw-subfam-container {
    background: #fafafa;
    padding: 12px 0;
    border-bottom: 1px solid var(--nw-border);
}

.nw-subfam-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 30px;
    scrollbar-width: none;
}

.nw-subfam-scroll::-webkit-scrollbar {
    display: none;
}

.subfam-link {
    font-size: 11px;
    font-weight: 800;
    color: #999;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 8px;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subfam-link:hover {
    color: var(--nw-primary);
    background: rgba(112, 225, 202, 0.05);
}

.subfam-link.active {
    color: var(--nw-primary);
    background: rgba(112, 225, 202, 0.1);
    position: relative;
}

/* Pequeno traço indicador sob a subfamília ativa */
.subfam-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--nw-primary);
    border-radius: 2px;
}

/* ============================================================
   MODO DARK E AJUSTES MOBILE
   ============================================================ */

body.dark-theme .nw-pills-nav { background: #121212; border-color: #333; }
body.dark-theme .nw-subfam-container { background: #1a1a1a; border-color: #333; }
body.dark-theme .nw-pills-nav .pill { background: #252525; color: #ccc; }
body.dark-theme .nw-pills-nav .pill.active { background: var(--nw-primary); color: #000; }

@media (max-width: 768px) {
    .nw-pills-scroll, .nw-subfam-scroll {
        padding: 0 15px; /* Menos padding lateral no mobile */
    }
    
    .nw-pills-nav .pill {
        padding: 8px 18px;
        font-size: 11px;
    }
}
/* ============================================================
   NAVEGAÇÃO DE SUBFAMÍLIAS - INTELIGENTE (GRID VS SCROLL)
   ============================================================ */

.nw-subfam-container {
    background: #fafafa;
    padding: 20px 0; /* Mais respiro vertical */
    border-bottom: 1px solid var(--nw-border);
}

.nw-subfam-scroll {
    display: flex;
    max-width: 1400px; /* Alinhado com o teu container fix */
    margin: 0 auto;
    padding: 0 30px;
    
    /* CONFIGURAÇÃO PARA ECRÃS GRANDES */
    flex-wrap: wrap;       /* Força a quebra de linha */
    gap: 10px;             /* Espaço entre os links */
    overflow-x: visible;   /* Remove o scroll lateral em desktop */
    white-space: normal;   /* Permite que o texto quebre se necessário */
}

.subfam-link {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #888;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: #fff;      /* Estilo de "etiqueta" */
    border: 1px solid #eee;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subfam-link:hover {
    border-color: var(--nw-primary);
    color: var(--nw-primary);
    transform: translateY(-2px);
}

.subfam-link.active {
    background: var(--nw-primary);
    color: #000;
    border-color: var(--nw-primary);
    box-shadow: 0 4px 10px rgba(112, 225, 202, 0.2);
}

/* ============================================================
   AJUSTE PARA MOBILE (VOLTA O SCROLL LATERAL)
   ============================================================ */

@media (max-width: 992px) {
    .nw-subfam-container {
        padding: 12px 0;
    }

    .nw-subfam-scroll {
        flex-wrap: nowrap;     /* Impede a quebra de linha no mobile */
        overflow-x: auto;      /* Ativa o deslize lateral */
        white-space: nowrap;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch; /* Scroll suave no iOS */
        scrollbar-width: none;
    }

    .nw-subfam-scroll::-webkit-scrollbar {
        display: none;
    }

    .subfam-link {
        background: transparent; /* Mais leve no mobile */
        border: none;
        padding: 6px 12px;
    }
    
    .subfam-link.active {
        background: rgba(112, 225, 202, 0.1);
        box-shadow: none;
    }
}

/* TEMA DARK */
body.dark-theme .nw-subfam-container { background: #1a1a1a; }
body.dark-theme .subfam-link { background: #252525; border-color: #333; color: #bbb; }
body.dark-theme .subfam-link.active { background: var(--nw-primary); color: #000; }
/* ============================================================
   SECÇÃO DE NOVIDADES (NEW WAVE NEWS STYLE)
   ============================================================ */

.nw-news-section {
    padding: 60px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.nw-section-header {
    margin-bottom: 40px;
    padding: 0 15px;
    border-left: 5px solid var(--nw-primary);
}

.nw-main-title {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    margin: 0;
    color: #000;
}

/* 1. Grelha de Novidades */
.nw-grid-news {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 15px;
}

/* 2. O Card de Novidade */
.nw-news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid #f0f0f0;
}

.nw-news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* 3. Contentor da Imagem e Badge */
.nw-news-img-container {
    height: 250px;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.nw-news-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.nw-news-card:hover .nw-news-img-container img {
    transform: scale(1.1);
}

.nw-news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

/* 4. Informação do Produto */
.nw-news-info {
    padding: 25px;
    text-align: center;
}

.nw-news-cat {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--nw-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.nw-news-name {
    font-size: 16px;
    font-weight: 800;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nw-news-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: #000;
}

/* Divisor elegante */
.nw-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 40px 0;
}

/* ============================================================
   TEMA DARK E RESPONSIVIDADE
   ============================================================ */

body.dark-theme .nw-news-card { background: #1a1a1a; border-color: #333; }
body.dark-theme .nw-news-name, body.dark-theme .nw-news-price, body.dark-theme .nw-main-title { color: #fff; }
body.dark-theme .nw-news-img-container { background: #222; }
body.dark-theme .nw-news-badge { background: var(--nw-primary); color: #000; }

@media (max-width: 768px) {
    .nw-main-title { font-size: 1.8rem; }
    .nw-grid-news { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .nw-news-img-container { height: 180px; padding: 15px; }
    .nw-news-info { padding: 15px; }
    .nw-news-name { font-size: 14px; }
    .nw-news-price { font-size: 1.1rem; }
}
/* ============================================================
   NEW WAVE - PREMIUM PRODUCT CARD (CSS FINAL)
   ============================================================ */

.nw-card {
    background: #ffffff;
    border-radius: 24px; /* Bordas mais redondas e modernas */
    padding: 12px;
    border: 1px solid #f2f2f2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Efeito de elevação e brilho New Wave no hover */
.nw-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--nw-primary);
}

.nw-card-clickable {
    cursor: pointer;
    flex-grow: 1;
}

/* 1. Contentor da Imagem (O segredo do tamanho) */
.nw-img-wrapper {
    width: 100%;
    height: 200px;
    background: #f8f8f8; /* Fundo neutro para destacar o produto */
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.nw-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
    /* Sombra leve no objeto para parecer 3D */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05));
}

.nw-card:hover .nw-img-wrapper img {
    transform: scale(1.12); /* Zoom elegante ao passar o rato */
}

/* 2. Categoria e Título */
.nw-card-cat {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--nw-primary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    padding: 0 5px;
}

.nw-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 15px 0;
    padding: 0 5px;
    /* Limita a 2 linhas com reticências */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

/* 3. Rodapé (Preço e Botão) */
.nw-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px 5px 5px;
    border-top: 1px solid #f9f9f9;
}

.nw-card-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: #000;
    letter-spacing: -0.5px;
}

.nw-quick-add {
    background: #000;
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nw-quick-add i {
    font-size: 14px;
}

.nw-quick-add:hover {
    background: var(--nw-primary);
    color: #000;
    transform: scale(1.1) rotate(90deg);
}

/* ============================================================
   TEMA DARK E RESPONSIVIDADE
   ============================================================ */

body.dark-theme .nw-card { background: #1a1a1a; border-color: #333; }
body.dark-theme .nw-img-wrapper { background: #222; }
body.dark-theme .nw-card-title, body.dark-theme .nw-card-price { color: #fff; }
body.dark-theme .nw-card-footer { border-color: #222; }
body.dark-theme .nw-quick-add { background: #333; }

@media (max-width: 768px) {
    .nw-img-wrapper { height: 150px; padding: 12px; }
    .nw-card-title { font-size: 13px; }
    .nw-card-price { font-size: 1.1rem; }
    .nw-card { border-radius: 20px; padding: 10px; }
}
/* ============================================================
   NEW WAVE - CLEAN PRODUCT CARD (REMOÇÃO DE SOMBRAS E FUNDOS)
   ============================================================ */

.nw-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    
    /* REMOVIDO: box-shadow e border-left iniciais */
    box-shadow: none !important; 
}

/* Efeito apenas no Hover */
.nw-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
    /* Aplica a borda azul elétrico New Wave apenas aqui */
    border-left: 5px solid var(--nw-primary);
}

/* 1. Contentor da Imagem (Fundo agora 100% Branco) */
.nw-img-wrapper {
    height: 250px;
    background: #ffffff; /* ALTERADO: de #fdfdfd para branco puro */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.nw-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
    margin: 0 auto;
    display: block;
    transform-origin: center center;
    /* Mantém uma leve sombra no próprio PNG para realismo, se preferires remover, apaga a linha abaixo */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05));
}

.nw-card:hover .nw-img-wrapper img {
    transform: scale(1.1);
}

/* 2. Corpo do Card (Fundo Branco) */
.nw-card-body {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    background: #ffffff; /* Garante fundo branco total */
}

/* 3. Ajuste para o Tema Dark */
body.dark-theme .nw-card { 
    background: #1a1a1a; 
    border-color: #333; 
}
body.dark-theme .nw-img-wrapper { 
    background: #1a1a1a; /* Fundo escuro no modo dark */
}
/* ============================================================
   CORREÇÃO CRÍTICA: CENTRALIZAÇÃO E TAMANHO DE IMAGEM
   ============================================================ */

/* 1. Reset Global nos Cartões Clickable */
.nw-card-clickable {
    display: block !important;
    width: 100% !important;
    cursor: pointer;
    flex-grow: 1;
}

/* 2. Contentor da Imagem (Onde domamos o tamanho) */
.nw-img-wrapper {
    width: 100% !important;
    height: 180px !important; /* Reduzi a altura para dar mais respiro à imagem */
    background: #ffffff !important; 
    border-radius: 18px;
    
    /* GARANTE O CENTRO ABSOLUTO */
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    
    /* Aumentar o padding lateral impede que a imagem toque nos lados */
    padding: 20px 30px !important; 
    box-sizing: border-box !important;
}

/* 3. A Imagem (Configuração de Contenção) */
.nw-img-wrapper img {
    /* Limita o tamanho real para não explodir o card */
    max-height: 100% !important; 
    max-width: 100% !important;  
    
    /* Mantém a proporção original */
    width: auto !important;      
    height: auto !important;     
    
    /* O SEGREDO: encaixa a imagem sem a cortar ou deformar */
    object-fit: contain !important; 
    
    /* ORIGEM DO ZOOM CENTRALIZADA */
    transform-origin: center center !important; 
    
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Remove qualquer margem automática herdada */
    margin: 0 !important; 
    display: block !important;
    
    /* Sombra opcional para realismo (Drop Shadow segue o contorno do produto) */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05));
}

/* 4. Ajuste Mobile (Telemóveis) */
@media (max-width: 768px) {
    .nw-img-wrapper {
        height: 140px !important; /* Imagens mais pequenas para caberem 2 colunas */
        padding: 10px 15px !important;
    }
}
/* --- CORREÇÃO DE TAMANHO DE IMAGENS NO MOBILE --- */
@media (max-width: 768px) {
    /* Ajusta o contentor da imagem para não ser tão alto no mobile */
    .nw-img-wrapper {
        height: 180px !important; /* Altura fixa menor para mobile */
        padding: 10px !important;  /* Reduz o respiro interno */
        margin-bottom: 10px;
    }

    /* Garante que a imagem dentro do wrapper se ajusta proporcionalmente */
    .nw-img-wrapper img {
        max-height: 100% !important;
        width: auto !important;
        object-fit: contain !important;
    }

    /* Opcional: Se os cards estiverem a ocupar a largura toda, 
       podemos garantir que as novidades e a grid principal usem este ajuste */
    .novidade-card .nw-img-wrapper,
    .produto-card .nw-img-wrapper {
        height: 160px !important;
    }
}
/* --- MODAL DE IDADE ÉTICO --- */

.nw-modal-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-age-choice {
    /* Garante que ambos tenham a mesma largura mínima */
    min-width: 140px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    /* Estilo Neutro Base (Tema New Wave) */
    background: var(--bg-body, #0d1117);
    color: var(--text-main, #fff);
    border: 2px solid var(--border-ui, #22e1d1);
}

/* Hover igual para ambos para não dar ênfase */
.btn-age-choice:hover {
    background: var(--nw-cyan, #22e1d1);
    color: #000;
    box-shadow: 0 0 15px rgba(34, 225, 209, 0.3);
    transform: translateY(-2px);
}

/* Se quiseres uma distinção subtil mas ética (opcional) */
.btn-outline {
    opacity: 0.8; /* Apenas ligeiramente menos brilhante para não "gritar" */
}

/* Ajuste do Modal Box para não ficar desproporcional */
.nw-modal-box {
    background: var(--bg-card, #161b22);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-ui);
    text-align: center;
    max-width: 450px;
    width: 90%;
}