/* ============================================================
   Shop Weaves — design system (brand colour from the logo: warm orange)
   ============================================================ */
:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --bg: #ffffff;
  --bg-soft: #f7f5f3;
  --surface: #ffffff;
  --ink: #1a1712;
  --ink-2: #4a443c;
  --muted: #837b70;
  --line: #ece7e1;
  --line-2: #f4f0eb;

  --brand: #e56b1f;
  --brand-ink: #b8500f;
  --brand-050: #fdf1e7;
  --brand-100: #fbe2ce;
  --accent: #d9480f;
  --ok: #157347;
  --warn: #b45309;

  --dark: #17130e;
  --dark-2: #221c15;
  --on-dark: #ece7e1;
  --on-dark-muted: #a89f92;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(26, 19, 14, 0.06), 0 1px 3px rgba(26, 19, 14, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(26, 19, 14, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(26, 19, 14, 0.28);
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
* { margin: 0; }

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

/* Hidden scrollbars — the page still scrolls with wheel / trackpad / keys.
   (Any scrollbar still visible in the Claude preview pane is that pane's own
   chrome, drawn on top and not controllable from page CSS.) */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar { display: none; width: 0 !important; height: 0 !important; background: transparent; }
::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
svg { display: block; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
main.wrap { padding-top: 40px; padding-bottom: 56px; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  padding: 11px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.12s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, color 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); --btn-bg: var(--brand-ink); --btn-bd: var(--brand-ink); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn-ghost:hover { --btn-bg: var(--bg-soft); --btn-bd: var(--ink); }
.btn-invert, .btn-invert:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }

.link-danger {
  background: none; border: 0; padding: 0;
  color: var(--muted); font-size: 0.85rem; text-decoration: underline;
  text-underline-offset: 3px;
}
.link-danger:hover { color: var(--accent); }

