/* ============================================================
   allcouponsarehere.com — Theme v2
   Design system: CSS variables + global resets + components
   ============================================================ */

/* ── 1. Design Tokens ─────────────────────────────────────── */
:root {
  --c-brand:        #1d4ed8;   /* deep blue — primary */
  --c-brand-dark:   #1e3a8a;   /* darker blue — hover/active */
  --c-brand-light:  #dbeafe;   /* pale blue — tints */
  --c-accent:       #f97316;   /* vibrant orange — CTAs */
  --c-accent-dark:  #ea6b0a;   /* orange hover */
  --c-green:        #10b981;   /* savings / success */
  --c-green-light:  #d1fae5;
  --c-purple:       #7c3aed;   /* SaaS/compare accent */
  --c-purple-light: #ede9fe;
  --c-red:          #ef4444;   /* expired / error */

  --c-bg:           #f1f5f9;   /* page background */
  --c-surface:      #ffffff;   /* card surface */
  --c-border:       #e2e8f0;
  --c-text:         #0f172a;   /* near black */
  --c-text-2:       #334155;   /* secondary text */
  --c-text-3:       #64748b;   /* muted */
  --c-text-4:       #94a3b8;   /* very muted */

  --header-h:       64px;
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:      0 10px 30px rgba(0,0,0,.12);
  --transition:     .2s ease;
  --font-sans:      'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ── 2. Base resets ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
  /* first 64 px matches the nav so the header-offset gap is invisible */
  background: linear-gradient(to bottom, #0f172a var(--header-h), var(--c-bg) var(--header-h));
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);   /* offset for fixed header */
  border-top: none;               /* override global.min.css border-top */
  margin-top: 0;
}

a { color: var(--c-brand); transition: color var(--transition); }
a:hover { color: var(--c-brand-dark); text-decoration: none; }

img { max-width: 100%; height: auto; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}

/* ── 3. Utility classes ───────────────────────────────────── */
.v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
}
.v2-badge-green  { background: var(--c-green-light);  color: #047857; }
.v2-badge-blue   { background: var(--c-brand-light);  color: var(--c-brand-dark); }
.v2-badge-orange { background: #fff7ed; color: #c2410c; }
.v2-badge-purple { background: var(--c-purple-light); color: #5b21b6; }
.v2-badge-red    { background: #fef2f2; color: #b91c1c; }

.v2-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 6px;
}
.v2-section-sub {
  font-size: 14px;
  color: var(--c-text-3);
  margin: 0 0 24px;
}

/* ── 4. Header ────────────────────────────────────────────── */
.v2-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  height: var(--header-h);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
  box-shadow: 0 2px 16px rgba(15,23,42,.35);
  transition: background var(--transition), box-shadow var(--transition);
}
.v2-header.scrolled {
  background: #0f172a;
  box-shadow: 0 2px 20px rgba(15,23,42,.5);
}

.v2-header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
  padding: 0 20px;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Logo */
.v2-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.v2-logo img {
  height: 38px;
  width: auto;
  display: block;
}

/* Search bar */
.v2-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.v2-search input {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 14px;
  padding: 0 16px 0 42px;
  outline: none;
  transition: background var(--transition), box-shadow var(--transition);
}
.v2-search input::placeholder { color: rgba(255,255,255,.5); }
.v2-search input:focus {
  background: rgba(255,255,255,.2);
  box-shadow: 0 0 0 3px rgba(255,255,255,.15);
}
.v2-search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.55);
  font-size: 14px;
  pointer-events: none;
}
.v2-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
}
.v2-search-results.open { display: block; }
.v2-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  transition: background .15s;
  font-size: 13px;
  font-weight: 600;
}
.v2-search-item:last-child { border-bottom: none; }
.v2-search-item:hover { background: var(--c-bg); color: var(--c-brand); }
.v2-search-item img { width: 30px; height: 30px; object-fit: contain; border-radius: 4px; border: 1px solid var(--c-border); padding: 2px; flex-shrink: 0; }
.v2-search-item-initial { width: 30px; height: 30px; background: var(--c-brand-light); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--c-brand); font-size: 13px; flex-shrink: 0; }

