:root {
  --ink: #192627;
  --muted: #4d5854;
  --paper: #f8f2e6;
  --cream: #fffaf0;
  --orange: #ff9a57;
  --rust: #a33d13;
  --line: #cbbfae;
  --head: "Avenir Next Condensed", "Arial Narrow", Impact, sans-serif;
  --text: "Avenir Next", Avenir, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--text); }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: var(--head); font-weight: 900; letter-spacing: -.03em; line-height: 1; }
img { display: block; max-width: 100%; }
.wrap { width: min(1070px, calc(100% - 88px)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.nav, .foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: 1.2rem; letter-spacing: -.055em; text-decoration: none; }
.brand-accent { color: var(--rust); }
.nav-link { font-size: .88rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: clamp(32px, 6vw, 78px);
  row-gap: 19px;
  padding-block: 52px 61px;
}
.product-intro { grid-column: 2; grid-row: 1; padding-top: 15px; }
.gallery { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
.purchase { grid-column: 2; grid-row: 2; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: .7rem; font-weight: 850; letter-spacing: .13em; line-height: 1.35; }
.orange-line { width: 21px; height: 3px; background: var(--rust); }
h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); margin: 12px 0 13px; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.price-line strong { font-size: 1.85rem; line-height: 1.15; font-weight: 850; letter-spacing: -.05em; }
.price-line span { color: var(--muted); font-size: .82rem; }
.description { max-width: 38ch; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; border: 2px solid var(--ink); border-radius: 5px; background: var(--orange); color: var(--ink); padding: 12px 16px; font-weight: 850; line-height: 1.35; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.button:hover { background: #ffb786; box-shadow: 1px 1px 0 var(--ink); transform: translate(2px, 2px); }
.buy { width: 100%; max-width: 360px; margin-top: 20px; }
.checkout-note { margin-top: 8px; font-size: .76rem; color: var(--muted); }
.product-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.product-features span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; font-size: .76rem; font-weight: 700; }

.gallery-stage { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--cream); }
.gallery-stage img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.gallery-stage figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 8px 11px; border-top: 1px solid var(--line); font-size: .76rem; font-weight: 750; }
.gallery-stage figcaption span { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.thumbnails { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.thumbnail { display: block; min-width: 0; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: var(--cream); }
.thumbnail img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 2px; }
.thumbnail:hover { border-color: var(--rust); }
.thumbnail[aria-pressed="true"] { border-color: var(--rust); outline: 2px solid var(--rust); outline-offset: -2px; }
.thumbnail:focus-visible { outline-offset: 3px; }

.details { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; padding-block: 36px 54px; border-top: 1px solid var(--line); }
.details h2 { font-size: clamp(2.55rem, 5vw, 4.1rem); margin-top: 9px; }
details { border-bottom: 1px solid var(--line); padding: 9px 0 12px; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 7px 0 0 18px; color: var(--muted); }
.footer { background: var(--ink); color: var(--cream); }
.foot > span { font-size: .82rem; }

#shopping-bag { width: min(480px, calc(100% - 30px)); max-height: calc(100% - 30px); padding: 23px; border: 2px solid var(--ink); border-radius: 10px; background: var(--cream); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
#shopping-bag::backdrop { background: #1722229a; }
.bag-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.bag-header h2 { font-size: 3rem; margin-top: 6px; }
.bag-close { width: 38px; height: 38px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.5rem; line-height: 1; }
.bag-close:hover { background: var(--orange); }
.bag-item { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 12px; padding-block: 15px; margin-block: 15px; border-block: 1px solid var(--line); }
.bag-item img { border-radius: 5px; }
.bag-item p, .bag-message { font-size: .84rem; color: var(--muted); }
.bag-checkout { display: flex; margin-top: 14px; }

@media (max-width: 720px) {
  .wrap { width: calc(100% - 34px); }
  .nav { min-height: 60px; }
  .product { display: flex; flex-direction: column; gap: 14px; padding-block: 23px 38px; }
  .product-intro { padding-top: 0; }
  h1 { font-size: clamp(2.65rem, 9.5vw, 4.5rem); margin-block: 8px; }
  .price-line strong { font-size: 1.6rem; }
  .purchase { width: 100%; }
  .gallery { width: 100%; }
  .description { font-size: .9rem; max-width: none; }
  .buy { margin-top: 10px; max-width: none; }
  .product-features { display: none; }
  .details { grid-template-columns: 1fr; gap: 15px; padding-block: 30px 38px; }
  .foot { padding-block: 12px; flex-wrap: wrap; }
}
