/* =====================================================================
   ShanZee Mart — storefront styles
   Soft bento / frosted-glass look. Mobile-first.
   ===================================================================== */

:root {
  --bg-1: #e9eeec;
  --bg-2: #f1f4e6;
  --frame: rgba(255, 255, 255, 0.55);
  --surface: #ffffff;
  --surface-2: #f5f7f6;
  --surface-3: #eef1ef;
  --line: rgba(17, 18, 20, 0.07);
  --line-2: rgba(17, 18, 20, 0.12);
  --ink: #111214;
  --ink-2: #33373d;
  --muted: #858b93;
  --lime: #e3f27a;
  --lime-2: #d4e94d;
  --blue: #2f5bea;
  --blue-2: #4b74ff;
  --blue-soft: #e9efff;
  --green: #16a34a;
  --amber: #d97706;
  --red: #e11d48;
  --wa: #25d366;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 30px -12px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 30px 80px -20px rgba(16, 24, 40, 0.25);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 16px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(227, 242, 122, 0.35), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(47, 91, 234, 0.10), transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
[hidden] { display: none !important; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; justify-content: center; }
.right { text-align: right; }
.mt { margin-top: 24px; }
.text-green { color: var(--green); font-weight: 600; }
.text-amber { color: var(--amber); font-weight: 600; }
.hide-mobile { display: none !important; }
.show-mobile { display: inline-flex; }

/* ---------- Frame ---------- */
.frame {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 10px calc(16px + env(safe-area-inset-bottom));
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 8px;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow .3s var(--ease);
}
.topbar.scrolled { box-shadow: 0 8px 30px -10px rgba(16, 24, 40, .2); }

.logo-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px 0 6px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.logo-pill-plain { box-shadow: none; padding-left: 0; background: transparent; }
.logo-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--lime);
  font-weight: 800; font-size: 17px;
}
.logo-text { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.logo-text b { font-weight: 800; color: var(--blue); }
.logo-img { height: 34px; width: auto; max-width: 150px; object-fit: contain; }
.logo-pill:has(.logo-img) { padding: 0 16px; }
.logo-img-light { filter: invert(1); height: 40px; max-width: 180px; }
.drawer-head .logo-img { height: 32px; }

.search-trigger {
  grid-column: 1 / -1; grid-row: 2;
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 5px 0 18px;
  background: var(--surface);
  border-radius: 999px;
  color: var(--muted);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.search-trigger:hover { box-shadow: 0 0 0 3px rgba(47, 91, 234, .08); }
.search-trigger-text { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-trigger-btn {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff;
}
.kbd {
  display: inline-flex; align-items: center;
  padding: 2px 7px; min-width: 22px; justify-content: center;
  font: 600 11px/1.4 var(--font);
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
}

.top-nav { display: none; }
.top-actions { display: flex; align-items: center; gap: 6px; justify-self: end; }
.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), background .2s;
}
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn-sm { width: 36px; height: 36px; background: var(--surface-2); box-shadow: none; }
.count-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  color: var(--ink); background: var(--lime);
  border: 2px solid #fff; border-radius: 999px;
}
.count-badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.contact-pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 4px 0 16px;
  background: var(--surface);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.contact-avatar {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--wa); color: #fff;
}