/* Nav */
.v2-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.v2-nav li a {
  display: block;
  padding: 6px 12px;
  color: rgba(255,255,255,.85);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.v2-nav li a:hover,
.v2-nav li a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.v2-nav li a.v2-nav-cta,
.v2-nav li button.v2-nav-cta {
  background: var(--c-accent);
  color: #fff !important;
  font-weight: 700;
  margin-left: 8px;
  padding: 7px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.v2-nav li a.v2-nav-cta:hover,
.v2-nav li button.v2-nav-cta:hover {
  background: var(--c-accent-dark);
  color: #fff !important;
}

/* Form validation highlight */
.has-error input.form-control,
.has-error textarea.form-control,
.has-error select.form-control {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239,68,68,.15) !important;
}

/* Mobile toggle */
.v2-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.v2-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.v2-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.v2-menu-toggle.open span:nth-child(2) { opacity: 0; }
.v2-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.v2-mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: #0f172a;
  padding: 12px 20px 20px;
  display: none;
  z-index: 1049;
  box-shadow: var(--shadow-lg);
}
.v2-mobile-nav.open { display: block; }
.v2-mobile-nav a {
  display: block;
  padding: 11px 0;
  color: rgba(255,255,255,.85);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.v2-mobile-nav a:last-child { border-bottom: none; }
.v2-mobile-nav a:hover { color: #fff; }
.v2-mobile-nav .v2-mob-cta {
  display: block;
  margin-top: 14px;
  background: var(--c-accent);
  color: #fff;
  text-align: center;
  padding: 11px;
  border-radius: var(--radius-md);
  font-weight: 700;
}

/* Hide old header */
.header { display: none !important; }

/* ── 5. Page banner (section hero) ───────────────────────── */
.pg-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%) !important;
  padding: 32px 0 40px !important;
  height: auto !important;
  position: relative;
}
.pg-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  z-index: 0;
  pointer-events: none;
}
.pg-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 20%;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  z-index: 0;
  pointer-events: none;
}
.pg-banner .container {
  position: relative;
  z-index: 1;
}
.pg-banner .col-lg-12,
.pg-banner > .container > .pg-breadcrumbs,
.pg-banner > .container > div[style] {
  text-align: center;
}
.pg-banner .heading h1 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
  text-align: center;
}
.pg-banner p {
  text-align: center;
}
.pg-breadcrumbs ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pg-breadcrumbs ul li {
  font-size: 13px;
  color: rgba(255,255,255,.55) !important;
}
.pg-breadcrumbs ul li a {
  font-size: 13px !important;
  color: rgba(255,255,255,.75) !important;
  transition: color var(--transition);
}
.pg-breadcrumbs ul li a:hover { color: #fff !important; }
.pg-breadcrumbs ul li.inactive { color: rgba(255,255,255,.55) !important; }
.pg-breadcrumbs .bc-nav { color: rgba(255,255,255,.4); font-size: 11px; }

/* ── 6. Cards (global) ────────────────────────────────────── */
.v2-card {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.v2-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── 7. Buttons ───────────────────────────────────────────── */
.btn {
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  transition: all var(--transition) !important;
  letter-spacing: .2px;
}
.btn-primary {
  background: var(--c-brand) !important;
  border-color: var(--c-brand) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--c-brand-dark) !important;
  border-color: var(--c-brand-dark) !important;
  color: #fff !important;
}
.btn-orange {
  background: var(--c-accent) !important;
  border-color: var(--c-accent) !important;
  color: #fff !important;
}
.btn-orange:hover {
  background: var(--c-accent-dark) !important;
  border-color: var(--c-accent-dark) !important;
  color: #fff !important;
}
.btn-green {
  background: var(--c-green) !important;
  border-color: var(--c-green) !important;
  color: #fff !important;
}
.btn-default {
  background: #fff !important;
  border-color: var(--c-border) !important;
  color: var(--c-text-2) !important;
}
.btn-default:hover {
  background: var(--c-bg) !important;
  border-color: #cbd5e1 !important;
}

/* ── 8. Coupon card ───────────────────────────────────────── */
.v2-coupon-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
}
.v2-coupon-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.v2-coupon-card-head {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--c-border);
}
.v2-coupon-card-logo {
  width: 48px; height: 48px;
  object-fit: contain;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 4px;
  flex-shrink: 0;
}
.v2-coupon-card-store { font-size: 13px; font-weight: 700; color: var(--c-text); }
.v2-coupon-card-body { padding: 14px 16px; flex: 1; }
.v2-coupon-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  margin: 0 0 8px;
  line-height: 1.4;
}
.v2-coupon-card-desc { font-size: 12px; color: var(--c-text-3); margin: 0 0 10px; line-height: 1.5; }
.v2-coupon-card-foot {
  padding: 12px 16px;
  background: #fafbfc;
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.v2-coupon-code-box {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px dashed var(--c-brand-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-brand-light);
  flex: 1;
  max-width: 160px;
}
.v2-coupon-code {
  font-size: 13px;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  color: var(--c-brand-dark);
  letter-spacing: 1px;
  padding: 4px 10px;
  flex: 1;
  text-align: center;
}
.v2-copy-btn {
  background: var(--c-brand);
  color: #fff;
  border: none;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background var(--transition);
  font-weight: 600;
}
.v2-copy-btn:hover { background: var(--c-brand-dark); }
.v2-get-deal-btn {
  background: var(--c-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.v2-get-deal-btn:hover { background: var(--c-accent-dark); color: #fff; }
.v2-expiry {
  font-size: 11px;
  color: var(--c-text-4);
  white-space: nowrap;
}
.v2-expiry.expiring { color: var(--c-red); font-weight: 600; }

/* ── 9. Store card ────────────────────────────────────────── */
.v2-store-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.v2-store-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.v2-store-card-logo {
  width: 64px; height: 64px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  padding: 6px;
  margin-bottom: 12px;
}
.v2-store-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 4px;
}
.v2-store-card-count {
  font-size: 12px;
  color: var(--c-text-3);
}
.v2-store-card-badge {
  margin-top: 10px;
}

/* ── 10. Blog card ────────────────────────────────────────── */
.v2-blog-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.v2-blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.v2-blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.v2-blog-card:hover .v2-blog-card-img { transform: scale(1.04); }
.v2-blog-card-img-wrap { overflow: hidden; display: block; }
.v2-blog-card-placeholder {
  height: 140px;
  background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-blog-card-body { padding: 18px; }
.v2-blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.v2-blog-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.45;
  margin: 0 0 8px;
}
.v2-blog-card-title a { color: inherit; }
.v2-blog-card-title a:hover { color: var(--c-brand); }
.v2-blog-card-excerpt { font-size: 13px; color: var(--c-text-3); line-height: 1.6; margin: 0 0 14px; }
.v2-blog-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
}
.v2-blog-card-date { font-size: 11px; color: var(--c-text-4); }

/* ── 11. SaaS / Compare card ──────────────────────────────── */
.v2-saas-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  padding: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.v2-saas-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ── 12. Section wrapper ──────────────────────────────────── */
.v2-section {
  padding: 40px 0;
}
.v2-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.v2-section-header-left {}
.v2-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-brand);
  white-space: nowrap;
}
.v2-view-all:hover { color: var(--c-brand-dark); }

