/* Shared shop styles — collection grid + story/PDP pages.
   Tokens mirror index.html so the shop reads as one brand. */
:root {
  --ink: #0d0b09;
  --charcoal: #161310;
  --gold: #c9a35e;
  --gold-soft: #d8bd8a;
  --ivory: #efe7d8;
  --ivory-dim: #b9b0a0;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--serif);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.sans { font-family: var(--sans); }
.gold { color: var(--gold); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Nav ---------- */
.shop-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(201,163,94,0.16);
}
.shop-nav a.logo-link img { height: 22px; width: auto; }
.shop-nav .nav-links { display: flex; gap: 1.6rem; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; }
.shop-nav .nav-links a { text-decoration: none; color: var(--ivory-dim); transition: color .2s; }
.shop-nav .nav-links a:hover { color: var(--gold); }

/* ---------- Collection grid ---------- */
.collection-header { text-align: center; padding: 3.5rem 1.4rem 2rem; }
.collection-header h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 400; margin: 0.6rem 0; }
.collection-header p { color: var(--ivory-dim); max-width: 540px; margin: 0 auto; font-size: 1.05rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
  padding: 1rem 1.4rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}
.product-card {
  display: block;
  text-decoration: none;
  background: var(--charcoal);
  border: 1px solid rgba(201,163,94,0.14);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.product-card:hover { border-color: rgba(201,163,94,0.5); transform: translateY(-3px); }
.product-card .thumb-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #1a1712; }
.product-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badge {
  position: absolute; top: 0.7rem; left: 0.7rem;
  font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(13,11,9,0.85); color: var(--gold); padding: 0.3rem 0.6rem; border: 1px solid rgba(201,163,94,0.4);
}
.product-card .badge.sold-out { color: var(--ivory-dim); border-color: rgba(185,176,160,0.3); }
.product-card .info { padding: 1rem 1.1rem 1.3rem; }
.product-card .info h3 { font-weight: 500; font-size: 1.15rem; margin-bottom: 0.25rem; }
.product-card .info .tagline { font-size: 0.88rem; color: var(--ivory-dim); font-style: italic; margin-bottom: 0.6rem; }
.product-card .info .price-row { display: flex; align-items: center; justify-content: space-between; font-family: var(--sans); font-size: 0.85rem; }
.product-card .info .price { color: var(--gold); }
.product-card .info .stock-note { color: var(--ivory-dim); font-size: 0.72rem; }

/* ---------- Story / PDP page ---------- */
.stole-page { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.4rem 5rem; }
.stole-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 900px) {
  .stole-layout { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; }
}
.stole-gallery .main-photo { aspect-ratio: 3/4; background: var(--charcoal); overflow: hidden; margin-bottom: 0.6rem; }
.stole-gallery .main-photo img { width: 100%; height: 100%; object-fit: cover; }
.stole-gallery .thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.stole-gallery .thumbs img {
  width: 64px; height: 84px; object-fit: cover; cursor: pointer;
  border: 1px solid rgba(201,163,94,0.2); opacity: 0.65; transition: opacity .2s, border-color .2s;
}
.stole-gallery .thumbs img:hover, .stole-gallery .thumbs img.active { opacity: 1; border-color: var(--gold); }

.stole-info .style-code { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--ivory-dim); margin-bottom: 0.4rem; }
.stole-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 400; margin-bottom: 0.3rem; }
.stole-info .tagline { font-style: italic; color: var(--gold-soft); margin-bottom: 1.4rem; font-size: 1.15rem; }
.stole-info .story p { margin-bottom: 1rem; color: var(--ivory-dim); font-size: 1.05rem; }
.stole-info .specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem 1.4rem;
  font-family: var(--sans); font-size: 0.82rem; margin: 1.6rem 0; padding: 1.2rem 0;
  border-top: 1px solid rgba(201,163,94,0.16); border-bottom: 1px solid rgba(201,163,94,0.16);
}
.stole-info .specs dt { color: var(--ivory-dim); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.68rem; }
.stole-info .specs dd { color: var(--ivory); margin-top: 0.15rem; }

