/* Dandilocks palette: monochrome with a single teal accent (see storefront). */
:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #5c5c5c;
  --dark: #0f0f0f;
  --btn: #111111;
  --dim: #f5f5f5;
  --border: #e8e8e1;
  --accent: #00857a;
  --accent-light: #00b3a4;
  --sale: #c20000;
  --font-head: 'Cormorant', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header */
.announce {
  background: var(--dark);
  color: #fff;
  text-align: center;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px var(--gutter);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--border);
}
.logo img { width: clamp(130px, 22vw, 200px); height: auto; }
.header-contact {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
}
.header-contact:hover { color: var(--accent); }

main { flex: 1; }

/* Intro */
.intro { text-align: center; padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(28px, 4vw, 44px); }
.eyebrow {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px;
}
.intro h1, .detail h1 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
}
.intro h1 { font-size: clamp(38px, 6vw, 64px); }
.intro p.lede { color: var(--muted); max-width: 520px; margin: 14px auto 0; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(20px, 2.5vw, 32px) clamp(14px, 2vw, 24px);
  padding: 0 var(--gutter) clamp(56px, 8vw, 96px);
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
.card { text-decoration: none; display: block; }
.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--dim);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.card-title { font-weight: 500; margin: 12px 0 2px; font-size: 14px; }
.card:hover .card-title { color: var(--accent); }
.price { font-size: 14px; color: var(--text); }
.price s { color: var(--muted); margin-left: 6px; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--btn);
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 8px;
}
.badge.sale { background: var(--sale); }
.no-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 22px;
  color: #b5b5b5;
}

/* Detail */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 20px var(--gutter) clamp(56px, 8vw, 96px);
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 820px) {
  .detail { grid-template-columns: 1fr; }
}
.back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 20px var(--gutter) 0;
  max-width: 1280px;
  width: 100%;
}
.back:hover { color: var(--accent); }
.back-wrap { max-width: 1280px; margin: 0 auto; }

.gallery-main {
  aspect-ratio: 4 / 5;
  background: var(--dim);
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.thumbs button {
  flex: 0 0 72px;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid transparent;
  background: var(--dim);
  cursor: pointer;
  opacity: .65;
}
.thumbs button[aria-current="true"] { border-color: var(--text); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-info { align-self: start; position: sticky; top: 24px; }
@media (max-width: 820px) { .detail-info { position: static; } }
.detail h1 { font-size: clamp(34px, 4.5vw, 48px); }
.detail .price { font-size: 18px; margin: 12px 0 24px; display: block; }

.option { border: 0; padding: 0; margin: 0 0 20px; }
.option legend {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0;
}
.option legend span { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button {
  font: 500 13px var(--font-body);
  min-width: 48px;
  padding: 10px 14px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
}
.pills button:hover { border-color: var(--text); }
.pills button[aria-pressed="true"] { background: var(--btn); color: #fff; border-color: var(--btn); }
.pills button.unavailable { color: #a0a0a0; text-decoration: line-through; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  margin-top: 8px;
  background: var(--btn);
  color: #fff;
  font: 600 13px var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  transition: background .2s ease;
}
.btn:hover { background: var(--accent); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn[aria-disabled="true"] { cursor: default; }
.btn-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; text-align: center; }

.description { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); color: #222; }
.description p:first-child { margin-top: 0; }
.description img { height: auto; }

/* States */
.state {
  text-align: center;
  padding: clamp(64px, 12vw, 140px) var(--gutter);
  color: var(--muted);
}
.state h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(30px, 4.5vw, 44px);
  color: var(--text);
  margin: 0 0 10px;
}
.state .btn { display: inline-flex; width: auto; margin-top: 20px; }
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  vertical-align: -3px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer {
  background: var(--dark);
  color: #cfcfcf;
  text-align: center;
  font-size: 13px;
  padding: 36px var(--gutter);
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-light); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