.section-link {
  font-weight: 600; font-size: 0.92rem; color: var(--brand);
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- tags ---------- */
.tag {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 8px; border-radius: 7px; text-transform: uppercase;
}
.tag-sale { background: var(--accent); color: #fff; }
.tag-out { background: var(--dark); color: #fff; }
.tag-in { background: #dcfce7; color: var(--ok); }

/* ---------- announcement bar ---------- */
.announcement {
  background: var(--dark);
  color: var(--on-dark);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  flex-wrap: wrap;
}
.announcement svg { opacity: 0.9; }
.announcement .dot { color: var(--on-dark-muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}
/* lifts off the page once scrolled (class toggled by app.js) */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px -10px rgba(23, 19, 14, 0.18);
}
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}
/* one clean row: logo · centred nav · icon actions */
.header-bar {
  display: flex; align-items: center; gap: 28px;
  padding-block: 16px;
  /* generous right gutter so the cart icon never sits under an overlay scrollbar */
  padding-right: 46px;
}
.search-drop { padding-left: 24px; padding-right: 42px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo {
  height: 36px; width: auto; display: block;
  transition: transform 0.2s var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.03); }
.brand:active .brand-logo { transform: scale(0.98); }
.footer-brand .brand-logo { height: 46px; }
@media (max-width: 560px) { .brand-logo { height: 28px; } }

.main-nav { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; }
.main-nav a {
  padding: 8px 15px; border-radius: var(--radius-pill);
  font-size: 0.92rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav a.active { color: var(--brand); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.act-btn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px; color: var(--ink);
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.act-btn:hover { background: var(--bg-soft); }
.act-btn svg { width: 21px; height: 21px; }
.search-toggle:checked ~ .header-bar .search-btn { background: var(--brand); color: #fff; }

/* small count bubble on the cart icon (only rendered when the cart has items) */
.cart-badge {
  position: absolute; top: 3px; right: 3px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--brand); color: #fff;
  font-size: 0.6rem; font-weight: 700; line-height: 1;
  display: grid; place-items: center;
  border: 2px solid #fff; pointer-events: none;
}

/* slide-down search panel (toggled by the search icon) */
.search-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.search-drop {
  max-height: 0; overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height 0.28s var(--ease), border-color 0.28s;
}
.search-toggle:checked ~ .search-drop { max-height: 88px; border-top-color: var(--line); }
.search {
  display: flex; align-items: center; gap: 10px;
  margin-block: 14px;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 5px 5px 18px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.search:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(229, 107, 31, 0.14); }
.search-ico { color: var(--muted); display: flex; flex: none; }
.search input { border: 0; background: none; outline: none; width: 100%; font-size: 0.95rem; color: var(--ink); padding-block: 9px; }
.search input::placeholder { color: var(--muted); }
.search-go {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: var(--brand); color: #fff; border: 0;
  transition: background 0.15s, transform 0.12s var(--ease);
}
.search-go:hover { background: var(--brand-ink); }
.search-go:active { transform: scale(0.94); }

/* burger — mobile only */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 12px; place-items: center; flex: none; margin-left: -8px; cursor: pointer; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.nav-burger span::before { transform: translateY(-6px); }
.nav-burger span::after { transform: translateY(4px); }
.nav-toggle:checked ~ .header-bar .nav-burger span { background: transparent; }
.nav-toggle:checked ~ .header-bar .nav-burger span::before { transform: rotate(45deg); }
.nav-toggle:checked ~ .header-bar .nav-burger span::after { transform: rotate(-45deg); }

/* ---------- flash ---------- */
.flash-wrap { background: #f0fdf4; border-bottom: 1px solid #bbf7d0; }
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; color: var(--ok); font-weight: 600; font-size: 0.92rem;
}
.flash-error {
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 0.9rem;
}

/* ---------- hero banner ---------- */
.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 60% center; z-index: 0; }
.hero-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(18,12,7,0.94) 0%, rgba(18,12,7,0.74) 36%, rgba(18,12,7,0.28) 64%, rgba(18,12,7,0.05) 100%),
    linear-gradient(to top, rgba(18,12,7,0.5), transparent 45%);
}
.hero-inner { position: relative; z-index: 2; padding: 56px clamp(24px, 5vw, 60px); max-width: 620px; color: #fff; }
.hero-inner h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.06;
}
.hero-inner .eyebrow { color: #f6b483; }
.hero-inner .lead { color: rgba(255,255,255,0.82); }
.hero-inner .hero-meta { color: rgba(255,255,255,0.7); }
.hero-inner .stars-dim { color: rgba(255,255,255,0.25); }
.hero-banner .btn-ghost { --btn-bg: rgba(255,255,255,0.1); --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.42); }
.hero-banner .btn-ghost:hover { --btn-bg: rgba(255,255,255,0.2); --btn-bd: #fff; }
.hero-flag {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(18,12,7,0.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius-pill);
  padding: 7px 14px 7px 7px; color: #fff; font-size: 0.8rem; font-weight: 500;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem;
  font-weight: 700; color: var(--brand); margin-bottom: 16px;
}
.lead { margin-top: 18px; font-size: 1.08rem; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta { margin-top: 22px; font-size: 0.88rem; color: var(--muted); }
.hero-meta .stars { font-size: 0.9rem; }

/* ---------- trust row ---------- */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 40px 0 8px; padding: 22px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--bg-soft);
}
.trust > div { display: flex; gap: 12px; align-items: flex-start; }
.trust-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #fff; border: 1px solid var(--line); color: var(--brand); flex: none; }
.trust strong { display: block; font-size: 0.9rem; }
.trust span { font-size: 0.82rem; color: var(--muted); }

/* ---------- section head ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin: 64px 0 24px;
}
.section-head h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; font-size: clamp(1.5rem, 3vw, 2rem); }
.section-head .muted { margin-top: 4px; font-size: 0.92rem; }

/* ---------- category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cat-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); font-weight: 600;
  transition: border-color 0.15s, transform 0.15s var(--ease), box-shadow 0.15s;
}
.cat-tile:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-ico {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 11px; background: var(--brand-050); color: var(--brand);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.cat-ico svg { width: 20px; height: 20px; }
.cat-tile:hover .cat-ico { background: var(--brand); color: #fff; }
.cat-name {
  flex: 1; min-width: 0; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-go { display: inline-flex; color: var(--muted); flex: none; transition: transform 0.15s var(--ease), color 0.15s; }
.cat-go svg { width: 16px; height: 16px; }
.cat-tile:hover .cat-go { color: var(--ink); transform: translateX(3px); }
@media (max-width: 900px) {
  /* not enough width for a row layout with 4 long names — stack icon over name */
  .cat-grid { gap: 10px; }
  .cat-tile { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 16px 8px; }
  .cat-go { display: none; }
  .cat-name {
    flex: none; font-size: 0.82rem; line-height: 1.25;
    white-space: normal; overflow: visible; text-overflow: clip;
  }
}

/* ---------- product grid & cards ---------- */
/* 5 per row on desktop, 4 on small laptops, 3 on tablet, 2 on phone */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 840px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.home-cat .section-head { margin-top: 44px; }
/* homepage: each category is always exactly ONE row — trim to the column count */
@media (max-width: 1080px) { .home-cat .grid > .card:nth-child(n + 5) { display: none; } }
@media (max-width: 840px) { .home-cat .grid > .card:nth-child(n + 4) { display: none; } }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.card-quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px);
  border-radius: 10px; text-align: center; padding: 9px;
  font-size: 0.82rem; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: all 0.2s var(--ease);
}
.card:hover .card-quick { opacity: 1; transform: translateY(0); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.card-body h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.card-rating { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 700; font-size: 1.02rem; display: inline-flex; align-items: baseline; gap: 7px; }
.price s { color: var(--muted); font-weight: 400; font-size: 0.85em; }

.stars { color: #f59e0b; letter-spacing: 1px; font-size: 0.95em; }
.stars-dim { color: var(--line); }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 48px 0; display: grid; gap: 14px; justify-items: center; color: var(--muted); }
.empty-state { text-align: center; padding: 96px 20px; display: grid; gap: 12px; justify-items: center; }
.empty-state h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; font-size: 1.8rem; }
.empty-state p { color: var(--muted); }
.empty-ico { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); font-weight: 800; color: var(--muted); margin-bottom: 6px; }

