@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --red: #e8232a;
  --red-dark: #b91c22;
  --red-light: #fff0f0;
  --gold: #f5a623;
  --gold-light: #fff8ec;
  --green: #16a34a;
  --dark: #111827;
  --gray: #6b7280;
  --light: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.13);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: #f3f4f6; color: var(--dark); }

/* ── TOP BAR ── */
.topbar {
  background: var(--dark);
  color: #d1d5db;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 2px solid var(--red);
}
.topbar .tb-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.topbar a { color: #f9fafb; text-decoration: none; }
.topbar .tb-left, .topbar .tb-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar .tb-item { display: flex; align-items: center; gap: 6px; }
.topbar .tb-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.topbar .phone { color: var(--gold); font-weight: 600; font-size: 14px; }

/* ── HEADER ── */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  position: sticky; top: 0; z-index: 200;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.logo-icon {
  background: var(--red); color: white;
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.logo-text { line-height: 1.1; }
.logo-text strong {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 20px; color: var(--dark);
}
.logo-text span { font-size: 11px; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; }

.search-wrap { flex: 1; min-width: 200px; }
.search-form {
  display: flex; background: var(--light);
  border: 2px solid var(--border); border-radius: 50px;
  overflow: hidden; transition: border-color 0.2s;
}
.search-form:focus-within { border-color: var(--red); }
.search-form input {
  flex: 1; padding: 11px 20px; background: transparent;
  border: none; outline: none; font-size: 15px; font-family: 'DM Sans', sans-serif;
}
.search-form button {
  background: var(--red); color: white; border: none;
  padding: 11px 24px; cursor: pointer; font-weight: 600;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  transition: background 0.2s; border-radius: 0 50px 50px 0;
}
.search-form button:hover { background: var(--red-dark); }

.header-cta {
  display: flex; align-items: center; gap: 8px;
  background: var(--gold-light); border: 1.5px solid var(--gold);
  border-radius: 8px; padding: 8px 16px; text-decoration: none;
  color: #92400e; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: all 0.2s;
}
.header-cta:hover { background: var(--gold); color: white; }

/* ── NAV ── */
nav {
  background: var(--red);
  box-shadow: 0 2px 8px rgba(232,35,42,0.3);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 4px; overflow-x: auto;
}
.nav-inner::-webkit-scrollbar { display: none; }
nav a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  padding: 12px 16px; font-size: 14px; font-weight: 500;
  white-space: nowrap; display: flex; align-items: center; gap: 6px;
  transition: all 0.2s; border-bottom: 3px solid transparent;
}
nav a:hover, nav a.active { color: white; border-bottom-color: var(--gold); background: rgba(255,255,255,0.1); }
nav .nav-badge {
  background: var(--gold); color: #92400e;
  font-size: 10px; font-weight: 700; padding: 2px 6px;
  border-radius: 10px;
}

/* ── HERO BANNER ── */
.hero {
  background: linear-gradient(135deg, #1a0505 0%, #6b0f0f 40%, #c0392b 100%);
  color: white; padding: 48px 24px; overflow: hidden; position: relative;
}
.hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute; bottom: -80px; left: 20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.hero-text { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,166,35,0.2); border: 1px solid rgba(245,166,35,0.4);
  color: var(--gold); padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--gold); }
.hero p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 28px; line-height: 1.6; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 28px; font-weight: 700; color: var(--gold); }
.hero-stat span { font-size: 12px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }

