:root {
  --snow: #f4f5f7;
  --white: #fff;
  --ink: #1d1d1f;
  --mute: #6b6e76;
  --line: #e6e7eb;
  --lock: #f5c518;
  --lock-ink: #1d1d1f;
  --danger: #c62828;
  --ok: #1b7a4a;
  --header-ink: #18181b;
  --header-muted: #64646d;
  --header-bg: #ffffff;
  --header-border: #e9e9ed;
  --header-topbar: #18181b;
  --brand-yellow: #f6c915;
  --brand-yellow-dark: #9a7600;
  --brand-yellow-hover: #e8b900;
  --header-shadow: 0 10px 30px rgba(24, 24, 27, 0.08);
  --promo-h: 30px;
  --header-h: 70px;
  --header-total-h: calc(var(--promo-h) + var(--header-h));
  --radius: 12px;
  --display: "Fira Sans", "Segoe UI", sans-serif;
  --body: "Lato", "Segoe UI", sans-serif;
  --shadow: 0 8px 24px rgba(29, 29, 31, 0.06);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-padding-top: var(--header-total-h); }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--snow);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, a, select, summary { cursor: pointer; }
button, input, select, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 90;
  background: var(--white);
  padding: 8px 12px;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  color: var(--header-ink);
  box-shadow: 0 1px 0 var(--header-border);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--header-border), var(--header-shadow);
}

.promo {
  margin: 0;
  height: var(--promo-h);
  background: var(--header-topbar);
  color: rgba(255, 255, 255, 0.86);
}

.promo__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo p {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.promo span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--brand-yellow);
  opacity: 0.7;
}

.promo .is-age {
  color: var(--brand-yellow);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 230px 1fr 230px;
  grid-template-areas: "logo nav cart";
  align-items: center;
  height: var(--header-h);
}

.site-header .logo {
  grid-area: logo;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--header-ink);
}

.site-header .logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}

.site-header .logo em {
  color: var(--brand-yellow-dark);
  font-style: normal;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.logo em {
  font-style: normal;
}

.nav {
  grid-area: nav;
  justify-self: center;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
}

.nav a {
  position: relative;
  text-decoration: none;
  padding: 0 13px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--header-muted);
  border-radius: 8px;
  transition: color 150ms ease-out, background-color 150ms ease-out;
}

.nav a:hover {
  color: var(--header-ink);
  background: #f5f5f6;
}

.nav a[aria-current="page"] {
  color: var(--header-ink);
  background: transparent;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 22px;
  height: 2px;
  margin-left: -11px;
  background: var(--brand-yellow);
}

.cart-link {
  grid-area: cart;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px 0 12px;
  border: 1px solid #d9d9df;
  border-radius: 10px;
  background: #fff;
  color: var(--header-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background-color 150ms ease-out;
}

.cart-link:hover {
  background: #f7f7f8;
}

.cart-link svg { display: block; flex-shrink: 0; }

.cart-link strong {
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border-radius: 999px;
  background: var(--brand-yellow);
  color: var(--header-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--header-ink);
  align-items: center;
  justify-content: center;
}

.menu-toggle__icon {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 150ms ease, top 150ms ease;
}

.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }

.menu-toggle.is-open .menu-toggle__icon {
  background: transparent;
}

.menu-toggle.is-open .menu-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-header :focus-visible {
  outline: 2px solid var(--header-ink);
  outline-offset: 3px;
}

.mobile-menu,
.menu-backdrop { display: none; }

body.is-nav-open { overflow: hidden; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 36px 0 12px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 12px;
  text-wrap: balance;
}

.hero p { margin: 0 0 20px; color: var(--mute); max-width: 38rem; }

.hero__mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 320px;
}

.hero__mosaic a {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__mosaic a:first-child { grid-row: 1 / span 2; }

.hero__mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.btn:hover { background: #000; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover { background: var(--white); }

.btn--lock {
  background: var(--lock);
  color: var(--lock-ink);
}

.btn--lock:hover { background: #e6b70f; }

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 8px 0 8px;
}

.trust article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.trust strong {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
}

.trust span { color: var(--mute); font-size: 0.9rem; }

.section { padding: 40px 0 8px; }
.section--tight { padding-top: 16px; }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section__head h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.section__head a {
  color: var(--mute);
  font-weight: 700;
  text-decoration: none;
}

.kicker {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stub {
  background: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease;
}

.stub:hover { transform: translateY(-3px); }

.stub__media {
  position: relative;
  aspect-ratio: 1;
  background: #ececef;
  overflow: hidden;
}

.stub__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stub__shots {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--white);
  border-radius: 999px;
  padding: 4px 8px;
}

.stub__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.stub__brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stub h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  margin: 0;
  line-height: 1.25;
}

.stub__flavors {
  margin: 0;
  font-size: 0.88rem;
  color: var(--mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stub__price {
  margin-top: auto;
  font-family: var(--display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.stub .btn {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.series-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.series-card {
  background: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.series-card img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  background: #ececef;
}

.series-card span,
.series-card small { display: block; padding: 0 12px; }

.series-card span {
  font-family: var(--display);
  font-weight: 700;
  margin-top: 10px;
}

.series-card small {
  color: var(--mute);
  padding-bottom: 14px;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.chip {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 24px 0 40px;
}

.pdp__panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.gallery { display: grid; gap: 10px; }

.gallery__main {
  background: var(--white);
  border-radius: var(--radius);
  aspect-ratio: 1;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}

.thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--white);
  aspect-ratio: 1;
  overflow: hidden;
}

.thumb.is-on { border-color: var(--lock); }

.thumb img { width: 100%; height: 100%; object-fit: cover; }

.price {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 12px 0;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}

.qty button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.qty input {
  width: 64px;
  height: 44px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--snow);
  border-radius: 999px;
  padding: 4px 8px;
}

.related { margin: 0 0 48px; }

.checkout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 96px;
}

.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.panel h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 14px;
}

.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child { border-bottom: 0; }

.cart-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--snow);
}

