/* ==========================================================================
   Styling Thrift — storefront stylesheet
   Light = mockup (white page / black nav). Dark = black page / white nav.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url(../fonts/montserrat-var-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --nav-h: 88px;
  --nav-pad: 22px;
  --pad: clamp(16px, 4vw, 40px);
  --max: 1390px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --bg: #ffffff;
  --fg: #0b0b0b;
  --muted: #6e6e6e;
  --line: #e6e6e6;
  --tile: #eceff0;
  --nav-bg: #000000;
  --nav-fg: #ffffff;
  --btn-bg: #0b0b0b;
  --btn-fg: #ffffff;
  --accent: #b08d57;               /* champagne gold — used sparingly */
  --ok: #2e8b6a;
  --hold: #c98a1b;
  --off: #b04a4a;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
  --ring: #000;
}

[data-theme="dark"] {
  --bg: #050505;
  --fg: #f3f0ea;
  --muted: #9d9992;
  --line: #1f1f1f;
  --tile: #e6e8e9;
  --nav-bg: #ffffff;
  --nav-fg: #0b0b0b;
  --btn-bg: #f3f0ea;
  --btn-fg: #0b0b0b;
  --shadow: 0 10px 34px rgba(0, 0, 0, .6);
  --ring: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 14px/1.5 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 6px; transition: top .2s; }
.skip:focus { top: 12px; }
.container { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.container.narrow { max-width: 620px; }
.container.narrow-wide { max-width: 860px; }
main { padding-top: var(--nav-h); min-height: 100vh; outline: none; }

/* theme switch: every colour change glides instead of snapping */
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease, stroke .5s ease, box-shadow .5s ease, opacity .5s ease !important;
}
html.theme-anim .theme-toggle svg { transition: transform .6s var(--ease), opacity .4s ease !important; }
html.theme-anim .nav-bg { transition: background-color .5s ease !important; }

/* ==========================================================================
   NAV — fixed bar that fades away; the logo stays; click the logo and the bar blooms back out from it
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 60;
  color: var(--nav-fg); pointer-events: none;
}
.nav:not(.is-ready) *, .nav:not(.is-ready) { transition: none !important; }

.nav-bg {
  position: absolute; inset: 0; background: var(--nav-bg);
  clip-path: circle(0 at 50% 50%); opacity: 0;
  transition: opacity .45s ease, clip-path 0s linear .45s, background-color .45s ease;
}
.nav[data-state="open"] .nav-bg {
  clip-path: circle(110vmax at 50% 50%); opacity: 1; pointer-events: auto;
  transition: clip-path .9s var(--ease-io), opacity .12s linear, background-color .45s ease;
}

.nav-inner {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--nav-pad);
  visibility: hidden; transition: visibility 0s linear .45s;
}
.nav[data-state="open"] .nav-inner { visibility: visible; transition-delay: 0s; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 2px; }

.nav-btn svg { width: 28px; height: 28px; }
.nav-btn {
  position: relative; display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0; border: 0; background: none; color: inherit;
  border-radius: 50%; pointer-events: auto; -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s ease, transform .35s var(--ease);
}
.nav[data-state="open"] .nav-btn {
  opacity: 1; transform: none;
  transition: opacity .5s ease calc(.38s + var(--i, 0) * .06s), transform .6s var(--ease) calc(.38s + var(--i, 0) * .06s);
}
.nav-left .nav-btn { --i: 0; }
.nav-right > :nth-child(1) { --i: 1; } .nav-right > :nth-child(2) { --i: 2; }
.nav-right > :nth-child(3) .nav-btn, .nav-right > .search { --i: 3; } .nav-right > :nth-child(4) { --i: 4; }
.search .nav-btn { --i: 3; }

/* ── 3D perspective hover (inspired by the reference clip): tilt toward the cursor, face lifts forward ── */
.tilt { perspective: 520px; }
.tilt-face {
  position: relative; display: grid; place-items: center;
  width: 100%; height: 100%;
  transform-style: preserve-3d; backface-visibility: hidden; will-change: transform;
}
.tilt-face > svg, .tilt-face > img { grid-area: 1 / 1; transform: translateZ(16px); transition: transform .5s var(--ease), opacity .35s ease; }
.tilt-face::before {                     /* glass plate that tilts underneath the icon */
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, currentColor 26%, transparent), color-mix(in srgb, currentColor 7%, transparent) 70%);
  box-shadow: 0 10px 22px -8px color-mix(in srgb, currentColor 45%, transparent), inset 0 0 0 1px color-mix(in srgb, currentColor 20%, transparent);
  opacity: 0; transform: translateZ(0) scale(.6);
  transition: opacity .3s ease, transform .45s var(--ease);
}
.nav-btn:hover .tilt-face::before, .nav-btn:focus-visible .tilt-face::before { opacity: 1; transform: translateZ(0) scale(1); }
.logo .tilt-face::before { inset: -2px -8px; border-radius: 18px; }
.logo:hover .tilt-face::before { opacity: .55; transform: translateZ(0) scale(1); }

.badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 9px;
  background: var(--nav-fg); color: var(--nav-bg); font-size: 10px; font-weight: 700; line-height: 1;
  transform: translateZ(26px); transition: transform .3s var(--ease), background-color .45s, color .45s;
}
.badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: translateZ(26px) scale(1); } 40% { transform: translateZ(26px) scale(1.55); } 100% { transform: translateZ(26px) scale(1); } }

/* search: magnifier on the right; the box grows leftward and pushes the icons beside it */
.search { display: flex; align-items: center; }
.search-form { width: 0; opacity: 0; overflow: hidden; transition: width .6s var(--ease), margin .6s var(--ease), opacity .35s ease; }
.search.is-open .search-form { width: min(340px, max(0px, calc(50vw - 345px))); margin-inline: 8px 2px; opacity: 1; transition-delay: 0s, 0s, .08s; }
.search-form input {
  width: 100%; height: 44px; padding: 0 4px; background: transparent; border: 0; outline: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--nav-fg) 45%, transparent);
  color: inherit; font-size: 14px; letter-spacing: .02em; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.search-form input::placeholder { color: color-mix(in srgb, var(--nav-fg) 55%, transparent); }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form input:focus { border-bottom-color: var(--accent); }
