/* ==========================================================================
   COUPONPRIME - AdSense Optimized Static Design System & Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Google Material Inspired */
  --primary-color: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --secondary-color: #f97316;
  --secondary-hover: #ea580c;
  --success-color: #16a34a;
  --success-light: #dcfce7;
  --danger-color: #dc2626;
  --warning-color: #eab308;
  
  /* Neutral Colors */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  
  /* Typography */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Shadows & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
  
  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1240px;
}

/* --------------------------------------------------------------------------
   2. CSS Reset & Global Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
}

/* Visible keyboard focus for every interactive element. Components that
   define their own focus treatment (e.g. search inputs) override this. */
:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 0.8125rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #1e293b;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-links {
  display: flex;
  gap: 1.25rem;
}

.top-bar-links a {
  color: #cbd5e1;
}

.top-bar-links a:hover {
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--secondary-color);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
}

/* Header Search */
.header-search {
  position: relative;
  flex: 1;
  max-width: 460px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

/* Auto Suggest Box */
.search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  overflow: hidden;
}

.search-suggestions.active {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item:focus-visible,
.suggestion-item.is-highlighted {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.suggestion-empty {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
}

/* Dropdown Mega Menus (Categories / Stores) */
.nav-item.has-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-caret {
  transition: transform 0.2s ease;
}

.nav-item.has-dropdown:hover .nav-caret,
.nav-dropdown-toggle[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 340px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  z-index: 1500;
  /* Hidden by default; revealed on hover, keyboard focus, or click. */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.mega-menu-wide {
  width: 460px;
}

/* A transparent bridge so the pointer can travel from link to panel. */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -0.85rem;
  left: 0;
  right: 0;
  height: 0.85rem;
}

.nav-item.has-dropdown:hover .mega-menu,
.nav-item.has-dropdown:focus-within .mega-menu,
.nav-item.has-dropdown.open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease;
}

.mega-link:hover {
  background-color: var(--bg-subtle);
}

.mega-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.mega-store-logo {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.mega-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mega-text strong {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-link:hover .mega-text strong {
  color: var(--primary-color);
}

.mega-text small {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* The entry matching the page you are already on. */
.mega-link.is-current {
  background-color: var(--primary-light);
}

.mega-link.is-current .mega-text strong {
  color: var(--primary-color);
}

.mobile-nav-sublist a[aria-current="page"] {
  color: var(--primary-color);
  font-weight: 600;
}

.mega-footer-link {
  display: block;
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Mobile drawer accordion groups */
.mobile-nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.mobile-nav-group-toggle[aria-expanded="true"] {
  color: var(--primary-color);
}

.mobile-nav-group-toggle[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

.mobile-nav-sublist {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.85rem 0 0.25rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--border-color);
}

.mobile-nav-sublist.open {
  display: flex;
}

.mobile-nav-sublist a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.mobile-nav-sublist a:hover {
  color: var(--primary-color);
}

.btn-header-submit {
  background-color: var(--secondary-color);
  color: white !important;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}

.btn-header-submit:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background-color: white;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transition: right 0.3s ease, visibility 0.3s ease;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  /* Keep the off-canvas links out of the tab order while closed. */
  visibility: hidden;
  overflow-y: auto;
}

.mobile-menu-drawer.open {
  right: 0;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.close-mobile-menu {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  z-index: 1999;
}

.overlay.active {
  display: block;
}

/* --------------------------------------------------------------------------
   4. Breadcrumb Navigation
   -------------------------------------------------------------------------- */
.breadcrumb-wrapper {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.breadcrumb-separator {
  color: var(--text-light);
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 3.5rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle, rgba(26,115,232,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: #38bdf8;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search-box {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}

.hero-search-form {
  display: flex;
  background: white;
  padding: 6px;
  border-radius: var(--radius-full);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.hero-search-input {
  flex: 1;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  color: var(--text-main);
}

.hero-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.35);
}

.hero-search-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.hero-search-btn:hover {
  opacity: 0.95;
  box-shadow: 0 4px 12px rgba(26,115,232,0.4);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h4 {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 800;
}

.stat-item p {
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   6. General Section Titles & Controls
   -------------------------------------------------------------------------- */
.section {
  padding: 3rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.view-all-link {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* --------------------------------------------------------------------------
   6b. Featured Offer Banners
   A wide primary banner plus a narrower side banner, each with its own tab
   strip. Artwork is drawn in CSS so the site stays image-free.
   -------------------------------------------------------------------------- */
.banner-section {
  padding: 2.5rem 0 0.5rem;
}

.banner-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.banner-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Slides stack on top of each other so the panel keeps a fixed height. */
.banner-stage {
  position: relative;
  display: grid;
}

.banner-slide {
  grid-area: 1 / 1;
  position: relative;
  min-height: 268px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  background: linear-gradient(115deg, var(--banner-from) 0%, var(--banner-from) 42%, var(--banner-to) 100%);
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.banner-slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* Soft light wash, echoing the diagonal sweep on retailer creatives. */
.banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.22), transparent 55%);
  pointer-events: none;
}

.banner-copy {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.banner-brand {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

.banner-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

.banner-headline {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.banner-offer {
  font-size: 0.9375rem;
  opacity: 0.92;
  margin-bottom: 1.25rem;
}

.banner-offer strong {
  font-weight: 800;
}

.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: #ffffff;
  color: #0f172a;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.banner-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.banner-terms {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.6875rem;
  opacity: 0.7;
}

/* The oversized discount figure standing in for product photography. */
.banner-art {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px dashed rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.banner-art-value {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.banner-art-value sup {
  font-size: 1.25rem;
  font-weight: 800;
  top: -0.55em;
}

.banner-art-label {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
}

/* Side banner: light card on a tinted background. */
.banner-panel-side .banner-slide {
  align-items: flex-end;
  padding: 1.5rem;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--banner-from) 0%, var(--banner-to) 100%);
}

.banner-panel-side .banner-slide::after {
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.55) 0 18px, transparent 18px 54px);
  opacity: 0.5;
}

.banner-card {
  position: relative;
  z-index: 1;
  width: 100%;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.1rem 1.15rem;
}

.banner-card-eyebrow {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.banner-card-eyebrow strong {
  font-weight: 800;
}

.banner-card-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.banner-card-cta {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--primary-color);
}

.banner-card-cta:hover {
  color: var(--primary-dark);
}

/* Tab strip */
.banner-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  overflow-x: auto;
  scrollbar-width: thin;
}

.banner-tab {
  position: relative;
  flex: 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.7rem 0.7rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.18s ease;
}

.banner-tab:hover {
  color: var(--text-main);
}

.banner-tab.is-active {
  color: var(--primary-color);
}

/* The small dot marking the selected tab. */
.banner-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   7. Store Badges Grid
   -------------------------------------------------------------------------- */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
}

.store-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
}

.store-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.store-logo-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.store-card-name {
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 0.25rem;
  line-height: 1.2;
}

.store-card-count {
  font-size: 0.75rem;
  color: var(--success-color);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Specific Store Brand Colors */
.bg-amazon { background: linear-gradient(135deg, #ff9900, #e67e00); }
.bg-flipkart { background: linear-gradient(135deg, #2874f0, #0056b3); }
.bg-myntra { background: linear-gradient(135deg, #ff3f6c, #d91b49); }
.bg-ajio { background: linear-gradient(135deg, #2c4152, #17242f); }
.bg-swiggy { background: linear-gradient(135deg, #fc8019, #e06500); }
.bg-zomato { background: linear-gradient(135deg, #cb202d, #a3141f); }
.bg-dominos { background: linear-gradient(135deg, #006491, #004566); }
.bg-hostinger { background: linear-gradient(135deg, #673ab7, #512da8); }
.bg-godaddy { background: linear-gradient(135deg, #1b7879, #0d5354); }
.bg-makemytrip { background: linear-gradient(135deg, #e41d24, #b80c12); }

/* Store Detail Header Banner */
.store-header-banner {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.store-header-banner h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.store-header-banner p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   8. Categories Grid
   -------------------------------------------------------------------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.category-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  color: var(--text-main);
}

.category-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.category-info h3 {
  font-size: 1rem;
  font-weight: 700;
}

.category-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Coupon Card Component (Rich Details & Indicators)
   -------------------------------------------------------------------------- */
.coupons-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.coupon-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 140px 1fr 220px;
  gap: 1.5rem;
  align-items: center;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.coupon-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.coupon-store-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px dashed var(--border-color);
  padding-right: 1.25rem;
}

.coupon-store-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.5rem;
}

.coupon-store-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.coupon-details-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.coupon-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-verified {
  background-color: var(--success-light);
  color: var(--success-color);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.badge-discount {
  background-color: #fee2e2;
  color: #b91c1c;
}

.badge-type-code {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.badge-type-deal {
  background-color: #fef3c7;
  color: #d97706;
}

.coupon-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.coupon-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.coupon-extra-info {
  display: flex;
  gap: 1rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  flex-wrap: wrap;
}

.coupon-extra-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.coupon-action-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-left: 1px dashed var(--border-color);
  padding-left: 1.25rem;
}

/* Copy Button Styling */
.btn-coupon-action {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-code {
  background-color: var(--secondary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
  position: relative;
  overflow: hidden;
  /* Reserve room for the absolutely-positioned "SHOW CODE" pill in ::after,
     otherwise it sits on top of the centred code text. The pill has a fixed
     width below so this reserve is exact rather than estimated. */
  padding-right: 6.75rem;
}

.btn-code::after {
  content: 'SHOW CODE';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 6.25rem;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Long codes stay inside the remaining space instead of being clipped. */
.btn-code {
  white-space: nowrap;
  text-overflow: ellipsis;
  /* The label is masked (first character + bullets); a little tracking keeps
     the bullets from reading as a single blob. */
  letter-spacing: 0.12em;
}

.btn-code:hover {
  background-color: var(--secondary-hover);
}

.btn-deal {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(26, 115, 232, 0.25);
}

.btn-deal:hover {
  background-color: var(--primary-dark);
}

.coupon-expiry {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   10. Layout Grids (Sidebar + Main Content)
   -------------------------------------------------------------------------- */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

.sidebar-widget {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg-subtle);
  margin-bottom: 1rem;
}

/* .footer-links is a dark-footer component; when reused inside a light
   sidebar card its grey/white colors are unreadable. Re-theme it here. */
.sidebar-widget .footer-links {
  list-style: none;
}

.sidebar-widget .footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.sidebar-widget .footer-links a:hover,
.sidebar-widget .footer-links a:focus-visible {
  color: var(--primary-color);
  padding-left: 4px;
  text-decoration: underline;
}

.widget-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.widget-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.widget-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-list-item a {
  color: var(--text-main);
  font-weight: 600;
}

.widget-list-item a:hover {
  color: var(--primary-color);
}

/* Ad Placement Placeholder (AdSense Ready) */
.ad-slot-placeholder {
  background-color: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  color: #94a3b8;
  margin: 1.5rem 0;
}

.ad-slot-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.ad-slot-dimension {
  font-size: 0.85rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. Rich Article / Editorial Layout (For AdSense Content Guidelines)
   -------------------------------------------------------------------------- */
.editorial-content {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.editorial-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.editorial-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: var(--text-main);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}

.editorial-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
}

.editorial-content p {
  margin-bottom: 1.15rem;
  font-size: 0.975rem;
  color: #334155;
  line-height: 1.7;
}

.editorial-content ul, .editorial-content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.editorial-content li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #334155;
}

/* Form 2-Column Responsive Row */
.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Author Profile Box */
.author-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 2rem;
  border-left: 4px solid var(--primary-color);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 700;
}

.author-info p {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. FAQ Accordion Component
   -------------------------------------------------------------------------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--bg-subtle);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  /* Generous ceiling so longer answers are never clipped mid-sentence. */
  max-height: 1500px;
  padding: 0 1.25rem 1.25rem 1.25rem;
}

/* --------------------------------------------------------------------------
   13. Copy Code Modal & Toast Notification
   (Modal rules live in section 13b below — keep them in one place.)
   -------------------------------------------------------------------------- */

/* Toast Notice */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #0f172a;
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 4000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 0.9rem;
  border-left: 4px solid var(--success-color);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   14. Footer Section
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col p {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid #334155;
  background: #1e293b;
  color: white;
  font-size: 0.85rem;
  flex: 1;
}

.newsletter-form button {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Policy links required on every page — kept visually quiet in the footer bar. */
.footer-legal-links {
  flex-basis: 100%;
  order: -1;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 0.25rem;
}

.footer-legal-links a {
  color: #94a3b8;
  font-size: 0.825rem;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   13b. Modal Popup System (single source of truth)
   -------------------------------------------------------------------------- */
.modal-wrapper {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Must sit above the mobile drawer (2000) and its overlay (1999). */
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.modal-wrapper.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2), 0 10px 10px -5px rgba(0,0,0,0.1);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-store-logo {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  flex-shrink: 0;
}

.modal-wrapper.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  color: #64748b;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-store-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-right: 2.25rem;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
}

.modal-code-box {
  background: #f8fafc;
  border: 2px dashed var(--primary-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-code-text {
  font-family: monospace;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.btn-modal-copy {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-modal-copy:hover {
  background: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   15. Responsive Breakpoints & Mobile Optimization
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  /* Side banner drops below the primary one rather than being squeezed. */
  .banner-layout {
    grid-template-columns: 1fr;
  }

  .banner-panel-side .banner-slide {
    min-height: 190px;
    align-items: center;
  }

  .banner-card {
    max-width: 420px;
  }

  .coupon-card {
    grid-template-columns: 120px 1fr;
    gap: 1.25rem;
  }
  
  .coupon-action-col {
    grid-column: span 2;
    border-left: none;
    border-top: 1px dashed var(--border-color);
    padding-left: 0;
    padding-top: 1rem;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .btn-coupon-action {
    width: auto;
    min-width: 180px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-search, .top-bar {
    display: none;
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .hero-section {
    padding: 2.5rem 0 3.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  /* Stack the banner copy above the discount medallion on phones. */
  .banner-section {
    padding-top: 1.75rem;
  }

  .banner-slide {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 1.35rem;
    min-height: 0;
  }

  .banner-headline {
    font-size: 1.5rem;
  }

  .banner-copy {
    max-width: none;
  }

  .banner-art {
    width: 116px;
    height: 116px;
    align-self: flex-end;
    margin-top: -3.25rem;
  }

  .banner-art-value {
    font-size: 1.85rem;
  }

  .banner-art-label {
    font-size: 0.7rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .coupon-card {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
  
  .coupon-store-col {
    border-right: none;
    border-bottom: 1px dashed var(--border-color);
    padding-right: 0;
    padding-bottom: 1rem;
    flex-direction: row;
    gap: 1rem;
    justify-content: flex-start;
  }

  .coupon-store-logo {
    margin-bottom: 0;
  }

  .coupon-action-col {
    grid-column: span 1;
    flex-direction: column;
    border-left: none;
    border-top: 1px dashed var(--border-color);
    padding-left: 0;
    padding-top: 1rem;
  }

  .btn-coupon-action {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-inner {
    height: 64px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    text-align: center;
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Hero Search Form Stacked Layout for Mobile */
  .hero-search-form {
    flex-direction: column;
    background: transparent;
    padding: 0;
    box-shadow: none;
    gap: 0.65rem;
  }

  .hero-search-input {
    width: 100%;
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .hero-search-btn {
    width: 100%;
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero Stats Grid 2x2 */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .stat-item h4 {
    font-size: 1.35rem;
  }

  .stat-item p {
    font-size: 0.75rem;
  }

  /* Section Headers Stacked */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-subtitle {
    font-size: 0.875rem;
  }

  .view-all-link {
    margin-top: 0.25rem;
  }

  /* Stores Grid Compact */
  .stores-grid {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 0.75rem;
  }

  .store-card {
    padding: 0.85rem 0.4rem;
  }

  .store-logo-icon {
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }

  .store-card-name {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .store-card-count {
    font-size: 0.7rem;
  }

  /* Categories Grid Stacked */
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .category-card {
    padding: 1rem;
  }

  /* Coupon Card Mobile Polish */
  .coupon-card {
    padding: 1rem;
    gap: 1rem;
    border-radius: var(--radius-md);
  }

  .coupon-title {
    font-size: 1.05rem;
  }

  .coupon-desc {
    font-size: 0.825rem;
  }

  .coupon-extra-info {
    gap: 0.5rem 0.75rem;
    font-size: 0.725rem;
  }

  .btn-code {
    padding-right: 6rem;
    font-size: 0.85rem;
  }

  .btn-code::after {
    width: 5.5rem;
    font-size: 0.7rem;
  }

  /* Newsletter Form */
  .newsletter-form {
    flex-direction: column;
    gap: 0.65rem;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  /* Modal on Mobile */
  .modal-card {
    padding: 1.5rem 1.15rem;
  }

  .modal-code-box {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .btn-modal-copy {
    width: 100%;
  }

  /* Toast Notification on Mobile */
  .toast-notification {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    font-size: 0.825rem;
    padding: 0.75rem 1rem;
  }

  /* Form 2-Col Stacked on Mobile */
  .form-grid-2col {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Author Box Stacked on Mobile */
  .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1.1rem 1rem;
    gap: 0.85rem;
  }

  /* Store Detail Header Banner Mobile */
  .store-header-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
  
  .store-header-banner .store-logo-icon {
    width: 64px !important;
    height: 64px !important;
    font-size: 1.5rem !important;
    margin-bottom: 0;
  }
  
  .store-header-banner h1 {
    font-size: 1.35rem;
  }

  .store-header-banner p {
    font-size: 0.825rem;
  }

  /* Editorial Article Content Mobile Optimization */
  .editorial-content {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
  }

  .editorial-content h1 {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
  }

  .editorial-content h2 {
    font-size: 1.2rem;
    margin: 1.25rem 0 0.5rem;
  }

  .editorial-content h3 {
    font-size: 1.05rem;
    margin: 1rem 0 0.4rem;
  }

  .editorial-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.85rem;
  }

  .editorial-content ul, .editorial-content ol {
    margin: 0 0 1rem 1.15rem;
  }

  .editorial-content li {
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
  }

  /* Mobile Menu Drawer Width */
  .mobile-menu-drawer {
    width: 82vw;
    max-width: 300px;
  }

  .ad-slot-dimension {
    font-size: 0.75rem;
    word-break: break-word;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 1.45rem;
  }

  .hero-badge {
    font-size: 0.72rem;
  }

  .stores-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-code {
    padding-right: 5.5rem;
    font-size: 0.8rem;
  }

  .btn-code::after {
    width: 5rem;
  }

  .editorial-content {
    padding: 1rem 0.85rem;
  }

  .editorial-content h1 {
    font-size: 1.35rem;
  }
}
