/*
Theme Name:  Custom Theme
Theme URI:   
Author:      Social Pie
Author URI:  https://socialpie.io/
Description: Modern coupon & deals finder theme with clean editorial design.
Version:     1.0
Requires at least: 5.8
Requires PHP: 7.4
License:     GNU General Public License v2 or later
Text Domain: krazy-coupons
*/

/* ============================================================
   DESIGN TOKENS — change once, change everywhere
   ============================================================ */
:root {
  --brand-primary:    #0EA5E9;
  --brand-primary-dk: #0284C7;
  --brand-primary-lt: #E0F2FE;
  --brand-pink:       #EC4899;
  --brand-yellow:     #FACC15;
  --brand-mint:       #10B981;
  --brand-purple:     #8B5CF6;
  --brand-coral:      #FB7185;

  --ink-900: #0B1220;
  --ink-800: #1E293B;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748B;
  --ink-400: #94A3B8;
  --ink-300: #CBD5E1;
  --ink-200: #E2E8F0;
  --ink-100: #F1F5F9;
  --ink-50:  #F8FAFC;
  --paper:   #FFFFFF;
  --canvas:  #FBFCFE;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 2px 6px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 8px 24px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.06);
  --shadow-pop: 0 12px 32px rgba(14,165,233,.25);

  --container: 1240px;
  --gutter: 24px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul { padding-left: 0; list-style: none; margin: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0;
  text-wrap: balance;
}
p { text-wrap: pretty; margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--ink-900);
  color: var(--ink-200);
  font-size: 12.5px;
}
.topbar .container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 36px;
}
.topbar a { opacity: .8; }
.topbar a:hover { opacity: 1; }
.topbar .spacer { flex: 1; }
.region-switcher {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); cursor: pointer; position: relative;
}
.region-switcher:hover { background: rgba(255,255,255,.14); }
.region-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--paper); color: var(--ink-800);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 6px; min-width: 200px; display: none; z-index: 50;
}
.region-switcher.open .region-menu { display: block; }
.region-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px; border-radius: var(--r-sm);
  text-align: left; font-size: 13.5px;
}
.region-menu button:hover { background: var(--ink-100); }
.region-menu button.active { background: var(--brand-primary-lt); color: var(--brand-primary-dk); font-weight: 600; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--ink-200);
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 0px;
}
.site-header .container {
  display: flex; align-items: center; gap: 28px; height: 76px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand-mark img {
    width: 150px;
}
.brand-mark .logo {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-pink) 100%);
  display: grid; place-items: center; color: white;
  font-size: 20px; transform: rotate(-6deg); box-shadow: var(--shadow-pop);
  flex-shrink: 0;
}
.brand-mark .logo span { transform: rotate(6deg); display: block; }
.brand-mark em { font-style: normal; color: var(--brand-pink); }

.search-box {
  flex: 1; max-width: 560px; position: relative;
}
.search-box input {
  width: 100%; height: 46px;
  border: 2px solid var(--ink-200); border-radius: var(--r-pill);
  padding: 0 52px 0 22px;
  background: var(--ink-50); transition: border-color .15s, background .15s;
  font-size: 14.5px; color: var(--ink-800);
}
.search-box input:focus { outline: none; border-color: var(--brand-primary); background: var(--paper); }
.search-box .search-btn {
  position: absolute; right: 6px; top: 6px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-primary); color: white;
  display: grid; place-items: center;
}
.search-box .search-btn:hover { background: var(--brand-primary-dk); }
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--paper); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 50;
}
.search-box.active .search-suggest { display: block; }
.search-suggest h6 {
  font-family: var(--font-body); font-size: 11px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-500); padding: 8px 10px 4px; margin: 0; font-weight: 600;
}
.search-suggest a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-sm); font-size: 14px;
}
.search-suggest a:hover { background: var(--ink-100); }
.search-suggest a .tag {
  margin-left: auto; font-size: 11px; padding: 2px 8px;
  border-radius: var(--r-pill); background: var(--ink-100); color: var(--ink-600);
}

.nav-main { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-main a {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 14px; color: var(--ink-700);
}
.nav-main a:hover { background: var(--ink-100); color: var(--ink-900); }
.nav-main a.active { background: var(--brand-primary-lt); color: var(--brand-primary-dk); font-weight: 600; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink-100); display: grid; place-items: center;
  color: var(--ink-700); position: relative; flex-shrink: 0;
}
.icon-btn:hover { background: var(--ink-200); }
.icon-btn .badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--brand-pink); color: white;
  font-size: 10px; font-weight: 700;
  height: 18px; min-width: 18px; padding: 0 5px;
  border-radius: var(--r-pill); display: grid; place-items: center;
  border: 2px solid var(--paper);
}