#searchBtn .tilt-face > svg { transition: transform .55s var(--ease), opacity .3s ease; }
#searchBtn .tilt-face > svg:last-child { opacity: 0; transform: translateZ(16px) rotate(-90deg) scale(.5); }
.search.is-open #searchBtn .tilt-face > svg:first-child { opacity: 0; transform: translateZ(16px) rotate(90deg) scale(.5); }
.search.is-open #searchBtn .tilt-face > svg:last-child { opacity: 1; transform: translateZ(16px); }

.search-panel {
  position: absolute; top: calc(100% - 6px); right: var(--nav-pad);
  width: min(430px, calc(100vw - 2 * var(--nav-pad)));
  background: var(--nav-bg); color: var(--nav-fg);
  border-radius: 0 0 16px 16px; box-shadow: var(--shadow);
  transform-origin: top right; transform: translateY(-10px) scale(.98); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, transform .45s var(--ease), visibility 0s linear .45s, background-color .45s, color .45s;
  max-height: min(70vh, 520px); overflow: auto;
}
.search-panel.is-in { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.sr-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 10px 16px; border-top: 1px solid color-mix(in srgb, var(--nav-fg) 12%, transparent); transition: background-color .2s; }
.sr-item:hover, .sr-item:focus-visible { background: color-mix(in srgb, var(--nav-fg) 8%, transparent); outline: none; }
.sr-item img { width: 54px; height: 54px; object-fit: contain; background: var(--tile); border-radius: 8px; mix-blend-mode: normal; }
.sr-item b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; font-weight: 500; }
.sr-item small { display: block; opacity: .65; font-size: 12px; }
.sr-item span { font-weight: 600; font-size: 13px; white-space: nowrap; }
.sr-item.is-off { opacity: .55; }
.sr-msg { padding: 18px 16px; opacity: .7; font-size: 13px; }
.sr-all { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid color-mix(in srgb, var(--nav-fg) 12%, transparent); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sr-all:hover { color: var(--accent); }

/* ── Logo: fixed, centred, never scrolls. Both versions stacked; tone picks which one shows. ── */
.logo {
  --lw: clamp(176px, 19vw, 276px);
  position: fixed; top: 0; left: calc(50% - var(--lw) / 2); width: var(--lw); height: var(--nav-h);
  z-index: 70; display: block; perspective: 700px; -webkit-tap-highlight-color: transparent;
  transition: opacity .35s ease;
}
.logo::before {                          /* soft halo so the lone logo stands out from any background */
  content: ""; position: absolute; inset: -6px -34px; pointer-events: none;
  background: radial-gradient(closest-side, var(--halo, transparent) 0%, transparent 100%);
  opacity: 0; transition: opacity .5s ease;
}
.nav[data-state="closed"] ~ .logo::before { opacity: 1; }
.logo[data-tone="dark"]  { --halo: rgba(0, 0, 0, .5); }
.logo[data-tone="light"] { --halo: rgba(255, 255, 255, .8); }
.logo .tilt-face { display: block; }
.logo-img {
  position: absolute; left: 0; top: 50%; width: 100%; height: auto; margin-top: calc(var(--lw) * -.1214 - 3px);   /* image is 560×136 → half its height = .1214 × width */
  opacity: 0; transition: opacity .5s ease, filter .5s ease; pointer-events: none; transform: none !important;
}
.logo-white { filter: drop-shadow(0 1px 7px rgba(0, 0, 0, .55)); }
.logo-black { filter: drop-shadow(0 1px 7px rgba(255, 255, 255, .85)); }
.logo[data-tone="dark"]  .logo-white { opacity: 1; }
.logo[data-tone="light"] .logo-black { opacity: 1; }


/* ==========================================================================
   Buttons / links / shared bits
   ========================================================================== */
.btn-solid, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 28px; border-radius: 4px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--btn-bg); transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .35s var(--ease), letter-spacing .35s var(--ease);
}
.btn-solid { background: var(--btn-bg); color: var(--btn-fg); }
.btn-solid:hover:not(:disabled) { background: transparent; color: var(--fg); letter-spacing: .2em; }
.btn-ghost { background: transparent; color: var(--fg); border-color: color-mix(in srgb, var(--fg) 35%, transparent); }
.btn-ghost:hover { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn-solid:disabled { opacity: .45; cursor: not-allowed; }
.btn-wide { width: 100%; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; transition: background-color .25s, transform .35s var(--ease); }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); transform: rotate(90deg); }

.section-title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 1.15; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; font-weight: 600; }
.link-cta {
  display: inline-block; margin-top: 10px; font-weight: 700; font-size: 16px; text-transform: uppercase; line-height: 1.1;
  padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 3px no-repeat;
  transition: background-size .45s var(--ease), color .3s;
}
a:hover > .link-cta, a.link-cta:hover { background-size: 40% 3px; color: var(--accent); }
.section-head .link-cta { margin: 0; font-size: 14px; }

/* ==========================================================================
   Home
   ========================================================================== */