/* ---------- breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.84rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span:last-child { color: var(--ink); }

/* ---------- shop ---------- */
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.shop-head h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.shop-head .muted { margin-top: 4px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--muted); }
.sort select {
  font: inherit; font-size: 0.9rem; padding: 9px 34px 9px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 7px 15px; font-size: 0.88rem; font-weight: 500; color: var(--ink-2);
  transition: all 0.15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 32px; }
/* fixed square frame — any uploaded photo (portrait, landscape, odd size) is
   cropped to fit so the layout never stretches or jumps */
.pdp-media { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-media .tag { position: absolute; top: 16px; left: 16px; z-index: 2; }
/* CSS-only image gallery — the extra .pdp-media qualifier keeps these rules
   more specific than ".pdp-media img" above, so the hide/show toggle wins */
.pgal-r { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pdp-media .pgal-img { display: none; position: absolute; inset: 0; }
.pdp-media .pgal-r:checked + .pgal-img { display: block; }

/* prev/next arrows on the two sides of the main gallery image */
.pgal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 40px; height: 40px; border-radius: var(--radius-pill);
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line);
  color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.15s, transform 0.15s var(--ease);
}
.pgal-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.pgal-nav:active { transform: translateY(-50%) scale(0.95); }
.pgal-prev { left: 12px; }
.pgal-next { right: 12px; }
.pgal-prev svg { transform: rotate(180deg); }
@media (max-width: 560px) {
  .pgal-nav { width: 34px; height: 34px; }
  .pgal-prev { left: 8px; }
  .pgal-next { right: 8px; }
}