/* Mobile nav toggle */
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink-800); border-radius: 2px; transition: .3s;
}
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* .mobile-nav rules consolidated in MOBILE NAV DRAWER section below */

/* Affiliate strip */
.affiliate-strip {
  background: var(--ink-50); border-bottom: 1px solid var(--ink-100);
  padding: 7px 0; text-align: center;
}
.affiliate-strip small { color: var(--ink-600); font-size: 11.5px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 44px; padding: 0 22px;
  border-radius: var(--r-pill); font-weight: 600; font-size: 14.5px;
  transition: transform .1s, background .15s, box-shadow .15s;
  white-space: nowrap; cursor: pointer; border: 0;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-primary); color: white; box-shadow: var(--shadow-pop); }
.btn-primary:hover { background: var(--brand-primary-dk); color: white; }
.btn-pink { background: var(--brand-pink); color: white; }
.btn-pink:hover { background: #DB2777; color: white; }
.btn-dark { background: var(--ink-900); color: white; }
.btn-dark:hover { background: var(--ink-800); color: white; }
.btn-ghost { background: var(--ink-100); color: var(--ink-800); }
.btn-ghost:hover { background: var(--ink-200); color: var(--ink-900); }
.btn-outline { background: transparent; color: var(--ink-800); box-shadow: inset 0 0 0 2px var(--ink-300); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--ink-900); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* ============================================================
   COUPON CARD — simple-coupon design (matches index.html)
   ============================================================ */
.simple-coupon {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, box-shadow .15s;
  color: inherit;
}
.simple-coupon:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
}

/* Logo + store name row */
.simple-coupon .sc-row { display: flex; gap: 12px; align-items: center; }
.simple-coupon .lg {
  width: 48px; height: 48px; border-radius: 6px;
  background: var(--ink-50); border: 1px solid var(--ink-200);
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: var(--ink-800);
  flex-shrink: 0; overflow: hidden;
}
.simple-coupon .lg img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.simple-coupon .name { font-size: 13.5px; font-weight: 600; color: var(--ink-900); }
.simple-coupon .name a { color: inherit; }
.simple-coupon .name a:hover { color: var(--brand-primary-dk); }
.simple-coupon .verified { font-size: 11.5px; color: var(--brand-mint); font-weight: 500; margin-top: 2px; }

/* Discount value */
.simple-coupon .pct {
  font-size: 22px; font-weight: 700;
  color: var(--brand-primary-dk);
  letter-spacing: -.02em;
}

/* Description */
.simple-coupon .title {
  font-size: 13.5px; color: var(--ink-700); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.8em; flex: 1;
}

/* CTA button */
.simple-coupon .cta {
  margin-top: auto;
  width: 100%; display: block;
  border: 1px dashed var(--ink-300);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  font-size: 13px; font-weight: 600;
  color: var(--brand-primary-dk);
  background: var(--brand-primary-lt);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.simple-coupon .cta:hover,
.simple-coupon:hover .cta {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
  border-style: solid;
}
.simple-coupon.is-deal .cta {
  background: #EEF9F4; border-color: var(--brand-mint); color: #047857;
}
.simple-coupon.is-deal .cta:hover {
  background: var(--brand-mint); border-color: var(--brand-mint); color: white;
}

/* ── Legacy coupon-card class (kept for any other templates that still reference it) ── */
.coupon-card {
  background: var(--paper); border-radius: var(--r-lg);
  border: 1px solid var(--ink-200); overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex; flex-direction: column; position: relative;
}
.coupon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ink-300); }
.coupon-card .head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; }
.coupon-card .store-logo {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--ink-100); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--ink-700); flex-shrink: 0; letter-spacing: -.02em; overflow: hidden;
}
.coupon-card .store-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.coupon-card .store-meta { flex: 1; min-width: 0; }
.coupon-card .store-name { font-weight: 600; font-size: 13.5px; color: var(--ink-700); margin-bottom: 2px; }
.coupon-card .verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--brand-mint); font-weight: 600;
}
.coupon-card .save-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-400);
  transition: color .15s, background .15s;
}
.coupon-card .save-btn:hover { background: var(--ink-100); color: var(--brand-pink); }
.coupon-card .save-btn.saved { color: var(--brand-pink); }
.coupon-card .body { padding: 0 18px 14px; flex: 1; }
.coupon-card .discount {
  font-family: var(--font-display); font-weight: 800; font-size: 28px;
  letter-spacing: -.03em; color: var(--ink-900); line-height: 1; margin-bottom: 8px;
}
.coupon-card .discount em { font-style: normal; color: var(--brand-pink); }
.coupon-card .title {
  font-size: 14.5px; font-weight: 500; color: var(--ink-800); margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.coupon-card .meta-row { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-500); }
