:root {
  --bg: #f6f3ee;
  --paper: #fffcf8;
  --ink: #1a1714;
  --muted: #6d655c;
  --line: #e4ddd4;
  --accent: #e4570e;
  --accent-deep: #c2410c;
  --accent-soft: #fff1e6;
  --black: #171717;
  --good: #1b7a4a;
  --shadow: 0 18px 50px rgba(26, 23, 20, 0.08);
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --header: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input { font: inherit; color: inherit; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--black);
  color: white;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  z-index: 50;
}

.skip:focus { top: 0.6rem; }

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--black);
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 32px;
  width: auto;
}

.footer .brand-logo { height: 26px; }

.topbar {
  background: var(--black);
  color: #f6f3ee;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0.4rem 1rem;
}

.topbar p { margin: 0; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(246, 243, 238, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.pdp {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  display: grid;
  gap: 1.5rem;
}

.gallery { display: grid; gap: 0.75rem; }
.stage { order: -1; }

.stage {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 1;
}

.stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.stage-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 252, 248, 0.92);
  box-shadow: 0 6px 20px rgba(23, 23, 23, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.stage-prev { left: 12px; }
.stage-next { right: 12px; }

.stage-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(23, 23, 23, 0.78);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
}

.thumbs::-webkit-scrollbar { display: none; }

.thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  overflow: hidden;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb[aria-selected="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.buy h1 {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(1.22rem, 1.7vw, 1.45rem);
  letter-spacing: -0.01em;
  line-height: 1.38;
  margin: 0.4rem 0 0.6rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.price-block {
  margin: 1.25rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.price {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.compare {
  color: var(--muted);
  text-decoration: line-through;
}

.off {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.price-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.highlights li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.highlights li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  flex: none;
}

.buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0 0.9rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  overflow: hidden;
}

.qty button {
  width: 40px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.15rem;
}

.qty input {
  width: 42px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 650;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stock {
  margin: 0;
  color: var(--good);
  font-weight: 600;
  font-size: 0.92rem;
}

.actions { display: grid; gap: 0.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 24px rgba(228, 87, 14, 0.24);
}

.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.thumb:focus-visible,
.stage-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  list-style: none;
  padding: 0.9rem 0 0;
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.perks {
  width: min(1120px, calc(100% - 2rem));
  margin: 3.5rem auto 0;
  display: grid;
  gap: 0.8rem;
}

.perks article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.15rem 1.25rem;
}

.perk-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.perks h2,
.split h2,
.faq h2,
.policies h2 {
  font-size: 1.05rem;
  margin: 0.75rem 0 0.35rem;
  letter-spacing: -0.02em;
}

.perks p,
.policies p,
.box-note,
.faq p,
.closer p { margin: 0; color: var(--muted); }

.measures {
  width: min(1120px, calc(100% - 2rem));
  margin: 2.5rem auto 0;
  background: var(--black);
  color: #f6f3ee;
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.measures div {
  padding: 1.4rem 1rem;
  text-align: center;
}

.measures div + div { border-left: 1px solid rgba(255, 255, 255, 0.12); }

.measures span {
  display: block;
  color: #e8a27a;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.measures strong {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 560;
  letter-spacing: -0.03em;
}

.story {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  display: grid;
  gap: 1rem;
}

.story figure { margin: 0; }

.story img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: white;
}

.story figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  width: min(1120px, calc(100% - 2rem));
  margin: 2.5rem auto 0;
  display: grid;
  gap: 1rem;
}

.split > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.3rem 1.25rem 1.4rem;
}

.specs { margin: 0.4rem 0 0; }

.specs div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }

.box-list {
  margin: 0.4rem 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.box-list li {
  padding-left: 1.3rem;
  position: relative;
}

.box-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--black);
}

.policies {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: grid;
  gap: 0.8rem;
}

.policies article {
  padding: 0.2rem 0.15rem 0.6rem;
}

.faq {
  width: min(760px, calc(100% - 2rem));
  margin: 2rem auto 0;
}

.faq h2 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 560;
  margin-bottom: 0.8rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq details p { margin-top: 0.55rem; }

.closer {
  width: min(1120px, calc(100% - 2rem));
  margin: 2.5rem auto 0;
  background: var(--black);
  color: #f6f3ee;
  border-radius: 28px;
  padding: 2.4rem 1.4rem;
  text-align: center;
}

.closer h2 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0.4rem 0 0.7rem;
}

.closer p { color: #d9d0c6; margin-bottom: 1.2rem; }

.closer .btn { min-width: min(100%, 260px); }

.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 2rem auto 0;
  padding: 1.5rem 0 6.5rem;
  display: grid;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
}

.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer p { margin: 0; }

.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 252, 248, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.sticky-buy strong { display: block; font-size: 1.05rem; }
.sticky-buy span { color: var(--muted); font-size: 0.8rem; }
.sticky-buy .btn { min-height: 46px; min-width: 132px; }

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 23, 0.45);
  z-index: 35;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(400px, 100%);
  height: 100%;
  background: var(--paper);
  transform: translateX(104%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(23, 23, 23, 0.12);
}

.drawer.is-open { transform: translateX(0); }

.drawer-head,
.drawer-foot { padding: 1rem 1.1rem; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 { margin: 0; font-size: 1.15rem; }

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.1rem;
}

.drawer-empty { color: var(--muted); margin: 1rem 0; }

.line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.8rem;
}

.line img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
}

.line h3 { margin: 0 0 0.15rem; font-size: 0.95rem; }
.line p { margin: 0; color: var(--muted); font-size: 0.85rem; }

.line-price {
  margin-top: 0.35rem;
  font-weight: 700;
}

.drawer-foot { border-top: 1px solid var(--line); }

.drawer-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
}

.drawer-ship {
  margin: 0.35rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.drawer-foot .btn { width: 100%; }
.drawer-foot .btn.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%);
  background: var(--black);
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  z-index: 45;
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .header { padding: 0 2rem; }

  .pdp {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.75rem;
  }

  .gallery {
    grid-template-columns: 76px 1fr;
    align-items: start;
    position: sticky;
    top: calc(var(--header) + 12px);
  }

  .thumbs {
    flex-direction: column;
    max-height: 640px;
    order: -1;
  }

  .stage { order: 0; }

  .buy { padding-top: 0.4rem; }

  .perks,
  .story,
  .split,
  .policies { grid-template-columns: 1fr 1fr; }

  .perks { grid-template-columns: repeat(4, 1fr); }

  .footer { padding-bottom: 2.5rem; }

  .sticky-buy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .drawer { transition: none; }
}
