/* ========================================
   COMPRE RÁPIDO — Design System v1.0
   Paleta: Azul Confiança + Laranja Ação
   ======================================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --primary-glow: rgba(37, 99, 235, 0.18);
    --accent: #f97316;
    --accent-dark: #ea6c0a;
    --accent-light: #fdba74;
    --secondary: #0f172a;
    --background: #f1f5f9;
    --card: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.2);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ========== ANIMAÇÕES ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}
@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ========== HEADER ========== */
.header {
    background: var(--secondary);
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}
.logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}
.logo .logo-icon {
    background: var(--accent);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.logo span { color: var(--accent); }

/* Barra de busca */
.search-bar {
    flex: 1;
    min-width: 0;
    max-width: 520px;
    position: relative;
}
.search-bar input {
    width: 100%;
    padding: 11px 16px 11px 44px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.07);
    font-size: 14px;
    color: white;
    transition: all 0.3s ease;
}
.search-bar input::placeholder { color: rgba(255,255,255,0.45); }
.search-bar input:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.search-bar::before {
    content: '🔍';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    opacity: 0.55;
    z-index: 1;
}

/* Botão hamburguer */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.2s;
}
.menu-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navegação */
.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}
.nav-links a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); }
.btn-primary {
    background: var(--accent);
    color: white !important;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: background 0.2s, transform 0.15s !important;
}
.btn-primary:hover { background: var(--accent-dark) !important; transform: scale(1.04) !important; }

/* ========== HERO ========== */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1e293b 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(37,99,235,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}
.hero-section h1 em {
    font-style: normal;
    color: var(--accent);
}
.hero-section p {
    font-size: 1.2rem;
    opacity: 0.88;
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.stats-strip {
    display: inline-flex;
    gap: 24px;
    background: rgba(255,255,255,0.08);
    padding: 16px 32px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    flex-wrap: wrap;
    justify-content: center;
}
.stat-item { display: flex; align-items: center; gap: 6px; font-size: 0.95rem; }
.stat-val { font-weight: 800; color: var(--accent); }

/* ========== CATEGORIAS ========== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin: 30px 0;
}
.cat-item {
    background: var(--card);
    padding: 20px 16px;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}
.cat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(37,99,235,0.15);
    color: var(--primary);
}

/* ========== SEÇÃO TÍTULOS ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px 0 28px;
    border-left: 5px solid var(--accent);
    padding-left: 18px;
}
.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    color: var(--text);
}
.btn-ver-mais {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-ver-mais:hover {
    background: var(--primary);
    color: white;
}

/* ========== GRID DE PRODUTOS ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* ========== CARD DE PRODUTO ========== */
.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out both;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.product-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8fafc;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}
.product-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    padding: 14px 16px 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.price-box {
    padding: 0 16px 14px;
}
.old-price {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}
.current-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
}
.savings {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--success);
    background: rgba(22,163,74,0.1);
    padding: 2px 8px;
    border-radius: 20px;
}
.btn-buy {
    display: block;
    margin: 0 16px 16px;
    padding: 12px 16px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    transition: background 0.2s, transform 0.15s;
}
.btn-buy:hover {
    background: var(--accent-dark);
    transform: scale(1.02);
}

/* ========== BADGES ========== */
.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 20px;
    z-index: 2;
}
.badge-best-price {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 20px;
    z-index: 2;
}
.badge-hot {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 20px;
    z-index: 2;
    animation: pulse 1.5s infinite;
}
.badge-flash {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--warning);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 20px;
    z-index: 2;
}

/* ========== SKELETON LOADING ========== */
.skeleton-card { pointer-events: none; }
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}
.skeleton-image { height: 200px; margin-bottom: 14px; }
.skeleton-text { height: 14px; margin: 0 16px 10px; }
.skeleton-text.short { width: 60%; }

/* ========== BANNER DESTAQUE ========== */
.banner-destaque {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.banner-destaque::before {
    content: '⚡';
    position: absolute;
    font-size: 120px;
    opacity: 0.07;
    right: 20px;
    top: -10px;
}
.banner-destaque h1 { font-size: 2rem; font-weight: 900; margin-bottom: 10px; }
.banner-destaque p { opacity: 0.9; font-size: 1.05rem; }

/* ========== FOOTER ========== */
.footer {
    background: var(--secondary);
    color: white;
    padding: 70px 0 36px;
    margin-top: 100px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-col h4 {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-col p {
    opacity: 0.65;
    line-height: 1.7;
    font-size: 0.9rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 28px;
    text-align: center;
    opacity: 0.5;
    font-size: 0.85rem;
}
.footer-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 14px;
    display: block;
}
.footer-logo span { color: var(--accent); }

/* ========== PÁGINAS INTERNAS ========== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}
.page-hero h1 { font-size: 2.4rem; font-weight: 900; margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; opacity: 0.88; max-width: 600px; margin: 0 auto; }

/* ========== GUIAS ========== */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin: 40px 0;
}
.guide-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.guide-thumb {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
}
.guide-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.guide-body h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--text); }
.guide-body p { color: var(--text-muted); margin-bottom: 18px; line-height: 1.6; flex: 1; }
.btn-guide {
    margin-top: auto;
    display: inline-block;
    padding: 11px 22px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
    transition: background 0.2s;
}
.btn-guide:hover { background: var(--primary-dark); }