.coupon-card .meta-row .stars { color: var(--brand-yellow); }
.coupon-card .foot {
  display: flex; align-items: stretch;
  border-top: 2px dashed var(--ink-200); position: relative;
}
.coupon-card .foot::before,
.coupon-card .foot::after {
  content: ""; position: absolute; top: -10px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--canvas);
}
.coupon-card .foot::before { left: -10px; }
.coupon-card .foot::after  { right: -10px; }
.coupon-card .code-reveal {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; font-weight: 700; font-size: 14px;
  background: var(--brand-primary-lt); color: var(--brand-primary-dk);
  position: relative; overflow: hidden;
}
.coupon-card .code-reveal:hover { background: var(--brand-primary); color: white; }
.coupon-card .code-reveal .masked { font-family: var(--font-mono); letter-spacing: 1px; filter: blur(3px); opacity: .7; }
.coupon-card.is-deal .code-reveal { background: var(--brand-pink); color: white; }
.coupon-card.is-deal .code-reveal:hover { background: #DB2777; }
.coupon-card .ribbon {
  position: absolute; top: 12px; right: 0;
  background: var(--brand-yellow); color: var(--ink-900); font-weight: 700;
  font-size: 10.5px; padding: 4px 12px 4px 10px; letter-spacing: .04em;
  text-transform: uppercase; border-radius: var(--r-pill) 0 0 var(--r-pill);
  box-shadow: var(--shadow-xs);
}
.coupon-card .ribbon.hot { background: var(--brand-pink); color: white; }
.coupon-card .ribbon.cashback { background: var(--brand-mint); color: white; }

/* ============================================================
   STORE CARD
   ============================================================ */
.store-card {
  background: var(--paper); border-radius: var(--r-md);
  border: 1px solid var(--ink-200); padding: 18px 14px;
  text-align: center; transition: all .15s; display: block;
}
.store-card:hover { border-color: var(--brand-primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.store-card .logo {
  width: 56px; height: 56px; border-radius: var(--r-md);
  margin: 0 auto 10px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: white;
  font-size: 18px; letter-spacing: -.02em; overflow: hidden;
}
.store-card .logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.store-card .name { font-weight: 600; font-size: 13.5px; color: var(--ink-900); margin-bottom: 2px; }
.store-card .count { font-size: 11.5px; color: var(--ink-500); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section { padding: 56px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 20px; margin-bottom: 28px;
}
.section-head h2 { font-size: 32px; line-height: 1.1; }
.section-head .sub { font-size: 14.5px; color: var(--ink-500); margin-top: 6px; }
.section-head .more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; color: var(--brand-primary-dk); white-space: nowrap;
}
.section-head .more:hover { gap: 10px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--brand-primary); margin-bottom: 8px;
}

/* ============================================================
   GRIDS
   ============================================================ */
.coupon-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.coupon-grid.three { grid-template-columns: repeat(3,1fr); }
.store-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }


/* ============================================================
   MODAL (coupon reveal)
   ============================================================ */
@keyframes kc-pop {
  from { transform: scale(.94); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.kc-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,18,32,.55);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 24px;
}
.kc-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,18,32,.55);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 24px;
}
.kc-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,18,32,.55);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 24px;
}
.code-display .code {
  flex: 1; font-family: var(--font-mono); font-weight: 700;
  font-size: 18px; letter-spacing: 2px; color: var(--ink-900);
  display: grid; place-items: center;
}
.code-display .copy {
  background: var(--ink-900); color: white;
  padding: 0 18px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 13px; cursor: pointer;
}
.code-display .copy.copied { background: var(--brand-mint); }
.modal-body .go { display: block; width: 100%; margin-bottom: 12px; }
.modal-body .note { font-size: 12.5px; color: var(--ink-500); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-300);
  padding: 64px 0 32px;
  margin-top: 60px;
}
.site-footer .footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3,1fr); gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer .brand-block .brand-mark { color: white; margin-bottom: 16px; display: inline-flex; }
.site-footer .brand-block p { font-size: 13.5px; color: var(--ink-400); max-width: 320px; line-height: 1.6; margin-top: 8px; }
.site-footer .socials { display: flex; gap: 8px; margin-top: 16px; }
.site-footer .socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06); display: grid; place-items: center; color: white;
}
.site-footer .socials a:hover { background: var(--brand-primary); }
.site-footer h6 {
  font-family: var(--font-body); font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .1em;
  color: white; margin: 0 0 16px; font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { font-size: 13.5px; color: var(--ink-400); }
.site-footer a:hover { color: white; }
.site-footer .legal {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; padding-top: 32px;
  font-size: 12.5px; color: var(--ink-500);
}
.site-footer .legal a { color: var(--ink-400); font-size: 12.5px; }
.site-footer .legal a:hover { color: white; }

/* ============================================================
   UTILITY
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--ink-100); font-size: 12px; font-weight: 500; color: var(--ink-700);
}
.chip.solid { background: var(--ink-900); color: white; }
.chip.pink  { background: #FCE7F3; color: var(--brand-pink); }
.chip.blue  { background: var(--brand-primary-lt); color: var(--brand-primary-dk); }
.chip.mint  { background: #D1FAE5; color: #047857; }
.chip.yellow{ background: #FEF3C7; color: #92400E; }

.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-500); margin-bottom: 18px;
}
.breadcrumbs a:hover { color: var(--ink-900); }
.breadcrumbs .sep { opacity: .5; }

.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--ink-200); border-right-color: var(--brand-primary);
  animation: kc-spin 1s infinite linear; display: inline-block;
}
@keyframes kc-spin { to { transform: rotate(1turn); } }

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink-900); color: white;
  padding: 12px 20px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all .2s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Wishlist heart */
.saved-coupon-btn { cursor: pointer; }
.saved-coupon-btn .fa-heart { color: var(--ink-400); font-size: 14px; transition: color .15s; }
.saved-coupon-btn.is-saved .fa-heart { color: var(--brand-pink); }
.saved-coupon-btn:hover .fa-heart { color: var(--brand-pink); }

/* Search form results dropdown */
.search_form { position: relative; }
.search_results {
  background: var(--paper); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 12px; z-index: 50;
  margin-top: 8px;
}
.search_results li.stores_list_item a {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink-800); font-size: 14px;
}
.search_results li.stores_list_item a:hover { background: var(--ink-100); }
.search_results li.stores_list_item a .store_img img { width: 36px; height: 36px; object-fit: contain; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .coupon-grid { grid-template-columns: repeat(3,1fr); }
  .coupon-grid.three { grid-template-columns: repeat(2,1fr); }
  .store-grid { grid-template-columns: repeat(6,1fr); }
  .cat-grid { grid-template-columns: repeat(3,1fr); }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-main { display: none; }
  .mobile-toggle { display: flex; }
  .search-box { max-width: none; }
  .section-head h2 { font-size: 24px; }
}
@media (max-width: 700px) {
  .coupon-grid, .coupon-grid.three { grid-template-columns: 1fr; }
  .store-grid { grid-template-columns: repeat(3,1fr); }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { margin-top: 0px; }
  .newsletter { padding: 32px 20px; }
  .container { padding: 0 16px; }
}

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, .5);
  backdrop-filter: blur(3px);
  z-index: 80;
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav {
  position: fixed;
  top: 0;
  left: auto;        /* explicitly reset any inherited left:0 */
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--paper);
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: right .25s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { right: 0; }

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ink-200);
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 12px;
}
.mobile-nav ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-weight: 500;
  color: var(--ink-800);
  font-size: 15px;
}
.mobile-nav ul li a:hover {
  background: var(--ink-100);
  color: var(--ink-900);
}