/* ── 13. Category pills ───────────────────────────────────── */
.v2-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.v2-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border: 1.5px solid var(--c-border);
  color: var(--c-text-2);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.v2-pill:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
  background: var(--c-brand-light);
}
.v2-pill.active {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}

/* ── 14. Pagination ───────────────────────────────────────── */
.pagination > li > a,
.pagination > li > span {
  color: var(--c-brand);
  border-radius: var(--radius-sm) !important;
  margin: 0 2px;
  border-color: var(--c-border);
  font-weight: 600;
  transition: all var(--transition);
}
.pagination > li.active > a,
.pagination > li.active > span {
  background: var(--c-brand) !important;
  border-color: var(--c-brand) !important;
  color: #fff !important;
}
.pagination > li > a:hover {
  background: var(--c-brand-light);
  color: var(--c-brand-dark);
  border-color: var(--c-brand);
}

/* ── 14b. Promo Strip ─────────────────────────────────────── */
.v2-promo-strip {
  background: linear-gradient(135deg,#0f172a 0%,#1e3a8a 60%,#1d4ed8 100%);
  padding: 52px 0;
}

/* ── 15. Footer ───────────────────────────────────────────── */
.footer { display: none !important; }   /* hide old footer */

.v2-footer {
  background: #0f172a;
  color: rgba(255,255,255,.75);
  padding: 56px 0 0;
  margin-top: 60px;
}
.v2-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}
.v2-footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  margin: 14px 0 20px;
}
.v2-footer-logo { height: 36px; width: auto; }
.v2-footer-social {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0; padding: 0;
}
.v2-footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  font-size: 15px;
  transition: background var(--transition), color var(--transition);
}
.v2-footer-social a:hover {
  background: var(--c-brand);
  color: #fff;
}
.v2-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: rgba(255,255,255,.9);
  margin: 0 0 16px;
}
.v2-footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
}
.v2-footer-col ul li { margin-bottom: 10px; }
.v2-footer-col ul li a {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.v2-footer-col ul li a:hover { color: #fff; }
.v2-footer-newsletter p {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin: 0 0 14px;
}
.v2-newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.v2-newsletter-form input {
  flex: 1;
  height: 42px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.12);
  border-right: none;
  color: #fff;
  padding: 0 14px;
  font-size: 13px;
  outline: none;
  transition: background var(--transition);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.v2-newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.v2-newsletter-form input:focus { background: rgba(255,255,255,.14); }
.v2-newsletter-form button {
  background: var(--c-accent);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
  transition: background var(--transition);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.v2-newsletter-form button:hover { background: var(--c-accent-dark); }

.v2-footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1320px;
  margin: 48px auto 0;
}
.v2-footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  margin: 0;
}
.v2-footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0; padding: 0;
}
.v2-footer-bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,.35);
}
.v2-footer-bottom-links a:hover { color: rgba(255,255,255,.7); }
.v2-footer-copy-wrap {
  padding: 0 20px 24px;
}

