:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --primary-soft: #fff7ed;
    --accent: #facc15;
    --green: #16a34a;
    --green-hover: #15803d;
    --green-soft: #dcfce7;
    --telegram: #0284c7;
    --ml-bg: #fef08a;
    --ml-text: #1e293b;
    --shopee-bg: #ffedd5;
    --shopee-text: #c2410c;
    --amazon-bg: #f1f5f9;
    --amazon-text: #0f172a;
    --radius: 16px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Top Promo Bar */
.top-promo-bar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #fff;
    font-size: 0.875rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-promo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    text-align: center;
}

.top-promo-text {
    font-weight: 500;
}

.top-promo-btn {
    background: #22c55e;
    color: #052e16;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: 999px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.top-promo-btn:hover {
    background: #4ade80;
    transform: translateY(-1px);
}

/* Header */
.site-header {
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    flex-wrap: wrap;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #facc15 0%, #f97316 100%);
    border-radius: 10px;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.brand-text span {
    color: var(--primary);
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 520px;
    min-width: 240px;
    display: flex;
    background: var(--surface-alt);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
    background: #fff;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 18px;
    font-size: 0.925rem;
    color: var(--text);
    outline: none;
}

.search-submit {
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.search-submit:hover {
    background: var(--primary-hover);
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 1.8s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.nav-cta-group {
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 0.15s, transform 0.15s;
}

.nav-cta-group:hover {
    background: #15803d;
    transform: translateY(-1px);
}

/* Sub-bar Filters */
.sub-bar {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    padding: 10px 0;
}

.sub-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sub-bar-inner::-webkit-scrollbar {
    display: none;
}

.store-pills,
.category-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.store-pill,
.cat-pill {
    border: 1px solid var(--border);
    background: #fff;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.store-pill:hover,
.cat-pill:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.store-pill.active,
.cat-pill.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

/* Main Content */
.main-content {
    flex: 1;
    padding-top: 24px;
    padding-bottom: 48px;
}

.loading-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Section Headers */
.section-block {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover {
    text-decoration: underline;
}

/* Deals Grid (estilo sddescontos & jersu) */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 18px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.deal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: var(--shadow-sm);
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.deal-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.discount-badge {
    background: #dc2626;
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: -0.01em;
}

.time-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: auto;
}

.deal-thumb-wrap {
    width: 100%;
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    padding: 8px;
}

.deal-thumb {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.deal-card:hover .deal-thumb {
    transform: scale(1.04);
}

.deal-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.store-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.store-tag.mercadolivre {
    background: var(--ml-bg);
    color: var(--ml-text);
}

.store-tag.shopee {
    background: var(--shopee-bg);
    color: var(--shopee-text);
}

.store-tag.amazon {
    background: #fed7aa;
    color: #9a3412;
}

.store-tag.outros {
    background: #e2e8f0;
    color: #334155;
}

.deal-title {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.38;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.deal-title:hover {
    color: var(--primary);
}

.coupon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: #fef9c3;
    border: 1.5px dashed #eab308;
    color: #854d0e;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    width: fit-content;
}

.coupon-pill:hover {
    background: #fef08a;
}

.deal-pricing {
    margin-top: auto;
    padding-top: 6px;
}

.old-price {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.new-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.deal-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-get-deal {
    flex: 1;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    transition: background 0.15s;
}

.btn-get-deal:hover {
    background: var(--primary-hover);
}

.btn-details {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: #334155;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 10px 12px;
    border-radius: 10px;
}

.btn-details:hover {
    background: #e2e8f0;
}

/* Mid-Page Group Banner */
.group-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border-radius: 20px;
    padding: 28px 32px;
    margin: 36px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}

.group-banner-text h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.group-banner-text p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.group-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #22c55e;
    color: #052e16;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background: #4ade80;
}

.btn-telegram {
    background: #0ea5e9;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-telegram:hover {
    background: #38bdf8;
}

/* Single Product Page (/p/:id - estilo sddescontos) */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.breadcrumbs a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.single-deal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 36px;
}

@media (max-width: 768px) {
    .single-deal-box {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}

.single-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    min-height: 300px;
}

.single-image-col img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
}

.single-info-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.single-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.single-title {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
}

.single-price-box {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
}

.single-new-price {
    font-size: 2rem;
    font-weight: 900;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.single-coupon-box {
    background: #fef9c3;
    border: 2px dashed #eab308;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.single-coupon-code {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 900;
    color: #713f12;
}

.btn-copy-coupon {
    background: #eab308;
    color: #0f172a;
    border: none;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.single-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.btn-buy-large {
    flex: 1;
    min-width: 220px;
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 16px 24px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.25);
    transition: background 0.15s, transform 0.15s;
}

.btn-buy-large:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-share-wa {
    background: #dcfce7;
    color: #15803d;
    font-weight: 700;
    padding: 16px 20px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.single-disclaimer {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Coupons Grid (/cupons) */
.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

.coupon-card {
    background: var(--surface);
    border: 1.5px dashed #cbd5e1;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.coupon-code-banner {
    background: #fef9c3;
    border: 1.5px dashed #eab308;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: 900;
    color: #713f12;
}

/* Grupos Page (/grupos - estilo sddescontos/grupos & jersu/grupos) */
.grupos-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    margin-bottom: 36px;
}

.grupos-hero h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.grupos-hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 28px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.benefit-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 10px 0 6px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo .brand-text {
    color: #fff;
}

.footer-desc {
    margin: 12px 0;
    font-size: 0.9rem;
    color: #94a3b8;
    max-width: 460px;
}

.footer-disclaimer {
    font-size: 0.78rem;
    color: #64748b;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.875rem;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 12px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    z-index: 100;
}

/* Textos entregues pelo servidor para buscadores e assistentes */
.seo-intro {
    padding-top: 22px;
}

.seo-intro h1 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.seo-intro p {
    color: var(--text-muted);
    margin-top: 4px;
    max-width: 70ch;
}

#seo-extra {
    padding-bottom: 48px;
}

.seo-faq,
.seo-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.seo-summary p {
    margin-top: 8px;
    color: var(--text-muted);
}

.faq-item {
    border-top: 1px solid var(--border);
    padding: 12px 0;
}

.faq-item:first-of-type {
    margin-top: 12px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
}

.faq-item p {
    margin-top: 6px;
    color: var(--text-muted);
}

.deal-expired-notice {
    background: var(--primary-soft);
    color: var(--primary-hover);
    border-radius: 12px;
    padding: 10px 14px;
    margin: 12px 0;
    font-weight: 600;
}
