/* ============================================================
   Munna Electronics — design system
   ============================================================ */
:root {
  --bg: #f1f3f6;
  --surface: #ffffff;
  --primary: #2874f0;
  --primary-dark: #1c5bc7;
  --primary-soft: #e7f0fe;
  --accent: #ff9f00;
  --accent-hot: #fb641b;
  --green: #388e3c;
  --red: #d32f2f;
  --ink: #212121;
  --ink-2: #4a4a4a;
  --ink-3: #878787;
  --line: #e0e0e0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, .12);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, .18);
  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 64px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; font-size: inherit; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }
svg { display: block; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ============ Header ============ */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 9px; color: #fff;
  align-items: center; justify-content: center; flex-shrink: 0; margin-right: -4px;
}
.menu-btn:hover { background: rgba(255, 255, 255, .14); }
.menu-btn .icon { width: 24px; height: 24px; stroke-width: 2.2; }
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-mark {
  /* white tile on purpose: the mark's headband and centre V are near-black and
     disappear against the blue header */
  width: 50px; height: 32px; border-radius: 9px; background: #fff;
  display: grid; place-items: center; padding: 4px 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.logo-mark img { display: block; width: 100%; height: auto; }

/* footer uses the full logo (light ink) instead of mark + text */
.footer-logo img { display: block; width: 190px; height: auto; }
.logo-text { line-height: 1.1; }
.logo-text .l1 { font-weight: 800; font-size: 17px; letter-spacing: .2px; }
.logo-text .l2 { font-size: 10.5px; font-style: italic; color: #ffe8bf; }
.logo-text .l2 b { color: #ffd54f; }

.search-wrap { flex: 1; max-width: 620px; position: relative; }
.search-form {
  display: flex; align-items: center; background: #fff; border-radius: 8px;
  overflow: hidden; height: 40px; box-shadow: var(--shadow-sm);
}
.search-form input {
  flex: 1; border: none; outline: none; padding: 0 14px; font-size: 14px; color: var(--ink);
  min-width: 0; background: transparent;
}
.search-form input::placeholder { color: #9aa0a6; }
.search-btn {
  height: 100%; padding: 0 16px; color: var(--primary); display: grid; place-items: center;
}
.suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; color: var(--ink); border-radius: 8px; box-shadow: var(--shadow-lg);
  overflow: hidden; display: none; z-index: 300; max-height: 420px; overflow-y: auto;
}
.suggestions.open { display: block; }
.sug-head { padding: 10px 14px 4px; font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .6px; display: flex; justify-content: space-between; align-items: center; }
.sug-head button { color: var(--primary); font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.sug-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 14px; cursor: pointer;
  border: none; width: 100%; text-align: left; background: #fff;
}
.sug-item:hover, .sug-item.active { background: var(--primary-soft); }
.sug-item img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.sug-item .sug-ico { width: 34px; height: 34px; border-radius: 6px; background: var(--bg); display: grid; place-items: center; color: var(--ink-3); flex-shrink: 0; }
.sug-item .sug-t { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-item .sug-t mark { background: none; color: var(--primary); font-weight: 700; }
.sug-item .sug-c { font-size: 11.5px; color: var(--ink-3); }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.h-action {
  display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; font-size: 14px;
  padding: 8px 12px; border-radius: 8px; position: relative;
}
.h-action:hover { background: rgba(255, 255, 255, .14); }
.badge {
  position: absolute; top: 2px; left: 22px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent-hot); color: #fff; border-radius: 9px; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--primary);
  transform: translateX(0); line-height: 1;
}
.badge:empty, .badge[data-zero="1"] { display: none; }

/* category strip + page links */
.cat-strip-wrap { background: var(--surface); box-shadow: var(--shadow-sm); }
.cat-strip-row { display: flex; align-items: center; gap: 18px; }
.cat-strip {
  display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; scrollbar-width: none;
  flex: 1; min-width: 0;
}
.strip-links {
  display: flex; align-items: center; gap: 20px; flex-shrink: 0; padding-left: 18px;
  border-left: 1px solid var(--line); align-self: stretch;
}
.strip-links a {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s;
}
.strip-links a:hover { color: var(--primary); }
.strip-links a.active { color: var(--primary); border-bottom-color: var(--primary); }
.strip-links .strip-wa {
  display: inline-flex; align-items: center; gap: 7px; background: #25D366; color: #fff;
  padding: 8px 14px; border-radius: 20px; border: none; font-weight: 700;
}
.strip-links .strip-wa:hover { color: #fff; filter: brightness(.95); }
.strip-links .strip-wa .icon { width: 15px; height: 15px; }

/* mid widths: tighten the links so the category chips keep their room */
@media (max-width: 1200px) {
  .cat-strip-row { gap: 12px; }
  .strip-links { gap: 14px; padding-left: 12px; }
  .strip-links a { font-size: 13px; }
  .strip-links .strip-wa { padding: 8px 10px; }
  .strip-links .strip-wa span { display: none; }
}

/* full mobile menu sheet */
.sheet-menu { max-height: 90vh; }
.menu-h {
  font-size: 11.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  color: var(--ink-3); margin: 18px 0 2px; padding-top: 12px; border-top: 1px solid var(--line);
}
.sheet-body > .menu-h:first-child { margin-top: 6px; padding-top: 0; border-top: none; }
.menu-row {
  display: flex; align-items: center; gap: 13px; padding: 13px 2px;
  font-size: 15px; font-weight: 600; border-bottom: 1px solid #f2f2f2;
}
.menu-row:last-of-type { border-bottom: none; }
.menu-row > .icon { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.menu-row span { flex: 1; }
.menu-row .menu-chev { width: 16px; height: 16px; color: var(--ink-3); }
.menu-policies { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 2px; }
.menu-policies a {
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: var(--bg); padding: 7px 12px; border-radius: 16px;
}
.menu-wa { margin: 18px 0 6px; }
.menu-foot { font-size: 12px; color: var(--ink-3); line-height: 1.6; padding-bottom: 4px; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-chip {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 13px;
  border-radius: 8px; min-width: 84px; flex-shrink: 0; color: var(--ink-2);
}
.cat-chip:hover { background: var(--primary-soft); color: var(--primary); }
.cat-chip.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.cat-chip img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.cat-chip span { font-size: 11.5px; font-weight: 600; white-space: nowrap; }

/* ============ Bottom nav (mobile) ============ */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 220;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav ul { display: flex; padding-top: 4px; }
.bottom-nav li { flex: 1; }
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 0 8px; color: var(--ink-3); font-size: 10.5px; font-weight: 600; position: relative;
}
.bn-item.active { color: var(--primary); }
.bn-item .badge { top: 2px; left: calc(50% + 4px); border-color: var(--surface); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14px; border-radius: 8px; padding: 11px 22px;
  transition: filter .15s, transform .05s; text-align: center;
}
.btn:active { transform: scale(.985); }
/* any glyph dropped into a button stays button-sized — an unsized <svg> stretches
   to fill its flex line, which is what broke the WhatsApp CTA */
.btn > svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-cart { background: var(--accent); color: #fff; }
.btn-buy { background: var(--accent-hot); color: #fff; }
.btn-cart:hover, .btn-buy:hover { filter: brightness(1.05); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { filter: brightness(0.95); }
.btn-wa svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn-wa-sq { flex: 0 0 auto !important; width: 52px; padding: 13px 0 !important; }
.btn-wa-sq svg { width: 24px; height: 24px; }
.btn-outline { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { color: var(--primary); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ============ Product cards ============ */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px;
}
.p-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s;
  display: flex; flex-direction: column;
}
.p-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.p-media { position: relative; aspect-ratio: 1; background: var(--bg); }
.p-media img { width: 100%; height: 100%; object-fit: cover; }
.p-tag {
  position: absolute; top: 10px; left: 0; background: var(--green); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 3px 9px 3px 7px; border-radius: 0 4px 4px 0;
  letter-spacing: .3px;
}
.p-tag.tag-new { background: var(--primary); }
.p-tag.tag-deal { background: var(--accent-hot); }
.p-tag.tag-out { background: #757575; }
.wish-btn {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; color: #b8b8b8;
  box-shadow: var(--shadow-sm); transition: color .15s, transform .15s;
}
.wish-btn:hover { transform: scale(1.1); }
.wish-btn.on { color: var(--red); }
.wish-btn.on .icon { fill: var(--red); }
.wish-btn .icon { width: 17px; height: 17px; }
.p-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-brand { font-size: 11.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.p-name {
  font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.p-rating { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.rate-pill {
  background: var(--green); color: #fff; font-size: 11px; font-weight: 700;
  padding: 1.5px 6px; border-radius: 4px; display: inline-flex; align-items: center; gap: 3px;
}
.rate-pill.low { background: #ff9f00; }
.rate-pill svg { width: 9px; height: 9px; fill: #fff; stroke: none; }
.p-rcount { font-size: 12px; color: var(--ink-3); }
.assured { font-size: 10px; font-weight: 800; color: var(--primary); background: var(--primary-soft); padding: 2px 6px; border-radius: 4px; letter-spacing: .3px; }
.p-price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 2px; }
.p-price { font-size: 16px; font-weight: 800; }
.p-mrp { font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; }
.p-off { font-size: 12.5px; color: var(--green); font-weight: 700; }
.p-deliver { font-size: 11.5px; color: var(--ink-3); }
.p-cta { margin-top: auto; padding-top: 8px; }
.p-cta .btn { width: 100%; padding: 9px 10px; font-size: 13px; }

/* horizontal product scroller */
.h-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; }
.h-scroll::-webkit-scrollbar { height: 6px; }
.h-scroll::-webkit-scrollbar-thumb { background: #cfd4da; border-radius: 3px; }
.h-scroll .p-card { min-width: 200px; max-width: 200px; scroll-snap-align: start; }

/* ============ Home ============ */
.hero { position: relative; margin: 14px auto 0; }
.hero-track { display: flex; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.hero-slide {
  min-width: 100%; padding: 40px 48px; color: #fff; display: flex; align-items: center; gap: 24px;
  min-height: 240px; transition: none;
}
.hero-slide.has-img {
  background-size: cover;
  background-position: right center;
  min-height: 320px;
  aspect-ratio: 1600 / 600;
  max-height: 470px;
}
.hero-slide.has-img .hero-title, .hero-slide.has-img .hero-sub, .hero-slide.has-img .hero-kicker {
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.hero-slide .hs-body { max-width: 560px; }
.hero-kicker { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; opacity: .85; margin-bottom: 8px; }
.hero-title { font-size: clamp(24px, 4vw, 40px); font-weight: 800; line-height: 1.12; margin-bottom: 10px; }
.hero-sub { font-size: 15px; opacity: .92; margin-bottom: 20px; }
.hero-cta { background: #fff; color: var(--ink); font-weight: 800; padding: 11px 24px; border-radius: 8px; display: inline-block; }
.hero-dots { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); display: flex; }
.hero-dots button { width: 34px; height: 34px; display: grid; place-items: center; background: none; }
.hero-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); transition: width .2s; }
.hero-dots button.active::before { background: #fff; width: 22px; border-radius: 4px; }
.hero-art { margin-left: auto; flex-shrink: 0; }
.hero-art img { width: 190px; height: 190px; border-radius: 18px; box-shadow: var(--shadow-lg); transform: rotate(4deg); }

.section { margin: 22px auto; }
.section-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-title { font-size: 19px; font-weight: 800; }
.section-link { color: var(--primary); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; }

.cat-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-tile {
  background: var(--surface); border-radius: var(--radius); padding: 14px 10px 12px; text-align: center;
  box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s;
}
.cat-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-tile img { width: 66px; height: 66px; border-radius: 14px; margin: 0 auto 8px; object-fit: cover; }
.cat-tile .ct-name { font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.cat-tile .ct-count { font-size: 11px; color: var(--ink-3); }

.promo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promo-banner {
  border-radius: var(--radius); padding: 26px 28px; color: #fff; min-height: 150px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.promo-banner::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px;
  border-radius: 50%; background: rgba(255,255,255,.12);
}
.promo-banner.has-img {
  background-size: cover; background-position: right center; min-height: 190px;
}
.promo-banner.has-img::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,10,24,.78) 0%, rgba(8,10,24,.45) 55%, rgba(8,10,24,.08) 100%);
}
.promo-banner.has-img::after { display: none; }
.promo-banner.has-img > * { position: relative; z-index: 1; text-shadow: 0 2px 10px rgba(0,0,0,.5); }

/* "also in store" image tiles */
.instore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.instore-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 130px;
  background-size: cover; background-position: center; display: flex; align-items: flex-end;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.instore-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.instore-tile::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,10,24,0) 30%, rgba(8,10,24,.75) 100%);
}
.instore-tile span {
  position: relative; z-index: 1; color: #fff; font-weight: 800; font-size: 14.5px;
  padding: 12px 14px; text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* shop category banner — short strip so products stay visible in the same viewport */
.cat-banner { margin-top: 12px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cat-banner img { width: 100%; display: block; height: 190px; object-fit: cover; object-position: right center; }
.promo-banner h3 { font-size: 21px; font-weight: 800; }
.promo-banner p { font-size: 13.5px; opacity: .92; }
.promo-banner span { font-weight: 800; font-size: 13px; margin-top: 6px; text-decoration: underline; text-underline-offset: 3px; }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.trust-item .icon { width: 26px; height: 26px; color: var(--primary); flex-shrink: 0; }
.trust-item b { display: block; font-size: 13.5px; }
.trust-item small { color: var(--ink-3); font-size: 12px; }

/* ============ Shop / listing ============ */
.shop-layout { display: grid; grid-template-columns: 264px 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.filters {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--header-total, var(--header-h)) + 12px);
  max-height: calc(100vh - var(--header-total, var(--header-h)) - 24px);
  overflow-y: auto; overscroll-behavior: contain;
}
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.filters-head h2 { font-size: 16px; font-weight: 800; }
.filters-head button { color: var(--primary); font-weight: 700; font-size: 13px; }
.f-group { border-bottom: 1px solid var(--line); padding: 12px 16px 14px; }
.f-group:last-child { border-bottom: none; }
.f-title { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.f-opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.f-opt input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.f-opt .cnt { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.f-more { color: var(--primary); font-weight: 700; font-size: 12.5px; margin-top: 6px; }
.price-inputs { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.price-inputs input {
  width: 100%; min-width: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px;
}
.price-inputs button { color: var(--primary); font-weight: 800; font-size: 13px; padding: 6px 4px; }

.shop-main { min-width: 0; }
.shop-toolbar {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 12px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.result-info { font-size: 13.5px; color: var(--ink-2); }
.result-info b { color: var(--ink); }
.sort-wrap { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.sort-wrap select {
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font-size: 13.5px;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line);
  padding: 5px 8px 5px 12px; border-radius: 16px; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.chip button { position: relative; display: grid; place-items: center; color: var(--ink-3); }
.chip button::after { content: ''; position: absolute; inset: -12px; } /* 40px effective touch target */
.chip button:hover { color: var(--red); }
.chip button .icon { width: 14px; height: 14px; }

.shop-grid { margin-top: 12px; }
.load-more-wrap { text-align: center; margin: 20px 0 8px; }

.empty-state { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; padding: 56px 24px; margin-top: 12px; }
.empty-state .icon { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--ink-3); stroke-width: 1.4; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; }
.empty-state p { color: var(--ink-3); margin-bottom: 18px; }

/* mobile filter/sort bar */
.mobile-bar {
  display: none; position: sticky; top: var(--header-total, var(--header-h)); z-index: 150;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-top: 10px;
}
/* masks the strip of page that would otherwise show through between the
   header and this bar while the results scroll underneath */
.mobile-bar::before {
  content: ''; position: absolute; left: -10px; right: -10px; top: -11px; height: 11px;
  background: var(--bg);
}
.mobile-bar .mb-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px;
  font-weight: 700; font-size: 13.5px; color: var(--ink-2);
}
.mobile-bar .mb-btn + .mb-btn { border-left: 1px solid var(--line); }
.mobile-bar .mb-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hot); display: none; }
.mobile-bar .mb-btn.has-active .dot { display: block; }

/* bottom sheets */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 400; opacity: 0;
  pointer-events: none; transition: opacity .2s;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 410; background: var(--surface);
  border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform .25s ease;
  max-height: 82vh; display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sheet.open { transform: translateY(0); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { font-size: 16px; font-weight: 800; }
.sheet-head button { color: var(--ink-3); }
.sheet-body { overflow-y: auto; padding: 6px 18px 14px; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; }
.sort-opt { display: flex; align-items: center; gap: 12px; padding: 13px 2px; font-size: 14.5px; border-bottom: 1px solid #f2f2f2; width: 100%; text-align: left; }
.sort-opt:last-child { border-bottom: none; }
.sort-opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #bdbdbd; flex-shrink: 0; display: grid; place-items: center; }
.sort-opt.active { color: var(--primary); font-weight: 700; }
.sort-opt.active .radio { border-color: var(--primary); }
.sort-opt.active .radio::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.cat-sheet-item { display: flex; align-items: center; gap: 14px; padding: 11px 2px; border-bottom: 1px solid #f2f2f2; font-weight: 600; }
.cat-sheet-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.cat-sheet-item small { display: block; color: var(--ink-3); font-weight: 500; }

/* ============ Breadcrumb ============ */
.crumbs { font-size: 12.5px; color: var(--ink-3); margin: 14px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { color: #c4c9cf; }

/* ============ Product detail ============ */
.pdp { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 20px; margin-top: 14px; align-items: start; }
.pdp-gallery { position: sticky; top: calc(var(--header-total, var(--header-h)) + 12px); }
.pdp-media {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 18px; position: relative;
}
.pdp-media > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pdp-thumbs button {
  width: 58px; height: 58px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0;
}
.pdp-thumbs button.active { border-color: var(--primary); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-ctas { display: flex; gap: 10px; margin-top: 12px; }
.pdp-ctas .btn { flex: 1; padding: 14px 10px; font-size: 15px; }
.pdp-info { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px; min-width: 0; }
.pdp-brand { color: var(--ink-3); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.pdp-title { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 4px 0 10px; }
.pdp-rating-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pdp-price-row { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 2px; flex-wrap: wrap; }
.pdp-price { font-size: 28px; font-weight: 800; }
.pdp-mrp { font-size: 16px; color: var(--ink-3); text-decoration: line-through; }
.pdp-off { font-size: 15px; color: var(--green); font-weight: 800; }
.tax-note { font-size: 12px; color: var(--green); font-weight: 600; }
.stock-note { margin-top: 8px; font-size: 13px; font-weight: 700; }
.stock-note.ok { color: var(--green); }
.stock-note.low { color: var(--accent-hot); }
.stock-note.out { color: var(--red); }

.offers { margin: 16px 0; }
.offers h3, .pdp-sec h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.offer-item { display: flex; gap: 9px; padding: 4px 0; font-size: 13.5px; color: var(--ink-2); }
.offer-item .icon { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
.offer-item b { color: var(--ink); }


.pdp-short {
  font-size: 14.5px; line-height: 1.65; color: var(--ink-2);
  margin-top: 14px; padding-left: 13px; border-left: 3px solid var(--primary-soft);
}
.pdp-desc { font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.pdp-desc p { margin-bottom: 11px; }
.pdp-desc p:last-child { margin-bottom: 0; }
.pdp-desc ul, .pdp-desc ol { margin: 0 0 11px 20px; }
.pdp-desc li { list-style: disc; margin-bottom: 5px; }
.pdp-desc ol li { list-style: decimal; }
.pdp-desc h2, .pdp-desc h3, .pdp-desc h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 14px 0 7px; }
.pdp-desc a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pdp-desc table { width: 100%; border-collapse: collapse; margin-bottom: 11px; font-size: 13.5px; }
.pdp-desc td, .pdp-desc th { border: 1px solid var(--line); padding: 7px 9px; text-align: left; }
.pdp-desc img { max-width: 100%; height: auto; border-radius: 8px; }

.pdp-sec { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.hl-list li { display: flex; gap: 9px; padding: 3px 0; font-size: 13.5px; color: var(--ink-2); }
.hl-list .icon { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table td { padding: 8px 10px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.spec-table td:first-child { color: var(--ink-3); width: 38%; }
.rating-summary { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.rating-big { text-align: center; }
.rating-big .num { font-size: 34px; font-weight: 800; }
.rating-big .num span { font-size: 18px; color: var(--ink-3); }
.rating-big small { color: var(--ink-3); display: block; margin-top: 2px; }
.rating-bars { flex: 1; min-width: 200px; max-width: 360px; }
.rb-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); padding: 2px 0; }
.rb-track { flex: 1; height: 5px; background: #eee; border-radius: 3px; overflow: hidden; }
.rb-fill { height: 100%; background: var(--green); border-radius: 3px; }
.rb-row:nth-last-child(2) .rb-fill { background: #ff9f00; }
.rb-row:last-child .rb-fill { background: var(--red); }

/* sticky mobile PDP bar */
.pdp-mobile-bar {
  display: none; position: fixed; bottom: calc(58px + env(safe-area-inset-bottom, 0)); left: 0; right: 0; z-index: 210;
  background: var(--surface); box-shadow: 0 -2px 12px rgba(0,0,0,.12);
  padding: 10px 12px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.pdp-mobile-bar .btn { flex: 1; padding: 13px 8px; }

/* ============ Cart ============ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 14px; margin-top: 14px; align-items: start; }
.cart-list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.cart-list-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 16px; }
.cart-item { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 92px; height: 92px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.ci-body { flex: 1; min-width: 0; }
.ci-name { font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-name:hover { color: var(--primary); }
.ci-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.ci-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.ci-price { font-weight: 800; font-size: 16px; }
.ci-actions { display: flex; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.qty-stepper button { width: 32px; height: 32px; display: grid; place-items: center; font-size: 17px; font-weight: 700; color: var(--ink-2); background: #fafafa; }
.qty-stepper button:hover { background: var(--primary-soft); color: var(--primary); }
.qty-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.qty-stepper span { min-width: 38px; text-align: center; font-weight: 700; font-size: 14px; }
.link-btn { color: var(--ink-2); font-weight: 700; font-size: 13px; }
.link-btn:hover { color: var(--primary); }
.link-btn.danger:hover { color: var(--red); }

.summary-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-total, var(--header-h)) + 12px); overflow: hidden; }
.summary-card h3 { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .8px; }
.sum-body { padding: 8px 18px 14px; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.sum-row .free { color: var(--green); font-weight: 700; }
.sum-row.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 13px; font-size: 16.5px; font-weight: 800; }
.sum-save { color: var(--green); font-weight: 700; font-size: 13.5px; padding: 10px 18px; border-top: 1px solid var(--line); background: #f0f9f1; }
.sum-cta { padding: 14px 18px; border-top: 1px solid var(--line); }
.coupon-row { display: flex; gap: 8px; padding: 4px 0 10px; }
.coupon-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; font-size: 13px; text-transform: uppercase; }
.coupon-msg { font-size: 12.5px; margin-bottom: 6px; }
.coupon-msg.ok { color: var(--green); }
.coupon-msg.err { color: var(--red); }
.coupon-hints { font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }
.coupon-hints code { background: var(--bg); padding: 1px 6px; border-radius: 4px; font-weight: 700; color: var(--primary-dark); cursor: pointer; }

/* ============ Checkout ============ */
.co-layout { display: grid; grid-template-columns: 1fr 360px; gap: 14px; margin-top: 14px; align-items: start; }
.co-step { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden; }
.co-step-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; }
.co-num { width: 24px; height: 24px; border-radius: 5px; background: var(--bg); color: var(--primary); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex-shrink: 0; }
.co-step.active .co-step-head { background: var(--primary); color: #fff; }
.co-step.active .co-num { background: rgba(255,255,255,.2); color: #fff; }
.co-step-head h3 { font-size: 15px; font-weight: 800; flex: 1; }
.co-step-head .done-check { color: var(--green); display: none; }
.co-step.done .done-check { display: block; }
.co-step.active .done-check { color: #fff; }
.co-step-body { padding: 16px 18px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.form-field input, .form-field textarea, .form-field select {
  border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; font-size: 14px; outline: none;
  background: var(--surface); color: var(--ink); width: 100%;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-field .err-msg { color: var(--red); font-size: 11.5px; display: none; }
.form-field.invalid input, .form-field.invalid textarea { border-color: var(--red); }
.form-field.invalid .err-msg { display: block; }
.pay-opt { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 10px; cursor: pointer; }
.pay-opt input { margin-top: 3px; accent-color: var(--primary); width: 17px; height: 17px; }
.pay-opt b { font-size: 14.5px; }
.pay-opt small { display: block; color: var(--ink-3); margin-top: 2px; font-size: 12.5px; }
.pay-opt.selected { border-color: var(--primary); background: var(--primary-soft); }
.upi-box { margin: 4px 0 10px 29px; display: none; }
.upi-box.show { display: block; }
.upi-box input { border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; width: 100%; max-width: 300px; font-size: 13.5px; }
.co-items { display: flex; flex-direction: column; gap: 10px; }
.co-item { display: flex; gap: 12px; align-items: center; }
.co-item img { width: 54px; height: 54px; border-radius: 7px; }
.co-item .n { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.co-item .m { font-size: 12px; color: var(--ink-3); }
.co-item .p { margin-left: auto; font-weight: 800; white-space: nowrap; }

.order-error {
  margin: 14px 18px 18px; background: #fdecea; border-radius: var(--radius);
  padding: 15px 17px; font-size: 13.5px; color: #a52218; line-height: 1.6;
}
.order-error b { display: block; margin-bottom: 4px; font-size: 14px; }
.order-error p { color: var(--ink-2); margin-bottom: 11px; }

/* order success */
.success-wrap { max-width: 560px; margin: 40px auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 44px 30px; text-align: center; }
.success-ring {
  width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%; background: #e8f5e9;
  display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1);
}
.success-ring .icon { width: 44px; height: 44px; color: var(--green); stroke-width: 2.6; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success-wrap h1 { font-size: 23px; margin-bottom: 6px; }
.success-wrap .oid { color: var(--primary); font-weight: 800; }
.success-wrap p { color: var(--ink-2); margin-bottom: 6px; }
.success-ctas { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ============ Orders ============ */
.order-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden; }
.order-head { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.order-head b { color: var(--ink); }
.status-chip { padding: 3px 11px; border-radius: 14px; font-size: 12px; font-weight: 800; margin-left: auto; }
.status-chip.confirmed { background: #e8f5e9; color: var(--green); }
.status-chip.cancelled { background: #fdecea; color: var(--red); }
.order-items { padding: 8px 18px; }
.order-foot { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.order-foot .total { font-weight: 800; font-size: 15px; }
.order-foot .eta { color: var(--ink-3); font-size: 13px; }
.order-foot .actions { margin-left: auto; display: flex; gap: 14px; }

/* ============ Page headers / static pages ============ */
.page-title-band {
  background: var(--surface); box-shadow: var(--shadow-sm); border-radius: var(--radius);
  padding: 20px 22px; margin: 14px 0;   /* bottom margin: whatever follows used to touch it */
}
.page-title-band h1 { font-size: 22px; }
.page-title-band p { color: var(--ink-3); margin-top: 3px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; margin-top: 14px; align-items: start; }
.info-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; }
.info-row { display: flex; gap: 13px; padding: 10px 0; align-items: flex-start; }
.info-row .icon { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.info-row b { display: block; font-size: 14px; }
.info-row span { color: var(--ink-2); font-size: 13.5px; }

/* ============ WhatsApp floating button ============ */
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .45), 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab::before { /* pulse ring */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; opacity: .55; z-index: -1;
  animation: wa-pulse 2.4s cubic-bezier(.24, .6, .4, 1) infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .5; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.wa-fab:hover { background: #1fb457; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(37, 211, 102, .5); }
.wa-fab:active { transform: translateY(-1px) scale(.97); }
.wa-fab-label {
  position: absolute; right: calc(100% + 12px); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
  padding: 8px 13px; border-radius: 8px; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .18s, transform .18s;
}
.wa-fab-label::after {
  content: ''; position: absolute; left: 100%; top: 50%; margin-top: -5px;
  border: 5px solid transparent; border-left-color: var(--ink);
}
.wa-fab:hover .wa-fab-label, .wa-fab:focus-visible .wa-fab-label { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .wa-fab::before { animation: none; }
  .wa-fab, .wa-fab-label { transition: none; }
}

/* ============ Shop assistant (chatbot) ============ */
.cb-fab {
  position: fixed; right: 24px; bottom: 94px; z-index: 200;
  height: 52px; padding: 0 18px 0 15px; border-radius: 26px;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 9px;
  box-shadow: 0 6px 20px rgba(40, 116, 240, .42), 0 2px 6px rgba(0, 0, 0, .16);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.cb-fab:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(40, 116, 240, .5); }
.cb-fab:active { transform: translateY(-1px) scale(.97); }
.cb-fab .icon { width: 22px; height: 22px; flex-shrink: 0; }

.cb-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 420;
  width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 48px);
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(.97); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.cb-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.cb-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: var(--primary); color: #fff; }
.cb-ava {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #ffd54f, #ff9f00); color: #1c3f8f;
  display: grid; place-items: center;
}
.cb-ava .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.cb-head-t { flex: 1; line-height: 1.25; }
.cb-head-t b { font-size: 14.5px; display: block; }
.cb-head-t small { font-size: 11.5px; opacity: .85; }
.cb-close { color: #fff; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.cb-close:hover { background: rgba(255, 255, 255, .16); }

.cb-log { flex: 1; overflow-y: auto; padding: 16px 14px; background: var(--bg); overscroll-behavior: contain; }
.cb-msg {
  max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 13.8px; line-height: 1.55;
  margin-bottom: 10px; word-wrap: break-word;
}
.cb-bot { background: var(--surface); color: var(--ink); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.cb-user { background: var(--primary); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.cb-msg b { font-weight: 700; }
.cb-inline { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.cb-typing { display: flex; gap: 4px; padding: 13px; }
.cb-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b9c0cc; animation: cb-blink 1.2s infinite; }
.cb-typing span:nth-child(2) { animation-delay: .18s; }
.cb-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes cb-blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.cb-cards { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cb-card { display: flex; gap: 10px; align-items: center; background: var(--bg); border-radius: 10px; padding: 8px; }
.cb-card:hover { background: var(--primary-soft); }
.cb-card img { width: 46px; height: 46px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.cb-card-b { min-width: 0; }
.cb-card-b b { display: block; font-size: 12.8px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cb-price { font-size: 13px; font-weight: 800; color: var(--ink); }
.cb-price s { color: var(--ink-3); font-weight: 500; font-size: 11.5px; }
.cb-more { margin-top: 9px; font-size: 13px; }
.cb-more a { color: var(--primary); font-weight: 700; }
.cb-wa {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 11px;
  background: #25D366; color: #fff; font-weight: 700; font-size: 13px;
  padding: 9px 14px; border-radius: 20px;
}
.cb-wa svg { width: 16px; height: 16px; }

.cb-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.cb-chip {
  background: var(--surface); border: 1px solid var(--primary); color: var(--primary);
  font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 16px;
}
.cb-chip:hover { background: var(--primary); color: #fff; }

.cb-form { display: flex; gap: 8px; padding: 11px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.cb-form input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 22px;
  padding: 11px 15px; font-size: 14px; outline: none;
}
.cb-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.cb-send {
  width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.cb-send:hover { background: var(--primary-dark); }

@media (prefers-reduced-motion: reduce) {
  .cb-fab, .cb-panel { transition: none; }
  .cb-typing span { animation: none; }
  .cat-strip-wrap { transition: none; }
}

/* ============ Toast ============ */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: #323232; color: #fff; border-radius: 8px; padding: 11px 18px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px;
  animation: toast-in .25s ease; max-width: min(92vw, 420px); pointer-events: auto;
}
.toast .icon { width: 17px; height: 17px; color: #7ee787; flex-shrink: 0; }
.toast.err .icon { color: #ff8f8f; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============ Shop gallery ============ */
.gal-filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.gal-filters::-webkit-scrollbar { display: none; }
.gal-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--ink-2);
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.gal-chip:hover { border-color: var(--primary); color: var(--primary); }
.gal-chip .n { font-size: 11px; font-weight: 800; color: var(--ink-3); background: var(--bg); border-radius: 10px; padding: 1px 6px; }
.gal-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.gal-chip.on .n { background: rgba(255, 255, 255, .22); color: #fff; }

.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gal-item {
  position: relative; display: block; padding: 0; border: 0; cursor: zoom-in;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s;
}
.gal-item:hover, .gal-item:focus-visible { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.gal-item img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gal-cap {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: left;
  padding: 22px 12px 10px; font-size: 12.5px; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(6, 12, 22, .82), rgba(6, 12, 22, 0));
}

/* lightbox */
.lbox { position: fixed; inset: 0; z-index: 400; background: rgba(9, 13, 20, .93); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lbox[hidden] { display: none; }
.lbox-fig { max-width: 1200px; max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.lbox-fig img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 6px; }
.lbox-fig figcaption { text-align: center; color: #d6dced; font-size: 13px; font-weight: 600; }
.lbox-close {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1;
}
.lbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 60px; border: 0; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1;
}
.lbox-nav:hover, .lbox-close:hover { background: rgba(255, 255, 255, .26); }
.lbox-nav.prev { left: 10px; }
.lbox-nav.next { right: 10px; }

/* photos on the about and contact pages.
   These are banner crops (5:2) cut from the full-resolution originals, not the
   3:2 frames squeezed down — a 3:2 hero at full width towers over the page, and
   a fixed pixel height cropped the shop's own signboard off the top. */
.about-hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); margin: 0 0 16px;
}
.about-hero img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; }
.about-hero figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px;
  color: #fff; font-size: 13px; font-weight: 600;
  background: linear-gradient(to top, rgba(6, 12, 22, .85), rgba(6, 12, 22, 0));
}
.about-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 16px; }
/* home strip sits between two dense sections — a shorter, wider crop keeps it
   from dominating the page */
body[data-page="home"] .about-photos img { aspect-ratio: 16 / 9; }
.about-photos a { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); display: block; }
/* height:auto is load-bearing — the img height attribute is a presentational
   hint, so without it the tile renders at the file's pixel height and cover
   crops a tall sliver out of a landscape photo */
.about-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .25s; }
.about-photos a:hover img { transform: scale(1.04); }

@media (max-width: 860px) {
  .gal-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  /* a 5:2 banner gets too short to read on a phone — go taller there */
  .about-hero img { aspect-ratio: 16 / 9; }
  .gal-cap { font-size: 11.5px; padding: 18px 9px 8px; }
  .lbox-nav { width: 38px; height: 52px; font-size: 26px; }
  .lbox-fig img { max-height: calc(100vh - 150px); }
}
@media (max-width: 420px) {
  .gal-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ Footer ============ */
.site-footer { background: #172337; color: #cfd6e4; margin-top: 34px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 26px; padding: 34px 16px 26px; max-width: 1280px; margin: 0 auto; }
.footer-brand .logo-text .l1 { color: #fff; }
.f-col h4 { color: #8b96ad; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.f-col a { display: block; padding: 4px 0; font-size: 13px; color: #cfd6e4; }
.f-col a:hover { color: #fff; }
.footer-brand p { font-size: 13px; line-height: 1.6; margin-top: 10px; color: #9aa6bd; max-width: 300px; }
.footer-bottom { border-top: 1px solid #263752; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0)); text-align: center; font-size: 12.5px; color: #8b96ad; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; }
.footer-bottom .credit a { color: #b9c4d6; font-weight: 600; }
.footer-bottom .credit a:hover { color: #fff; text-decoration: underline; }

/* ============ 404 ============ */
.nf-wrap { text-align: center; padding: 70px 20px; }
.nf-wrap .big { font-size: 90px; font-weight: 800; color: var(--primary); line-height: 1; }
.nf-wrap h1 { font-size: 22px; margin: 10px 0 6px; }
.nf-wrap p { color: var(--ink-3); margin-bottom: 22px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cat-tiles { grid-template-columns: repeat(4, 1fr); }
  .shop-layout { grid-template-columns: 232px 1fr; }
  .pdp { grid-template-columns: minmax(300px, 380px) 1fr; }
  .cart-layout, .co-layout { grid-template-columns: 1fr 320px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 108px; }
  /* one line each, or the credit runs under the fixed WhatsApp FAB */
  .footer-bottom { flex-direction: column; gap: 7px; }
  /* .header-inner is also .container — needs the extra specificity so the
     narrow-screen `.container { padding: 0 10px }` rule cannot zero this out */
  .site-header .header-inner {
    flex-wrap: wrap; gap: 0 12px; height: auto; row-gap: 12px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
  }
  .search-wrap { order: 3; flex-basis: 100%; max-width: none; padding-bottom: 12px; }
  .header-actions { margin-left: auto; }
  .h-action span { display: none; }
  .hide-mobile { display: none !important; }

  .menu-btn { display: inline-flex; }
  .strip-links { display: none; }

  /* the hamburger sheet and the bottom nav already cover categories, so the
     strip only earns its space on the shop page */
  .cat-strip-wrap { display: none; }
  body[data-page="shop"] .cat-strip-wrap {
    display: block; overflow: hidden; max-height: 120px;
    transition: max-height .26s ease, opacity .18s ease;
    /* the strip lives in a sticky header, so collapsing it changes the document
       height. Without this, Chrome on Android "helpfully" adjusts scrollY to
       compensate, the scroll handler reads that as a gesture, and the strip
       flickers open/closed. */
    overflow-anchor: none;
  }
  /* and even there it steps aside while you scroll down */
  body[data-page="shop"] .site-header.strip-hidden .cat-strip-wrap { max-height: 0; opacity: 0; }
  /* fade the right edge so a part-visible chip reads as "scroll for more", not "cut off" */
  .cat-strip-row { padding-left: 16px; padding-right: 0; position: relative; }
  .cat-strip { padding-right: 40px; }
  .cat-strip-row::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 42px; pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--surface) 72%);
  }
  .bottom-nav { display: block; }
  body { padding-bottom: 70px; }

  /* stack above the bottom nav (and above the product page's sticky CTA bar) */
  .wa-fab { right: 14px; bottom: calc(72px + env(safe-area-inset-bottom, 0)); width: 52px; height: 52px; }
  .wa-fab svg { width: 29px; height: 29px; }
  .wa-fab-label { display: none; }
  /* product pages already carry a WhatsApp button in the sticky CTA bar */
  body.pdp-page .wa-fab { display: none; }

  /* assistant sits just above the WhatsApp button */
  .cb-fab {
    right: 14px; bottom: calc(134px + env(safe-area-inset-bottom, 0));
    height: 46px; padding: 0 15px 0 13px; font-size: 13px;
  }
  body.pdp-page .cb-fab { bottom: calc(150px + env(safe-area-inset-bottom, 0)); }
  .cb-panel {
    right: 0; left: 0; bottom: 0; width: 100%; max-width: none;
    height: 86vh; max-height: 86vh; border-radius: 18px 18px 0 0;
    transform: translateY(100%); transition: transform .26s ease, opacity .2s ease;
  }
  .cb-panel.open { transform: translateY(0); }
  body.cb-open { overflow: hidden; }
  body.cb-open .wa-fab, body.cb-open .cb-fab, body.cb-open .bottom-nav { display: none; }

  /* keep toasts clear of the button */
  .toast-wrap { bottom: calc(136px + env(safe-area-inset-bottom, 0)); }
  body.pdp-page .toast-wrap { bottom: calc(140px + env(safe-area-inset-bottom, 0)); }

  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .mobile-bar { display: flex; }
  .shop-toolbar .sort-wrap { display: none; }

  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .pdp-ctas { display: none; }
  .pdp-mobile-bar { display: flex; }
  body.pdp-page { padding-bottom: 140px; }

  .cart-layout, .co-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }

  .hero-slide { padding: 26px 22px; min-height: 200px; }
  .hero-slide.has-img { aspect-ratio: auto; min-height: 250px; max-height: none; background-position: 74% center; }
  .hero-art { display: none; }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .promo-duo { grid-template-columns: 1fr; }
  /* banners are 1600x600 — give them their true ratio so nothing is chopped off */
  .instore-grid { grid-template-columns: repeat(2, 1fr); }
  .instore-tile { min-height: 0; aspect-ratio: 1600 / 600; }
  .cat-banner img { height: auto; aspect-ratio: 1600 / 600; object-position: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 10px; }
  /* keep logo + hamburger + actions on ONE row */
  .menu-btn { width: 34px; height: 34px; margin-right: -6px; }
  .menu-btn .icon { width: 21px; height: 21px; }
  .logo-mark { width: 42px; height: 28px; border-radius: 8px; padding: 3px 4px; }
  .footer-logo img { width: 165px; }
  .logo-text .l1 { font-size: 15px; }
  .header-actions { gap: 0; }
  .h-action { padding: 8px 9px; }
  .h-action .icon { width: 22px; height: 22px; }
  .badge { left: 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .p-body { padding: 8px 10px 10px; }
  .p-name { font-size: 12.5px; }
  .p-price { font-size: 14.5px; }
  .p-cta .btn { font-size: 12px; padding: 8px 6px; }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-tile img { width: 54px; height: 54px; }
  .section-title { font-size: 16.5px; }
  .h-scroll .p-card { min-width: 160px; max-width: 160px; }
  /* one column so each wide banner shows in full instead of a narrow slice */
  .instore-grid { grid-template-columns: 1fr; gap: 10px; }
  .instore-tile span { font-size: 15.5px; padding: 14px 16px; }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trust-item { padding: 11px 12px; gap: 9px; }
  .trust-item b { font-size: 12.5px; }
  .trust-item small { font-size: 11px; }
  .cart-item { padding: 13px 12px; gap: 10px; }
  .cart-item img { width: 74px; height: 74px; }
  .pdp-info { padding: 16px; }
  .pdp-title { font-size: 17px; }
  .pdp-price { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; padding: 26px 16px 20px; }
  .hero-title { font-size: 22px; }
  .hero-sub { font-size: 13.5px; }
  .logo-text .l2 { display: none; }
}