@keyframes v2spin { to { transform: rotate(360deg); } }

/* ── 16. Animations ───────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}
.v2-animate-in {
  animation: fadeInUp .5s ease both;
}
.v2-animate-delay-1 { animation-delay: .1s; }
.v2-animate-delay-2 { animation-delay: .2s; }
.v2-animate-delay-3 { animation-delay: .3s; }

/* skeleton loader */
.v2-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── 17. Homepage hero ────────────────────────────────────── */
.v2-hero {
  background: var(--hero-bg, linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #1d4ed8 100%));
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.v2-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.25) 0%, transparent 70%);
  pointer-events: none;
}
.v2-hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,.15) 0%, transparent 70%);
  pointer-events: none;
}
.v2-hero-inner { position: relative; z-index: 1; }
.v2-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.15);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.v2-hero h1 {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -.5px;
}
.v2-hero h1 span { color: var(--c-accent); }
.v2-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.7);
  margin: 0 auto 36px;
  max-width: 560px;
  line-height: 1.6;
}
.v2-hero-search {
  max-width: 580px;
  margin: 0 auto 28px;
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.v2-hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 20px;
  font-size: 15px;
  color: var(--c-text);
  background: transparent;
  height: 52px;
}
.v2-hero-search input::placeholder { color: #94a3b8; }
.v2-hero-search button {
  background: var(--c-accent);
  border: none;
  color: #fff;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 40px 40px 0;
  transition: background var(--transition);
  height: 52px;
  white-space: nowrap;
}
.v2-hero-search button:hover { background: var(--c-accent-dark); }
.v2-hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.v2-hero-stat { text-align: center; }
.v2-hero-stat-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.v2-hero-stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

/* ── 18. Responsive ───────────────────────────────────────── */
@media (max-width: 991px) {
  .v2-nav { display: none; }
  .v2-search { max-width: 300px; }
  .v2-menu-toggle { display: flex; }
  .v2-footer-grid { grid-template-columns: 1fr 1fr; }
  .v2-hero h1 { font-size: 32px; }
}
@media (max-width: 767px) {
  body { padding-top: var(--header-h); }
  .v2-search { display: none; }
  .v2-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .v2-hero { padding: 44px 0 52px; }
  .v2-hero h1 { font-size: 26px; }
  .v2-hero-search { border-radius: 12px; flex-direction: column; }
  .v2-hero-search button { border-radius: 0 0 12px 12px; }
  .v2-hero-stats { gap: 20px; }
  .v2-footer-bottom { flex-direction: column; text-align: center; }
}

/* ── 18. Hero Image Slider ────────────────────────────────── */
.v2-hero-slider {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #0f172a;
  margin-top: 0;      /* override any Bootstrap/global top margin */
  padding-top: 0;
  border-top: none;
}
.v2-hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  will-change: opacity;
}
.v2-hs-slide.active { opacity: 1; }

