/* NextGen Mobile BD — storefront design system v2
   Light mode, black accent. Unbounded (display) + Space Grotesk (text) — SheiTech-style. */

:root {
  --bg: #ffffff;
  --surface: #f6f6f6;
  --surface-2: #ededed;
  --line: #e7e7e7;
  --line-strong: #cfcfcf;
  --text: #111111;
  --muted: #454545;
  --faint: #6b6b6b;
  --tile: #f6f6f6;
  --accent: #111111;
  --accent-hover: #2d2d2d;
  --danger: #c62828;
  --brand1: #1e9bf0;
  --brand2: #7b3ff2;
  --brand-grad: linear-gradient(100deg, #1e9bf0, #7b3ff2);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Unbounded', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

a, button, input, select, textarea, summary { touch-action: manipulation; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

:focus-visible { outline: 2px solid #111; outline-offset: 2px; border-radius: 2px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
@media (max-width: 699px) {
  .container { width: calc(100% - 2.5rem); }
}

/* ---------- Top bar ---------- */

.topbar { background: #111; color: #fff; font-size: 0.78rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; }
.topbar a { color: #fff; }
.topbar a:hover { text-decoration: underline; }
.topbar .phone { letter-spacing: 0.04em; font-weight: 500; white-space: nowrap; }
.topbar .email { white-space: nowrap; }
.topbar .track { font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; white-space: nowrap; }

.topbar-social { display: flex; gap: 0.45rem; align-items: center; }
.topbar-social a {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.15s;
}
.topbar-social a:hover { background: var(--brand-grad); text-decoration: none; }

.topbar-right { display: flex; align-items: center; gap: 1.1rem; }

@media (max-width: 639px) {
  .topbar .email { display: none; }
  .topbar-right { gap: 0.8rem; }
}

/* ---------- Header ---------- */

.nav {
  position: relative; /* anchors the slide-down search panel */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.nav.scrolled { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07); }
.nav { position: sticky; top: 0; z-index: 50; }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
  flex-wrap: nowrap;
  min-width: 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.logo-icon { width: 36px; height: 36px; border-radius: 9px; display: block; }
.logo-word b { font-weight: 800; background: linear-gradient(100deg, #1e9bf0, #7b3ff2); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-actions { display: flex; align-items: center; gap: 0.55rem; margin-left: auto; }

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  flex: none;
}
@media (max-width: 699px) {
  .menu-toggle { display: grid; width: 40px; height: 40px; }
  .catnav { display: none; }
}

.search-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.search-toggle:hover, .search-toggle[aria-expanded='true'] { border-color: #111; background: var(--surface); }

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(10, 10, 14, 0.45);
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  padding: 12vh 1rem 2rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.search-panel.in { opacity: 1; }
.search-panel-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 640px;
  margin-inline: auto;
  background: #fff;
  border-radius: 18px;
  padding: 0.8rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  transform: translateY(-16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.search-panel.in .search-panel-inner { transform: none; }
@media (max-width: 699px) {
  .search-panel { padding: 7vh 0.8rem 2rem; }
}
.search-close {
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  background: none;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
}
.search-close:hover { color: var(--text); }

.search-form {
  flex: 1;
  display: flex;
  min-width: 200px;
  border: 1.5px solid #111;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.search-form input, .search-form input[type='text'] {
  flex: 1;
  border: 0;
  border-radius: 0;
  min-height: 42px;
  padding: 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: transparent;
  color: var(--text);
  min-width: 0;
  box-shadow: none;
}
/* the pill itself is the focus indicator — no inner ring/outline */
.search-form input:focus, .search-form input:focus-visible { outline: none; box-shadow: none; }
.search-form:focus-within { box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12); }
.search-form button {
  border: 0;
  background: #111;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0 1.2rem;
  cursor: pointer;
}
.search-form button:hover { background: var(--accent-hover); }

.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-cart:hover { background: var(--accent-hover); }
.nav-cart .count {
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 1.2rem;
  height: 1.2rem;
  display: inline-grid;
  place-items: center;
  padding-inline: 0.25rem;
  background: #fff;
  color: #111;
  border-radius: 999px;
}

/* Category nav row */
.catnav { border-bottom: 1px solid var(--line); background: #fff; }
.catnav-inner {
  display: flex;
  column-gap: 1.6rem;
  row-gap: 0;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.catnav-item { position: relative; }
/* Tablet / small-laptop widths: tighten so the bar fits on one line where possible. */
@media (min-width: 700px) and (max-width: 1199px) {
  .catnav-inner { column-gap: 1.05rem; font-size: 0.74rem; letter-spacing: 0.04em; }
  .catnav-inner a { gap: 0.35rem; }
}
.catnav-inner a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.7rem 0; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.catnav-inner a svg { flex: none; opacity: 0.8; }
.catnav-inner a:hover { color: var(--text); }
.catnav-inner a.active { color: var(--text); border-bottom-color: #111; }

/* simple category dropdown (desktop hover) */
.cat-drop {
  position: absolute;
  top: 100%;
  left: -0.6rem;
  width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
  z-index: 56;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  text-transform: none;
  letter-spacing: normal;
}
.catnav-item:hover .cat-drop,
.catnav-item:focus-within .cat-drop { opacity: 1; visibility: visible; transform: translateY(0); }

.cd-row {
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.9rem !important;
  border-bottom: 1px solid var(--line);
  white-space: normal !important;
  font-weight: 500;
}
.cd-row:hover { background: var(--surface); }
.cd-row img { width: 38px; height: 38px; object-fit: contain; flex: none; }
.cd-main { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.cd-name { font-size: 0.82rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.cd-price { font-size: 0.78rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.cd-all {
  display: block !important;
  text-align: center;
  padding: 0.65rem 0.9rem !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  color: var(--text) !important;
}
.cd-all:hover { background: #111; color: #fff !important; }

@media (max-width: 699px) {
  .cat-drop { display: none; }
}

.nav-cart .cart-ico { display: none; }

.call-btn {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  background: #111;
  color: #fff;
  flex: none;
  transition: background 0.15s, transform 0.15s;
}
.call-btn:active { transform: scale(0.94); background: var(--accent-hover); }

@media (max-width: 699px) {
  .nav-inner { gap: 0.5rem; flex-wrap: nowrap; }
  .topbar { display: none; }
  .logo { gap: 0.4rem; min-width: 0; }
  .logo-word { font-size: 0.76rem; }
  .logo-icon { width: 30px; height: 30px; }
  .nav-actions { gap: 0.4rem; }
  .search-toggle { width: 40px; height: 40px; }
  .nav-cart { display: none; }
  .call-btn { display: grid; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.6rem;
  min-height: 48px;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: scale(0.98); }

.btn-ghost { background: #fff; color: var(--text); border: 1.5px solid #111; }
.btn-ghost:hover { background: var(--surface); border-color: #111; }

.btn-block { width: 100%; }

/* ---------- Category tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.8rem 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.tile:hover { border-color: #111; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07); transform: translateY(-2px); }
.tile img { width: 130px; height: 130px; object-fit: contain; }
.tile-icon {
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--surface);
  border-radius: 14px;
}
.tile .t { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; line-height: 1.3; }

/* ---------- Sections ---------- */

.section { padding: clamp(2rem, 5vw, 3.5rem) 0 0; }
.section:last-of-type { padding-bottom: clamp(2rem, 5vw, 3.5rem); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.section-head h2 { font-size: clamp(1.05rem, 3.4vw, 1.45rem); font-weight: 800; }
.section-head a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1.5px solid var(--line-strong);
  padding-bottom: 1px;
  white-space: nowrap;
}
.section-head a:hover { color: var(--text); border-color: #111; }

/* decorated section headings: gradient accent bar under the title */
.section-head.deco h2 { position: relative; padding-bottom: 0.7rem; }
.section-head.deco h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 4px;
  border-radius: 4px;
  background: var(--brand-grad);
}
.section-head.center { justify-content: center; }
.section-head.center h2 { text-align: center; }
.section-head.center h2::after { left: 50%; transform: translateX(-50%); }

.view-all {
  border: 1.5px solid var(--line-strong) !important;
  border-radius: 999px;
  padding: 0.45rem 1rem !important;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.view-all:hover { background: #111; color: #fff !important; border-color: #111 !important; }

/* alternating full-bleed bands */
.section.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.section.band .card, .section.band .tile { background: #fff; }

/* black brand strip */
.brand-strip { background: #111; color: #fff; margin-top: clamp(2rem, 5vw, 3.5rem); }
.brand-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem 0;
}
.bs-main {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.85rem, 2.6vw, 1.05rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.bs-sub { font-size: 0.82rem; color: #bdbdbd; }

/* ---------- Trust boxes ---------- */

.trust { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
@media (min-width: 700px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust-box { min-width: 0; }
.trust-box .t, .trust-box .d { overflow-wrap: break-word; }

.trust-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.trust-box .ti {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
}
.trust-box .ti::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-grad);
  border: 2px solid var(--surface);
}
.trust-box .tt { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.trust-box .t { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; }
.trust-box .d { font-size: 0.8rem; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-grad); flex: none; display: inline-block; }

/* ---------- Category chips (catalog page) ---------- */

.chips { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.chip:hover { color: var(--text); border-color: #111; }
.chip.active { color: #fff; background: #111; border-color: #111; }

/* ---------- Product grid & cards ---------- */

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: #111; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07); }
.card-link { display: flex; flex-direction: column; flex: 1; }

.card-actions {
  display: flex;
  gap: 0.45rem;
  padding: 0 0.95rem 0.95rem;
}
.ca-buy {
  flex: 1;
  min-height: 38px;
  border: 1.5px solid #111;
  border-radius: var(--radius-sm);
  background: #111;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s;
}
.ca-buy:hover { background: var(--accent-hover); }
.ca-add {
  width: 38px;
  min-height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.ca-add:hover { border-color: #111; background: #111; color: #fff; }

.card-media {
  position: relative;
  background: #fff;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 11%;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; }

.badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #111;
  color: #fff;
  border-radius: 5px;
  padding: 0.3rem 0.55rem;
  z-index: 1;
}
.badge.off { left: auto; right: 0.65rem; background: var(--brand-grad); }

.card-body { padding: 0.85rem 0.95rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.card-cat { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.card-name { font-weight: 600; font-size: 0.92rem; line-height: 1.35; }
.card-price { margin-top: auto; padding-top: 0.45rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }

.price {
  font-family: var(--font-body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-size: 1.02rem;
}
.price-old { font-size: 0.8rem; color: var(--faint); text-decoration: line-through; font-variant-numeric: tabular-nums; }

/* ---------- Product page ---------- */

.pdp { display: grid; gap: 1.6rem; padding: clamp(1.2rem, 4vw, 3rem) 0 2.5rem; }
@media (min-width: 860px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; } }

.pdp-media {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 9%;
  position: relative;
}
@media (min-width: 860px) {
  .pdp-media { position: sticky; top: 130px; }
}
.pdp-media img { width: 100%; height: 100%; object-fit: contain; }

.pdp-info h1 { font-size: clamp(1.15rem, 4vw, 1.7rem); font-weight: 800; margin-bottom: 0.5rem; }
.pdp-cat { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 0.4rem; }

.pdp-price { display: flex; align-items: baseline; gap: 0.8rem; margin: 0.9rem 0 1.3rem; flex-wrap: wrap; }
.pdp-price .price { font-size: 1.7rem; font-family: var(--font-display); font-weight: 800; }
.pdp-price .price-old { font-size: 1rem; }
.pdp-price .save {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  background: var(--brand-grad); color: #fff; border-radius: 5px; padding: 0.25rem 0.55rem;
}

.specs { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; }
.specs li { display: flex; gap: 0.6rem; align-items: center; color: var(--muted); font-size: 0.92rem; }
.specs li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-grad); flex: none; }

.buy-form { display: grid; gap: 0.8rem; }
.buy-row { display: flex; gap: 0.8rem; align-items: stretch; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #111;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex: none;
  background: #fff;
}
.qty button {
  all: unset;
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.qty button:hover { color: #111; background: var(--surface); }
.qty input, .qty input[type='number'] {
  width: 40px;
  border: 0;
  padding: 0;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }

.pdp-note { font-size: 0.82rem; color: var(--muted); display: flex; gap: 0.5rem; align-items: center; }
.stock-note { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.85rem; font-size: 0.86rem; font-weight: 600; color: #b45309; }
.stock-note .dot { background: #f59e0b; }
.stock-note.out { color: #b91c1c; }
.stock-note.out .dot { background: #ef4444; }

/* ---------- Cart ---------- */

.page-title { font-size: clamp(1.25rem, 4.5vw, 1.9rem); font-weight: 800; padding: clamp(1.4rem, 4vw, 2.4rem) 0 1.2rem; }

.cart-list { display: grid; gap: 0.8rem; }

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.8rem;
}
.cart-thumb { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); aspect-ratio: 1; display: grid; place-items: center; padding: 8px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-item .name { font-weight: 600; font-size: 0.92rem; line-height: 1.35; }
.cart-item .unit { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cart-item .qty { margin-top: 0.5rem; border-width: 1px; border-color: var(--line-strong); }
.cart-item .qty button, .cart-item .qty input { height: 36px; }
.cart-item .qty button { width: 34px; }
.cart-line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.remove { font-size: 0.8rem; padding: 0.55rem 0.3rem; color: var(--faint); border: 0; background: none; cursor: pointer; text-decoration: underline; padding: 0; font-family: var(--font-body); }
.remove:hover { color: var(--danger); }

.summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.3rem;
  margin-top: 1.4rem;
  display: grid;
  gap: 0.7rem;
}
.summary .row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; color: var(--muted); }
.summary .row.total { color: var(--text); font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line-strong); padding-top: 0.9rem; }
.summary .row.total .price { font-size: 1.1rem; }
.summary .row .num { font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 3.5rem 0 4.5rem; color: var(--muted); }
.empty .big { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.3; color: var(--text); margin: 0 0 0.5rem; }

/* ---------- Checkout chrome (Mystic-style, distraction-free) ---------- */

.co-bar { background: #fff; border-bottom: 1px solid var(--line); }
.co-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; }
.co-back { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.co-back:hover { color: var(--text); }
.co-secure { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }

.co-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: clamp(1.4rem, 4vw, 2.2rem) 0 0.3rem;
}
.co-title { font-size: clamp(1.3rem, 4.5vw, 1.8rem); font-weight: 800; margin-bottom: 1rem; }

.co-sec { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: clamp(0.9rem, 2.5vw, 1.2rem); margin-bottom: 0.8rem; }
.co-sec-head { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 800; margin-bottom: 0.8rem; }
.co-num {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  background: #111; color: #fff;
  border-radius: 999px;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 700;
}

.co-place { font-size: 1rem; margin-top: 0.4rem; }
.co-place #btn-total { font-variant-numeric: tabular-nums; }
.co-assure { font-size: 0.8rem; color: var(--muted); text-align: center; margin: 0.9rem 0 2rem; }
.co-assure a { font-weight: 700; text-decoration: underline; }

.co-aside { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 900px) { .co-summary { position: sticky; top: 1rem; } .co-aside { position: sticky; top: 1rem; } }

.co-item { align-items: center; gap: 0.6rem; }
.co-item img { width: 40px; height: 40px; object-fit: contain; flex: none; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.co-item-name { flex: 1; font-size: 0.85rem; color: var(--text); }

.co-upsell { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--surface); }
.co-upsell-head { margin: 0 0 0.8rem; font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; }
.co-upsell-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.co-upsell-row:first-of-type { border-top: 0; }
.co-upsell-row img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; flex: none; }
.co-upsell-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.co-upsell-info .n { font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.co-upsell-info .p { font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.co-upsell-info .p s { color: var(--faint); font-weight: 500; }
.co-upsell-info .p b { font-size: 0.68rem; background: var(--brand-grad); color: #fff; border-radius: 4px; padding: 0.1rem 0.35rem; margin-left: 0.2rem; }
.co-upsell-row button {
  width: 38px; height: 38px; flex: none;
  border: 1.5px solid #111; border-radius: 999px;
  background: #fff; color: #111;
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.co-upsell-row button:hover { background: #111; color: #fff; }

.co-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.1rem 0 1.4rem; font-size: 0.78rem; color: var(--faint); text-align: center; }
.co-footer a { font-weight: 700; text-decoration: underline; }

.help-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem 1.2rem;
  margin: 0 auto 1rem;
  max-width: 560px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-contact { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.95rem; color: #333; }
.footer-contact a:hover { text-decoration: underline; }

/* ---------- Forms / checkout ---------- */

.checkout-grid { display: grid; gap: 1.2rem; padding-bottom: 3rem; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; } }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: clamp(1.1rem, 3vw, 1.5rem); }
.panel h2 { font-size: 0.95rem; font-weight: 800; margin-bottom: 1.1rem; }

.field { display: grid; gap: 0.3rem; margin-bottom: 0.7rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: 0.72rem; color: var(--faint); }

input[type='text'], input[type='tel'], input[type='number'], textarea, select {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.6rem 0.85rem;
  min-height: 44px;
  transition: border-color 0.15s;
}
textarea { min-height: 64px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: #111; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #111; outline-offset: 1px; }
::placeholder { color: var(--faint); }

.radio-row { display: grid; gap: 0.6rem; }
.radio-card {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fff;
}
.radio-card:has(input:checked) { border-color: #111; background: var(--surface); }
.radio-card input { accent-color: #111; margin-top: 0.2rem; }
.radio-card .t { font-weight: 700; font-size: 0.92rem; }
.radio-card .d { font-size: 0.8rem; color: var(--muted); }

.cod-note {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.1rem 0;
  background: var(--surface);
}

.error-box {
  border: 1.5px solid var(--danger);
  color: var(--danger);
  background: #fdf2f2;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1.1rem;
}

/* ---------- Thank you ---------- */

.thanks { text-align: center; padding: clamp(2.5rem, 7vw, 4.5rem) 0 1.5rem; }
.thanks .check {
  width: 64px; height: 64px; border-radius: 50%;
  background: #111; color: #fff;
  display: inline-grid; place-items: center;
  font-size: 1.7rem; font-weight: 700;
  margin-bottom: 1.3rem;
}
.thanks h1 { font-size: clamp(1.4rem, 5vw, 2.1rem); font-weight: 800; }
.thanks .order-no { font-family: var(--font-display); }
.thanks p { color: var(--muted); max-width: 46ch; margin: 1rem auto 0; }

.order-box { max-width: 560px; margin: 1.8rem auto 3rem; text-align: left; }

/* ---------- Track / admin ---------- */

.track-form { display: flex; gap: 0.7rem; max-width: 480px; margin-bottom: 2rem; }
.track-form input { flex: 1; }

.order-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1.1rem 1.2rem; margin-bottom: 0.9rem; }
.order-card .top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.order-card .no { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.order-card .meta { font-size: 0.8rem; color: var(--faint); }
.order-card .items { font-size: 0.88rem; color: var(--muted); }

.status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
  background: #fff;
}
.status.Pending { color: #b45309; border-color: #b45309; }
.status.Confirmed { color: #0961a5; border-color: #0961a5; }
.status.Shipped { color: #6d28d9; border-color: #6d28d9; }
.status.Delivered { color: #15803d; border-color: #15803d; }
.status.Cancelled { color: var(--danger); border-color: var(--danger); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.admin-table select { min-height: 36px; padding: 0.3rem 0.5rem; font-size: 0.82rem; width: auto; }
.admin-table .num { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); margin-top: 3rem; background: var(--surface); }
.footer-inner { display: grid; gap: 2rem; padding: 2.6rem 0 2rem; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer h3 { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: #666; margin-bottom: 0.9rem; }
.footer .about { color: #333; font-size: 0.98rem; max-width: 42ch; line-height: 1.65; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.95rem; color: #333; }
.footer ul a { display: inline-block; padding-block: 0.3rem; }
.footer ul a:hover { color: var(--text); text-decoration: underline; }
.dev-credit { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.dev-credit:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #555;
}

/* ---------- Hero banner slider ---------- */

.banners-wrap { padding-top: 1rem; }

.banners {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.banners::-webkit-scrollbar { display: none; }

.banner {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  line-height: 0;                 /* no descender gap under the artwork */
}
/* Artwork carries all the copy, so it is never cropped — the slot is reserved
   by width/height on the img, which keeps the hero from shifting on load. */
.banner img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-dots { display: flex; justify-content: center; gap: 0.15rem; padding-top: 0.4rem; }
.banner-dots button {
  /* 26px hit area; the visible dot is the ::before */
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.banner-dots button::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: width 0.2s, background 0.2s;
}
.banner-dots button.on::before { background: var(--brand-grad); width: 24px; }


/* ---------- Promo duo ---------- */

.promo-duo { display: grid; gap: 0.9rem; }
@media (min-width: 800px) { .promo-duo { grid-template-columns: 1fr 1fr; } }

.promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.2rem 1.3rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.promo:hover { border-color: #111; box-shadow: 0 5px 16px rgba(0, 0, 0, 0.06); }
.promo h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 0.25rem; }
.promo p { margin: 0 0 0.6rem; font-size: 0.83rem; color: var(--muted); }
.promo-cta { font-size: 0.82rem; font-weight: 700; border-bottom: 1.5px solid #111; padding-bottom: 1px; }
.promo img { width: 96px; height: 96px; object-fit: contain; flex: none; }

/* ---------- FAQ ---------- */

.faqs { display: grid; gap: 0.7rem; max-width: 760px; margin-inline: auto; }

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.2rem; font-weight: 600; color: var(--muted); transition: transform 0.15s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq[open] { border-color: #111; }
.faq p { margin: 0; padding: 0 1.1rem 1rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- Search dropdown ---------- */

.search-wrap { position: relative; flex: 1; min-width: 200px; display: flex; }
.search-wrap .search-form { flex: 1; min-width: 0; }

.search-drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #111;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  z-index: 60;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.search-drop.in { opacity: 1; transform: translateY(0); }

.search-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.search-row img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.search-row:hover, .search-row.active { background: var(--surface); }
.sr-main { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.sr-name { font-size: 0.87rem; font-weight: 600; line-height: 1.3; }
.sr-name mark { background: none; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sr-price { font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sr-price s { color: var(--faint); font-weight: 500; margin-left: 0.3rem; }

.search-all {
  display: block;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}
.search-all:hover, .search-all.active { background: #111; color: #fff; }

.search-empty { padding: 0.9rem; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* ---------- Drawers (cart right, menu left) ---------- */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 80;
  opacity: 0;
  transition: opacity 0.25s;
}
.drawer-overlay.show { opacity: 1; }

.cart-drawer, .menu-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(400px, 92vw);
  background: #fff;
  z-index: 90;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
  overscroll-behavior: contain;
}
.drawer-body { overscroll-behavior: contain; }
.chips, .catnav-inner { overscroll-behavior-x: contain; }
.cart-drawer { right: 0; transform: translateX(105%); width: min(420px, 96vw); }
.menu-drawer { left: 0; width: min(340px, 88vw); transform: translateX(-105%); }
.cart-drawer, .menu-drawer { visibility: hidden; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.3s; }
.cart-drawer.open, .menu-drawer.open { transform: translateX(0); visibility: visible; transition-delay: 0s; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.drawer-close {
  width: 38px; height: 38px;
  border: 0; background: var(--surface);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
}
.drawer-close:hover { color: #111; background: var(--surface-2); }

.drawer-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.drawer-loading { padding: 2rem; text-align: center; }
.drawer-inner { display: flex; flex-direction: column; min-height: 100%; }

.drawer-items { flex: 1; padding: 0.4rem 1rem; }
.drawer-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 0.7rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.d-thumb { border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; display: grid; place-items: center; }
.d-thumb img { width: 100%; height: 44px; object-fit: contain; }
.d-name { font-weight: 600; font-size: 0.86rem; line-height: 1.3; display: block; }
.d-price { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 0.15rem; }
.d-controls { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; flex-wrap: wrap; }
.d-qty { border-width: 1px; border-color: var(--line-strong); }
.d-qty button { width: 40px; height: 40px; font-size: 1rem; }
.d-qty input { width: 32px; height: 40px; font-size: 0.9rem; }
.d-total { font-weight: 700; font-size: 0.88rem; font-variant-numeric: tabular-nums; }

.drawer-foot {
  flex: none;
  position: sticky;
  bottom: 0;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 1rem 1.2rem 1.15rem;
  display: grid;
  gap: 0.7rem;
  background: var(--surface);
}
.drawer-foot .row { display: flex; justify-content: space-between; font-size: 0.95rem; }
.drawer-foot .row b { font-variant-numeric: tabular-nums; }
.drawer-viewcart { text-align: center; font-size: 0.82rem; font-weight: 600; text-decoration: underline; color: var(--muted); }
.drawer-viewcart:hover { color: var(--text); }

.drawer-empty { padding: 3rem 1.6rem; text-align: center; display: grid; gap: 0.6rem; }
.drawer-empty .big { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }

/* menu drawer */
.menu-links { display: grid; padding: 0.6rem 0; }
.menu-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.menu-links a svg { flex: none; opacity: 0.75; }
.menu-links a:hover { background: var(--surface); }
.menu-foot { margin-top: auto; padding: 1.2rem 1.4rem 1.5rem; display: grid; gap: 0.8rem; border-top: 1px solid var(--line); }
.menu-mail { font-size: 0.85rem; color: var(--muted); text-align: center; }
.menu-social { display: flex; justify-content: center; gap: 1.2rem; font-size: 0.82rem; font-weight: 600; }
.menu-social a { text-decoration: underline; color: var(--muted); }
.menu-drawer { overflow-y: auto; }

/* ---------- Floating bottom bar (mobile) ---------- */

.bottom-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 75;
  display: none;
  justify-content: space-around;
  align-items: center;
  /* liquid glass: truly translucent, heavy blur + saturation, hairline highlight */
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.55), rgba(10, 10, 13, 0.62));
  backdrop-filter: blur(28px) saturate(1.9);
  -webkit-backdrop-filter: blur(28px) saturate(1.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 0.3rem 0.5rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 36px rgba(0, 0, 0, 0.38);
  /* pin to its own compositor layer so it never lags/wobbles during scroll */
  transform: translateZ(0);
  will-change: transform;
  contain: layout paint;
}
/* browsers without backdrop blur get a readable solid bar instead of see-through */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bottom-bar { background: rgba(17, 17, 17, 0.92); }
}

.bb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: none;
  border: 0;
  padding: 0.25rem 0.8rem;
  border-radius: 12px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, transform 0.15s;
}
.bb-item:hover { color: #fff; }
.bb-item:active { color: #fff; transform: scale(0.94); background: rgba(255, 255, 255, 0.1); }
.bb-item[aria-current='page'] { color: #fff; background: rgba(255, 255, 255, 0.12); }
.bb-cart { position: relative; display: inline-block; }
.bb-count {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding-inline: 3px;
  background: var(--brand-grad);
  color: #fff;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
}

@media (max-width: 699px) {
  .bottom-bar { display: flex; }
  body { padding-bottom: 72px; }
  .bb-item svg { width: 20px; height: 20px; }
}

/* ---------- Messenger floating button ---------- */

.messenger-wrap {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 74;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.messenger-fab {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  width: 56px;
  height: 56px;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #00b2ff, #006aff);
  box-shadow: 0 8px 24px rgba(0, 106, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  flex: none;
}
.messenger-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 106, 255, 0.45); }
.messenger-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease 0.05s;
}
@media (min-width: 900px) {
  .messenger-fab { width: auto; padding: 0 1rem; gap: 0; }
  .messenger-fab:hover { gap: 0.55rem; }
  .messenger-fab:hover .messenger-label { max-width: 130px; opacity: 1; }
}

.messenger-bubble {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
  padding: 0.65rem 1.9rem 0.65rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  max-width: 210px;
  animation: bubble-in 0.25s ease-out;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.mb-close {
  position: absolute;
  top: 4px;
  right: 6px;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 4px;
}
.mb-close:hover { color: var(--text); }

@media (max-width: 699px) {
  .messenger-wrap { right: 0.8rem; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .messenger-fab { width: 44px; height: 44px; }
  .messenger-fab svg { width: 22px; height: 22px; }
  .messenger-bubble { font-size: 0.78rem; max-width: 180px; padding: 0.55rem 1.7rem 0.55rem 0.8rem; }
}

/* ---------- Account page ---------- */

.account-hero { display: grid; place-items: center; padding: clamp(2rem, 6vw, 4rem) 0 3rem; }
.account-panel { max-width: 560px; }
.account-panel p { margin: 0 0 0.9rem; }
.account-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* ---------- Purchase toast (social proof) ---------- */

.skip-link {
  position: absolute;
  top: -48px;
  left: 8px;
  z-index: 200;
  background: #111;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: top 0.15s;
}
.skip-link:focus { top: 8px; }

.pt-link { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }

.purchase-toast {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 72;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 330px;
  background: #fff;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  padding: 0.7rem 2.1rem 0.7rem 0.7rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.purchase-toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.purchase-toast img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  flex: none;
  padding: 4px;
}
.pt-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.pt-text b { font-size: 0.84rem; font-weight: 700; line-height: 1.3; }
.pt-text small { font-size: 0.74rem; color: var(--muted); }
.pt-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 4px;
}
.pt-close:hover { color: var(--text); }

@media (max-width: 699px) {
  .purchase-toast { left: 0.7rem; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); max-width: 280px; }
  .purchase-toast img { width: 46px; height: 46px; }
}

/* ---------- QoL micro-interactions ---------- */

.btn, .ca-buy, .ca-add, .search-form button, .search-toggle, .menu-toggle, .nav-cart, .drawer-close {
  transition: transform 0.18s ease, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.18s;
}
.btn:hover, .ca-buy:hover, .ca-add:hover { transform: translateY(-1px); }
.btn:active, .ca-buy:active, .ca-add:active, .search-toggle:active, .menu-toggle:active, .nav-cart:active { transform: scale(0.97); }

input[type='text'], input[type='tel'], input[type='number'], textarea, select {
  transition: border-color 0.15s, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.07); }

@keyframes badge-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
[data-cart-count].pop { animation: badge-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes drawer-item-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}
.drawer-item { animation: drawer-item-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.drawer-item:nth-child(1) { animation-delay: 40ms; }
.drawer-item:nth-child(2) { animation-delay: 80ms; }
.drawer-item:nth-child(3) { animation-delay: 120ms; }
.drawer-item:nth-child(4) { animation-delay: 160ms; }
.drawer-item:nth-child(n+5) { animation-delay: 200ms; }

.drawer-loading { display: grid; place-items: center; padding: 3rem 0; }
.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: #111;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.faq[open] p { animation: faq-in 0.25s ease-out; }

.fade-img { opacity: 0.001; }
.fade-img.ld { opacity: 1; transition: opacity 0.35s ease; }

/* ---------- Motion: scroll-reveal + micro-interactions ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* No per-image hover transforms: they created compositor layers that left
   stale image rasters floating over the page during scroll. The card-level
   lift + border + shadow hover states carry the interaction instead. */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Mobile optimization ---------- */

@media (max-width: 699px) {
  /* ≥16px stops iOS Safari's forced zoom when focusing checkout/search fields */
  input[type='text'], input[type='tel'], input[type='number'], textarea, select,
  .search-form input, .search-form input[type='text'] {
    font-size: 16px;
  }
  .qty input, .qty input[type='number'] { font-size: 16px; }
  .ca-buy { min-height: 42px; }
  .ca-add { min-height: 42px; width: 42px; }
}

/* ---------- Catalog bar / misc ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.sort-form select { font-size: 0.85rem; }
@media (max-width: 699px) { .sort-form select { font-size: 16px; } }
.catalog-bar { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.catalog-bar .chips { flex: 1; min-width: 200px; padding-bottom: 0; }
.sort-form select { min-height: 42px; width: auto; padding: 0.4rem 0.8rem; border-radius: 999px; }

.drawer-title { font-family: var(--font-display); font-weight: 800; font-size: 1rem; margin: 0; }

.menu-search { padding: 0.9rem 1.2rem 0.2rem; }

.qty-note { font-size: 0.72rem; color: var(--faint); margin: 0.2rem 0 0; }

/* ---------- Colour swatches (product cards) ---------- */

.swatches { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.45rem; flex-wrap: wrap; }
.swatch {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sw, #9a9a9a);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  cursor: help;
  transition: transform 0.15s ease;
}
.swatch:hover { transform: scale(1.25); }
/* name bubble on hover — sits above the dot, inside the card box */
.swatch::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 7px);
  left: -2px;
  transform: translateY(3px);
  background: #111;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.32rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 3;
}
.swatch::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 3px;
  transform: translateY(3px);
  border: 4px solid transparent;
  border-top-color: #111;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 3;
}
.swatch:hover::after, .swatch:hover::before,
.swatch:focus-visible::after, .swatch:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}
/* last swatches in a row flip the bubble so it stays inside the card */
.swatch:nth-child(n+4)::after { left: auto; right: -2px; }
.swatch:nth-child(n+4)::before { left: auto; right: 3px; }
.swatch-more { font-size: 0.66rem; font-weight: 700; color: var(--muted); margin-left: 0.1rem; }

/* ---------- Colour picker (product page) ---------- */

.color-pick { display: grid; gap: 0.5rem; margin-bottom: 0.2rem; }
.color-pick-label { font-size: 0.85rem; color: var(--muted); }
.color-pick-label b { color: var(--text); font-weight: 700; }
.color-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.color-opt { position: relative; }
.color-opt input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.color-opt span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.95rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.color-opt input:checked + span { border-color: #111; background: #111; color: #fff; }
.color-opt input:focus-visible + span { outline: 2px solid #111; outline-offset: 2px; }
.color-opt:hover span { border-color: #111; }

.line-color { font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }

/* ---------- Static pages ---------- */

.static-page { max-width: 760px; padding-bottom: 3rem; }
.static-body h2 { font-size: 1.05rem; margin: 1.6rem 0 0.6rem; }
.static-body p { color: var(--muted); margin: 0 0 0.9rem; }
.static-body ul { color: var(--muted); padding-left: 1.2rem; margin: 0 0 0.9rem; display: grid; gap: 0.4rem; }
.static-body a { font-weight: 600; text-decoration: underline; }
.static-body b { color: var(--text); }

/* ---------- Utilities ---------- */

.result-count { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-left: 0.5rem; white-space: nowrap; }
.muted { color: var(--muted); }
.mt-2 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1.6rem; }