.pdp-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pdp-thumb {
  width: 72px; height: 72px; border: 2px solid var(--line); border-radius: 10px;
  overflow: hidden; cursor: pointer; background: var(--bg-soft);
  transition: border-color 0.15s;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { border-color: var(--brand); }
.pdp-info { align-self: center; }
.pdp-info h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 8px 0 12px; }
.pdp-rating { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; margin-bottom: 16px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; }
.pdp-price s { font-size: 1rem; color: var(--muted); font-weight: 400; }
.pdp-price .save { font-size: 0.78rem; font-weight: 700; color: var(--accent); background: #fff1f2; padding: 4px 8px; border-radius: 7px; }
.pdp-desc { color: var(--ink-2); margin-bottom: 18px; }
.stock { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; margin-bottom: 20px; }
.stock .dot-ind { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); }
.stock.low { color: var(--warn); }
.stock.out { color: var(--accent); }
.pdp-buy { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.qty-input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; }
.qty-input label { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.qty-input input { width: 46px; border: 0; outline: none; font: inherit; font-weight: 600; text-align: center; padding: 12px 0; -moz-appearance: textfield; }
.pdp-meta { list-style: none; padding: 18px 0 0; margin-top: 6px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.pdp-meta li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-2); }
.pdp-meta svg { color: var(--brand); flex: none; }
.pdp-sku { margin-top: 12px; font-size: 0.8rem; }
.pdp-rating a.muted:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reviews ---------- */
.reviews { scroll-margin-top: 100px; }
.reviews-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.reviews-summary {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px;
  text-align: center; position: sticky; top: 96px; background: var(--surface);
}
.rev-score { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; font-size: 3rem; line-height: 1; }
.rev-score-stars { margin: 8px 0 4px; }
.rev-score-stars .stars { font-size: 1.05rem; }
.rev-bars { margin-top: 16px; display: grid; gap: 7px; text-align: left; }
.rev-bar { display: grid; grid-template-columns: 24px 1fr 18px; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); }
.rev-track { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.rev-track > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.rev-c { text-align: right; }

.reviews-main { display: grid; gap: 4px; }
.review { padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.review:first-child { padding-top: 0; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-050); color: var(--brand-ink, var(--brand)); font-weight: 700; font-size: 0.82rem; flex: none;
}
.review-who { display: grid; gap: 2px; }
.review-who strong { font-size: 0.94rem; }
.review-sub { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.review-sub .stars { font-size: 0.85rem; }
.review-sub .dot { opacity: 0.6; }
.verified { color: var(--ok); font-weight: 600; }
.review p { color: var(--ink-2); font-size: 0.94rem; }
.no-rev { padding: 16px 0; }

.review-write { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.review-write summary {
  cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 0.92rem;
  list-style: none;
}
.review-write summary::-webkit-details-marker { display: none; }
.review-write summary::before { content: "＋ "; color: var(--muted); }
.review-write[open] summary::before { content: "－ "; }
.review-form { padding: 4px 18px 18px; display: grid; gap: 12px; }
.review-form .field { margin: 0; }
.review-form .verified { color: var(--ok); font-weight: 600; }

.review-locked {
  margin-top: 18px; display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--bg-soft);
}
.review-locked > svg { color: var(--brand); flex: none; margin-top: 2px; }
.review-locked strong { display: block; font-size: 0.92rem; }
.review-locked p { margin-top: 3px; }
.review-locked a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- page head ---------- */
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.page-head h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead th {
  text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 700; padding: 0 0 12px; border-bottom: 1px solid var(--line);
}
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.c-prod { display: flex; gap: 14px; align-items: center; }
.c-prod img { border-radius: 10px; border: 1px solid var(--line); flex: none; }
.c-prod div { display: flex; flex-direction: column; gap: 2px; }
.c-prod a { font-weight: 600; }
.c-prod .muted { font-size: 0.82rem; }
.c-line { font-weight: 700; white-space: nowrap; }

.qty-form { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty-form form { display: flex; align-items: center; }
.qty-form button { border: 0; background: #fff; min-width: 34px; height: 38px; font-size: 1.05rem; color: var(--ink-2); transition: background 0.12s; }
.qty-form button:hover:not(:disabled) { background: var(--bg-soft); }
.qty-form button:disabled { opacity: 0.35; }
.qty-form .qty-set { font-size: 0.72rem; font-weight: 700; border-left: 1px solid var(--line); padding: 0 8px; }
.qty-form input { width: 44px; height: 38px; border: 0; border-inline: 1px solid var(--line); text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; outline: none; }
html.js .qty-form .qty-set { display: none; }

/* ---------- order summary ---------- */
.summary {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; position: sticky; top: 96px; background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.summary h2 { font-size: 1.05rem; margin-bottom: 14px; }
.summary dl { display: grid; gap: 10px; }
.summary dl > div { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--ink-2); }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.ship-bar { margin: 14px 0; font-size: 0.82rem; color: var(--muted); }
.ship-bar .bar { margin-top: 6px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ship-bar .bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.ship-ok { display: flex; align-items: center; gap: 8px; margin: 14px 0; font-size: 0.85rem; font-weight: 600; color: var(--ok); }
.summary .btn { margin-top: 16px; }
.pay-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.8rem; justify-content: center; }
.mini-items { list-style: none; padding: 14px 0 0; margin-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.mini-items li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; }
.mi-name { color: var(--ink-2); }

/* ---------- checkout ---------- */
.checkout-form fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 18px; }
.checkout-form legend { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem; padding: 0 6px; }
.checkout-form .step { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.78rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select,
.admin-form input, .admin-form textarea, .admin-form select,
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 0.94rem; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none;
  width: 100%; min-width: 0; max-width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field select, .admin-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
.field input:focus, .field textarea:focus, .field select:focus,
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus,
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--ink); box-shadow: 0 0 0 4px rgba(229, 107, 31, 0.16);
}
.field.has-error input, .field.has-error textarea { border-color: var(--accent); }
.field .err { color: var(--accent); font-size: 0.8rem; font-style: normal; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pay-opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pay-opt:hover { border-color: var(--ink); }
.pay-opt:has(input:checked) { border-color: var(--ink); background: var(--bg-soft); }
.pay-opt input { margin-top: 3px; }
.pay-opt span { display: grid; gap: 2px; }
.pay-opt small { color: var(--muted); }
.check-inline { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin: 6px 0 14px; }

/* ---------- confirmation ---------- */
.confirm { max-width: 640px; margin-inline: auto; text-align: center; }
.check { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: #dcfce7; color: var(--ok); margin: 0 auto 18px; }
.confirm h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; font-size: 2rem; }
.confirm-sub { color: var(--ink-2); margin-top: 8px; }
.confirm-card { text-align: left; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin: 26px 0; box-shadow: var(--shadow-sm); }
.confirm-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.line-table { width: 100%; border-collapse: collapse; }
.line-table td { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.line-table tfoot td { border-bottom: 0; padding: 6px 0; color: var(--ink-2); font-size: 0.92rem; }
.line-table tfoot .grand td { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.confirm-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.confirm-meta span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.confirm-meta p { margin-top: 3px; font-size: 0.92rem; }

/* ---------- prose (static pages) ---------- */
.prose { max-width: 68ch; }
.prose h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 20px; }
.prose h2 { font-size: 1.15rem; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { margin: 10px 0 10px 22px; display: grid; gap: 6px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 0.9em; }
.contact-form { margin: 20px 0; display: grid; gap: 6px; }
.contact-details { list-style: none; margin: 18px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 8px; }
.contact-details li { color: var(--ink-2); font-size: 0.92rem; }
.contact-details strong { color: var(--ink); }
.contact-details a { color: var(--brand); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--dark); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: 40px; margin-top: 72px; flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; color: #fff; font-size: 1.6rem; }
.cta-band p { color: var(--on-dark-muted); margin-top: 6px; }

/* ---------- admin ---------- */
.admin-login { max-width: 400px; margin: 40px auto; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.admin-login h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; font-size: 1.5rem; margin-bottom: 16px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 12px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 4px; }
.stat-n { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.stat-l { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.admin-panel { margin-top: 36px; }
.admin-panel h2 { font-size: 1.15rem; margin-bottom: 14px; }
.admin-form { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 720px; }
.admin-form .field { margin-bottom: 0; }
/* show the "new category" field only when "+ New category…" is chosen (progressive) */
@supports selector(:has(*)) {
  .admin-form [data-newcat] { display: none; }
  .admin-form:has(select[name="category"] option[value=""]:checked) [data-newcat] { display: grid; }
}
/* site-settings sub-sections (collapsible, one save each) */
.admin-sub { border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 12px; max-width: 720px; background: var(--bg); }
.admin-sub > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.admin-sub > summary::-webkit-details-marker { display: none; }
.admin-sub > summary::before { content: "+"; width: 1.1em; height: 1.1em; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; color: var(--muted); }
.admin-sub[open] > summary::before { content: "\2212"; }
.admin-sub[open] > summary { border-bottom: 1px solid var(--line); }
.admin-sub > .admin-form { border: 0; border-radius: 0; max-width: none; }
.page-edit { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; }
.page-edit legend { font-weight: 700; font-size: 0.88rem; padding: 0 6px; }
.page-edit textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.admin-table th { text-align: left; padding: 12px 14px; background: var(--bg-soft); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td.low { color: var(--warn); font-weight: 700; }
.admin-table td.out { color: var(--accent); font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; }

/* inventory / image editor */
.inv-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.inv-jump a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 600; color: var(--ink-2); background: var(--surface);
}
.inv-jump a:hover { border-color: var(--brand); color: var(--brand-ink); }
.inv-jump-n {
  background: var(--brand-050); color: var(--brand-ink); font-size: 0.72rem;
  padding: 1px 7px; border-radius: 999px; font-weight: 700;
}
.inv-cat { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--surface); scroll-margin-top: 90px; }
.inv-cat > summary {
  cursor: pointer; list-style: none; padding: 14px 18px;
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em;
}
.inv-cat-count { margin-left: auto; }
.inv-cat > summary::-webkit-details-marker { display: none; }
.inv-cat > summary::before { content: "▸"; margin-right: 8px; color: var(--muted); font-size: 0.85em; transition: transform 0.15s var(--ease); display: inline-block; }
.inv-cat[open] > summary::before { transform: rotate(90deg); }
.inv-cat-count { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.inv-cat > .inv-list { padding: 4px 14px 16px; }

.inv-list { display: grid; gap: 10px; }
.inv-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  scroll-margin-top: 100px;
}
.inv-meta { display: grid; gap: 2px; flex: 1 1 100%; }
.inv-meta strong { font-size: 0.92rem; }

.inv-gallery { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; }
.inv-shot { position: relative; width: 46px; height: 46px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.inv-shot > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inv-shot .inv-rm { position: absolute; top: 0; right: 0; }
.inv-shot .inv-rm button {
  border: 0; background: rgba(23, 19, 14, 0.72); color: #fff; width: 18px; height: 18px;
  line-height: 1; font-size: 13px; border-bottom-left-radius: 6px; cursor: pointer;
}
.inv-shot .inv-rm button:hover { background: var(--accent); }
.inv-shot-ph { width: auto; padding: 0 8px 0 0; display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--line); }
.inv-shot-ph img { width: 46px; height: 46px; }
.inv-shot-ph em { font-style: normal; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.inv-edit { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; flex: 1 1 100%; }
.inv-f { display: grid; gap: 4px; }
.inv-f > span { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.inv-f input, .inv-f textarea { font: inherit; font-size: 0.88rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; width: 84px; }
.inv-f textarea { width: 100%; resize: vertical; min-height: 38px; }
.inv-f.inv-img { flex: 1 1 240px; }
.inv-f.inv-img input, .inv-f.inv-img textarea { width: 100%; }
.inv-edit .btn { flex: none; align-self: flex-end; }
@media (max-width: 560px) {
  .inv-f, .inv-f.inv-img { flex: 1 1 100%; }
  .inv-f input { width: 100%; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 40px;
  padding-block: 56px 40px;
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { background: #fff; color: var(--dark); }
.footer-brand p { margin-top: 14px; font-size: 0.88rem; color: var(--on-dark-muted); max-width: 34ch; }
.footer-contact { margin-top: 10px; padding: 0; list-style: none; display: grid; gap: 6px; }
.footer-contact li { line-height: 1.5; }
.footer-contact a { color: var(--on-dark); }
.footer-contact a:hover { color: #fff; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.soc {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.78rem; font-weight: 700; color: #fff;
  transition: background 0.15s, border-color 0.15s;
}
.soc:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.35); }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-dark-muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-col a { font-size: 0.9rem; color: var(--on-dark); }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.newsletter p { font-size: 0.86rem; color: var(--on-dark-muted); margin-bottom: 12px; }
.nl-form { display: flex; gap: 8px; }
.nl-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 0.88rem; padding: 10px 12px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06); color: #fff; outline: none;
}
.nl-form input::placeholder { color: var(--on-dark-muted); }
.nl-form input:focus { border-color: rgba(255, 255, 255, 0.5); }
.nl-form button {
  background: #fff; color: var(--dark); border: 0; border-radius: 10px;
  padding: 10px 16px; font-weight: 600; font-size: 0.88rem;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem; color: var(--on-dark-muted);
}
.pay-row { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.pay-mark { display: inline-flex; }
.pay-mark svg { height: 26px; width: auto; display: block; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .newsletter { grid-column: 1 / -1; }
  .nl-form { max-width: 420px; }
}
@media (max-width: 960px) {
  .header-bar { flex-wrap: wrap; column-gap: 10px; row-gap: 0; padding-block: 12px; }
  .nav-burger { display: grid; order: 1; }
  .brand { order: 2; }
  .header-actions { order: 3; margin-left: 4px; }

  /* phone: search is a permanent full-width bar, not a toggle */
  .search-btn { display: none; }
  .search-drop {
    max-height: none; overflow: visible;
    border-top-color: var(--line);
    transition: none;
  }
  .search { margin-block: 12px; }

  .main-nav {
    order: 4; flex-basis: 100%; justify-content: flex-start;
    flex-direction: column; align-items: stretch; gap: 2px;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s var(--ease), padding 0.3s var(--ease), margin 0.3s var(--ease);
  }
  .nav-toggle:checked ~ .header-bar .main-nav {
    max-height: 75vh; padding-block: 8px; margin-top: 8px;
    border-top: 1px solid var(--line);
  }
  .main-nav a { padding: 12px 12px; border-radius: 8px; }
  .hero-banner { min-height: 440px; }
  .hero-inner { padding: 44px 24px; max-width: none; }
  .trust { grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .reviews-layout { grid-template-columns: 1fr; gap: 22px; }
  .reviews-summary { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .header-bar { column-gap: 4px; padding-right: 40px; }
  .search-drop { padding-left: 16px; padding-right: 36px; }
  main.wrap { padding-top: 24px; }
  .section-head { margin: 40px 0 18px; }
  .row, .row-3 { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .cat-grid { gap: 8px; }
  .cat-tile { flex-direction: column; text-align: center; gap: 8px; padding: 12px 6px; }
  .cat-ico { width: 36px; height: 36px; border-radius: 10px; }
  .cat-ico svg { width: 19px; height: 19px; }
  .cat-name { flex: none; white-space: normal; font-size: 0.72rem; line-height: 1.2; }
  .cat-go { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-band { padding: 28px; }
  .confirm-meta { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table td { display: block; padding: 6px 0; border: 0; }
  .cart-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .cart-table .c-line { padding-top: 10px; }

  /* hero */
  .hero-banner { min-height: 380px; border-radius: var(--radius); }
  .hero-inner { padding: 30px 18px; }
  .hero-inner .lead { font-size: 0.98rem; }
  .hero-actions { gap: 8px; margin-top: 20px; }
  .hero-actions .btn { flex: 1; padding: 12px 14px; font-size: 0.9rem; }
  .hero-flag { display: none; }

  .shop-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .shop-head h1 { font-size: 1.6rem; }
  .sort { justify-content: space-between; }

  /* two products per row on phones, compact cards */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { border-radius: 14px; }
  .card-body { padding: 10px; gap: 4px; }
  .card-cat { font-size: 0.62rem; letter-spacing: 0.06em; }
  .card-body h3 { font-size: 0.84rem; line-height: 1.25; }
  .card-rating { font-size: 0.72rem; gap: 4px; }
  .card-rating .stars { font-size: 0.8em; }
  .card-quick { display: none; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 6px; }
  .price { font-size: 0.92rem; gap: 5px; }
  .card-foot .btn { width: 100%; padding: 8px; }

  /* homepage: show only 2 products per category on phones (one clean row) */
  .home-cat .grid > .card:nth-child(n + 3) { display: none; }
}

/* ---------- animation ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes shimmer { to { background-position: 200% 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* hero entrance */
  .hero-inner > * { animation: fadeUp 0.6s var(--ease) both; }
  .hero-inner > .eyebrow { animation-delay: 0.05s; }
  .hero-inner > h1 { animation-delay: 0.12s; }
  .hero-inner > .lead { animation-delay: 0.2s; }
  .hero-inner > .hero-actions { animation-delay: 0.28s; }
  .hero-inner > .hero-meta { animation-delay: 0.36s; }
  .hero-flag { animation: fadeUp 0.6s 0.4s both, floaty 4.5s ease-in-out 1.2s infinite; }
  .hero-bg img { animation: fadeUp 0.9s var(--ease) both; }

  /* scroll reveal (class toggled by app.js) */
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }

  /* announcement bar icon nudge */
  .announcement svg { animation: floaty 3s ease-in-out infinite; }
}

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