/* Luxe Plans — demo leather-goods storefront (a madebyruby demo build)
   Look: espresso leather on warm ivory.
   Ruby's palette: espresso #2B1C17 · ivory #F7F1E8 · taupe #CBB8A7 · rose #B98B82
                   gold #C8A96A · merlot #4A1F2A · charcoal #25211F
   Taupe, rose, and gold are decorative only — none of them clears text contrast
   on ivory. --muted / --line / --panel are tints derived from the palette to
   cover roles (body copy, hairlines, image surface) it doesn't supply. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../../assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../../assets/fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --espresso: #2B1C17;
  --ivory: #F7F1E8;
  --taupe: #CBB8A7;
  --rose: #B98B82;
  --gold: #C8A96A;
  --merlot: #4A1F2A;
  --charcoal: #25211F;

  /* derived — see note above */
  --muted: #6B5A50;
  --line: #E3D9CC;
  --panel: #EFE7DC;
  --white: #FFFFFF;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--muted);
  font: 400 1rem/1.65 var(--serif);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2 { font-family: var(--serif); font-weight: 600; color: var(--espresso); margin: 0 0 0.4em; letter-spacing: -0.005em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.14; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); }

a { color: var(--merlot); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--espresso); }
:focus-visible { outline: 3px solid var(--espresso); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- Chrome ------------------------------------------------------------ */

.attrib {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--espresso);
  color: var(--ivory);
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
  font-family: var(--display);
  font-weight: 600;
}
.attrib p { margin: 0; font-weight: 400; }
.attrib a { color: var(--taupe); }
.attrib a:hover { color: var(--ivory); }

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.wordmark { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: 0.26em; color: var(--espresso); font-size: 1.02rem; }
.head nav { display: none; gap: 1.6rem; }
.head nav span { font-size: 0.92rem; cursor: default; font-family: var(--display); font-weight: 600; color: var(--espresso); }
.bag { margin: 0; display: flex; align-items: center; gap: 0.45rem; color: var(--espresso); font-family: var(--display); font-weight: 700; font-size: 0.95rem; }

@media (min-width: 760px) {
  .head { padding: 1.2rem 2.5rem; }
  .head nav { display: flex; }
}

/* --- PDP layout ---------------------------------------------------------- */

.pdp {
  display: grid;
  gap: 2.2rem;
  width: min(100% - 2.5rem, 72rem);
  margin: 2rem auto 0;
}

@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.05fr 1fr; gap: 4rem; margin-top: 3rem; }
  .gallery { position: sticky; top: 2rem; align-self: start; }
}

.gallery-main { margin: 0; border-radius: 14px; overflow: hidden; background: var(--panel); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; margin-top: 0.6rem; }
.thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  aspect-ratio: 1;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--espresso); }
.thumb:hover { border-color: var(--rose); }
.img-caption { font-size: 0.85rem; margin: 0.7rem 0 0; }

/* --- Buy column ------------------------------------------------------------ */

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.price { margin: 0 0 1.1rem; font-family: var(--serif); font-size: 1.45rem; color: var(--charcoal); }
.intro { margin: 0 0 1.8rem; max-width: 34em; }

/* Variant options */
.opt { border: 0; margin: 0 0 1.5rem; padding: 0; }
.opt-head { display: flex; align-items: baseline; gap: 0.55rem; margin: 0 0 0.75rem; }
.opt-label { font-family: var(--display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--espresso); }
.opt-value { font-family: var(--serif); font-size: 0.95rem; color: var(--muted); }

.swatches { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.swatch-wrap { position: relative; display: inline-flex; cursor: pointer; }
.swatch-wrap input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sw);
  border: 1px solid rgba(43, 28, 23, 0.2);
  transition: box-shadow 0.15s ease;
}
.swatch-wrap input:checked + .swatch { box-shadow: 0 0 0 2px var(--ivory), 0 0 0 4px var(--espresso); }
.swatch-wrap input:focus-visible + .swatch { outline: 3px solid var(--espresso); outline-offset: 4px; }
.swatch-wrap:hover .swatch { box-shadow: 0 0 0 2px var(--ivory), 0 0 0 4px var(--taupe); }

.layouts { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.layout-pill { position: relative; cursor: pointer; }
.layout-pill input { position: absolute; opacity: 0; }
.layout-pill span {
  display: inline-block;
  font: 600 0.85rem/1 var(--display);
  color: var(--espresso);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.72em 1.25em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.layout-pill:hover span { border-color: var(--taupe); }
.layout-pill input:checked + span { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.layout-pill input:focus-visible + span { outline: 3px solid var(--espresso); outline-offset: 3px; }

.layout-note {
  margin: 0 0 1.7rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
  font-size: 0.92rem;
}

.cta {
  display: block;
  width: 100%;
  background: var(--espresso);
  color: var(--ivory);
  border: 0;
  border-radius: 10px;
  font: 700 1rem/1 var(--display);
  padding: 1.05em 1.4em;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cta:hover { background: var(--merlot); }

.micro { margin: 0.7rem 0 1.7rem; font-size: 0.85rem; }

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  color: var(--espresso);
  font-size: 0.95rem;
  padding: 0.85rem 0.2rem;
}
details p { margin: 0 0 1rem; font-size: 0.93rem; padding: 0 0.2rem; }

.chips { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.5rem 0 0; }
.chips span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--espresso);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55em 1em;
}

/* --- Footer + toast --------------------------------------------------------------- */

.foot {
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  padding: 2.2rem 1.4rem 3rem;
  text-align: center;
}
.foot p { max-width: 46rem; margin: 0.6rem auto; font-size: 0.9rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 12px);
  z-index: 30;
  margin: 0;
  background: var(--espresso);
  color: var(--ivory);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.7em 1.2em;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: min(92vw, 30rem);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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