.section-condition { padding-top: 44px; }
.section-condition .section-title { margin-bottom: 30px; }
.cond-grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 39px; row-gap: 0; }
/* each tile = 4 rows (photo · title · text · link); subgrid makes those rows line up across every tile */
.cond-tile { display: flex; flex-direction: column; padding-bottom: 8px; }
.cond-tile .link-cta { margin-top: auto; align-self: flex-start; }
.cond-tile p { flex: 1 0 auto; margin-bottom: 14px; }
@supports (grid-template-rows: subgrid) {
  .cond-tile { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
  .cond-tile .link-cta { margin-top: 0; }
  .cond-tile p { margin-bottom: 0; }
  .cond-tile .link-cta { margin-top: 14px; justify-self: start; }
}
.cond-img { display: block; overflow: hidden; aspect-ratio: 317 / 299; background: var(--tile); }
.cond-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cond-tile:hover .cond-img img { transform: scale(1.06); }
.cond-slides { position: relative; }
.cond-slides img { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease, transform 1.1s var(--ease); }
.cond-slides img.is-front { opacity: 1; }
.cond-tile h2 { margin-top: 12px; font-size: 22px; font-weight: 400; text-transform: uppercase; line-height: 1.2; }
.cond-tile p { margin-top: 8px; font-size: 13px; line-height: 1.35; max-width: 34ch; color: color-mix(in srgb, var(--fg) 88%, transparent); }

.section-cats { margin-top: clamp(56px, 7vw, 108px); }
.cat-row { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; }
@media (min-width: 1200px) { .cat-row { margin-inline: -28px; } }
.cat { display: block; text-align: center; padding: 0 8px; }
.cat-img { display: flex; align-items: flex-end; justify-content: center; height: 170px; }
.cat-img img { max-width: 100%; width: auto; height: auto; transition: transform .6s var(--ease), filter .6s ease; }
.cat:hover .cat-img img { transform: translateY(-8px) scale(1.04); }
[data-theme="dark"] .cat-img img { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.cat-label {
  display: inline-block; margin-top: 30px; font-weight: 700; font-size: 15px;
  background: linear-gradient(var(--accent), var(--accent)) center bottom / 0 2px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--ease);
}
.cat:hover .cat-label { background-size: 100% 2px; }

.section-new { margin-top: clamp(72px, 9vw, 130px); }

.section-promise { margin-top: clamp(72px, 9vw, 130px); margin-bottom: clamp(64px, 8vw, 110px); }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line); padding-top: 40px; }
.promise span { display: block; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .28em; margin-bottom: 14px; }
.promise h3 { font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.promise p { color: var(--muted); max-width: 38ch; }

/* ==========================================================================
   Product grid + card (Samba-style)
   ========================================================================== */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 26px; row-gap: 0; }
/* Every card is 7 fixed rows: photo · price · name · sizes · stock · admin · button.
   Where subgrid is supported the rows are shared across the whole grid row, so prices, names,
   sizes, stock lines and buttons sit at the same height on every card. */
