/* Static Holds shop styles — matches the main site's visual language. */
:root {
  color-scheme: light dark;
  --ink: #11120e;
  --paper: #f5f6f0;
  --surface: #ffffff;
  --soft: #e6e8df;
  --muted: #565b52;
  --lime: #d7ff3f;
  --blue: #1558ff;
  --logo-blue: #3e87b4;
  --red: #f53845;
  --line: #c8cbc1;
  --shadow: 0 18px 50px rgba(17,18,15,.14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f7f8f1;
    --paper: #11130f;
    --surface: #1b1e18;
    --soft: #2a2e25;
    --muted: #bac0b3;
    --lime: #d7ff3f;
    --blue: #5f86ff;
    --red: #ff616b;
    --line: #3b4036;
    --shadow: 0 22px 60px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
h1, h2, h3 { font-family: "Archivo Black", sans-serif; font-weight: 400; letter-spacing: -.035em; }

/* ---- header (mirrors homepage .topline) ---- */
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 120px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.brand-line { display: flex; align-items: center; gap: 12px; }
.brand-logo-link { display: block; flex: 0 0 auto; }
.brand-logo-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.brand-logo { width: 120px; height: 120px; object-fit: contain; flex: 0 0 auto; }
.topline nav { display: flex; align-items: center; gap: 18px; }
.topline nav a { text-decoration: none; white-space: nowrap; }
.topline nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}
.cart-button:hover { background: var(--lime); border-color: var(--lime); color: #11120e; }
.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: var(--lime);
  color: #11120e;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-count.is-zero { display: none; }

/* ---- buttons (mirrors homepage) ---- */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 2px solid var(--lime);
  background: var(--lime);
  color: #11120e;
  text-decoration: none;
  font-weight: 800;
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.button:hover { background: #ecff9c; }
.button.blue { background: var(--logo-blue); border-color: var(--logo-blue); color: #11120e; }
.button.blue:hover { background: #4e94c4; }
.button:disabled { opacity: .5; cursor: default; }

/* ---- breadcrumb ---- */
.breadcrumb { margin: 0 0 22px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb .sep { margin: 0 8px; }

/* ---- shop listing ---- */
.shop-page { padding: 26px 0 90px; }
.shop-title {
  margin: 0 0 10px;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: .95;
  text-transform: uppercase;
}
.shop-sub { margin: 0 0 38px; color: var(--muted); font-size: 1.05rem; max-width: 560px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}
.product-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.product-card-media img { height: 100%; object-fit: cover; }
.product-card-body { padding: 18px 18px 22px; }
.product-card-body h2 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.05; text-transform: uppercase; }
.product-card-price { margin: 0 0 8px; color: var(--blue); font-family: "Archivo Black", sans-serif; font-size: 1.1rem; }
.product-card-blurb { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---- product detail ---- */
.product-page { padding: 26px 0 90px; }
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.gallery-main { aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.gallery-main img { height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84px;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumb {
  width: 84px;
  height: 84px;
  padding: 0;
  border: 2px solid transparent;
  background: var(--soft);
  cursor: pointer;
}
.gallery-thumb img { height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--lime); }
.product-info h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: .95;
  text-transform: uppercase;
}
.product-info .price {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: "Archivo Black", sans-serif;
  font-size: 1.5rem;
}
.product-desc { color: var(--muted); font-size: 1.02rem; margin: 0 0 28px; max-width: 480px; }
.product-desc p { margin: 0 0 12px; }
.option-label { margin: 0 0 12px; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.option-label .chosen { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--line);
  padding: 0;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-selected { border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime); }
.swatch[data-colour="White"] { border-color: #9aa09a; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); }
.stepper button {
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
}
.stepper button:hover { background: var(--soft); }
.stepper output { min-width: 44px; text-align: center; font-weight: 800; font-size: 1.1rem; }
.add-to-cart { width: 100%; min-height: 56px; font-size: 1.05rem; }
.added-note { margin: 14px 0 0; color: var(--muted); font-size: .9rem; min-height: 1.4em; }

/* ---- cart drawer ---- */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  width: min(420px, calc(100% - 40px));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  box-shadow: -18px 0 50px rgba(0,0,0,.25);
  transform: translateX(105%);
  transition: transform .3s ease;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-head h2 { margin: 0; font-size: 1.3rem; text-transform: uppercase; }
.cart-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.cart-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-empty { padding: 30px 0; color: var(--muted); text-align: center; }
.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 72px; height: 72px; object-fit: cover; background: var(--soft); }
.cart-item-name { margin: 0 0 4px; font-weight: 800; font-size: .95rem; }
.cart-item-meta { margin: 0 0 8px; color: var(--muted); font-size: .85rem; }
.cart-item .stepper button { width: 34px; height: 34px; font-size: 1.1rem; }
.cart-item .stepper output { min-width: 32px; font-size: .95rem; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item-total { font-weight: 800; }
.cart-remove {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
}
.cart-drawer-foot { padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; margin: 0 0 16px; font-weight: 800; font-size: 1.1rem; }
.cart-checkout-note { margin: 0 0 12px; color: var(--muted); font-size: .85rem; }
.cart-actions { display: grid; gap: 10px; }
.cart-actions .button { width: 100%; }

/* ---- one-of-a-kind item grid ---- */
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}
.item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.item-photo {
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--soft);
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.item-photo img { height: 100%; object-fit: cover; transition: transform .25s ease; }
.item-photo:hover img { transform: scale(1.04); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-available { background: var(--lime); color: #11120e; }
.badge-yours { background: var(--ink); color: var(--lime); }
.badge-held { background: #f0a12b; color: #11120e; }
.badge-sold { background: #9aa09a; color: #fff; }
.badge-coming { background: var(--surface); border: 2px solid var(--muted); color: var(--muted); }
.item-body { padding: 18px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.item-body h2 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.05; text-transform: uppercase; }
.item-price { margin: 0 0 12px; color: var(--blue); font-family: "Archivo Black", sans-serif; font-size: 1.1rem; }
.item-body .add-to-cart { margin-top: auto; width: 100%; }
.card-note { margin: 10px 0 0; color: var(--red); font-size: .85rem; min-height: 1.3em; }
.grid-loading, .grid-empty { color: var(--muted); padding: 30px 0; }

/* ---- lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  width: auto;
  max-width: min(92vw, 900px);
  max-height: 88vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---- hold countdown + toast ---- */
.hold-timer { margin: 6px 0 0; color: #a86e0c; font-size: .85rem; font-weight: 700; }
@media (prefers-color-scheme: dark) { .hold-timer { color: #f5b83d; } }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 130;
  max-width: calc(100vw - 48px);
  padding: 12px 20px;
  border-radius: 999px;
  background: #11120e;
  color: #f7f8f1;
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---- footer (mirrors homepage) ---- */
footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .88rem; }
footer p { margin: 0; }

/* ---- responsive ---- */
@media (max-width: 820px) {
  .wrap { width: min(100% - 28px, 680px); }
  .topline { min-height: 90px; }
  .brand-logo { width: 96px; height: 96px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: 1fr; }
  footer .wrap { flex-direction: column; }
}
@media (max-width: 460px) {
  .wrap { width: calc(100% - 24px); }
  .topline { min-height: 76px; gap: 10px; }
  .brand-logo { width: 84px; height: 84px; }
  .topline nav { gap: 12px; font-size: .85rem; }
  .product-grid { grid-template-columns: 1fr; }
  .item-grid { grid-template-columns: 1fr; }
  .shop-page, .product-page { padding-top: 18px; }
  .button { width: 100%; }
  .cart-actions .button { width: 100%; }
  footer .wrap { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