.v2-hs-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 7s ease;
}
.v2-hs-slide.active .v2-hs-slide-bg { transform: scale(1); }

.v2-hs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,var(--hs-overlay, 0.5));
  z-index: 1;
}
.v2-hs-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}
.v2-hs-content.pos-left   { justify-content: flex-start; }
.v2-hs-content.pos-center { justify-content: center; }
.v2-hs-content.pos-right  { justify-content: flex-end; }

.v2-hs-text {
  color: var(--hs-text-color, #fff);
  padding: 0 24px;
  max-width: 680px;
  text-align: center;
  opacity: 0;
  transition: transform .7s ease .35s, opacity .7s ease .35s;
}
.v2-hs-content.pos-left  .v2-hs-text { text-align: left;  margin-left: 0; margin-right: auto; }
.v2-hs-content.pos-center .v2-hs-text { margin-left: auto; margin-right: auto; }
.v2-hs-content.pos-right .v2-hs-text { text-align: right; margin-left: auto; margin-right: 0; }

/* ── Animation variants (inactive → active) ── */
.v2-hs-text.anim-slide-up            { transform: translateY(28px); }
.v2-hs-text.anim-slide-down          { transform: translateY(-28px); }
.v2-hs-text.anim-slide-left          { transform: translateX(40px); }
.v2-hs-text.anim-slide-right         { transform: translateX(-40px); }
.v2-hs-text.anim-zoom-in             { transform: scale(0.88); }
.v2-hs-text.anim-fade                { transform: none; }

.v2-hs-slide.active .v2-hs-text.anim-slide-up,
.v2-hs-slide.active .v2-hs-text.anim-slide-down,
.v2-hs-slide.active .v2-hs-text.anim-slide-left,
.v2-hs-slide.active .v2-hs-text.anim-slide-right,
.v2-hs-slide.active .v2-hs-text.anim-fade         { transform: none; opacity: 1; }
.v2-hs-slide.active .v2-hs-text.anim-zoom-in      { transform: scale(1); opacity: 1; }

.v2-hs-headline {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--hs-headline-color, #fff);  /* explicit — overrides global h2{color:var(--c-text)} */
  text-shadow: 0 3px 14px rgba(0,0,0,.5);
  letter-spacing: -.5px;
}
.v2-hs-subheading {
  font-size: 18px;
  color: var(--hs-text-color, rgba(255,255,255,.88));  /* explicit — overrides global p color */
  margin: 0 0 26px;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.v2-hs-cta {
  display: inline-block;
  padding: 13px 30px;
  background: var(--hs-cta-bg, var(--c-accent));
  color: var(--hs-cta-color, #fff) !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: filter var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.v2-hs-cta:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

/* Arrows */
.v2-hs-prev,
.v2-hs-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  user-select: none;
  padding: 0;
}
.v2-hs-prev:hover,
.v2-hs-next:hover { background: rgba(255,255,255,.3); }
.v2-hs-prev { left: 18px; }
.v2-hs-next { right: 18px; }

/* Dots */
.v2-hs-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.v2-hs-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
}
.v2-hs-dot.active {
  background: #fff;
  transform: scale(1.3);
}

@media (max-width: 991px) {
  .v2-hero-slider    { height: 380px; }
  .v2-hs-headline    { font-size: 34px; }
  .v2-hs-subheading  { font-size: 15px; }
}
@media (max-width: 767px) {
  .v2-hero-slider    { height: 280px; }
  .v2-hs-headline    { font-size: 24px; }
  .v2-hs-subheading  { font-size: 13px; margin-bottom:16px; }
  .v2-hs-cta         { padding: 10px 20px; font-size: 13px; }
  .v2-hs-text        { padding: 0 14px; }
  .v2-hs-prev,.v2-hs-next { width:34px; height:34px; font-size:20px; }
}

/* ── 19. Coupon popup modernise ───────────────────────────── */
.coupon_popup_box {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  border: none !important;
}

/* ── 20. Main coupon row (v2-mc) ──────────────────────────── */
.v2-mc {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.v2-mc:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.v2-mc--expired {
  opacity: .65;
  filter: grayscale(.4);
}
.v2-mc-logo {
  flex-shrink: 0;
}
.v2-mc-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 4px;
  display: block;
}
.v2-mc-body {
  flex: 1;
  min-width: 0;
}
.v2-mc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 5px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-mc-desc {
  font-size: 12px;
  color: var(--c-text-3);
  margin: 0 0 8px;
  line-height: 1.5;
}
.v2-mc-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.v2-mc-action {
  flex-shrink: 0;
}
/* Code button */
.v2-mc-code-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--c-brand-light);
  border: 2px dashed var(--c-brand);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  min-width: 120px;
  text-align: center;
}
.v2-mc-code-btn:hover {
  background: var(--c-brand);
  border-style: solid;
}
.v2-mc-code-stars {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 800;
  color: var(--c-brand-dark);
  letter-spacing: 2px;
}
.v2-mc-code-btn:hover .v2-mc-code-stars { color: #fff; }
.v2-mc-code-reveal {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-brand);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.v2-mc-code-btn:hover .v2-mc-code-reveal { color: rgba(255,255,255,.85); }
/* Deal button */
.v2-mc-deal-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--c-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.v2-mc-deal-btn:hover {
  background: var(--c-accent-dark);
  color: #fff;
}

/* ── 21. Featured coupon card ─────────────────────────────── */
.v2-fc {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 16px;
}
.v2-fc:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.v2-fc-img-wrap {
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}
.v2-fc-img {
  max-width: 80px;
  max-height: 60px;
  object-fit: contain;
}
.v2-fc-body { padding: 14px; flex: 1; }
.v2-fc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v2-fc-desc {
  font-size: 12px;
  color: var(--c-text-3);
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v2-fc-foot { padding: 10px 14px; border-top: 1px solid var(--c-border); }
.v2-fc-code-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--c-brand-light);
  border: 1.5px dashed var(--c-brand);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}