/* Region switcher responsive */
.topbar .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 36px;
}

/* Affiliate strip */
.affiliate-strip {
  background: var(--ink-50);
  border-bottom: 1px solid var(--ink-100);
  padding: 6px 0;
  text-align: center;
}
.affiliate-strip small { color: var(--ink-500); font-size: 11.5px; }

/* ============================================================
   HOMEPAGE — SIMPLE HERO & SECTIONS
   ============================================================ */
.simple-hero {
  position: relative;
  background:
    radial-gradient(circle at 12% 20%, rgba(14,165,233,.08) 0%, transparent 50%),
    radial-gradient(circle at 88% 80%, rgba(236,72,153,.07) 0%, transparent 50%),
    #FFFFFF;
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--ink-100);
  text-align: center;
  overflow: hidden;
}
.simple-hero .badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: white; border: 1px solid var(--ink-200);
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  font-size: 12.5px; color: var(--ink-700); font-weight: 500;
  margin-bottom: 18px;
}
.simple-hero .badge-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-mint);
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
  animation: kc-pulse 1.8s infinite;
}
@keyframes kc-pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .5; }
}
.simple-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.05;
  margin-bottom: 14px; color: var(--ink-900);
}
.simple-hero h1 em { font-style: italic; font-weight: 600; color: var(--brand-primary-dk); }
.simple-hero .lede {
  color: var(--ink-600); font-size: 16px;
  max-width: 580px; margin: 0 auto 26px; line-height: 1.55;
}