.hero-visual {
  display: flex; flex-direction: column; gap: 12px; flex-shrink: 0;
}
.hero-card-preview {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 16px;
  padding: 16px 20px; min-width: 240px;
  animation: float 3s ease-in-out infinite;
}
.hero-card-preview:nth-child(2) { animation-delay: 1.5s; margin-left: 24px; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.hcp-store { font-size: 11px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.hcp-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.hcp-code {
  background: rgba(255,255,255,0.15); border: 1.5px dashed rgba(255,255,255,0.4);
  border-radius: 6px; padding: 6px 12px; font-family: monospace;
  font-size: 16px; font-weight: 700; letter-spacing: 2px; color: var(--gold);
  display: inline-block;
}

/* ── AD BANNER ── */
.ad-banner {
  background: var(--white); border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--border);
}
.ad-banner-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.ad-label {
  font-size: 9px; color: var(--gray); text-transform: uppercase;
  letter-spacing: 1px; border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 3px; flex-shrink: 0;
}
.ad-slot {
  flex: 1; max-width: 728px; height: 90px;
  background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #cbd5e1; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 13px; font-weight: 500;
}

/* ── MAIN LAYOUT ── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 24px; display: flex; gap: 28px; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* ── SECTION TITLE ── */
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.section-title h2 {
  font-family: 'Playfair Display', serif; font-size: 22px;
  display: flex; align-items: center; gap: 10px;
}
.section-title h2::before {
  content: ''; display: block; width: 4px; height: 24px;
  background: var(--red); border-radius: 2px;
}
.section-title a { font-size: 13px; color: var(--red); text-decoration: none; font-weight: 600; }

/* ── FILTERS ── */
.filters-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
  background: var(--white); padding: 14px 16px; border-radius: 12px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.filters-bar a {
  padding: 7px 16px; border-radius: 20px; text-decoration: none;
  color: var(--gray); font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border); transition: all 0.2s;
  display: flex; align-items: center; gap: 5px;
}
.filters-bar a:hover { border-color: var(--red); color: var(--red); }
.filters-bar a.active { background: var(--red); color: white; border-color: var(--red); }

/* ── COUPON GRID ── */
.coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.coupon-card {
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.25s;
  display: flex; flex-direction: column;
}
.coupon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #fca5a5; }

