@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&display=swap');

:root { 
  --primary: #0084ff; 
  --primary-dark: #0066cc;
  --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%); 
  --text-main: #0f172a; 
  --text-muted: #64748b; 
  --card-bg: rgba(255, 255, 255, 0.95); 
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg-gradient); color: var(--text-main); min-height: 100vh; display: flex; flex-direction: column; }

/* ==================== HEADER ==================== */
header { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; padding: 14px 16px; }
.header-container { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

/* Botão Hamburger (Menu Sanduíche) */
.menu-hamburger-btn { background: transparent; border: none; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; width: 26px; height: 18px; padding: 0; margin-right: 14px; outline: none; }
.menu-hamburger-btn span { width: 100%; height: 3px; background-color: #0f172a; border-radius: 4px; transition: all 0.3s ease; }
.menu-hamburger-btn:hover span { background-color: var(--primary); }

.brand-logo-box { text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.logo-emoji { font-size: 26px; margin-right: 6px; }
.logo-container { font-family: 'Montserrat', sans-serif; font-size: 26px; font-weight: 900; letter-spacing: -1px; text-transform: lowercase; }
.logo-bora { color: var(--primary); } .logo-barato { color: #0f172a; }

.header-nav { display: flex; align-items: center; }
.header-nav a { color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: 14px; margin-left: 20px; transition: color 0.2s; }
.header-nav a:hover, .header-nav a.active { color: var(--primary); }

/* ==================== MENU LATERAL (DRAWER) ==================== */
.drawer-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.drawer-overlay.active { opacity: 1; visibility: visible; }
.drawer-menu { position: fixed; top: 0; left: 0; width: 310px; max-width: 85vw; height: 100vh; background: #ffffff; z-index: 999; transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: 4px 0 25px rgba(0,0,0,0.15); }
.drawer-menu.active { transform: translateX(0); }
.drawer-header { padding: 20px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; background: #f8fafc; }
.drawer-header h3 { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 900; color: var(--text-main); }
.drawer-close-btn { background: #e2e8f0; border: none; font-size: 16px; font-weight: bold; cursor: pointer; color: var(--text-muted); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.drawer-close-btn:hover { background: #cbd5e1; color: var(--text-main); }
.drawer-content { flex: 1; overflow-y: auto; padding: 10px 0; }
.drawer-item { display: flex; align-items: center; padding: 13px 20px; color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 1px solid #f1f5f9; transition: background 0.2s, color 0.2s; }
.drawer-item:hover, .drawer-item.active { background: #f0f9ff; color: var(--primary); font-weight: 800; }

/* ==================== ESTRUTURA PRINCIPAL ==================== */
main { flex: 1; max-width: 1100px; width: 100%; margin: 0 auto; padding: 24px 16px; }
.view { display: none; } .view.active { display: block; }
.section-title { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 900; margin: 24px 0 16px 0; display: flex; align-items: center; gap: 8px; }

/* ==================== BANNERS & BUSCA ==================== */
.hero-banner { background: linear-gradient(135deg, #0084ff 0%, #004080 100%); color: white; border-radius: 20px; padding: 36px 24px; text-align: center; margin-bottom: 28px; box-shadow: 0 10px 25px rgba(0, 132, 255, 0.2); }
.hero-banner.cupons-banner { background: linear-gradient(135deg, #10b981 0%, #047857 100%); box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2); }
.hero-banner h1 { font-family: 'Montserrat', sans-serif; font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.hero-banner p { font-size: 15px; opacity: 0.9; margin-bottom: 20px; }
.search-box { max-width: 600px; margin: 0 auto; position: relative; }
.search-box input { width: 100%; padding: 14px 20px; border-radius: 99px; border: none; font-size: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); outline: none; }
.cupons-search-box input { border: 1px solid #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 24px; }
.cupons-search-box input:focus { border-color: var(--primary); }

/* ==================== PÍLULAS DE FILTRO (OFERTAS) ==================== */
.filter-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 12px; scroll-behavior: smooth; }
.filter-scroll::-webkit-scrollbar { display: none; }
.tag-btn { background: white; border: 1px solid #cbd5e1; padding: 10px 20px; border-radius: 99px; font-size: 14px; font-weight: 700; color: var(--text-muted); cursor: pointer; white-space: nowrap; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.02); display: inline-block; text-align: center; }
.tag-btn.active, .tag-btn:hover { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 12px rgba(0,132,255,0.3); }

/* ==================== CARROSSEL E GRADE DE OFERTAS ==================== */
.carousel-container { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; margin-bottom: 16px; }
.carousel-container::-webkit-scrollbar { height: 6px; }
.carousel-container::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.carousel-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 40px; }

.offer-card { background: var(--card-bg); border-radius: 16px; border: 1px solid #e2e8f0; padding: 14px; display: flex; flex-direction: column; box-shadow: 0 4px 12px rgba(0,0,0,0.03); cursor: pointer; transition: all 0.2s ease; }
.carousel-container .offer-card { min-width: 220px; max-width: 220px; scroll-snap-align: start; flex-shrink: 0; }
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.card-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--primary); font-weight: 800; margin-bottom: 8px; text-transform: uppercase; }
.card-img { width: 100%; height: 140px; object-fit: contain; background: white; border-radius: 8px; margin-bottom: 12px; padding: 4px; }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.4; height: 39px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 12px; color: var(--text-main); }
.card-btn { background: var(--primary); color: white; text-align: center; padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 800; transition: background 0.2s; margin-top: auto; }
.card-btn:hover { background: var(--primary-dark); }

/* ==================== VIP CARD ==================== */
.vip-feed-card { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); color: white; border-radius: 16px; padding: 24px; text-align: center; grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.25); margin: 16px 0; }
.vip-feed-card h3 { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 900; }
.vip-feed-card a { background: white; color: #128c7e; text-decoration: none; padding: 12px 24px; border-radius: 99px; font-weight: 800; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* ==================== PROVA SOCIAL & FAQ ==================== */
.trust-section { background: white; border-radius: 20px; padding: 32px 20px; margin-top: 20px; text-align: center; border: 1px solid #e2e8f0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.trust-item h4 { font-family: 'Montserrat', sans-serif; font-size: 16px; margin-bottom: 6px; color: var(--primary); }
.trust-item p { font-size: 13px; color: var(--text-muted); }

.faq-section { margin-top: 40px; margin-bottom: 20px; padding: 0 10px; }
.faq-section.cupons-faq { background: white; border-radius: 20px; padding: 32px; border: 1px solid #e2e8f0; }
.faq-container { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: white; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; transition: all 0.3s ease; }
.cupons-faq .faq-item { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; border-radius: 0; border-left: none; border-right: none; border-top: none; }
.cupons-faq .faq-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.faq-item[open] { box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-color: #cbd5e1; }
.faq-item summary { font-weight: 700; font-size: 15px; color: var(--text-main); padding: 18px 20px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "▼"; font-size: 12px; color: var(--primary); transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(-180deg); }
.faq-content { padding: 0 20px 20px 20px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.cupons-faq h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.cupons-faq p { font-size: 14px; color: var(--text-muted); line-height: 1.5; padding: 0; }

/* ==================== VIEW DO PRODUTO ==================== */
.product-container { background: var(--card-bg); border-radius: 24px; padding: 32px 24px; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,0.05); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; position: relative; }
@media (max-width: 768px) { .product-container { grid-template-columns: 1fr; gap: 20px; } }
.product-media img { width: 100%; max-height: 350px; object-fit: contain; border-radius: 16px; background: white; padding: 12px; }
.product-details { display: flex; flex-direction: column; justify-content: center; }
.product-meta { font-size: 13px; font-weight: 800; color: var(--primary); text-transform: uppercase; margin-bottom: 8px; }
.product-title { font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 900; margin-bottom: 16px; line-height: 1.3; }
.product-desc { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin-bottom: 24px; white-space: pre-wrap; }
.btn-cta { background: #25d366; color: white; font-weight: 800; font-size: 18px; text-align: center; padding: 16px; border-radius: 99px; cursor: pointer; border: none; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3); transition: transform 0.2s; }
.btn-cta:hover { transform: scale(1.02); }
.close-product { top: -12px; right: -12px; position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e2e8f0; background: white; box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 10; cursor: pointer; font-size: 16px; font-weight: bold; display: flex; align-items: center; justify-content: center; color: #64748b; }
.close-product:hover { background: #f1f5f9; color: #0f172a; }

/* ==================== PÁGINA DE CUPONS (ESPECÍFICOS) ==================== */
.how-to-use { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 32px; }
.step-card { background: white; border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 12px; border: 1px solid #e2e8f0; }
.step-number { background: var(--primary); color: white; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 900; flex-shrink: 0; }
.step-text { font-size: 13px; font-weight: 600; color: var(--text-muted); }

.section-title.old-coupons { color: #64748b; font-size: 18px; margin-top: 48px; border-top: 1px dashed #cbd5e1; padding-top: 32px; }
.coupons-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.coupon-card { background: white; border: 2px dashed #cbd5e1; border-radius: 16px; padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: all 0.3s ease; position: relative; }
.coupon-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(0, 132, 255, 0.1); transform: translateY(-2px); }
.coupon-card.old { border-color: #e2e8f0; opacity: 0.85; }
.coupon-card.old:hover { border-color: #cbd5e1; opacity: 1; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.coupon-info { flex: 1; }
.coupon-info h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; color: var(--text-main); }
.coupon-info p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.tag-old { font-size: 10px; background: #f1f5f9; color: #64748b; padding: 4px 8px; border-radius: 4px; display: inline-block; margin-top: 8px; font-weight: 700; text-transform: uppercase; }

.coupon-action { text-align: right; min-width: 140px; display: flex; flex-direction: column; gap: 8px; }
.coupon-code { background: #f8fafc; border: 1px dashed var(--primary); padding: 10px 12px; font-weight: 800; font-size: 14px; color: var(--primary); border-radius: 8px; cursor: pointer; text-align: center; transition: all 0.2s; }
.coupon-card.old .coupon-code { color: #64748b; border-color: #94a3b8; }
.coupon-code:hover { background: #eff6ff; }
.btn-loja-cupom { background: var(--text-main); color: white; border: none; padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 800; cursor: pointer; transition: background 0.2s; width: 100%; text-align: center; }
.btn-loja-cupom:hover { background: #000; }
.coupon-card.old .btn-loja-cupom { background: #64748b; }

/* ==================== RODAPÉ & BOTÕES FLUTUANTES ==================== */
footer { text-align: center; padding: 28px 16px; background: white; color: var(--text-muted); font-size: 12px; margin-top: auto; border-top: 1px solid #e2e8f0; line-height: 1.6; }
.floating-wa { position: fixed; bottom: 24px; left: 24px; background-color: #25d366; color: white; width: 56px; height: 56px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); z-index: 1000; transition: transform 0.3s; text-decoration: none; }
.floating-wa:hover { transform: scale(1.1); }
.floating-wa svg { width: 32px; height: 32px; fill: currentColor; }

.floating-top { position: fixed; bottom: 24px; right: 24px; background-color: var(--primary); color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3); z-index: 900; transition: all 0.3s ease; border: none; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); }
.floating-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.floating-top:hover { background-color: var(--primary-dark); transform: scale(1.1); }
.floating-top svg { width: 24px; height: 24px; fill: currentColor; }