/* Floating store-logo decorations behind hero */
.hero-floats {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}
.hero-floats .float {
  position: absolute; width: 56px; height: 56px;
  border-radius: 12px; background: white;
  border: 1px solid var(--ink-200);
  box-shadow: 0 4px 12px rgba(15,23,42,.06);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: var(--ink-800);
}
.hero-floats .float:nth-child(1) { top: 18%; left: 6%;  transform: rotate(-8deg); }
.hero-floats .float:nth-child(2) { top: 64%; left: 4%;  transform: rotate(6deg);  }
.hero-floats .float:nth-child(3) { top: 14%; right: 8%; transform: rotate(7deg);  }
.hero-floats .float:nth-child(4) { top: 62%; right: 5%; transform: rotate(-5deg); }
.hero-floats .tag-pill {
  position: absolute; background: white;
  border: 1px solid var(--ink-200);
  box-shadow: 0 4px 12px rgba(15,23,42,.06);
  border-radius: 999px; padding: 6px 12px;
  font-size: 12px; font-weight: 600; color: var(--ink-800);
  display: flex; align-items: center; gap: 6px;
}
.hero-floats .tag-pill.t1 { top: 38%; left: 9%;   transform: rotate(-4deg); }
.hero-floats .tag-pill.t2 { top: 42%; right: 10%; transform: rotate(5deg);  }
.hero-floats .tag-pill .pct { color: var(--brand-pink); font-weight: 700; }

/* Search bar */
.simple-search {
  max-width: 580px; margin: 0 auto;
  display: flex; background: #FFFFFF;
  border: 1.5px solid var(--ink-200); border-radius: 8px;
  overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.04);
  position: relative;
}
.simple-search:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.simple-search input {
  flex: 1; border: 0; padding: 14px 16px;
  font-size: 14.5px; background: transparent;
}
.simple-search input:focus { outline: none; }
.simple-search button {
  background: var(--brand-primary); color: white;
  padding: 0 22px; font-weight: 600; font-size: 14px;
}
.simple-search button:hover { background: var(--brand-primary-dk); }

/* Popular tags */
.simple-tags { margin-top: 14px; font-size: 12.5px; color: var(--ink-500); }
.simple-tags strong { color: var(--ink-700); margin-right: 4px; }
.simple-tags a { color: var(--brand-primary-dk); margin: 0 4px; }
.simple-tags a:hover { text-decoration: underline; }

/* Inline metric strip */
.simple-metrics {
  display: flex; justify-content: center; gap: 36px;
  margin-top: 20px; font-size: 13px; color: var(--ink-600); flex-wrap: wrap;
}
.simple-metrics strong { color: var(--ink-900); font-weight: 700; }

/* 3-feature row under hero */
.hero-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; max-width: 760px; margin: 32px auto 0;
  padding-top: 24px; border-top: 1px solid var(--ink-100);
}
.hero-features .feat { display: flex; align-items: flex-start; gap: 10px; text-align: left; }
.hero-features .feat .ico {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--brand-primary-lt); color: var(--brand-primary-dk);
  display: grid; place-items: center; flex-shrink: 0;
}
.hero-features .feat .ttl { font-size: 13.5px; font-weight: 600; color: var(--ink-900); margin-bottom: 2px; }
.hero-features .feat .sub { font-size: 12px; color: var(--ink-500); line-height: 1.4; }

/* Section heads */
.simple-section {padding: 36px 0;}
.simple-head {
  display: flex; align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-100);
}
.simple-head h2 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--ink-900); letter-spacing: -.01em;
}
.simple-head .more { font-size: 13px; color: var(--brand-primary-dk); font-weight: 500; }
.simple-head .more:hover { text-decoration: underline; }