.v2-fc-code-btn:hover { background: var(--c-brand); border-style: solid; }
.v2-fc-code-label {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 800;
  color: var(--c-brand-dark);
  letter-spacing: 1px;
}
.v2-fc-code-btn:hover .v2-fc-code-label { color: #fff; }
.v2-fc-code-reveal {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-brand);
  white-space: nowrap;
}
.v2-fc-code-btn:hover .v2-fc-code-reveal { color: rgba(255,255,255,.85); }
.v2-fc-deal-btn {
  display: block;
  background: var(--c-accent);
  color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  width: 100%;
}
.v2-fc-deal-btn:hover { background: var(--c-accent-dark); color: #fff; }

/* ── 22. Top coupon carousel card ────────────────────────── */
.tpcp-ul  { padding: 0 !important; }
.tpcp-box {
  list-style: none;
}
.v2-tc {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none !important;
  display: block;
  height: 100%;
}
.v2-tc:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.v2-tc-img-wrap {
  background: var(--c-bg);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--c-border);
}
.v2-tc-img {
  max-width: 70px;
  max-height: 50px;
  object-fit: contain;
}
.v2-tc-body { padding: 12px; }
.v2-tc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v2-tc-desc {
  font-size: 11px;
  color: var(--c-text-3);
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v2-tc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--c-text-4);
}

/* ── 23. Misc overrides ───────────────────────────────────── */
.store_listbox.bg-grey { background: var(--c-bg) !important; }
.pg-wrapper { padding-top: 28px !important; }
.pdBtm30 { padding-bottom: 40px !important; }

/* ── 24. Horizontal scroll guard ─────────────────────────── */
body { overflow-x: hidden; }
.pg-wrapper { overflow-x: hidden; }

