/* ===== RADAR DE PREÇOS — PREMIUM DARK BLUE + GOLD DESIGN ===== */
/* Inspirado em Amazon, Mercado Livre, KaBuM — Mobile First */

/* ── Variáveis de Design ─────────────────────────────────────── */
:root {
    /* Paleta principal */
    --navy:          #0F2044;   /* Azul marinho profundo */
    --navy-mid:      #1E3A8A;   /* Azul escuro */
    --navy-light:    #2563EB;   /* Azul médio */
    --gold:          #F59E0B;   /* Dourado principal */
    --gold-dark:     #D97706;   /* Dourado escuro */
    --gold-light:    #FDE68A;   /* Dourado claro */
    --white:         #FFFFFF;
    --off-white:     #F8FAFC;
    --surface:       #FFFFFF;
    --border:        #E2E8F0;

    /* Texto */
    --text-dark:     #0F172A;
    --text-mid:      #475569;
    --text-light:    #94A3B8;

    /* Feedback */
    --red:           #EF4444;
    --green:         #10B981;
    --green-light:   #D1FAE5;
    --green-text:    #065F46;

    /* Sombras */
    --shadow-sm:     0 1px 3px rgba(15,32,68,0.08), 0 1px 2px rgba(15,32,68,0.06);
    --shadow-md:     0 4px 16px rgba(15,32,68,0.10), 0 2px 6px rgba(15,32,68,0.06);
    --shadow-lg:     0 10px 32px rgba(15,32,68,0.14), 0 4px 12px rgba(15,32,68,0.08);
    --shadow-gold:   0 4px 20px rgba(245,158,11,0.30);

    /* Raios */
    --radius-card:   20px;
    --radius-btn:    12px;
    --radius-badge:  50px;

    /* Fundo da página */
    --page-bg:       #EEF2FF;
}

/* ── Reset base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--page-bg) !important;
    color: var(--text-dark);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ──────────────────────────────────────────────────── */
header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%) !important;
    padding: 0 !important;
    color: var(--white) !important;
    text-align: center;
    box-shadow: 0 2px 12px rgba(15,32,68,0.30);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

header .header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

header .header-brand h1 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.3px;
}

header .header-brand .brand-icon {
    font-size: 22px;
}

header .header-badge {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-badge);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-gold);
}

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
    padding: 40px 16px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(245,158,11,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(22px, 5vw, 38px);
    font-weight: 900;
    color: var(--white);
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero h1 span.gold {
    color: var(--gold);
}

.hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.80);
    margin: 0 0 28px;
    line-height: 1.6;
}

/* Botão CTA hero */
.btn-accent,
.btn.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy) !important;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 32px !important;
    border-radius: var(--radius-btn);
    text-decoration: none !important;
    box-shadow: var(--shadow-gold);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.2px;
    width: auto !important;
}

.btn-accent:hover,
.btn.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245,158,11,0.45);
    color: var(--navy) !important;
    text-decoration: none !important;
}

/* ── Barra de categorias ─────────────────────────────────────── */
.category-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-bar::-webkit-scrollbar { display: none; }

.category-bar-inner {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    max-width: 1200px;
    margin: 0 auto;
    width: max-content;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--radius-badge);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    background: var(--off-white);
    color: var(--text-mid);
    border: 1.5px solid var(--border);
    transition: all 0.2s ease;
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--navy-mid);
    color: var(--white);
    border-color: var(--navy-mid);
}

/* ── Título de seção ─────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px 4px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    border-radius: 2px;
}

.section-header .see-all {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-light);
    text-decoration: none;
}

.section-header .see-all:hover {
    text-decoration: underline;
}

/* ── Grid de produtos ────────────────────────────────────────── */
/* Mobile First: 2 colunas */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 540px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        padding: 14px 14px 24px;
    }
}

@media (min-width: 860px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
        padding: 16px 20px 28px;
    }
}

@media (min-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
}

/* ── Card de produto ─────────────────────────────────────────── */
.product-card {
    background: var(--surface) !important;
    border-radius: var(--radius-card) !important;
    padding: 0 !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1.5px solid var(--border) !important;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    margin-bottom: 0 !important;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px) scale(1.01) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(30,58,138,0.20) !important;
}

/* ── Badges do card ──────────────────────────────────────────── */
.card-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 8px 4px;
    gap: 4px;
    min-height: 30px;
}