/* Categories flat tile grid */
.simple-cats { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.simple-cats a {
  background: #FFFFFF; border: 1px solid var(--ink-200);
  border-radius: 8px; padding: 16px 8px; text-align: center;
  transition: border-color .15s, background .15s; display: block;
}
.simple-cats a:hover { border-color: var(--brand-primary); background: #F0F9FF; }
.simple-cats .ico { font-size: 24px; margin-bottom: 6px; }
.simple-cats .lb {
  font-size: 11.5px; font-weight: 500; color: var(--ink-700);
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Popular stores flat logo grid */
.simple-stores { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.simple-store {
  background: #FFFFFF; border: 1px solid var(--ink-200);
  border-radius: 8px; padding: 16px 10px; text-align: center;
  transition: border-color .15s; display: block;
}
.simple-store:hover { border-color: var(--brand-primary); }
.simple-store .lg {
  width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 8px;
  background: var(--ink-50); border: 1px solid var(--ink-200);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: var(--ink-800); overflow: hidden;
}
.simple-store .lg img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.simple-store .name { font-size: 12.5px; font-weight: 600; color: var(--ink-900); }
.simple-store .ct { font-size: 11px; color: var(--ink-500); margin-top: 2px; }

/* Responsive overrides */
@media (max-width: 900px) {
  .hero-floats { display: none; }
  .hero-features { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 1100px) {
  .simple-cats { grid-template-columns: repeat(5, 1fr); }
  .simple-stores { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .simple-cats { grid-template-columns: repeat(3, 1fr); }
  .simple-stores { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   STORE PAGE — taxonomy-stores.php
   ============================================================ */
.store-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--ink-200);
  padding: 28px 0 0;
}
.store-hero-inner {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}
.store-hero .logo {
  width: 120px; height: 120px;
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  color: white;
  letter-spacing: -.03em;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--brand-primary-lt);
  color: var(--brand-primary-dk);
}
.store-hero .logo img { width: 100%; height: 100%; object-fit: contain; }
.store-hero .info h1 { font-size: 36px; margin-bottom: 4px; }
.store-hero .info .meta { color: var(--ink-500); font-size: 14px; }
.store-hero .info .meta strong { color: var(--ink-800); }
.store-hero .actions { display: flex; gap: 8px; }
.store-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--ink-200);
  margin-bottom: -1px;
}
.store-tabs a {
  padding: 14px 18px;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-600);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.store-tabs a:hover { color: var(--ink-900); }
.store-tabs a.active { color: var(--brand-primary-dk); border-color: var(--brand-primary); font-weight: 600; }
.store-tabs a .ct {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--ink-100);
  font-size: 11px;
  font-weight: 600;
}

.store-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 32px 0;
}
.store-layout .filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-200);
  flex-wrap: wrap;
}
.store-layout .filter-bar .label {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-700);
}
.sort-select {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink-700);
  background: var(--paper);
  cursor: pointer;
}

/* Coupon row list */
#kcCouponList { display: flex; flex-direction: column; gap: 14px; }
.coupon-row {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 22px;
  align-items: center;
  transition: border-color .15s, box-shadow .15s;
}
.coupon-row:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}
.coupon-row .pct {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--brand-pink);
  width: 140px;
  min-width: 0;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
}
.coupon-row.is-deal .pct { font-style: italic; }
.coupon-row .pct .of {
  display: block;
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 500;
  font-family: var(--font-body);
  font-style: normal;
  letter-spacing: 0;
  margin-top: 4px;
}
.coupon-row .details h4 { font-size: 17px; margin-bottom: 6px; line-height: 1.35; }
.coupon-row .row-meta {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-500);
  flex-wrap: wrap;
  align-items: center;
}
.coupon-row .row-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  min-width: 160px;
}
.coupon-row .reveal {
  background: var(--brand-primary);
  color: white;
  border-radius: var(--r-md);
  padding: 13px 20px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--font-mono);
  font-size: 14px;
  position: relative;
  overflow: hidden;
  width: 100%;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background .15s;
}
.coupon-row .reveal:hover { background: var(--brand-primary-dk); }
.coupon-row .reveal span { position: relative; }
.coupon-row.is-deal .reveal {
  background: var(--brand-pink);
  font-family: var(--font-body);
  letter-spacing: 0;
  font-size: 15px;
}
.coupon-row.is-deal .reveal:hover { background: #db2777; }
.coupon-row .save-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-500);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
}
.coupon-row .save-btn:hover { color: var(--brand-pink); }