/* ── 25. Banner slider fixes ──────────────────────────────── */
/* Inactive slides must not steal pointer events */
.v2-hs-slide        { pointer-events: none; }
.v2-hs-slide.active { pointer-events: auto; }
/* Arrow icon precise centering */
.v2-hs-prev i,
.v2-hs-next i { font-size: 15px; line-height: 1; display: block; }

/* ── 26. Stores page v2 ───────────────────────────────────── */
.v2-section-head-row { margin-bottom: 20px; }
.v2-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.v2-section-sub { font-size: 13px; color: var(--c-text-3); margin: 0; }

/* Popular store cards */
.v2-pop-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}
.v2-pop-store-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 16px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.v2-pop-store-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--c-brand-light);
}
.v2-pop-store-logo {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  padding: 4px;
}
.v2-pop-store-initial {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--c-brand-light);
  color: var(--c-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}
.v2-pop-store-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
  text-align: center;
}

/* A-Z alphabet bar */
.v2-alpha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}
.v2-alpha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 34px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-2);
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  text-decoration: none;
  transition: all var(--transition);
}
.v2-alpha-btn:hover {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}

/* A-Z store sections */
.v2-store-section {
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.v2-store-section-head {
  padding: 10px 18px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  font-size: 16px;
  font-weight: 800;
  color: var(--c-brand);
  display: flex;
  align-items: center;
  gap: 10px;
}
.v2-store-section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}
.v2-store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
}
.v2-store-links a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--c-text-2);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  text-decoration: none;
  transition: all var(--transition);
}
.v2-store-links a:hover {
  background: var(--c-brand-light);
  border-color: var(--c-brand);
  color: var(--c-brand);
}

/* ── 27. Categories page v2 ───────────────────────────────── */
.masonry-categories-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  align-items: start;   /* each card only as tall as its own content */
}
.parent-category {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.parent-category:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.categories-list-thumbnail > a { display: block; text-decoration: none; }
.web_imagebox {
  width: 100%;
  height: 110px;
  overflow: hidden;
  background: var(--c-bg);
}
.web_imagebox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.parent-category:hover .web_imagebox img { transform: scale(1.06); }
.categories-list-thumbnail h1 {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--c-text) !important;
  padding: 10px 14px 8px !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  border-bottom: 1px solid var(--c-border);
}
.first-child-category { padding: 0 14px; }
.first-child-category:first-of-type { padding-top: 8px; }
.first-child-category:last-child     { padding-bottom: 10px; }
.first-child-category h2 {
  font-size: 12px !important;
  font-weight: 500 !important;
  margin: 4px 0 !important;
  line-height: 1.3;
}
.first-child-category h2 a {
  color: var(--c-text-3) !important;
  text-decoration: none !important;
}
.first-child-category h2 a:hover { color: var(--c-brand) !important; }
/* category card with NO sub-items — just image + title, no dead space */
.parent-category:not(:has(.first-child-category)) .categories-list-thumbnail h1 {
  border-bottom: none;
}

@media (max-width: 767px) {
  .v2-pop-store-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  .masonry-categories-box { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
}

/* ── 28. Single Category page v2 ─────────────────────────── */
.v2-sc-sidebar-box {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}
.v2-sc-sidebar-head {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.v2-sc-sidebar-body { padding: 14px 16px; }
.v2-sc-subcat-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--c-text-2);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.v2-sc-subcat-link:hover {
  background: var(--c-brand-light);
  color: var(--c-brand);
}
.v2-sc-section { margin-bottom: 32px; }
.v2-sc-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.v2-sc-count-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  background: var(--c-brand-light);
  color: var(--c-brand);
  padding: 2px 10px;
  border-radius: 20px;
}
.v2-sc-empty {
  text-align: center;
  padding: 52px 20px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  color: var(--c-text-3);
}

/* ── 29. Popup z-index — must be above all sticky bars (z-index:100) ── */
.blocker { z-index: 9000 !important; }
.blocker .modal,
.coupon_popup_box { z-index: 9001 !important; }

/* ── 30. Coupon copy toast notification ───────────────────────── */
#v2-copy-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  z-index: 99999;
  min-width: 280px;
  max-width: 440px;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
#v2-copy-toast.v2-copy-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