.cart-row h3 { margin: 0 0 4px; font-size: 0.98rem; }
.cart-row p { margin: 0; color: var(--mute); font-size: 0.88rem; }

.choice {
  display: grid;
  gap: 8px;
}

.choice label {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 56px;
}

.choice label.is-on {
  border-color: var(--ink);
  background: #fffdf3;
}

.choice small { color: var(--mute); }

.form {
  display: grid;
  gap: 12px;
}

.form label { display: grid; gap: 6px; font-weight: 700; font-size: 0.9rem; }

.form input,
.form textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.form .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.9rem;
}

.summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.summary dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  margin: 0 0 16px;
}

.summary dt { color: var(--mute); }
.summary .total { font-size: 1.2rem; font-weight: 700; }

.alert {
  background: #fff4f4;
  color: var(--danger);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-weight: 700;
}

.empty {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.step b {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--lock-ink);
  background: var(--lock);
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 10px;
}

.site-footer {
  margin-top: 48px;
  background: var(--ink);
  color: #c8c8cc;
  padding: 36px 0 24px;
  font-size: 0.92rem;
}

.site-footer a { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer .logo em { color: var(--brand-yellow); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.crumbs {
  margin: 20px 0 8px;
  font-size: 0.88rem;
  color: var(--mute);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--line);
}
.crumbs a { text-decoration: underline; text-underline-offset: 2px; }

.brand-hubs {
  margin: 0 0 18px;
  font-weight: 700;
}
.brand-hubs a { margin-right: 4px; }

.prose { max-width: 42rem; }
.prose h2 { font-family: var(--display); margin: 24px 0 8px; }

.faq { margin-top: 28px; }
.faq h2 { font-family: var(--display); margin: 0 0 12px; }
.faq details {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.faq summary { font-weight: 700; }
.faq details p { margin: 8px 0 0; color: var(--mute); }

.warn { font-size: 0.8rem; color: #9a9aa2; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(29, 29, 31, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
}

.gate__card {
  width: min(440px, 100%);
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
}

.toast {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.toast[hidden] { display: none; }

.bar {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 320ms ease, transform 320ms ease;
}
html:not(.js) .reveal { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .series-rail { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root {
    --promo-h: 28px;
    --header-h: 62px;
  }
  .hero,
  .pdp,
  .checkout,
  .steps,
  .series-rail,
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__mosaic { min-height: 220px; }
  .promo__optional { display: none; }
  .site-header__inner {
    grid-template-columns: 44px 1fr 44px;
    grid-template-areas: "toggle logo cart";
  }
  .menu-toggle {
    display: inline-flex;
    grid-area: toggle;
    justify-self: start;
  }
  .site-header__inner > .nav { display: none; }
  .site-header .logo {
    grid-area: logo;
    justify-self: center;
    font-size: 16px;
    gap: 8px;
  }
  .site-header .logo img {
    width: 34px;
    height: 34px;
  }
  .cart-link {
    grid-area: cart;
    justify-self: end;
    width: 44px;
    padding: 0;
    justify-content: center;
    gap: 0;
    position: relative;
  }
  .cart-link__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .cart-link strong {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 0.62rem;
  }
  .mobile-menu:not([hidden]) {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 42;
    background: #fff;
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
  }
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
  }
  .mobile-menu nav a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 24px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--header-ink);
    border-bottom: 1px solid var(--header-border);
  }
  .mobile-menu nav a[aria-current="page"] {
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--brand-yellow);
  }
  .menu-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    top: var(--header-total-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 41;
    border: 0;
    background: rgba(24, 24, 27, 0.35);
  }
  .form .row { grid-template-columns: 1fr; }
  .summary { position: static; }
  .bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 320px) {
  .site-header .logo span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