/* Sidebar cards */
.sidebar-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  border: 1px solid var(--ink-200);
  padding: 22px;
  margin-bottom: 18px;
}
.sidebar-card h5 {
  font-family: var(--font-body);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-500);
  margin: 0 0 14px;
  font-weight: 700;
}
.sidebar-card .stat-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-100);
  font-size: 13.5px;
}
.sidebar-card .stat-row:last-child { border-bottom: 0; }
.sidebar-card .stat-row strong { color: var(--ink-900); }
.sidebar-card .store-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink-100);
  font-size: 13.5px;
  color: var(--ink-700);
  text-decoration: none;
}
.sidebar-card .store-item:last-child { border-bottom: 0; }
.sidebar-card .store-item img {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  object-fit: contain;
  border: 1px solid var(--ink-100);
}
.sidebar-card .store-item .store-initial {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--brand-primary-lt);
  color: var(--brand-primary-dk);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.sidebar-card .store-item span { flex: 1; font-weight: 500; }
.sidebar-card .store-item .ct { font-size: 12px; color: var(--ink-500); }
.sidebar-card .cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink-100);
  font-size: 13.5px;
  color: var(--ink-700);
  text-decoration: none;
}
.sidebar-card .cat-item:last-child { border-bottom: 0; }
.sidebar-card .cat-item .emoji { font-size: 18px; }
.sidebar-card .cat-item span { flex: 1; font-weight: 500; }
.sidebar-card .cat-item .ct { font-size: 12px; color: var(--ink-500); }

.tip-box {
  background: linear-gradient(135deg, var(--brand-primary-lt) 0%, #FCE7F3 100%);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 18px;
}
.tip-box h6 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ink-900);
}
.tip-box p { font-size: 13px; color: var(--ink-700); margin: 0; }

/* Store about / FAQs */
.store-description { color: var(--ink-700); font-size: 15px; line-height: 1.7; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; margin-right: 8px; font-weight: 700; color: var(--brand-primary); }
.faq-item[open] summary::before { content: "−"; }


/* Newsletter — illustrated */
.simple-newsletter {
  position: relative;
  background:
    radial-gradient(circle at 15% 30%, rgba(14,165,233,.18) 0%, transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(236,72,153,.16) 0%, transparent 55%),
    linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: white;
  border-radius: 18px;
  padding: 56px 32px;
  text-align: center;
  overflow: hidden;
}
.simple-newsletter .nl-shapes { position: absolute; inset: 0; pointer-events: none; }
.simple-newsletter .nl-shapes svg { position: absolute; opacity: .25; }
.simple-newsletter .nl-shapes .s1 { top: 22px; left: 32px; }
.simple-newsletter .nl-shapes .s2 { bottom: 28px; right: 36px; }
.simple-newsletter .nl-shapes .s3 { top: 28px; right: 90px; }
.simple-newsletter .nl-shapes .s4 { bottom: 32px; left: 80px; }
.simple-newsletter .nl-inner { position: relative; max-width: 540px; margin: 0 auto; }
.simple-newsletter .nl-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-pink) 100%);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(236,72,153,.35);
}
.simple-newsletter h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
  color: white;
}
.simple-newsletter h3 em { font-style: italic; color: #FACC15; }
.simple-newsletter p { color: rgba(255,255,255,.75); font-size: 15px; margin-bottom: 22px; }
.simple-newsletter form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: white;
  padding: 5px;
  box-shadow: 0 8px 24px rgba(15,23,42,.35);
}
.simple-newsletter input { flex: 1; border: 0; padding: 10px 18px; font-size: 14px; background: transparent; color: var(--ink-900); }
.simple-newsletter input:focus { outline: none; }
.simple-newsletter button {
  background: var(--ink-900);
  color: white;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
}
.simple-newsletter .nl-trust {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
/* ============================================================
   SEARCH PANEL OVERLAY
   ============================================================ */
.search-toggle { display: none; }

.kc-search-panel {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--paper);
  z-index: 200;
  transform: translateY(-110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--ink-200);
}
.kc-search-panel.open { transform: translateY(0); }