.card { min-width: 0; display: flex; flex-direction: column; padding-bottom: 40px; }
.card-body { display: flex; flex-direction: column; flex: 1; }
.card-act { margin-top: auto; padding-top: 14px; }
@supports (grid-template-rows: subgrid) {
  .card { display: grid; grid-template-rows: subgrid; grid-row: span 7; }
  .card-body { display: contents; }
  .card-act { margin-top: 0; }
}
.card-media { position: relative; aspect-ratio: 1; background: var(--tile); overflow: hidden; border-radius: 2px; }
.card-link { display: block; width: 100%; height: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card[data-status="out_of_stock"] .card-media img { opacity: .55; filter: grayscale(.6); }
.card[data-status="on_hold"] .card-media img { opacity: .8; }
.heart {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; background: transparent; border-radius: 50%; color: #0b0b0b; transition: transform .35s var(--ease), background-color .25s;
}
.heart:hover { transform: scale(1.14); background: rgba(255, 255, 255, .75); }
.heart[aria-pressed="true"] { color: #b3262e; }
.heart[aria-pressed="true"] path { fill: currentColor; }
.heart.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.card-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: #0b0b0b; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 5px 9px; border-radius: 2px; }
.card-id { position: absolute; left: 10px; bottom: 10px; z-index: 2; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 4px 8px; border-radius: 2px; }
.card-price { font-weight: 700; font-size: 15px; }
.card-price s { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.card-price { padding-top: 14px; }
.card-name { margin-top: 6px; font-size: 14px; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-name a:hover { color: var(--accent); }
.card-size { margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.card-size s, .size-list s { color: color-mix(in srgb, var(--muted) 75%, transparent); text-decoration-thickness: 1.5px; text-decoration-color: var(--off); }
.card-stock { margin-top: 6px; display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.card-stock i, .admin-stats i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.s-in_stock { color: var(--ok); } .s-on_hold { color: var(--hold); } .s-out_of_stock { color: var(--off); }
.btn-cart {
  position: relative; display: inline-flex; align-items: center; justify-content: center; text-align: center; margin-top: auto; width: 100%; min-height: 46px; padding: 0 16px; border-radius: 3px; overflow: hidden;
  border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg);
  font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  transition: color .4s ease, border-color .4s ease, transform .3s var(--ease);
}
.btn-cart::before { content: ""; position: absolute; inset: 0; background: var(--bg); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn-cart > span { position: relative; z-index: 1; display: inline-block; transition: letter-spacing .4s var(--ease); }
.btn-cart:hover:not(:disabled)::before { transform: none; }
.btn-cart:hover:not(:disabled) { color: var(--fg); border-color: var(--fg); }
.btn-cart:hover:not(:disabled) > span { letter-spacing: .26em; }
.btn-cart:active:not(:disabled) { transform: scale(.985); }
.btn-cart:disabled { background: transparent; color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn-cart.is-added { background: transparent; color: var(--fg); border-color: var(--accent); }
.btn-cart.is-added::before { background: color-mix(in srgb, var(--accent) 14%, transparent); transform: none; }
.btn-cart.is-busy { opacity: .7; pointer-events: none; }
.card-admin:empty { display: none; }
.admin-status select, .admin-status { display: block; }
.admin-status select { width: 100%; margin-top: 10px; height: 38px; padding: 0 10px; background: var(--bg); border: 1px dashed var(--accent); border-radius: 3px; font-size: 12px; font-weight: 600; }

/* ==========================================================================
   Shop page
   ========================================================================== */
.shop { padding-top: 34px; padding-bottom: 90px; }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.shop-title h1 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; text-transform: uppercase; line-height: 1.15; overflow-wrap: anywhere; }
.shop-count { margin-top: 4px; color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.shop-tools { display: flex; align-items: center; gap: 12px; }
.sort select {
  -webkit-appearance: none; appearance: none; height: 46px; min-width: 190px; padding: 0 44px 0 18px; border: 0; border-radius: 6px;
  background: var(--btn-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--btn-fg); font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .45s, color .45s;
}
[data-theme="dark"] .sort select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230b0b0b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sort select option { color: #0b0b0b; background: #fff; }
.filter-open { display: none; min-height: 46px; padding: 0 18px; }

.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.cat-pills a {
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .3s, color .3s, border-color .3s, transform .35s var(--ease);
}
.cat-pills a:hover { border-color: var(--fg); transform: translateY(-1px); }
.cat-pills a[aria-current="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }

.shop-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 45px; margin-top: 24px; align-items: start; }
.filters { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.filters-head, .f-show { display: none; }
.f-group { border: 0; padding: 0; margin: 0 0 38px; min-width: 0; }
.f-group legend { display: block; width: 100%; padding: 0 0 8px; margin-bottom: 20px; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--line); position: relative; }
.f-group legend::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 2px; background: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input, .check input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: block; padding: 7px 10px; border: 1px solid var(--line); border-radius: 2px; font-size: 11.5px; line-height: 1.2; transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease); white-space: nowrap; }
.chip span em { font-style: normal; color: var(--muted); }
.chip:hover span { border-color: var(--fg); }
.chip input:checked + span { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.chip input:checked + span em { color: inherit; opacity: .7; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.is-empty input:not(:checked) + span { opacity: .4; }
.check { display: flex; align-items: center; gap: 12px; padding: 7px 0; cursor: pointer; font-size: 15px; }
.check-box { width: 17px; height: 17px; border: 1.5px solid color-mix(in srgb, var(--fg) 40%, transparent); border-radius: 2px; flex: none; position: relative; transition: background-color .25s, border-color .25s; }
.check-box::after { content: ""; position: absolute; left: 4.5px; top: 1px; width: 5px; height: 9px; border: solid var(--btn-fg); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.check input:checked ~ .check-box { background: var(--btn-bg); border-color: var(--btn-bg); }
.check input:checked ~ .check-box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible ~ .check-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check em { font-style: normal; color: var(--muted); margin-left: auto; font-size: 13px; }
.f-clear { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.f-clear[hidden], .empty[hidden], .more[hidden] { display: none; }
.f-clear:hover { color: var(--accent); }

.grid-wrap { min-width: 0; transition: opacity .3s ease; }
.grid-wrap.is-loading { opacity: .45; pointer-events: none; }
.shop .grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.more { display: flex; justify-content: center; margin-top: 56px; }
.empty { text-align: center; padding: 70px 0; }
.empty h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.empty p { margin: 10px 0 26px; color: var(--muted); }

/* ==========================================================================
   Drawers, menu, lightbox, toast, theme toggle
   ========================================================================== */
.scrim { position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s ease; }
.scrim.is-on { opacity: 1; }
.scrim[hidden] { display: none; }

.menu, .drawer {
  position: fixed; top: 0; bottom: 0; z-index: 100; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg); box-shadow: var(--shadow); visibility: hidden;
  transition: transform .6s var(--ease), visibility 0s linear .6s, background-color .45s, color .45s;
}
.menu { left: 0; width: min(400px, 90vw); transform: translateX(-102%); padding: 0 32px 32px; overflow-y: auto; }
.drawer { right: 0; width: min(460px, 100vw); transform: translateX(102%); }
.menu.is-open, .drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.menu-head, .drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); flex: none; }
.drawer-head { padding: 0 20px 0 28px; border-bottom: 1px solid var(--line); }
.menu-head span { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.menu-links { display: flex; flex-direction: column; margin-top: 10px; }
.menu-links a { padding: 8px 0; font-size: 26px; font-weight: 300; text-transform: uppercase; letter-spacing: .02em; opacity: 0; transform: translateX(-18px); transition: opacity .5s ease, transform .6s var(--ease), color .25s; }
.menu.is-open .menu-links a { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i, 0) * .04s); }
.menu-links a:hover { color: var(--accent); padding-left: 6px; }
.menu-links-small a { font-size: 15px; font-weight: 500; letter-spacing: .08em; padding: 6px 0; }
.menu-sub { margin-top: 30px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 22px; border-top: 1px solid var(--line); }

.drawer-tabs { display: flex; gap: 24px; }
.drawer-tabs button { position: relative; background: none; border: 0; padding: 6px 0; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.drawer-tabs button em { font-style: normal; opacity: .7; }
.drawer-tabs button[aria-selected="true"] { color: var(--fg); }
.drawer-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.drawer-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 28px; }
.drawer-foot { flex: none; padding: 20px 28px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer-foot:empty { display: none; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); animation: lineIn .5s var(--ease) both; }
@keyframes lineIn { from { opacity: 0; transform: translateY(8px); } }
.line img { width: 76px; height: 76px; object-fit: contain; background: var(--tile); mix-blend-mode: normal; border-radius: 2px; }
.line b { display: block; font-size: 13px; font-weight: 500; text-transform: uppercase; line-height: 1.3; overflow-wrap: anywhere; }
.line small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.line .price { font-weight: 700; font-size: 14px; margin-top: 6px; }
.line.is-off .price { text-decoration: line-through; color: var(--muted); }
.line .warn { color: var(--off); font-size: 12px; font-weight: 600; }
.line-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.line-actions button { background: none; border: 0; padding: 2px 0; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.line-actions button:hover { color: var(--fg); border-color: currentColor; }
.line-actions .add { color: var(--fg); border-bottom-color: var(--accent); }
.sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.sum b { font-size: 20px; letter-spacing: 0; }
.drawer-foot .btn-solid { width: 100%; }
.drawer-foot .fine { margin-top: 12px; text-align: center; }
.drawer-empty { text-align: center; padding: 70px 10px; color: var(--muted); }
.drawer-empty h3 { color: var(--fg); font-size: 16px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-bottom: 8px; }
.drawer-empty .btn-solid { margin-top: 24px; }

.lightbox { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; background: rgba(0, 0, 0, .92); opacity: 0; transition: opacity .35s ease; padding: 20px; cursor: zoom-out; }
.lightbox.is-on { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 900px); max-height: 88vh; width: auto; height: auto; background: #fff; border-radius: 6px; transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.is-on img { transform: none; }
.lightbox-x { position: absolute; top: 16px; right: 16px; color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120; max-width: min(92vw, 420px);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  background: var(--btn-bg); color: var(--btn-fg); padding: 13px 22px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: .02em; box-shadow: var(--shadow);
  transition: opacity .35s ease, transform .5s var(--ease), background-color .45s, color .45s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-err { background: #8f2a2a; color: #fff; }

.theme-toggle {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80;
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--btn-fg) 25%, transparent); background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .28); transition: transform .45s var(--ease), background-color .5s ease, color .5s ease, box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { transform: scale(1.1) rotate(-12deg); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { grid-area: 1 / 1; transition: transform .7s var(--ease), opacity .4s ease; }
[data-theme="light"] .ico-sun { opacity: 0; transform: rotate(-120deg) scale(.3); }
[data-theme="light"] .ico-moon { opacity: 1; transform: none; }
[data-theme="dark"] .ico-moon { opacity: 0; transform: rotate(120deg) scale(.3); }
[data-theme="dark"] .ico-sun { opacity: 1; transform: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: #050505; color: #ecebe8; padding: 70px 0 34px; border-top: 1px solid #1c1c1c; }
.footer-inner { width: min(100% - 2 * var(--pad), var(--max)); margin: 0 auto; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 210px; margin-bottom: 18px; }
.footer-brand p { color: #a29f98; max-width: 42ch; }
.footer h4 { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 600; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #cfcdc8; width: fit-content; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.footer-col a:hover { color: #fff; background-size: 100% 1px; }
.footer-fine { width: min(100% - 2 * var(--pad), var(--max)); margin: 54px auto 0; padding-top: 22px; border-top: 1px solid #1c1c1c; color: #77746e; font-size: 12px; }

/* ==========================================================================
   Forms (checkout, login, admin forms)
   ========================================================================== */
.checkout, .login, .checkout-done { padding-top: 44px; padding-bottom: 90px; }
.login .section-title, .checkout-done .section-title { margin-bottom: 26px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; margin-top: 30px; align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 3px; background: transparent; font-size: 15px;
  transition: border-color .25s, box-shadow .25s, background-color .45s;
}
.field select option { color: #0b0b0b; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field textarea { resize: vertical; min-height: 84px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 12.5px; color: var(--muted); }
.fine.warn { color: var(--off); }
.alert { padding: 14px 16px; border: 1px solid var(--off); border-radius: 3px; color: var(--off); font-size: 13.5px; background: color-mix(in srgb, var(--off) 8%, transparent); }
.alert-ok { border-color: var(--ok); color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.checkout-summary { position: sticky; top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 4px; }
.checkout-summary h2 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.summary-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.checkout-summary .summary-list li:not(.total) { grid-template-columns: 64px 1fr auto; }
.checkout-summary .summary-list img { width: 64px; height: 64px; object-fit: contain; background: var(--tile); }
.summary-list small { display: block; color: var(--muted); font-size: 12px; }
.summary-list .total { border-bottom: 0; font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .08em; }
.summary-list li.is-off { opacity: .55; }
.link-remove { grid-column: 2 / -1; justify-self: start; background: none; border: 0; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: underline; }
.lede { margin-bottom: 26px; font-size: 16px; line-height: 1.6; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .cond-grid { gap: 24px; }
  .footer-inner { gap: 36px; }
}

/* tablets & phones: search takes the whole row, logo steps aside */
@media (max-width: 1000px) {
  .search.is-open .search-form { width: calc(100vw - 2 * var(--nav-pad) - 48px * 2 - 12px); max-width: none; }
  .nav.search-open .nav-right > :not(.search) { width: 0; margin: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: width .5s var(--ease), opacity .25s; }
  .nav.search-open ~ .logo { opacity: 0; pointer-events: none; }
  .nav.search-open .nav-left { opacity: 1; }
  .search-panel { right: 0; left: 0; width: auto; border-radius: 0 0 16px 16px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 72px; --nav-pad: 8px; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .filter-open { display: inline-flex; }
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 100; max-height: 86vh; overflow: hidden; padding: 0; border-radius: 22px 22px 0 0;
    background: var(--bg); color: var(--fg); box-shadow: var(--shadow); transform: translateY(104%); visibility: hidden;
    transition: transform .6s var(--ease), visibility 0s linear .6s, background-color .45s;
  }
  .filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .filters form { display: flex; flex-direction: column; max-height: 86vh; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 4px 24px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; flex: none; }
  .f-group { padding: 0 24px; margin: 0 0 24px; flex: none; }
  .filters form { overflow-y: auto; }
  .filters-actions { position: sticky; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); margin-top: auto; }
  .f-show { display: inline-flex; flex: 1; }
  .scrim-filters { z-index: 99; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 0; }
  .card { padding-bottom: 30px; }
  .shop .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cond-grid { grid-template-columns: repeat(2, 1fr); column-gap: 14px; row-gap: 0; }
  .cond-tile { padding-bottom: 28px; }
  .cond-tile h2 { font-size: 17px; }
  .cond-tile p { font-size: 12px; }
  .link-cta { font-size: 14px; }
  .cat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 0; }
  .cat-row li { width: 33.333%; }
  .cat-img { height: 110px; }
  .cat-label { margin-top: 16px; font-size: 14px; }
  .promise { grid-template-columns: 1fr; gap: 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .checkout-grid { grid-template-columns: 1fr; gap: 30px; }
  .checkout-summary { position: static; order: -1; }
  .menu-links a { font-size: 22px; }
}

@media (max-width: 520px) {
  .nav-user { display: none; }
  .card-name { font-size: 12.5px; }
  .card-price { font-size: 14px; }
  .btn-cart { font-size: 10.5px; letter-spacing: .14em; padding: 0 8px; min-height: 44px; }
  .btn-cart:hover:not(:disabled) > span { letter-spacing: .14em; }
  .heart { top: 4px; right: 4px; }
  .shop-tools { width: 100%; }
  .shop-tools > * { flex: 1; }
  .sort select { width: 100%; min-width: 0; }
  .field-row { grid-template-columns: 1fr; }
  .section-head { align-items: center; }
  .theme-toggle { width: 44px; height: 44px; }
  .line { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .line img { width: 64px; height: 64px; }
  .drawer-body { padding-inline: 18px; } .drawer-foot { padding-inline: 18px; } .drawer-head { padding-left: 18px; }
}

/* touch devices: no hover-only tricks */
@media (hover: none) {
  .card:hover .card-media img, .cond-tile:hover .cond-img img, .cat:hover .cat-img img { transform: none; }
  .btn-cart:hover:not(:disabled)::before { transform: translateY(101%); }
  .btn-cart.is-added:hover::before { transform: none; }
  .btn-cart:hover:not(:disabled) { color: var(--btn-fg); border-color: var(--btn-bg); }
  .btn-cart.is-added:hover { color: var(--fg); border-color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* ── small phones: keep the centred logo clear of the icon cluster ── */
@media (max-width: 520px) {
  .logo { --lw: 116px; }
  .nav-btn { width: 42px; height: 42px; }
  .nav-btn svg { width: 25px; height: 25px; }
  .nav-left, .nav-right { gap: 0; }
  .search.is-open .search-form { width: calc(100vw - 2 * var(--nav-pad) - 42px * 2 - 12px); }
}
@media (max-width: 430px) { .logo { --lw: 104px; } }
@media (max-width: 380px) {
  #wishBtn { display: none; }          /* favourites stay reachable from the cart drawer's Wishlist tab */
}


/* ==========================================================================
   Cart / wishlist lines: product links
   ========================================================================== */
.line > a { display: block; }
.line b a:hover { color: var(--accent); }
.line-actions a { padding: 2px 0; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--accent); }
.line-actions a:hover { color: var(--accent); }

/* ==========================================================================
   Product page
   ========================================================================== */
.pdp { padding-top: 30px; padding-bottom: 90px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 26px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crumbs a { transition: color .25s; }
.crumbs a:hover { color: var(--fg); }
.crumb-now { color: var(--fg); overflow-wrap: anywhere; }

.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pdp-gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; position: sticky; top: 24px; }
.pdp-gallery[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.pdp-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: min(78vh, 680px); overflow: auto; scrollbar-width: none; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb { flex: none; padding: 0; border: 1.5px solid transparent; background: var(--tile); border-radius: 2px; aspect-ratio: 1; overflow: hidden; opacity: .6; transition: opacity .3s ease, border-color .3s ease; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-thumb:hover, .pdp-thumb.is-on { opacity: 1; }
.pdp-thumb.is-on { border-color: var(--fg); }
.pdp-stage { position: relative; aspect-ratio: 1; background: var(--tile); overflow: hidden; border-radius: 2px; }
.pdp-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pdp-zoom img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .25s ease, transform .9s var(--ease); }
.pdp-zoom:hover img { transform: scale(1.04); }
.pdp-zoom img.is-swap { opacity: 0; }
.pdp-stage .card-badge { top: 14px; left: 14px; }
.pdp-nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: #0b0b0b; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); opacity: 0; transition: opacity .3s ease, transform .35s var(--ease); }
.pdp-stage:hover .pdp-nav, .pdp-nav:focus-visible { opacity: 1; }
.pdp-prev { left: 12px; transform: rotate(180deg); } .pdp-next { right: 12px; }
.pdp-prev:hover { transform: rotate(180deg) scale(1.08); } .pdp-next:hover { transform: scale(1.08); }
.pdp-count { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .14em; }

.pdp-info { min-width: 0; }
.pdp-title { margin: 4px 0 14px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; text-transform: uppercase; line-height: 1.15; overflow-wrap: anywhere; }
.pdp-price { font-size: 22px; font-weight: 700; }
.pdp-price s { margin-left: 8px; font-size: 16px; font-weight: 400; color: var(--muted); }
.pdp-info > .card-stock { margin-top: 12px; }

.pdp-block { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.pdp-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.pdp-label small { letter-spacing: .04em; text-transform: none; color: var(--muted); font-weight: 400; }
.pdp-label em { font-style: normal; letter-spacing: .08em; color: var(--muted); }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.size-chip {
  position: relative; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); border-radius: 3px;
  background: transparent; color: var(--fg); font-size: 14px; font-weight: 600;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--ease);
}
.size-chip:hover:not(:disabled) { border-color: var(--fg); transform: translateY(-1px); }
.size-chip[aria-checked="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
/* sold-out sizes: number struck through + a diagonal slash across the box */
.size-chip.is-sold { cursor: not-allowed; color: color-mix(in srgb, var(--muted) 80%, transparent); border-color: var(--line);
  background: linear-gradient(to top right, transparent calc(50% - 1px), color-mix(in srgb, var(--off) 75%, transparent) calc(50% - .5px), color-mix(in srgb, var(--off) 75%, transparent) calc(50% + .5px), transparent calc(50% + 1px)); }
.size-chip.is-sold span { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.size-grid.is-nudge { animation: nudge .5s var(--ease); }
@keyframes nudge { 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.pdp-hint { margin-top: 12px; font-size: 12px; color: var(--muted); }

.pdp-actions { display: flex; gap: 12px; margin-top: 28px; align-items: stretch; }
.pdp-add { flex: 1; margin: 0; min-height: 56px; font-size: 12.5px; }
.pdp-heart { position: static; flex: none; width: 56px; height: 56px; border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); border-radius: 3px; color: var(--fg); }
.pdp-heart:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }

.pdp-facts { margin: 34px 0 0; border-top: 1px solid var(--line); }
.pdp-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pdp-facts dt { color: var(--muted); }
.pdp-facts dd { margin: 0; text-align: right; font-weight: 500; }

.pdp-admin { display: grid; gap: 12px; margin-top: 30px; padding: 20px; border: 1px dashed var(--accent); border-radius: 4px; }
.pdp-admin .admin-status select { margin-top: 0; }
.pdp-admin .pdp-hint { margin: 0; }
.size-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.size-toggle { min-width: 46px; height: 38px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); border-radius: 3px; background: transparent; color: var(--fg); font-size: 13px; font-weight: 600; transition: border-color .25s, color .25s; }
.size-toggle:hover { border-color: var(--fg); }
.size-toggle.is-sold { text-decoration: line-through; color: var(--off); border-color: var(--off); }

@media (max-width: 900px) {
  .pdp { padding-top: 18px; }
  .pdp-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .pdp-gallery { position: static; grid-template-columns: minmax(0, 1fr); }
  .pdp-thumbs { order: 2; flex-direction: row; max-height: none; overflow-x: auto; padding-bottom: 2px; }
  .pdp-thumb { width: 68px; }
  .pdp-nav { opacity: 1; width: 40px; height: 40px; margin-top: -20px; }
  .pdp-add { min-height: 54px; }
  .pdp-heart { width: 54px; height: 54px; }
  .size-grid { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
}

/* ==========================================================================
   Checkout: Pakistan-only fields (type-ahead dropdowns), hints, WhatsApp confirm
   ========================================================================== */
.field-hint { margin-top: 2px; font-size: 12px; color: var(--muted); }
.field-error { margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--off); }
.field-error[hidden] { display: none; }
.field.has-error input { border-color: var(--off); }

.combo { position: relative; }
.combo-box { position: relative; }
.combo-box input { padding-right: 44px; }
.combo-toggle {
  position: absolute; right: 0; top: 0; width: 44px; height: 100%; display: grid; place-items: center;
  border: 0; background: none; color: var(--muted); border-radius: 0 3px 3px 0; transition: transform .35s var(--ease), color .25s;
}
.combo-toggle:hover { color: var(--fg); }
.combo.is-open .combo-toggle { transform: rotate(180deg); color: var(--fg); }
.combo.is-open input { border-color: var(--accent); }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: 264px; overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 6px; list-style: none; background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); scrollbar-width: thin;
  animation: comboIn .25s var(--ease);
}
.combo-list[hidden] { display: none; }
@keyframes comboIn { from { opacity: 0; transform: translateY(-6px); } }
.combo-list li { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; border-radius: 4px; font-size: 15px; line-height: 1.3; cursor: pointer; }
.combo-list li.is-active, .combo-list li[aria-selected="true"] { background: color-mix(in srgb, var(--fg) 9%, transparent); }
/* like a search suggestion: what you typed is normal weight, the rest of the name is bold */
.combo-list .cn { min-width: 0; font-weight: 400; color: inherit; } .combo-list .cn b { font-weight: 700; color: inherit; }
.combo-list small { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.combo-list .combo-empty { color: var(--muted); font-size: 13px; cursor: default; }

/* order received: WhatsApp confirmation */
.done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.done-note { margin-top: 12px; }
.btn-wa {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden;
  min-height: 50px; padding: 0 28px; border-radius: 4px; background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bg);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s ease, border-color .4s ease, color .4s ease, letter-spacing .4s var(--ease);
}
.btn-wa::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #25d366; transform: translateX(-101%); transition: transform .5s var(--ease); }
.btn-wa svg { flex: none; color: #25d366; transition: color .4s ease, transform .5s var(--ease); }
.btn-wa:hover, .btn-wa:focus-visible { color: #07140c; border-color: #25d366; transform: translateY(-2px); letter-spacing: .17em; box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .6); }
.btn-wa:hover::before, .btn-wa:focus-visible::before { transform: none; }
.btn-wa:hover svg, .btn-wa:focus-visible svg { color: #07140c; transform: rotate(-8deg) scale(1.12); }
.btn-wa:active { transform: translateY(0) scale(.985); }
@media (max-width: 520px) { .done-actions > * { width: 100%; } .btn-wa { letter-spacing: .1em; } .btn-wa:hover { letter-spacing: .1em; } }
@media (hover: none) { .btn-wa:hover { transform: none; letter-spacing: .14em; color: var(--btn-fg); border-color: var(--btn-bg); box-shadow: none; } .btn-wa:hover::before { transform: translateX(-101%); } .btn-wa:hover svg { color: #25d366; transform: none; } }

/* ───────────── information / policy pages ───────────── */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-info .info { padding-top: 54px; padding-bottom: 80px; }
.info .eyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.info-meta { color: var(--muted); font-size: 12px; margin: -6px 0 26px; }
.prose { line-height: 1.75; font-size: 15px; }
.prose .lead { font-size: 17px; margin: 14px 0 28px; }
.prose h2 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin: 36px 0 12px; }
.prose p, .prose ul, .prose ol, .prose dl { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.prose .fine { color: var(--muted); font-size: 13px; }
.biz { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; }
.biz dt { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.biz dd { overflow-wrap: anywhere; }
.info-help { margin-top: 54px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; }
.info-help h2 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.info-help p { color: var(--muted); margin-bottom: 18px; }
.table-wrap { overflow-x: auto; margin: 0 0 12px; }
.size-table { width: 100%; border-collapse: collapse; text-align: center; }
.size-table th, .size-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.size-table thead th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.size-table tbody th { font-weight: 700; }
.size-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.faq { border-top: 1px solid var(--line); margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 34px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 14px; color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; margin: 16px 0; }
.consent input { margin-top: 3px; flex: none; }
.consent a { text-decoration: underline; }
@media (max-width: 520px) { .biz { grid-template-columns: 1fr; gap: 0 } .biz dd { margin-bottom: 8px } }

/* ───────────── footer: WhatsApp support + Instagram reveal ───────────── */
.wa-support { display: flex; align-items: center; gap: 12px; margin-top: 20px; max-width: 360px; color: #ecebe8; font-size: 13px; line-height: 1.45; transition: color .3s, transform .4s var(--ease); }
.wa-support svg { flex: none; color: #25d366; transition: transform .4s var(--ease); }
.wa-support small { display: block; color: #8d8a84; font-size: 11px; letter-spacing: .04em; margin-top: 2px; }
.wa-support:hover { color: #fff; transform: translateX(3px); }
.wa-support:hover svg { transform: rotate(-8deg) scale(1.12); }
.ig-btn { display: inline-flex; align-items: center; margin-top: 18px; height: 44px; padding: 0 11px; gap: 0; border: 1px solid #2b2b2b; border-radius: 999px; color: #ecebe8; background: #0c0c0c; overflow: hidden; transition: border-color .4s, background .4s, color .4s, box-shadow .4s, transform .4s var(--ease); }
.ig-btn svg { flex: none; }
.ig-handle { display: inline-block; max-width: 0; opacity: 0; white-space: nowrap; font-size: 13px; letter-spacing: .04em; transition: max-width .55s var(--ease), opacity .4s ease, margin .55s var(--ease); }
.ig-btn:hover, .ig-btn:focus-visible { border-color: var(--accent); color: #fff; background: #141414; box-shadow: 0 10px 26px -12px rgba(176, 141, 87, .6); transform: translateY(-2px); }
.ig-btn:hover .ig-handle, .ig-btn:focus-visible .ig-handle { max-width: 220px; opacity: 1; margin: 0 6px 0 10px; }
@media (hover: none) { .ig-handle { max-width: 220px; opacity: 1; margin: 0 6px 0 10px; } }
@media (max-width: 1000px) and (min-width: 701px) {
  .footer-inner { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
.sum-sub { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.sum-sub b { font-size: 14px; }

/* Placeholder for pictures that are missing or failed to load */
img[src*="/placeholder."] { object-fit: contain !important; padding: 16%; background: var(--tile); }
[data-theme="dark"] img[src*="/placeholder."] { filter: invert(1); }

/* Customer accounts */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; margin: 6px 0 4px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: #1f1f1f; font-weight: 600; font-size: 14px; letter-spacing: .02em; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.btn-google:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .18); transform: translateY(-1px); }
.or { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.center { text-align: center; margin-top: 14px; }
.account .acct-h { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 38px 0 14px; }
.acct-order { padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 12px; }
.acct-order header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 6px; }
.acct-order time { margin-left: auto; color: var(--muted); font-size: 13px; }
.acct-order p { margin: 4px 0; }
.pill { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pill-confirmed, .pill-shipped, .pill-delivered { border-color: var(--accent); color: var(--accent); }
.pill-cancelled { opacity: .6; text-decoration: line-through; }
.acct-out { margin-top: 36px; }

/* SEO copy blocks */
.seo-lead { max-width: 62ch; margin: -6px 0 26px; color: var(--muted); }
.section-seo { padding-block: 10px 70px; max-width: 880px; }
.section-seo h2 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.section-seo p { line-height: 1.75; color: var(--muted); margin-bottom: 12px; }
.section-seo a { text-decoration: underline; text-underline-offset: 3px; }
.checkout-summary .summary-list li.row { grid-template-columns: 1fr auto; align-items: baseline; }
.checkout-summary .summary-list li.row small { display: block; margin-top: 3px; color: var(--muted); }
.account { padding-top: 54px; padding-bottom: 70px; }

/* payments + coupon */
.pay-methods { border: 0; padding: 0; margin: 4px 0 18px; display: grid; gap: 10px; }
.pay-methods legend { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; transition: border-color .25s, background .25s; }
.pay-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.pay-opt input { margin-top: 4px; accent-color: var(--accent); }
.pay-opt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.coupon-row { display: flex; gap: 10px; } .coupon-row input { flex: 1; text-transform: uppercase; }
#couponMsg.is-bad { color: #b3261e; }
.pay-box { margin: 26px 0; padding: 22px; border: 1px solid var(--line); border-radius: 6px; }
.pay-box h2 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.pay-box .alert { margin: 14px 0; }

/* ── tracking, reviews, Instagram strip ── */
.track-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 22px 0 26px; counter-reset: s; }
.track-steps li { position: relative; padding-top: 30px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; counter-increment: s; }
.track-steps li::before { content: counter(s); position: absolute; top: 0; left: 50%; translate: -50% 0; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 11px; background: var(--bg); z-index: 1; }
.track-steps li::after { content: ''; position: absolute; top: 11px; left: calc(-50% + 12px); right: calc(50% + 12px); height: 2px; background: var(--line); }
.track-steps li:first-child::after { display: none; }
.track-steps li.is-done, .track-steps li.is-now { color: var(--fg); }
.track-steps li.is-done::before { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.track-steps li.is-now::before { border-color: var(--accent); color: var(--accent); }
.track-steps li.is-done::after, .track-steps li.is-now::after { background: var(--fg); }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 15px; }
.stars i { font-style: normal; opacity: .25; }
.rv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 18px 0 26px; }
.rv { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; line-height: 1.6; }
.rv p { margin: 6px 0 8px; } .rv small { color: var(--muted); font-size: 12px; }
.rv-photo { width: 84px; height: 84px; object-fit: cover; border-radius: 4px; flex: none; background: var(--tile); }
.rate { border: 0; padding: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate legend { float: left; width: 100%; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.rate { position: relative; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rate label { font-size: 30px; line-height: 1; cursor: pointer; color: var(--line); transition: color .15s; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--accent); }
.rate input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.section-reviews { padding-top: 56px; }
.rv-home { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.rv-admin { border: 1px solid var(--line); border-radius: 6px; padding: 10px; } .rv-admin .rv { border: 0; padding: 8px; }
.remember { display:flex; gap:8px; align-items:center; margin-top:14px; font-size:13px; color:var(--muted); cursor:pointer; } .remember input { accent-color: var(--accent); }

/* sold / on-hold notice and similar pairs on a product page */
.pdp-sold { margin: 16px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px; font-size: 14px; line-height: 1.6; background: color-mix(in srgb, var(--fg) 4%, transparent); }
.pdp-sold b { display: block; margin-bottom: 2px; }
.pdp-similar { padding-top: 64px; }

.shop-intro { max-width: 760px; margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.shop-intro[hidden] { display: none; }

.cat-img img { max-height: 100%; }

/* home page blocks can be re-ordered by the owner, so spacing belongs to the wrapper, not to each section */
.hsec { margin-top: clamp(64px, 8vw, 116px); }
.hsec:first-child { margin-top: 0; }
.hsec:last-of-type { margin-bottom: clamp(48px, 6vw, 90px); }
.hsec > .container { margin-top: 0; margin-bottom: 0; padding-top: 0; }
.hsec:first-child > .container { padding-top: 44px; }
.hsec > .section-seo { padding-bottom: 0; }
.hsec.is-hidden { display: none; }
