.chrome-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--canvas);
  padding-top: var(--safe-top);
  border-bottom: 1px solid var(--line);
}

.announcement {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 64px;
  padding: 8px var(--pad);
  padding-right: calc(var(--pad) + var(--safe-right));
  padding-left: calc(var(--pad) + var(--safe-left));
}

.logo { display: flex; align-items: center; min-width: 0; }

.logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: 52px;
  max-width: min(112px, 34vw);
}

.header-actions { display: flex; align-items: center; gap: 2px; flex: none; }

.text-button,
.header-actions button,
.header-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 90ms var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.header-actions .header-shop { display: none; }

.header-actions button:active,
.button:active:not(:disabled) { transform: scale(0.98); }

.bag-count.is-tick { animation: bag-tick var(--duration) var(--ease-out); }

@keyframes bag-tick {
  from { transform: translateY(-3px); }
  to { transform: translateY(0); }
}

.nav-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 2;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}

button, .button, .chip, .select, .age-gate, .sheet, .drawer { border-radius: 0; }

.nav-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 calc(var(--pad) + var(--safe-right)) 0 calc(var(--pad) + var(--safe-left));
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav { display: none; }

.nav-panel .subnav a { padding-left: calc(var(--pad) + var(--safe-left) + 16px); }

.subnav-toggle { display: none; }

.nav-panel a[aria-current="page"],
.primary-nav a[aria-current="page"],
.header-shop[aria-current="page"] {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.button, .link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: transform 90ms var(--ease-out), background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.button-primary { background: var(--lime); color: var(--lime-ink); }

.button-outline { border-color: var(--line); }

.button-primary:disabled {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  transform: none;
}

.link {
  justify-content: flex-start;
  padding-inline: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.chip, .select {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip { padding: 0 12px; }

.chip[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
}

.select {
  padding: 0 28px 0 12px;
  border-radius: 0;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--canvas);
  border-top: 1px solid var(--line);
}

.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.product-media { position: relative; display: block; background: var(--surface); }

.product-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.concept-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-meta span:last-child { white-space: nowrap; }

.demo-label, .demo-note, .fine {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px var(--pad) calc(28px + var(--safe-bottom));
  display: grid;
  gap: 12px;
}

.site-footer .logo img { max-height: 72px; max-width: 160px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.footer-nav a, .footer-reset {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
}

.age-gate {
  margin: auto;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px - var(--safe-top) - var(--safe-bottom));
  overflow: auto;
  padding: 28px 22px;
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--text);
}

.age-gate::backdrop { background: #0a0b0a; }

.age-gate h2 { font-size: clamp(42px, 12vw, 60px); margin: 12px 0; }

.age-gate p { color: var(--muted); margin-bottom: 16px; }

.age-choices, .gate-actions { display: grid; gap: 10px; }

.age-gate .button { width: 100%; }

.gate-denied { color: var(--text); font-size: 18px; }

.gate-fine { margin-top: 16px; }

.sheet, .drawer {
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--canvas);
  color: var(--text);
  max-width: none;
  overflow: hidden;
  transition: transform var(--duration-slow) var(--ease-out);
}

.sheet {
  margin-top: auto;
  width: 100%;
  height: min(92dvh, 100%);
  max-height: 92dvh;
  transform: translateY(100%);
}

.drawer {
  margin-left: auto;
  width: 100%;
  height: 100%;
  max-height: 100%;
  transform: translateX(100%);
}

.sheet.is-open, .drawer.is-open { transform: translate(0, 0); }

.sheet::backdrop, .drawer::backdrop { background: rgba(0, 0, 0, 0.62); }

.sheet[open], .drawer[open] {
  display: flex;
  flex-direction: column;
}

.sheet-scroll, .drawer-body {
  overflow: auto;
  flex: 1;
  padding-bottom: 8px;
}

.sheet-media { position: relative; background: var(--surface); }

.sheet-media img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

.sheet-close, .drawer-close {
  position: absolute;
  top: 12px;
  right: calc(12px + var(--safe-right));
  z-index: 2;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--canvas);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 { font-size: 28px; }

.drawer-close { position: static; }

.sheet-body, .cart-line { padding: 16px; }

.sheet-body { display: grid; gap: 16px; }

.sheet-body h2 { font-size: clamp(36px, 8vw, 52px); }

.price { font-family: var(--font-mono); font-size: 14px; }

fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }

legend {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }

.swatch, .size-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.size-row {
  border-inline: 0;
  border-top: 0;
  justify-content: space-between;
}

.size-list { border-top: 1px solid var(--line); }

.swatch:has(input:checked), .size-row:has(input:checked) { border-color: var(--lime); }

.swatch input, .size-row input { accent-color: #c6ff4d; width: 18px; height: 18px; }

.swatch-chip { width: 14px; height: 14px; border: 1px solid var(--line); }

.size-row.is-unavailable { color: var(--muted); }

.size-row.is-unavailable .size-name { text-decoration: line-through; }

.sheet-bar, .drawer-foot {
  flex: none;
  display: grid;
  gap: 8px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.sheet-bar .button, .drawer-foot .button { width: 100%; }

.subtotal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-line img { width: 72px; height: 72px; object-fit: cover; background: var(--surface); }

.cart-line h3 { font-size: 22px; }

.line-copy { display: grid; gap: 6px; justify-items: start; }

.stepper { display: flex; align-items: center; gap: 4px; }

.stepper button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 18px;
}

.stepper span { min-width: 24px; text-align: center; font-family: var(--font-mono); }

.empty-bag { padding: 28px 16px; display: grid; gap: 12px; justify-items: start; }

.action-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.hours-row { display: grid; gap: 4px; }
.hours-row strong { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }

details { border-top: 1px solid var(--line); }

details:last-child { border-bottom: 1px solid var(--line); }

summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
}

details p { padding: 0 0 16px; color: var(--muted); }

.copy-status { min-height: 1.4em; color: var(--lime); font-family: var(--font-mono); font-size: 12px; }

@media (min-width: 360px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .header-actions .header-shop { display: inline-flex; }
  .logo img { max-height: 64px; max-width: 170px; }
}

@media (min-width: 768px) {
  .product-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 800px) {
  .sheet, .drawer {
    margin: 0 0 0 auto;
    width: min(440px, 100vw);
    height: 100%;
    max-height: 100%;
    transform: translateX(100%);
  }
  .sheet.is-open, .drawer.is-open { transform: translateX(0); }
}

@media (min-width: 1024px) {
  .header-actions .nav-toggle { display: none; }
  .header-actions .header-shop { display: none; }
  .primary-nav { display: flex; align-items: center; gap: 8px 22px; }
  .primary-nav .nav-drop { position: relative; display: inline-flex; align-items: center; }
  .primary-nav .subnav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin-left: -12px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
  }
  .primary-nav .nav-drop.is-open .subnav-toggle { color: var(--lime); }
  .primary-nav .subnav {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
    display: grid;
    min-width: 180px;
    background: var(--canvas);
    border: 1px solid var(--line);
  }
  .primary-nav .subnav a { width: 100%; padding: 0 16px; }
  .primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .nav-panel { display: none; }
  .logo img { max-height: 72px; max-width: 190px; }
  .site-footer {
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 24px;
  }
  .footer-nav { justify-content: flex-end; }
}

@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