.includes {
  margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(201,163,94,0.16);
}
.includes-photo { width: 100%; max-width: 320px; border-radius: 4px; margin-bottom: 1.1rem; display: block; }
.includes-title, .care-title {
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
}
.includes ul { list-style: none; padding: 0; margin: 0; }
.includes li {
  font-size: 0.92rem; color: var(--ivory-dim); margin-bottom: 0.55rem; padding-left: 1.1rem; position: relative;
}
.includes li::before { content: '—'; position: absolute; left: 0; color: var(--gold-soft); }

.certificate { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(201,163,94,0.16); }
.certificate dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.4rem; margin: 0 0 1rem; font-size: 0.86rem; }
.certificate dt { color: var(--ivory-dim); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.66rem; margin-bottom: 0.2rem; }
.certificate dd { color: var(--ivory); line-height: 1.5; margin: 0; }
.blessing { margin-top: 1.2rem; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold); line-height: 1.5; }
.care { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(201,163,94,0.16); }
.care dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem 1.4rem;
  font-family: var(--sans); font-size: 0.82rem; margin-bottom: 1rem;
}
.care dt { color: var(--ivory-dim); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.66rem; margin-bottom: 0.2rem; }
.care dd { color: var(--ivory); line-height: 1.5; }
.care-note { font-style: italic; color: var(--gold-soft); font-size: 0.9rem; }

.buy-box { margin-top: 1.8rem; }
.buy-box .price { font-family: var(--sans); font-size: 1.6rem; color: var(--gold); margin-bottom: 0.3rem; }
.buy-box .stock-line { font-size: 0.85rem; color: var(--ivory-dim); margin-bottom: 1.2rem; }
.buy-box .stock-line.low { color: var(--gold-soft); }
.buy-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--gold); color: var(--ink); border: none; padding: 1rem 1.6rem;
  cursor: pointer; transition: background .2s;
}
.buy-btn:hover { background: var(--gold-soft); }
.buy-btn:disabled { background: rgba(201,163,94,0.25); color: var(--ivory-dim); cursor: not-allowed; }
.buy-note { margin-top: 0.8rem; font-size: 0.78rem; color: var(--ivory-dim); text-align: center; }
.buy-error { margin-top: 0.8rem; font-size: 0.82rem; color: #e07070; text-align: center; }

.back-link { font-family: var(--sans); font-size: 0.78rem; color: var(--gold); text-decoration: none; display: inline-block; margin-bottom: 1.6rem; }

.shop-footer { text-align: center; padding: 3rem 1.4rem; border-top: 1px solid rgba(201,163,94,0.14); }
.shop-footer .mark { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 0.4rem; }
.shop-footer p { color: var(--ivory-dim); font-size: 0.85rem; }

/* ── Colourway picker ── */
.colourways { margin: 1.4rem 0 0.4rem; }
.colourways-title { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.7rem; }
.swatches { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--swatch); border: 2px solid rgba(239,231,216,0.18); box-shadow: 0 0 0 1px rgba(0,0,0,0.5) inset; cursor: pointer; padding: 0; transition: transform 150ms ease-out, border-color 150ms ease-out; }
.swatch:hover, .swatch:focus-visible { transform: scale(1.08); border-color: var(--gold-soft); outline: none; }
.swatch.active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--gold); }
.swatch.sold { opacity: 0.35; cursor: not-allowed; }
.swatch-name { margin-top: 0.6rem; font-size: 0.95rem; color: var(--ivory); }
.swatch-note { font-size: 0.8rem; color: var(--ivory-dim); font-style: italic; margin: 0.4rem 0 0; }
@media (prefers-reduced-motion: reduce) { .swatch { transition: none; } .swatch:hover { transform: none; } }