/* Badge "Melhor Preço" / "Oferta" */
.badge-best-price {
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
    color: var(--white);
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--radius-badge);
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Badge "HOT" / "Destaque" */
.badge-hot {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy);
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--radius-badge);
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(245,158,11,0.35);
}

/* ── Imagem do produto ───────────────────────────────────────── */
.product-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    overflow: hidden;
}

.product-card .product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 10px;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* ── Título do produto ───────────────────────────────────────── */
.product-card .product-title {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    line-height: 1.45 !important;
    margin: 8px 10px 6px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

/* ── Preços ──────────────────────────────────────────────────── */
.product-card .price-container {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.product-card .price-old {
    font-size: 11px !important;
    color: var(--text-light) !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
}

.product-card .price-current {
    font-size: 21px !important;
    font-weight: 900 !important;
    color: var(--navy-mid) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.5px;
}

/* ── Badge de economia ───────────────────────────────────────── */
.savings-badge {
    background: var(--green-light);
    color: var(--green-text);
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-badge);
    margin: 5px 10px 0;
    display: inline-block;
    width: fit-content;
    border: 1px solid rgba(16,185,129,0.20);
}

/* ── Botão Ver Oferta ────────────────────────────────────────── */
.btn-ninja {
    display: block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy) !important;
    text-align: center;
    padding: 11px 10px;
    border-radius: var(--radius-btn);
    text-decoration: none !important;
    font-weight: 800;
    font-size: 12.5px;
    margin: 8px 10px 10px;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 10px rgba(245,158,11,0.30);
    position: relative;
    overflow: hidden;
}

.btn-ninja::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    pointer-events: none;
}

.btn-ninja:hover {
    background: linear-gradient(135deg, #FBBF24 0%, var(--gold) 100%);
    color: var(--navy) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245,158,11,0.45);
}

/* ── Seção de ofertas ────────────────────────────────────────── */
#ofertas {
    padding-top: 0 !important;
}

/* ── Botão "Ver Todas as Ofertas" ────────────────────────────── */
.btn-ver-todas {
    display: block;
    width: fit-content;
    margin: 20px auto 30px;
    padding: 13px 40px;
    border: 2px solid var(--navy-mid);
    color: var(--navy-mid);
    border-radius: var(--radius-badge);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    background: var(--white);
}

.btn-ver-todas:hover {
    background: var(--navy-mid);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
    background: linear-gradient(160deg, var(--navy) 0%, #0A1628 100%) !important;
    color: var(--white);
    padding: 40px 16px 20px;
    margin-top: 40px;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer h4 {
    color: var(--gold);
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    padding: 4px 0;
}

.footer ul li a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.footer ul li a:hover {
    color: var(--gold);
}

.footer-partners a:hover {
    color: var(--gold) !important;
}

/* ── Responsividade extrema (< 380px) ───────────────────────── */
@media (max-width: 380px) {
    .badge-best-price,
    .badge-hot {
        font-size: 8.5px;
        padding: 2px 7px;
    }

    .product-card .price-current {
        font-size: 18px !important;
    }

    .btn-ninja {
        font-size: 11.5px;
        padding: 10px 8px;
    }

    .hero h1 {
        font-size: 20px;
    }
}

/* ── Animação de entrada dos cards ───────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeInUp 0.4s ease both;
}

.product-card:nth-child(1)  { animation-delay: 0.02s; }
.product-card:nth-child(2)  { animation-delay: 0.04s; }
.product-card:nth-child(3)  { animation-delay: 0.06s; }
.product-card:nth-child(4)  { animation-delay: 0.08s; }
.product-card:nth-child(5)  { animation-delay: 0.10s; }
.product-card:nth-child(6)  { animation-delay: 0.12s; }
.product-card:nth-child(7)  { animation-delay: 0.14s; }
.product-card:nth-child(8)  { animation-delay: 0.16s; }
.product-card:nth-child(9)  { animation-delay: 0.18s; }
.product-card:nth-child(10) { animation-delay: 0.20s; }
.product-card:nth-child(11) { animation-delay: 0.22s; }
.product-card:nth-child(12) { animation-delay: 0.24s; }

/* ── Barra de progresso de desconto ──────────────────────────── */
.discount-bar-wrap {
    padding: 0 10px 6px;
}

.discount-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.discount-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* ── Skeleton loading ────────────────────────────────────────── */
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
    background-size: 800px 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}