/* ========== RANKINGS ========== */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.ranking-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}
.ranking-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.ranking-tag { font-size: 0.78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }
.ranking-card h3 { font-size: 1.2rem; margin: 8px 0 6px; }
.ranking-card span { color: var(--text-muted); font-size: 0.85rem; }

/* ========== SOBRE / INSTITUCIONAL ========== */
.about-content {
    max-width: 820px;
    margin: 60px auto;
    padding: 0 16px;
}
.about-content h2 { font-size: 1.8rem; font-weight: 800; margin: 40px 0 16px; color: var(--primary); }
.about-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 18px; font-size: 1.02rem; }
.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.value-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px 22px;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow);
}
.value-card .icon { font-size: 2rem; margin-bottom: 12px; }
.value-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .hero-section p { font-size: 1rem; }
    .stats-strip { gap: 14px; padding: 12px 20px; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--secondary);
        z-index: 9999;
        justify-content: center;
        align-items: center;
        gap: 30px;
        font-size: 1.2rem;
    }
    .menu-toggle { display: flex; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 50px 0 40px; }
}

/* ============================================================
   UX Upgrade v2 — cards, blog, guias e responsividade
   ============================================================ */
.hero-section {
    background:
        radial-gradient(circle at 15% 20%, rgba(249,115,22,.22), transparent 28%),
        radial-gradient(circle at 85% 0%, rgba(96,165,250,.24), transparent 30%),
        linear-gradient(135deg, #0b1120 0%, #172554 52%, #111827 100%);
}
.hero-section h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.hero-section p { color: rgba(255,255,255,.88); }
.product-card-pro {
    border: 1px solid rgba(148,163,184,.26);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(15,23,42,.08);
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}
.product-media-link { display:block; position:relative; color:inherit; text-decoration:none; }
.product-card-pro .product-img { height: 215px; background: linear-gradient(180deg,#f8fafc,#eef4ff); }
.product-card-body { padding: 14px 16px 18px; display:flex; flex-direction:column; gap:10px; flex:1; }
.category-pill {
    width: fit-content;
    display:inline-flex;
    align-items:center;
    border:1px solid #dbeafe;
    background:#eff6ff;
    color:#1d4ed8;
    padding:3px 9px;
    border-radius:999px;
    font-size:.72rem;
    font-weight:800;
    text-transform:capitalize;
}
.product-card-pro .product-title { padding:0; font-size:.96rem; min-height:2.7em; }
.product-card-pro .product-title a { color:var(--text); text-decoration:none; }
.product-card-pro .product-title a:hover { color:var(--primary); }
.visual-rating { display:flex; align-items:center; gap:7px; font-size:.82rem; color:var(--text-muted); }
.visual-rating .stars { color:#f59e0b; letter-spacing:-1px; font-size:.86rem; }
.visual-rating strong { color:#0f172a; }
.visual-rating small { white-space:nowrap; }
.price-history-mini { height:8px; background:#e2e8f0; border-radius:999px; overflow:hidden; }
.price-history-mini span { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#16a34a,#f97316); }
.product-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:auto; }
.btn-analysis, .product-card-pro .btn-buy {
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    margin:0;
    border-radius:12px;
    font-weight:800;
    font-size:.86rem;
    text-decoration:none;
}
.btn-analysis { color:#1d4ed8; background:#eff6ff; border:1px solid #bfdbfe; }
.btn-analysis:hover { background:#dbeafe; }
.product-card-pro .btn-buy { background:linear-gradient(135deg,var(--accent),var(--accent-dark)); box-shadow:0 10px 20px rgba(249,115,22,.22); }
.articles-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
    margin-bottom:40px;
}
.article-card {
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    padding:24px;
    box-shadow:var(--shadow);
    display:flex;
    flex-direction:column;
    gap:12px;
}
.article-card span { color:var(--accent); font-size:.78rem; font-weight:900; text-transform:uppercase; letter-spacing:.05em; }
.article-card h3 { font-size:1.15rem; line-height:1.3; }
.article-card h3 a { color:var(--text); text-decoration:none; }
.article-card p { color:var(--text-muted); flex:1; }
.read-more { font-weight:800; color:var(--primary); text-decoration:none; }
.guide-chip-grid { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:48px; }
.guide-chip {
    background:#fff7ed;
    color:#9a3412;
    border:1px solid #fed7aa;
    border-radius:999px;
    padding:10px 15px;
    font-weight:800;
    text-decoration:none;
    box-shadow:0 8px 20px rgba(249,115,22,.08);
}
.guide-chip:hover { background:#ffedd5; }
@media (max-width: 768px) {
    .header .container { flex-wrap:wrap; }
    .search-bar { order:3; flex-basis:100%; max-width:none; }
    .product-actions { grid-template-columns:1fr; }
    .visual-rating { flex-wrap:wrap; }
    .product-card-pro .product-img { height:190px; }
}
@media (max-width: 480px) {
    .product-card-body { padding:12px; }
    .articles-grid { grid-template-columns:1fr; }
    .guide-chip-grid { display:grid; grid-template-columns:1fr; }
}