.card-ribbon {
  background: linear-gradient(90deg, var(--red), #ff6b6b);
  color: white; padding: 8px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-ribbon .store { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.card-ribbon .verified {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; background: rgba(255,255,255,0.2);
  padding: 3px 8px; border-radius: 10px;
}

.card-body { padding: 16px; flex: 1; }
.card-store-logo {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--light); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; float: right; margin-left: 12px;
}
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.card-desc { font-size: 13px; color: var(--gray); margin-bottom: 12px; line-height: 1.5; }

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag-discount {
  background: #dcfce7; color: #166534;
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}
.tag-category {
  background: var(--light); color: var(--gray);
  padding: 4px 10px; border-radius: 20px; font-size: 12px;
  border: 1px solid var(--border);
}
.tag-hot {
  background: #fff7ed; color: #c2410c;
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.card-expiry { font-size: 12px; color: var(--gray); display: flex; align-items: center; gap: 4px; }
.reveal-btn {
  background: var(--red); color: white; border: none;
  border-radius: 8px; padding: 9px 20px;
  cursor: pointer; font-size: 14px; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s; display: flex; align-items: center; gap: 6px;
}
.reveal-btn:hover { background: var(--red-dark); transform: scale(1.03); }
.reveal-btn:disabled { background: #9ca3af; cursor: default; transform: none; }

.code-box {
  margin: 12px 16px 16px;
  background: var(--red-light); border: 2px dashed var(--red);
  border-radius: 10px; padding: 14px 16px;
  display: none; align-items: center; justify-content: space-between; gap: 10px;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.code-text {
  font-family: monospace; font-size: 20px; font-weight: 800;
  color: var(--red); letter-spacing: 3px;
}
.copy-btn {
  background: var(--red); color: white; border: none;
  border-radius: 6px; padding: 7px 16px; cursor: pointer;
  font-size: 13px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s; white-space: nowrap;
}
.copy-btn:hover { background: var(--red-dark); }
.copy-btn.copied { background: var(--green); }

/* ── SIDEBAR ── */
.sidebar-widget {
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 24px;
}
.widget-title {
  background: var(--dark); color: white;
  padding: 14px 18px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.widget-body { padding: 16px; }

/* Ad sidebar */
.ad-sidebar {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px dashed #cbd5e1; border-radius: 12px;
  min-height: 250px; display: flex; align-items: center;
  justify-content: center; color: #94a3b8;
  font-size: 13px; font-weight: 500; flex-direction: column; gap: 8px;
}

/* Store list */
.store-list { list-style: none; }
.store-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.store-list li:last-child { border-bottom: none; }
.store-list a { text-decoration: none; color: var(--dark); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.store-list a:hover { color: var(--red); }
.store-list .store-icon { width: 30px; height: 30px; border-radius: 6px; background: var(--light); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.store-count { background: var(--red-light); color: var(--red); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, var(--dark), #1f2937); color: white; border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.newsletter h3 { font-family: 'Playfair Display', serif; font-size: 20px; margin-bottom: 8px; }
.newsletter p { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 16px; line-height: 1.5; }
.newsletter input { width: 100%; padding: 11px 14px; border-radius: 8px; border: none; font-size: 14px; margin-bottom: 10px; font-family: 'DM Sans', sans-serif; }
.newsletter button { width: 100%; background: var(--red); color: white; border: none; padding: 12px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 14px; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
.newsletter button:hover { background: var(--red-dark); }

/* ── CATEGORIES SECTION ── */
.categories-section { background: var(--white); padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 0; }
.cat-grid { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.cat-grid h2 { font-family: 'Playfair Display', serif; font-size: 26px; text-align: center; margin-bottom: 28px; }
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.cat-card {
  background: var(--light); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 20px 14px; text-align: center;
  text-decoration: none; color: var(--dark); transition: all 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cat-card:hover { background: var(--red-light); border-color: var(--red); color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card .cat-icon { font-size: 32px; }
.cat-card .cat-name { font-size: 13px; font-weight: 600; }
.cat-card .cat-count { font-size: 11px; color: var(--gray); }

/* ── HOW IT WORKS ── */
.how-section { background: var(--dark); color: white; padding: 48px 24px; }
.how-inner { max-width: 1200px; margin: 0 auto; }
.how-inner h2 { font-family: 'Playfair Display', serif; font-size: 28px; text-align: center; margin-bottom: 36px; }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.how-step { text-align: center; padding: 24px; }
.how-step .step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; margin: 0 auto 16px;
}
.how-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.how-step p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ── TRUST BAR ── */
.trust-bar { background: var(--gold-light); border-top: 2px solid #fde68a; border-bottom: 2px solid #fde68a; padding: 16px 0; }
.trust-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #92400e; }
.trust-item .trust-icon { font-size: 22px; }

/* ── FOOTER ── */
footer { background: var(--dark); color: #9ca3af; }
.footer-top { max-width: 1200px; margin: 0 auto; padding: 48px 24px 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media(max-width:768px){ .footer-top { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px){ .footer-top { grid-template-columns: 1fr; } }

.footer-brand .logo-footer { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .logo-icon { background: var(--red); color: white; width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.footer-brand .logo-name { font-family: 'Playfair Display', serif; font-size: 20px; color: white; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 20px; }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--red); }
.footer-contact-item a { color: #d1d5db; text-decoration: none; }
.footer-contact-item a:hover { color: var(--gold); }
.footer-phone { font-size: 18px !important; color: var(--gold) !important; font-weight: 700; }

.footer-col h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 28px; height: 2px; background: var(--red); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: #9ca3af; text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid #1f2937;
  max-width: 1200px; margin: 0 auto; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 12px; }
.footer-bottom .footer-links { display: flex; gap: 16px; }
.footer-bottom .footer-links a { color: #9ca3af; text-decoration: none; font-size: 12px; }
.footer-bottom .footer-links a:hover { color: white; }

.footer-address-bar {
  background: #0a0a0a; color: #6b7280; font-size: 12px;
  text-align: center; padding: 12px 24px;
  border-top: 1px solid #1f2937;
}

/* ── NO RESULTS ── */
.no-results { grid-column: 1/-1; text-align: center; padding: 60px 20px; }
.no-results .nr-icon { font-size: 56px; margin-bottom: 16px; }
.no-results h3 { font-size: 20px; margin-bottom: 8px; }
.no-results p { color: var(--gray); font-size: 14px; }

/* ── RESPONSIVE ── */
@media(max-width: 900px) {
  .page-wrap { flex-direction: column; }
  .sidebar { width: 100%; }
  .hero-visual { display: none; }
}
@media(max-width: 600px) {
  .header-inner { gap: 12px; }
  .header-cta { display: none; }
  .topbar .tb-right { display: none; }
}
