:root {
  --ink: #08080a;
  --panel: #111115;
  --panel-2: #17171c;
  --paper: #f4f4f2;
  --muted: #aaaab0;
  --line: rgba(255,255,255,.14);
  --red: #ff1620;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--ink); color: var(--paper); font-family: "IBM Plex Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.cart-open { overflow: hidden; }
button, select, input { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 12px 16px; background: #fff; color: #08080a; font-weight: 700; }
.skip-link:focus { top: 16px; }
.wrap { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.eyebrow { margin: 0; color: var(--red); font: 700 .75rem/1.4 "IBM Plex Mono", monospace; letter-spacing: .2em; text-transform: uppercase; }
.red { color: var(--red); }

.store-header { position: sticky; top: 0; z-index: 90; border-bottom: 1px solid var(--line); background: rgba(8,8,10,.92); backdrop-filter: blur(12px); }
.store-header-inner { min-height: 74px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.store-logo img { display: block; width: clamp(170px, 22vw, 260px); height: auto; }
.store-nav { display: flex; justify-content: flex-end; align-items: center; gap: clamp(14px, 2vw, 26px); font: 600 .72rem/1 "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.store-nav a { color: #d4d4d6; transition: color .2s ease; }
.store-nav a:hover, .store-nav a[aria-current="page"] { color: var(--red); }
.cart-trigger { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 14px; border: 1px solid var(--red); background: var(--red); color: #fff; cursor: pointer; font: 700 .72rem/1 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; clip-path: polygon(7px 0,100% 0,100% 100%,0 100%,0 7px); }
.cart-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 5px; background: #08080a; color: #fff; font-size: .68rem; border-radius: 50%; }
.store-menu { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #111115; color: #fff; cursor: pointer; }
.store-menu span, .store-menu::before, .store-menu::after { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--red); content: ""; transition: transform .2s ease; }

.merch-hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 68px) 0; border-bottom: 1px solid var(--line); }
.merch-hero::before { position: absolute; bottom: 0; left: 0; width: 18%; height: 3px; background: var(--red); content: ""; pointer-events: none; }
.merch-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 32px; align-items: center; }
.merch-hero-inner > * { min-width: 0; }
.merch-hero h1 { margin: 14px 0 0; font: 900 clamp(3.6rem,8vw,7.4rem)/.85 "Saira Condensed", sans-serif; letter-spacing: -.025em; text-transform: uppercase; }
.merch-hero-copy { margin: 18px 0 0; color: #b8b8bd; font-size: 1rem; line-height: 1.5; }
.hero-shop-link { display: inline-flex; align-items: center; gap: 25px; min-height: 44px; margin-top: 12px; font: 600 .7rem/1.3 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .09em; }
.hero-shop-link span { color: var(--red); font-size: 1.2rem; }
.hero-shop-link:hover { color: var(--red); }
.hero-mark { display: grid; place-items: center; padding: 18px; transform: rotate(-7deg); }
.hero-mark img { display: block; width: 100%; max-height: 185px; }

.catalog { padding: clamp(30px,4vw,50px) 0 clamp(40px,5vw,66px); scroll-margin-top: 90px; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.catalog-head h2 { margin: 8px 0 0; font: 800 clamp(1.9rem,3.4vw,3rem)/.95 "Saira Condensed", sans-serif; text-transform: uppercase; }
.collection-count { color: var(--muted); white-space: nowrap; font: 500 .68rem/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.collection-caption { margin: 22px 0 0; color: #83838a; font-size: .75rem; line-height: 1.5; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.product-card { position: relative; min-width: 0; overflow: hidden; border-bottom: 1px solid var(--line); background: transparent; transition: border-color .25s ease; }
.product-card > a { display: block; height: 100%; }
.product-card:hover { border-color: var(--red); }
.product-visual { position: relative; overflow: hidden; aspect-ratio: 1; background: #e8e6e2; }
.product-visual > .product-base { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.product-card:hover .product-base { transform: scale(1.025); }
.product-badge { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 8px 10px; background: var(--red); color: #fff; font: 700 .66rem/1 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.product-card-body { padding: 20px 0 8px; }
.product-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px 14px; align-items: center; }
.product-card h3 { margin: 0; font: 800 clamp(1.45rem,2.1vw,2rem)/1 "Saira Condensed", sans-serif; text-transform: uppercase; }
.product-price { color: #b6b6bc; font: 500 .72rem/1.3 "IBM Plex Mono", monospace; white-space: nowrap; }
.product-card p { margin: 8px 0 6px; color: #98989f; font-size: .8rem; line-height: 1.5; }
.product-link { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font: 600 .68rem/1 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.product-link > span { color: var(--red); font-size: 1.2rem; transition: transform .2s ease; }
.product-card:hover .product-link > span { transform: translate(2px,-2px); }
.product-link:hover { color: var(--red); }

.service-strip { border-block: 1px solid var(--line); background: #0d0d10; }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.service-item { padding: 28px clamp(16px,3vw,36px); border-right: 1px solid var(--line); }
.service-item:last-child { border-right: 0; }
.service-item strong { display: block; margin-bottom: 7px; font: 800 1.35rem/1 "Saira Condensed", sans-serif; text-transform: uppercase; }
.service-item span { color: var(--muted); line-height: 1.45; }

.product-main { padding: clamp(30px,5vw,70px) 0 clamp(70px,8vw,110px); }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 24px; color: var(--muted); font: 600 .72rem/1.4 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.breadcrumbs a:hover { color: var(--red); }
.product-layout { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(340px,.78fr); gap: clamp(32px,6vw,80px); align-items: start; }
.gallery-main { position: relative; overflow: hidden; aspect-ratio: 1; background: #e8e6e2; }
.gallery-main .product-base { width: 100%; height: 100%; object-fit: cover; }
.gallery-label { position: absolute; left: 12px; bottom: 12px; padding: 6px 8px; background: rgba(255,255,255,.78); color: #555; font: 500 .6rem/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.product-info { position: sticky; top: 102px; }
.product-info h1 { margin: 10px 0 0; font: 900 clamp(2.5rem,4.5vw,4.4rem)/.95 "Saira Condensed", sans-serif; letter-spacing: -.015em; text-transform: uppercase; }
.detail-price { margin: 20px 0 0; color: var(--red); font: 700 1.25rem/1 "IBM Plex Mono", monospace; }
.detail-description { margin: 20px 0 0; color: #c9c9cd; font-size: 1.03rem; line-height: 1.65; }
.buy-form { margin-top: 28px; }
.selector-label { display: block; margin: 0 0 10px; color: #dddde0; font: 700 .75rem/1.3 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.size-options { display: grid; grid-template-columns: repeat(6,1fr); gap: 7px; }
.size-option { position: relative; }
.size-option input { position: absolute; opacity: 0; pointer-events: none; }
.size-option span { display: grid; place-items: center; min-height: 46px; border: 1px solid var(--line); background: #111115; cursor: pointer; font: 700 .78rem/1 "IBM Plex Mono", monospace; transition: border-color .2s ease, background .2s ease; }
.size-option input:checked + span { border-color: var(--red); background: var(--red); color: #fff; }
.size-option input:disabled + span { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.quantity-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; margin-top: 20px; }
.qty-control { display: grid; grid-template-columns: 38px 1fr 38px; min-height: 52px; border: 1px solid var(--line); }
.qty-control button { border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 1.25rem; }
.qty-control input { min-width: 0; border: 0; background: transparent; color: #fff; text-align: center; font: 700 .82rem/1 "IBM Plex Mono", monospace; appearance: textfield; }
.add-button, .checkout-button { min-height: 52px; border: 1px solid var(--red); background: var(--red); color: #fff; cursor: pointer; font: 800 .76rem/1 "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.add-button:hover, .checkout-button:hover { background: #fff; border-color: #fff; color: #08080a; }
.add-button:disabled, .checkout-button:disabled { cursor: not-allowed; opacity: .5; }
.production-note { display: flex; gap: 12px; margin: 18px 0 0; padding: 16px; border-left: 3px solid var(--red); background: #111115; color: #bdbdc1; line-height: 1.5; }
.production-note strong { color: #fff; }
.product-facts { display: grid; margin-top: 26px; border-top: 1px solid var(--line); }
.product-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.product-facts strong { color: #fff; }
.store-status { min-height: 22px; margin: 12px 0 0; color: #d8d8dc; font-size: .9rem; }
.store-status.error { color: #ff7a80; }
body[data-product-ready="false"] .buy-form fieldset,
body[data-product-ready="false"] .quantity-row,
body[data-product-ready="false"] .production-note { display: none; }
body[data-product-ready="false"] .store-status { border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); line-height: 1.6; }
.store-status a { display: block; width: fit-content; padding-top: 8px; color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }

.cart-backdrop { position: fixed; inset: 0; z-index: 110; visibility: hidden; background: rgba(0,0,0,.68); opacity: 0; transition: opacity .25s ease, visibility .25s ease; }
.cart-drawer { position: fixed; top: 0; right: 0; z-index: 120; display: grid; grid-template-rows: auto 1fr auto; width: min(440px,100%); height: 100dvh; border-left: 1px solid var(--line); background: #0c0c0f; transform: translateX(100%); transition: transform .28s ease; }
body.cart-open .cart-backdrop { visibility: visible; opacity: 1; }
body.cart-open .cart-drawer { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font: 900 2rem/1 "Saira Condensed", sans-serif; text-transform: uppercase; }
.cart-close { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: #fff; cursor: pointer; font-size: 1.6rem; }
.cart-items { overflow-y: auto; padding: 18px; }
.empty-cart { display: grid; min-height: 60vh; place-content: center; text-align: center; }
.empty-cart strong { font: 900 2rem/1 "Saira Condensed", sans-serif; text-transform: uppercase; }
.empty-cart p { max-width: 28ch; color: var(--muted); line-height: 1.55; }
.empty-cart a { color: var(--red); font-weight: 700; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-item-image { position: relative; overflow: hidden; width: 92px; height: 92px; background: #111115; }
.cart-item-image .product-base { width: 100%; height: 100%; object-fit: cover; }
.cart-item h3 { margin: 2px 0 5px; font: 800 1.25rem/1 "Saira Condensed", sans-serif; text-transform: uppercase; }
.cart-item-meta { color: var(--muted); font-size: .85rem; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.cart-item-controls button { width: 32px; height: 32px; border: 1px solid var(--line); background: transparent; color: #fff; cursor: pointer; }
.cart-remove { border: 0 !important; color: #ff787f !important; text-decoration: underline; width: auto !important; }
.cart-line-price { padding-top: 3px; font: 700 .82rem/1 "IBM Plex Mono", monospace; }
.cart-foot { padding: 20px; border-top: 1px solid var(--line); background: #101014; }
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 15px; font: 700 .8rem/1 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.checkout-button { width: 100%; }
.cart-note { margin: 10px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; text-align: center; }

.store-footer { padding: 48px 0; border-top: 1px solid var(--line); }
.store-footer-inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 30px; }
.store-footer img { display: block; width: min(290px,70vw); }
.store-footer p { margin: 16px 0 0; color: #77777e; font: 500 .66rem/1.5 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font: 600 .7rem/1 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a:hover { color: var(--red); }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 150; max-width: calc(100% - 32px); padding: 13px 18px; background: #fff; color: #08080a; font-weight: 700; transform: translate(-50%,30px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { transform: translate(-50%,0); opacity: 1; }

@media (max-width: 820px) {
  .store-header-inner { grid-template-columns: minmax(0,1fr) auto auto; gap: 9px; min-height: 66px; }
  .store-logo { min-width: 0; }
  .store-logo img { width: auto; max-width: 100%; height: 34px; object-fit: contain; object-position: left center; }
  .store-menu { display: block; grid-column: 3; }
  .cart-trigger { grid-column: 2; grid-row: 1; padding: 0 10px; }
  .cart-trigger-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .store-nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 0; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); background: #0c0c0f; transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .2s ease, opacity .2s ease, visibility .2s ease; }
  .store-header[data-menu-open="true"] .store-nav { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .store-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .merch-hero-inner { grid-template-columns: minmax(0,1fr) 140px; }
  .hero-mark { padding: 10px; }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product-meta { flex-direction: column; align-items: start; }
  .product-layout { grid-template-columns: 1fr; }
  .product-info { position: static; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 24px,1200px); }
  .merch-hero { padding: 30px 0 22px; }
  .merch-hero-inner { grid-template-columns: minmax(0,1fr) 78px; gap: 12px; }
  .merch-hero .eyebrow { font-size: .58rem; letter-spacing: .09em; }
  .merch-hero h1 { font-size: clamp(2.6rem,10.8vw,3.7rem); }
  .merch-hero-copy { font-size: .83rem; margin-top: 12px; }
  .hero-mark { padding: 0; }
  .hero-shop-link { font-size: .6rem; gap: 15px; margin-top: 5px; }
  .catalog-head { align-items: end; gap: 10px; margin-bottom: 20px; }
  .catalog-head .eyebrow { font-size: .59rem; letter-spacing: .13em; }
  .collection-count { font-size: .57rem; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 12px; }
  .product-card-body { padding: 13px 0 4px; }
  .product-card h3 { font-size: clamp(1.3rem,5vw,1.65rem); }
  .product-card p { font-size: .7rem; }
  .product-price { font-size: .63rem; }
  .product-link { font-size: .6rem; }
  .product-card:last-child { grid-column: 1 / -1; }
  .product-card:last-child > a { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; align-items: center; }
  .product-card:last-child .product-card-body { padding: 12px 8px 12px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-item:last-child { border-bottom: 0; }
  .product-main { padding-top: 22px; }
  .product-layout { gap: 26px; }
  .product-info h1 { font-size: clamp(2.4rem,10vw,3.2rem); }
  .product-info > .eyebrow { font-size: .62rem; }
  .detail-description { font-size: .95rem; }
  .gallery-main { max-width: 440px; margin-inline: auto; }
  .size-options { grid-template-columns: repeat(3,1fr); }
  .quantity-row { grid-template-columns: 110px minmax(0,1fr); position: sticky; bottom: 0; z-index: 20; margin-inline: -12px; padding: 12px; background: rgba(8,8,10,.94); backdrop-filter: blur(10px); }
  .add-button { padding-inline: 8px; font-size: .7rem; letter-spacing: .08em; }
  .store-footer-inner { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