.kc-search-panel-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.kc-search-panel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--brand-primary);
  border-radius: var(--r-pill);
  padding: 0 10px 0 20px;
  height: 54px;
  background: var(--paper);
}
.panel-search-icon { color: var(--ink-400); flex-shrink: 0; }
.kc-search-panel-row input {
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--ink-800);
  padding: 0 10px;
}
.kc-search-panel-row input:focus { outline: none; }
.kc-panel-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.kc-panel-close:hover { background: var(--ink-200); }
.kc-search-panel .search-suggest {
  position: static;
  margin-top: 8px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}

.kc-search-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11,18,32,.35);
  backdrop-filter: blur(2px);
  z-index: 199;
  display: none;
}
.kc-search-panel-backdrop.open { display: block; }

/* ============================================================
   NEWSLETTER FORM — spinner, inline error, feedback cards
   ============================================================ */

/* Loading spinner inside submit button */
.nl-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nlSpin .55s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}
@keyframes nlSpin { to { transform: rotate(360deg); } }

/* Inline field error */
.nl-email-error {
  display: block;
  min-height: 18px;
  color: #fca5a5;
  font-size: 12.5px;
  margin-top: 6px;
  padding: 0 2px;
  animation: nlFadeIn .15s ease;
}
.nl-email-error:empty { min-height: 0; }

/* Red border on invalid email input */
.simple-newsletter .nl-input-error,
.simple-newsletter input[aria-invalid="true"] {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, .25);
}

/* Feedback card (success / error) */
.nl-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  margin-top: 12px;
  animation: nlFadeIn .2s ease;
}
@keyframes nlFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}
.nl-feedback--success {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
}
.nl-feedback--error {
  background: rgba(248, 113, 113, .2);
  border: 1px solid rgba(248, 113, 113, .4);
  color: #fff;
}
.nl-feedback__icon {
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.nl-feedback__text { flex: 1; line-height: 1.45; }
.nl-feedback__dismiss {
  flex-shrink: 0;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.nl-feedback__dismiss:hover { background: rgba(255, 255, 255, .3); }


/* ============================================================
   MOBILE RESPONSIVE — HEADER
   ============================================================ */
@media (max-width: 900px) {
  .site-header .search-box { display: none; }
  .search-toggle { display: flex; }
  .site-header .container { gap: 10px; }
  .site-header .brand-mark { font-size: 18px; gap: 7px; }
  .site-header .brand-mark .logo {
    width: 32px; height: 32px;
    font-size: 15px; border-radius: 9px;
  }
  .topbar .container span.me-auto { display: none; }
}

@media (max-width: 420px) {
  .site-header .brand-mark span:not(.logo) { display: none; }
  .site-header .container { gap: 8px; height: 60px; }
  .topbar { display: none; }
  .affiliate-strip { display: none; }
}

/* ============================================================
   MOBILE RESPONSIVE — NEWSLETTER
   ============================================================ */
@media (max-width: 600px) {
  .simple-newsletter {
    padding: 36px 20px;
    margin-bottom: 32px;
  }
  .simple-newsletter .nl-shapes { display: none; }
  .simple-newsletter .nl-icon { width: 46px; height: 46px; margin-bottom: 12px; }
  .simple-newsletter h3 { font-size: 22px; }
  .simple-newsletter p { font-size: 14px; margin-bottom: 16px; }
  .simple-newsletter form {
    flex-direction: column;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    padding: 0;
    gap: 8px;
    box-shadow: none;
    max-width: 100%;
  }
  .simple-newsletter input {
    width: 100%;
    background: white;
    border-radius: var(--r-pill);
    padding: 0 20px;
    height: 48px;
    box-shadow: 0 2px 8px rgba(15,23,42,.18);
  }
  .simple-newsletter button {
    border-radius: var(--r-pill);
    width: 100%;
    height: 48px;
    font-size: 15px;
  }
  .simple-newsletter .nl-trust {
    flex-direction: column;
    gap: 4px;
    align-items: center;
    font-size: 11.5px;
  }
  button#kcSavedBtn {
        margin-left: auto;
    }
}



/* Responsive store page */
@media (max-width: 1024px) {
  .store-layout { grid-template-columns: 1fr; }
  .store-layout aside { display: none; }
}
@media (max-width: 768px) {
  .store-hero-inner { grid-template-columns: 80px 1fr; }
  .store-hero-inner .actions { display: none; }
  .store-hero .logo { width: 80px; height: 80px; font-size: 26px; }
  .store-hero .info h1 { font-size: 22px; }
  .coupon-row { grid-template-columns: 100px 1fr; gap: 14px; }
  .coupon-row .row-cta { display: none; }
  .coupon-row .pct { width: 100px; font-size: 22px; }
}