/* ---------- Flash ---------- */
.flash-stack { display: grid; gap: 8px; margin-top: 12px; }
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}
.flash > span { flex: 1; }
.flash-success { background: #effbe3; color: #2f6a12; }
.flash-error { background: #fff0f2; color: #9f1239; }
.flash-info { background: var(--blue-soft); color: #1e3a9a; }
.flash-close { opacity: .6; display: grid; place-items: center; width: 28px; height: 28px; }

/* ---------- Generic card ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-title { font-size: 17px; font-weight: 700; }
.link-sm { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.link-sm:hover { color: var(--blue); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.mini-label { font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---------- Chips & pills ---------- */
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start; width: fit-content;
  height: 30px; padding: 0 12px;
  font-size: 12.5px; font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
}
.tag-chip-sm { height: 26px; font-size: 11.5px; padding: 0 10px; }
.tag-chip-sm .icon { color: var(--red); }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; font-size: 11.5px; font-weight: 700; border-radius: 999px; }
.chip-dark { background: var(--ink); color: #fff; }
.chip-lime { background: var(--lime); color: var(--ink); }

.pill-row {
  display: flex; gap: 8px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 2px 2px 6px; margin: 0 -2px;
  scrollbar-width: none;
}
.pill-row::-webkit-scrollbar { display: none; }
.pill-row-center { justify-content: center; flex-wrap: wrap; }
.pill {
  flex-shrink: 0; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-2);
  transition: background .2s, color .2s;
}
.pill small { color: var(--muted); font-weight: 600; font-size: 12px; }
.pill:hover { border-color: var(--line-2); }
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.active small { color: rgba(255,255,255,.6); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border-radius: 999px;
  font-weight: 700; font-size: 14.5px;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-sm { height: 40px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { height: 54px; padding: 0 24px; font-size: 15.5px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { box-shadow: 0 10px 24px -10px rgba(17,18,20,.6); }
.btn-ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn-wa { background: var(--wa); color: #fff; }
.grow { flex: 1; }

.cta-pill {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  height: 54px; padding: 0 6px 0 24px;
  background: var(--lime);
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(180, 200, 40, .9);
  transition: transform .25s var(--ease), background .2s;
  white-space: nowrap;
}
.cta-pill:hover { background: var(--lime-2); transform: translateY(-2px); }
.cta-arrow {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: #fff;
  transition: transform .3s var(--ease);
}
.cta-pill:hover .cta-arrow { transform: rotate(45deg); }
.cta-pill-sm { height: 46px; padding-left: 18px; font-size: 14px; }
.cta-pill-sm .cta-arrow { width: 36px; height: 36px; }
.cta-pill-block { width: 100%; }

.round-arrow {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff;
  transition: transform .3s var(--ease);
}
.round-arrow-light { background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: var(--shadow-sm); backdrop-filter: blur(6px); }
a:hover > .round-arrow, a:hover .round-arrow { transform: rotate(45deg); }

/* =====================================================================
   HOME — BENTO GRID
   ===================================================================== */
.bento {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  grid-template-columns: 1fr;
  grid-template-areas: "hero" "cats" "new" "spot" "pop" "stats" "more";
}
.hero { grid-area: hero; }
.cats-card { grid-area: cats; }
.new-card { grid-area: new; }
.spot-card { grid-area: spot; }
.more-card { grid-area: more; }
.stats-card { grid-area: stats; }
.pop-card { grid-area: pop; }

.bento > .card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bento > a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Hero */
.hero {
  display: flex; flex-direction: column-reverse; gap: 8px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(420px 300px at 80% 40%, rgba(47, 91, 234, .08), transparent 70%),
    linear-gradient(145deg, #fbfcfb, #f1f4f2);
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 18px; }
.hero-title { font-size: clamp(32px, 8.5vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; max-width: 13ch; }
.hero-sub { color: var(--ink-2); max-width: 42ch; }
.hero-feature { display: flex; align-items: center; gap: 14px; }
.hero-num {
  font-size: 46px; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.4px #b9bec5;
  letter-spacing: -0.04em;
}
.hero-line { flex: 0 0 48px; height: 1px; background: repeating-linear-gradient(90deg, #b9bec5 0 4px, transparent 4px 7px); position: relative; }
.hero-line::after { content: ""; position: absolute; right: -2px; top: -3px; border: 3.5px solid transparent; border-left-color: #b9bec5; }
.hero-feature strong { display: block; font-size: 15px; }
.hero-feature p { font-size: 13px; color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-actions.center { justify-content: center; }
.hero-price { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--muted); }
.hero-price strong { font-size: 20px; color: var(--ink); }
.follow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.follow a {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, color .2s;
}
.follow a:hover { transform: translateY(-2px); color: var(--blue); }

.hero-visual {
  position: relative;
  display: grid; place-items: center;
  min-height: 260px;
}
.hero-img {
  position: relative; z-index: 2;
  width: min(68vw, 300px); aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(47, 91, 234, .45), 0 0 0 10px rgba(255,255,255,.7), 0 0 0 11px rgba(17,18,20,.04);
  animation: float 6s ease-in-out infinite;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s var(--ease); }
.hero-img:hover img { transform: scale(1.05); }
.hero-img.swap img { opacity: 0; transform: scale(.94); }
@keyframes float { 50% { transform: translateY(-10px); } }
.orb { position: absolute; border-radius: 50%; z-index: 1; animation: float 7s ease-in-out infinite; }
.orb-1 { width: 18px; height: 18px; top: 8%; left: 14%; background: radial-gradient(circle at 30% 30%, #fff, #c9cdd3); animation-delay: -1s; }
.orb-2 { width: 14px; height: 14px; top: 18%; right: 14%; background: radial-gradient(circle at 30% 30%, #5b80ff, #1c3fb8); animation-delay: -3s; }
.orb-3 { width: 22px; height: 22px; top: 44%; left: 6%; background: radial-gradient(circle at 30% 30%, #5b80ff, #1c3fb8); animation-delay: -2s; }
.orb-4 { width: 12px; height: 12px; bottom: 14%; right: 10%; background: radial-gradient(circle at 30% 30%, #fff, #c9cdd3); animation-delay: -4s; }
.orb-5 { width: 10px; height: 10px; bottom: 22%; left: 18%; background: radial-gradient(circle at 30% 30%, #4b5563, #111214); animation-delay: -5s; }
.hero-arc { position: absolute; bottom: 6%; left: 5%; width: 90%; color: #cfd3d8; z-index: 0; }
.hero-nav {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 2px; padding: 4px;
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow);
}
.hero-nav button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.hero-nav button:hover { background: var(--surface-2); }

/* Categories card (replaces "Popular colours") */
.cats-card { padding: 18px 20px; }
.cat-dots { display: flex; gap: 14px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-dots::-webkit-scrollbar { display: none; }
.cat-dot { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; min-width: 58px; }
.cat-dot-ball {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 45%, #fff), var(--c) 70%);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line-2), 0 8px 16px -6px var(--c);
  transition: transform .25s var(--ease);
}
.cat-dot:hover .cat-dot-ball { transform: scale(1.12); }
.cat-dot-label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.2; max-width: 72px; }

/* New arrival */
.new-card {
  display: flex; align-items: stretch; justify-content: space-between;
  min-height: 160px; padding: 18px 0 18px 20px; overflow: hidden;
  background: linear-gradient(135deg, #fff, #f2f4f3);
}
.new-copy { display: flex; flex-direction: column; gap: 4px; z-index: 1; padding-bottom: 44px; max-width: 55%; }
.new-copy h3 { font-size: 19px; font-weight: 700; }
.new-price { font-weight: 700; color: var(--blue); }
.new-card img { position: absolute; right: 0; top: 0; width: 50%; height: 100%; object-fit: cover; mask-image: linear-gradient(90deg, transparent, #000 30%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); }
.new-card .round-arrow { position: absolute; left: 20px; bottom: 16px; }

/* Spotlight (tall) */
.spot-card { padding: 0; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; }
.spot-card > img, .spot-card > .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.spot-card:hover > img { transform: scale(1.05); }
.spot-arrow { position: absolute; top: 16px; right: 16px; }
.spot-copy {
  position: relative; padding: 70px 20px 20px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.92) 45%);
}
.spot-copy h3 { font-size: 20px; font-weight: 700; }
.spot-copy p { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* More products */
.more-card { display: flex; flex-direction: column; gap: 16px; }
.heart-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ffe4e8; color: var(--red); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumb { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.more-card:hover .thumb img { transform: scale(1.08); }

/* Stats */
.stats-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; text-align: center; padding: 18px; }
.avatars { display: flex; margin-bottom: -16px; position: relative; z-index: 2; }
.avatars span {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid #fff; margin-left: -10px;
  font-weight: 800; color: #fff; font-size: 14px;
}
.avatars span:first-child { margin-left: 0; }
.stat-bubble {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--blue-2), var(--blue));
  color: #fff;
  box-shadow: 0 20px 40px -14px rgba(47, 91, 234, .7);
}
.stat-bubble strong { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat-bubble span { font-size: 11.5px; opacity: .85; margin-top: 4px; }
.rating-chip {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: -14px; position: relative;
  padding: 7px 14px; background: #fff; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow);
}
.rating-chip .icon { color: #f5b301; }

/* Popular */
.pop-card { display: flex; align-items: stretch; padding: 0; overflow: hidden; min-height: 170px; }
.pop-copy { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 0 18px 20px; z-index: 1; }
.pop-copy h3 { font-size: 17px; font-weight: 700; max-width: 16ch; }
.pop-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.pop-meta strong { font-size: 16px; }
.low-pill { font-size: 11.5px; font-weight: 700; color: var(--amber); background: #fff5e6; padding: 3px 9px; border-radius: 999px; }
.pop-img { width: 46%; position: relative; }
.pop-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(90deg, transparent, #000 25%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%); }
.pop-arrow { position: absolute; top: 14px; right: 14px; }

/* Trust strip */
.trust {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-top: 12px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--r-md);
}
.trust-item > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--lime); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 13px; line-height: 1.25; }
.trust-item small { font-size: 11.5px; color: var(--muted); }

/* =====================================================================
   SECTIONS / PRODUCT GRID
   ===================================================================== */
.section { margin-top: 28px; }
.section-first { margin-top: 14px; }
.section.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-title { font-size: clamp(24px, 5vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.section-title-sm { font-size: clamp(20px, 4vw, 26px); }
.page-title { font-size: clamp(26px, 6vw, 40px); font-weight: 800; letter-spacing: -0.03em; }

.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.p-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.p-card-media { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.p-card:hover .p-card-media img { transform: scale(1.06); }
.p-card-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.p-card-stock {
  position: absolute; left: 8px; bottom: 8px;
  padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  color: #92400e; background: rgba(255, 247, 230, .95);
}
.p-card-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; flex: 1; }
.p-card-cat { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.p-card-title { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card-title:hover { color: var(--blue); }
.p-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; }
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price strong { font-size: 15px; font-weight: 800; }
.price s { font-size: 12px; color: var(--muted); }
.add-btn {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff;
  transition: transform .25s var(--ease), background .2s;
}
.add-btn:hover { transform: rotate(90deg); background: var(--blue); }
.add-btn.loading { opacity: .6; pointer-events: none; }
.add-btn.added { background: var(--green); transform: none; }

.img-ph {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-weight: 800; font-size: 22px; color: #9aa1aa;
  background: linear-gradient(135deg, #eef1ef, #e2e7f5);
}
.img-ph-lg { font-size: 48px; }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 44px 20px; color: var(--ink-2); }
.empty-state > .icon { color: var(--muted); }
.empty-state p { color: var(--muted); max-width: 46ch; }
.error-code { font-size: 72px; font-weight: 800; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px var(--ink); line-height: 1; }

/* Listing page */
.page-hero { display: flex; flex-direction: column; gap: 14px; background: linear-gradient(135deg, #fff, #f3f6ee); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a:hover { color: var(--ink); }
.crumbs-pad { padding: 0 4px 10px; }
.search-inline {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 18px; width: 100%;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted); font-size: 14px;
}
.toolbar { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.toolbar-end { align-items: flex-end; }
.filter-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.price-range { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; height: 40px; }
.price-range input { width: 70px; border: 0; background: transparent; padding: 0 6px; height: 100%; font-size: 16px; outline: none; }
.price-range span { color: var(--muted); }
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  height: 40px; padding: 0 36px 0 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; font-size: 14px; font-weight: 600;
}
.select-wrap .icon { position: absolute; right: 12px; pointer-events: none; color: var(--muted); }
.select-wrap-block { display: flex; width: 100%; }
.select-wrap-block select { width: 100%; height: 50px; border-radius: 14px; font-size: 16px; font-weight: 500; background: var(--surface-2); }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pager-btn { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 999px; background: var(--surface); font-weight: 600; box-shadow: var(--shadow-sm); }
.pager-btn.active { background: var(--ink); color: #fff; }

/* Search results page */
.search-hero { background: linear-gradient(135deg, #fff, #eef3ff); }
.search-big {
  display: flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 6px 0 18px;
  background: var(--surface); border: 1.5px solid var(--line-2);
  border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.search-big:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 91, 234, .12); }
.search-big > .icon { color: var(--muted); }
.search-big input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; height: 100%; }
.search-big input::-webkit-search-cancel-button { display: none; }
.search-big-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; }
.search-summary { margin-top: 12px; font-size: 15px; padding-left: 6px; }
.cat-matches { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }

/* =====================================================================
   PRODUCT PAGE
   ===================================================================== */
.pdp { display: grid; gap: 12px; }
.pdp-gallery { padding: 10px; overflow: hidden; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: 18px; scrollbar-width: none;
  background: var(--surface-2);
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: center; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery-dots button { flex: 0 0 60px; height: 60px; border-radius: 12px; overflow: hidden; opacity: .55; border: 2px solid transparent; transition: opacity .2s, border-color .2s; }
.gallery-dots button.active { opacity: 1; border-color: var(--ink); }
.gallery-dots img { width: 100%; height: 100%; object-fit: cover; }
.pdp-off { position: absolute; top: 20px; left: 20px; height: 28px; padding: 0 12px; }

.pdp-info { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pdp-title { font-size: clamp(24px, 5vw, 36px); font-weight: 800; letter-spacing: -0.03em; }
.pdp-short { color: var(--ink-2); }
.pdp-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pdp-price strong { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.pdp-price s { color: var(--muted); font-size: 17px; }
.save { font-size: 12.5px; font-weight: 700; color: var(--green); background: #e9f9ee; padding: 4px 10px; border-radius: 999px; }
.stock-line { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: #ecfdf3; color: #166534; }
.stock-low { background: #fff5e6; color: #92400e; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.pdp-form { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.pdp-form .cta-pill { flex-basis: 100%; }
.qty {
  display: inline-flex; align-items: center;
  height: 54px; padding: 4px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px;
}
.qty button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); }
.qty button:disabled { opacity: .4; }
.qty input { width: 44px; text-align: center; border: 0; background: transparent; font-weight: 700; font-size: 16px; -moz-appearance: textfield; outline: none; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty-sm { height: 42px; }
.qty-sm button { width: 34px; height: 34px; }
.qty-sm input { width: 36px; }
.pdp-perks { list-style: none; margin: 0; padding: 14px 0 0; display: grid; gap: 10px; width: 100%; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.pdp-perks li { display: flex; align-items: center; gap: 10px; }
.pdp-perks .icon { color: var(--blue); }
.share { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.share a, .share button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); }
.share a:hover, .share button:hover { background: var(--ink); color: #fff; }
.pdp-desc { width: 100%; border-top: 1px solid var(--line); padding-top: 12px; }
.pdp-desc summary { display: flex; justify-content: space-between; align-items: center; font-weight: 700; cursor: pointer; list-style: none; padding: 4px 0; }
.pdp-desc summary::-webkit-details-marker { display: none; }
.pdp-desc[open] summary .icon { transform: rotate(180deg); }
.pdp-desc > div { color: var(--ink-2); padding-top: 8px; font-size: 14.5px; }
.sku { font-size: 12px; color: var(--muted); }
.unavailable { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 20px; }
.unavailable > .icon { color: var(--muted); }

.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.buy-bar.show { transform: none; }
.buy-bar small { display: block; font-size: 12px; color: var(--muted); max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar strong { font-size: 18px; }

/* =====================================================================
   CART & CHECKOUT
   ===================================================================== */
.cart-layout, .checkout-layout { display: grid; gap: 12px; align-items: start; }
.cart-list { padding: 6px 16px; }
.cart-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-img { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; }
.cart-name { font-weight: 700; font-size: 15px; }
.cart-controls { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-line { grid-column: 2; font-size: 16px; }

.summary { display: flex; flex-direction: column; gap: 14px; }
.sum-rows { margin: 0; display: grid; gap: 8px; }
.sum-rows > div { display: flex; justify-content: space-between; font-size: 14.5px; }
.sum-rows dt { color: var(--muted); }
.sum-rows dd { margin: 0; font-weight: 600; }
.sum-total { border-top: 1px dashed var(--line-2); padding-top: 10px; margin-top: 4px; }
.sum-total dt { color: var(--ink); font-weight: 700; }
.sum-total dd { font-size: 20px; font-weight: 800; }
.free-hint { display: flex; align-items: center; gap: 8px; font-size: 13px; background: var(--blue-soft); color: #1e3a9a; padding: 10px 12px; border-radius: 12px; }
.sum-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sum-items li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.sum-img { position: relative; width: 52px; height: 52px; border-radius: 12px; background: var(--surface-2); }
.sum-img img, .sum-img .img-ph { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; font-size: 14px; }
.sum-img b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; background: var(--ink); color: #fff; border-radius: 999px; padding: 0 5px; }
.sum-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.summary-mobile { padding: 0; }
.summary-mobile > summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 600; }
.summary-mobile > summary::-webkit-details-marker { display: none; }
.summary-mobile > summary span { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); }
.summary-mobile[open] > summary { border-bottom: 1px solid var(--line); }
.summary-mobile > ul, .summary-mobile > dl { padding: 16px 18px 0; }
.summary-mobile > dl { padding-bottom: 16px; }
.summary-desktop { display: none; }

.form-card { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font-size: 16px; font-weight: 500;
  background: var(--surface-2); border: 1.5px solid transparent;
  border-radius: 14px; outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47, 91, 234, .1); }
.field-error { color: var(--red); font-size: 12.5px; font-weight: 600; }
.field:has(.field-error) input, .field:has(.field-error) textarea, .field:has(.field-error) select { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pay-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 16px;
  border: 1.5px solid var(--ink); background: #fbfdf0;
}
.pay-option input { position: absolute; opacity: 0; }
.pay-option strong { display: block; font-size: 15px; }
.pay-option small { color: var(--muted); font-size: 12.5px; }
.pay-option > span:nth-of-type(2) { flex: 1; }
.pay-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lime); }
.pay-check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; }
.checkout-sticky {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 -10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
}
.checkout-sticky small { display: block; font-size: 12px; color: var(--muted); }
.checkout-sticky strong { font-size: 19px; }

/* Success & tracking */
.success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 36px 20px; }
.success-icon { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 10px rgba(227, 242, 122, .35); animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.order-no { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 20px; background: var(--surface-2); border-radius: 999px; }
.order-no strong { font-size: 22px; letter-spacing: .02em; }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0; }
.success-summary { width: 100%; max-width: 480px; display: grid; gap: 8px; padding: 16px; margin: 6px 0; background: var(--surface-2); border-radius: 18px; text-align: left; font-size: 14px; }
.row-between { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.row-between.total { font-weight: 800; border-top: 1px dashed var(--line-2); padding-top: 8px; }
.track-result { margin-top: 12px; display: flex; flex-direction: column; gap: 16px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; top: 13px; left: 12%; right: 12%; height: 2px; background: var(--surface-3); }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.tl-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); color: #fff; border: 3px solid #fff; position: relative; z-index: 1; }
.timeline li.done { color: var(--ink); }
.timeline li.done .tl-dot { background: var(--green); }
.timeline li.current .tl-dot { box-shadow: 0 0 0 5px rgba(22, 163, 74, .18); }
.courier { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 10px 14px; background: var(--blue-soft); border-radius: 12px; }

.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-amber { background: #fff4e0; color: #9a5b00; }
.badge-blue { background: var(--blue-soft); color: #1e3a9a; }
.badge-violet { background: #f1ebff; color: #5b21b6; }
.badge-green { background: #e6f8ec; color: #166534; }
.badge-red { background: #ffe8ec; color: #9f1239; }
.badge-gray { background: var(--surface-3); color: var(--ink-2); }

/* Static pages */
.prose-card { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.prose { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--surface-2); border-radius: 18px; font-size: 13px; color: var(--muted); transition: transform .2s; }
.contact-card:hover { transform: translateY(-2px); }
.contact-card strong { color: var(--ink); font-size: 15px; }
.contact-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: #fff; margin-bottom: 6px; }
.ic-wa { background: var(--wa); }
.ic-fb { background: #1877f2; }
.ic-ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { margin-top: 36px; padding: 24px 20px 18px; background: var(--ink); color: #c9ced6; border-radius: var(--r-xl); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text b { color: var(--lime); }
.footer-brand .logo-mark { background: var(--lime); color: var(--ink); }
.footer-brand p { font-size: 14px; max-width: 36ch; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer-grid > div:not(.footer-brand):not(.footer-cod) { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-grid a:hover { color: var(--lime); }
.footer-cod { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 14px; background: rgba(255,255,255,.06); border-radius: 18px; }
.footer-cod strong { display: block; color: #fff; font-size: 14px; }
.footer-cod span { font-size: 12.5px; }
.cod-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lime); color: var(--ink); flex-shrink: 0; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .2s, color .2s; }
.socials a:hover { background: var(--lime); color: var(--ink); }
.footer-bottom { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; text-align: center; }

/* =====================================================================
   DRAWER (mobile menu)
   ===================================================================== */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(17, 18, 20, .35); backdrop-filter: blur(3px); animation: fade .25s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(86vw, 340px);
  background: #fff;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 28px 0 0 28px;
  animation: slideIn .35s var(--ease);
}
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-head .icon-btn { background: var(--surface-2); box-shadow: none; }
.drawer-nav { display: grid; gap: 2px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 14px; font-weight: 600; font-size: 15px; }
.drawer-nav a:hover { background: var(--surface-2); }
.drawer-nav small { margin-left: auto; color: var(--muted); }
.drawer-count { margin-left: auto; background: var(--lime); padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.drawer-section { margin: 18px 12px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer-socials { margin: 18px 12px 0; }
.drawer-socials a { background: var(--surface-2); color: var(--ink); }

/* =====================================================================
   GLOBAL SEARCH OVERLAY
   ===================================================================== */
.search-overlay { position: fixed; inset: 0; z-index: 90; }
.search-backdrop { position: absolute; inset: 0; background: rgba(17, 18, 20, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s; }
.search-panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: #fff;
  animation: searchIn .28s var(--ease);
}
@keyframes searchIn { from { opacity: 0; transform: translateY(-12px) scale(.985); } }
.search-field {
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px;
  border-bottom: 1px solid var(--line);
}
.search-field-icon { color: var(--muted); }
.search-field input {
  flex: 1; min-width: 0; height: 48px;
  border: 0; outline: 0; background: transparent;
  font-size: 17px; font-weight: 500;
}
.search-field input::-webkit-search-cancel-button { display: none; }
.search-clear { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); }
.search-cancel { font-size: 14px; font-weight: 600; color: var(--blue); padding: 8px; }
.search-body { flex: 1; overflow-y: auto; padding: 8px 8px 24px; overscroll-behavior: contain; }
.search-foot { display: none; }

.sr-section { padding: 10px 8px 4px; }
.sr-heading { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 8px 8px; }
.sr-heading button { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--blue); font-size: 12.5px; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px; }
.sr-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  background: var(--surface-2); border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  border: 1.5px solid transparent;
}
.sr-chip small { color: var(--muted); }
.sr-chip .icon { color: var(--muted); }
.sr-chip.active, .sr-chip:hover { border-color: var(--ink); background: #fff; }
.sr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; border-radius: 16px;
  transition: background .15s;
}
.sr-item.active, .sr-item:hover { background: var(--surface-2); }
.sr-thumb { width: 54px; height: 54px; border-radius: 12px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-thumb .img-ph { font-size: 14px; }
.sr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-name mark { background: var(--lime); color: inherit; border-radius: 4px; padding: 0 2px; }
.sr-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-meta .low { color: var(--amber); font-weight: 600; }
.sr-price { text-align: right; font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.sr-price s { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.sr-all {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 8px; padding: 14px 16px;
  background: var(--ink); color: #fff;
  border-radius: 16px; font-weight: 600; font-size: 14px;
}
.sr-all.active { box-shadow: 0 0 0 3px var(--lime); }
.sr-all .icon { transition: transform .2s; }
.sr-all:hover .icon { transform: translateX(3px); }
.sr-empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.sr-empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.sr-skel { display: flex; gap: 12px; align-items: center; padding: 8px; }
.sr-skel span { display: block; border-radius: 12px; background: linear-gradient(90deg, #f0f2f1, #e6e9e8, #f0f2f1); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.sr-skel span:first-child { width: 54px; height: 54px; }
.sr-skel div { flex: 1; display: grid; gap: 6px; }
.sr-skel div span { height: 12px; }
.sr-skel div span:last-child { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* =====================================================================
   FLOATING / TOASTS
   ===================================================================== */
.wa-float {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 44;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .8);
  transition: transform .25s var(--ease), bottom .35s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
body.has-buy-bar .wa-float { bottom: calc(86px + env(safe-area-inset-bottom)); }
body.page-checkout .wa-float { display: none; }

.toast-stack { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 380px); }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 12px 16px;
  background: var(--ink); color: #fff;
  border-radius: 18px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn .35s var(--ease);
}
.toast.error { background: #9f1239; }
.toast span { flex: 1; }
.toast a { flex-shrink: 0; padding: 8px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 13px; }
.toast.out { opacity: 0; transform: translateY(-8px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } }

/* =====================================================================
   RESPONSIVE — small phones up
   ===================================================================== */
@media (min-width: 400px) {
  .p-grid { gap: 12px; }
}

/* ---------- ≥ 640px  (large phones / small tablets) ---------- */
@media (min-width: 640px) {
  .frame { padding: 14px 14px 24px; }
  .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .cart-row { grid-template-columns: 96px 1fr auto; align-items: center; }
  .cart-img { width: 96px; height: 96px; }
  .cart-line { grid-column: auto; }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
  .page-hero { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .search-inline { width: 300px; }
  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-cod { grid-column: 1 / -1; }
}

/* ---------- ≥ 768px  (tablets) ---------- */
@media (min-width: 768px) {
  .hide-mobile { display: inline-flex !important; }
  .show-mobile { display: none !important; }

  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; padding: 8px; border-radius: 999px; }
  .search-trigger { grid-column: auto; grid-row: auto; max-width: 420px; }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "hero hero"
      "cats cats"
      "new  spot"
      "pop  spot"
      "more stats";
    gap: 14px;
  }
  .hero { flex-direction: row; align-items: center; padding: 34px; min-height: 420px; }
  .hero-copy { flex: 1.1; }
  .hero-visual { flex: 1; min-height: 360px; }
  .hero-img { width: min(34vw, 330px); }

  .search-panel {
    inset: 8vh auto auto 50%;
    transform: translateX(-50%);
    width: min(680px, 92vw);
    max-height: 78vh;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: searchInDesk .28s var(--ease);
  }
  @keyframes searchInDesk { from { opacity: 0; transform: translate(-50%, -10px) scale(.98); } }
  .search-field { padding: 12px 14px 12px 20px; }
  .search-cancel { display: none; }
  .search-foot { display: flex; gap: 18px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--surface-2); }
  .search-foot span { display: inline-flex; align-items: center; gap: 4px; }

  .drawer { display: none; }
  .p-grid { gap: 16px; }
  .p-card-body { padding: 14px 16px 16px; }
  .p-card-title { font-size: 15px; }
  .price strong { font-size: 16.5px; }
  .add-btn { width: 44px; height: 44px; }
  .card { padding: 24px; }
  .pdp-gallery { padding: 12px; }
  .wa-float { right: 24px; bottom: 24px; }
  body.has-buy-bar .wa-float { bottom: 24px; }
  .buy-bar { display: none; }
}

/* ---------- ≥ 1024px  (laptops — full bento from the design) ---------- */
@media (min-width: 1024px) {
  .frame {
    margin: 18px auto 28px;
    padding: 16px;
    background: var(--frame);
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 36px;
    box-shadow: 0 30px 80px -40px rgba(16, 24, 40, .25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: calc(100% - 40px);
  }
  .topbar { top: 14px; background: transparent; border-color: transparent; box-shadow: none; padding: 0 0 4px; backdrop-filter: none; }
  .topbar.scrolled { background: rgba(255,255,255,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow); padding: 8px; }
  .top-nav { display: flex; gap: 2px; }
  .top-nav a { padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
  .top-nav a:hover { background: rgba(255,255,255,.8); }
  .top-nav a.active { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); }
  .topbar { grid-template-columns: auto minmax(260px, 460px) 1fr auto; }

  .bento {
    grid-template-columns: 1.05fr .8fr 1.45fr 1.15fr;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
      "hero hero hero cats"
      "hero hero hero new"
      "hero hero hero spot"
      "more stats pop spot";
    gap: 16px;
  }
  .hero { min-height: 500px; padding: 40px 44px; }
  .hero-img { width: min(26vw, 360px); }
  .spot-card { min-height: 0; }
  .stats-card { min-height: 220px; }

  .p-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pdp { grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
  .pdp-gallery { position: sticky; top: 90px; }
  .pdp-info { padding: 32px; }
  .pdp-form .cta-pill { flex-basis: 100%; }
  .cart-layout { grid-template-columns: 1fr 360px; gap: 16px; }
  .summary { position: sticky; top: 90px; }
  .checkout-layout { grid-template-columns: 1fr 380px; gap: 16px; }
  .summary-mobile, .checkout-sticky { display: none; }
  .summary-desktop { display: flex; grid-row: 1 / span 2; grid-column: 2; }
  .form-card { grid-column: 1; }
  .footer { padding: 32px 32px 20px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
  .footer-cod { grid-column: auto; align-self: start; }
}

/* ---------- ≥ 1280px ---------- */
@media (min-width: 1280px) {
  .p-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero-title { font-size: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
