:root {
  --ink: #11100d;
  --paper: #f7f1e7;
  --sea: #167194;
  --sun: #f5bf28;
  --white: #fffdfa;
  --product-field: #bad3d3;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
}

body.product-raptor {
  --product-field: #e8cd5b;
}

body.product-meatlab {
  --product-field: #b8cdd3;
}

body.product-heritage {
  --product-field: #e8cd5b;
}

body.product-tiger-cap {
  --product-field: #bad3d3;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.product-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  background: var(--paper);
  box-shadow: 0 1px 0 rgb(17 16 13 / 0.12);
}

.product-header__logo {
  display: block;
  width: clamp(82px, 8vw, 120px);
}

.product-header__logo img {
  width: 100%;
}

.product-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
}

.product-header__nav a,
.product-cart-button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

.product-header__nav a:hover,
.product-cart-button:hover {
  opacity: 0.6;
}

.product-cart-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
}

.product-cart-count {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.65rem;
}

.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
  gap: clamp(34px, 5vw, 86px);
  min-height: 100vh;
  padding: clamp(104px, 10vh, 126px) clamp(18px, 2.5vw, 42px) clamp(28px, 4vw, 58px);
}

.product-visual {
  position: relative;
  display: grid;
  min-height: calc(100vh - clamp(132px, 14vh, 172px));
  place-items: center;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: var(--product-field);
  padding: clamp(42px, 7vw, 110px);
}

.product-visual__flag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  border: 1px solid var(--ink);
  padding: 8px 10px;
  background: var(--sun);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-preorder .product-visual {
  background: #f2eee4;
}

.product-preorder .product-visual img {
  width: min(100%, 876px);
  max-height: 72vh;
}

.product-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 940px);
  max-height: 78vh;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgb(17 16 13 / 0.16));
  opacity: 0;
  transform: translate(var(--image-x, 0), calc(28px + var(--image-y, 0))) scale(0.96);
  transition: opacity 650ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

body.is-ready .product-visual img {
  opacity: 1;
  transform: translate(var(--image-x, 0), var(--image-y, 0)) scale(1);
}

.product-visual__caption {
  position: absolute;
  right: 20px;
  bottom: 16px;
  left: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-info {
  align-self: center;
  max-width: 660px;
  padding: clamp(8px, 2vw, 28px) 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms 140ms ease, transform 650ms 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-ready .product-info {
  opacity: 1;
  transform: translateY(0);
}

.product-kicker,
.product-options legend,
.product-specs dt,
.product-specs dd {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-kicker {
  margin: 0 0 clamp(26px, 4vw, 56px);
  color: var(--sea);
  font-weight: 800;
}

.product-title {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(4rem, 7.3vw, 8.2rem);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: clamp(28px, 4vw, 54px) 0 0;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 13px;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 800;
}

.product-price span {
  color: rgb(17 16 13 / 0.55);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-copy {
  max-width: 40ch;
  margin: 22px 0 0;
  color: rgb(17 16 13 / 0.68);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.45;
}

.preorder-notice {
  margin-top: 24px;
  border: 1px solid var(--ink);
  border-left: 6px solid var(--sun);
  padding: 15px 16px;
  background: var(--white);
}

.preorder-notice strong {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preorder-notice p {
  margin: 7px 0 0;
  color: rgb(17 16 13 / 0.7);
  font-size: 0.9rem;
  line-height: 1.45;
}

.product-options {
  margin: 30px 0 20px;
  border: 0;
  padding: 0;
}

.product-options legend {
  margin-bottom: 11px;
  font-weight: 800;
}

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

.size-options label {
  cursor: pointer;
}

.size-options input {
  position: absolute;
  opacity: 0;
}

.size-options span {
  display: grid;
  min-width: 48px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  transition: background 150ms ease, color 150ms ease;
}

.size-options input:checked + span {
  background: var(--ink);
  color: white;
}

.size-options input:focus-visible + span {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
}

.product-add-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ink);
  padding: 17px 20px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.product-add-button:hover,
.product-add-button:focus-visible {
  background: var(--sun);
  color: var(--ink);
}

.product-add-button:disabled {
  background: transparent;
  color: rgb(17 16 13 / 0.55);
  cursor: default;
}

.product-specs {
  margin: 28px 0 0;
  border-top: 1px solid var(--ink);
}

.product-specs div {
  display: grid;
  grid-template-columns: minmax(100px, 0.4fr) minmax(0, 0.6fr);
  gap: 18px;
  border-bottom: 1px solid rgb(17 16 13 / 0.24);
  padding: 12px 0;
}

.product-specs dt,
.product-specs dd {
  margin: 0;
}

.product-specs dd {
  text-align: right;
}

.product-back-link {
  display: inline-block;
  margin-top: 24px;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.product-back-link:hover {
  color: var(--sea);
}

.mini-cart,
.mini-cart-backdrop {
  position: fixed;
  z-index: 20;
  visibility: hidden;
  opacity: 0;
  transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
}

.mini-cart {
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  width: min(420px, 92vw);
  padding: 28px;
  border-left: 1px solid var(--ink);
  background: var(--paper);
  transform: translateX(100%);
}

.mini-cart.is-open,
.mini-cart-backdrop.is-open {
  visibility: visible;
  opacity: 1;
}

.mini-cart.is-open {
  transform: translateX(0);
}

.mini-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(17 16 13 / 0.16);
  padding-bottom: 16px;
}

.mini-cart__header h2 {
  margin: 0;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.mini-cart__close {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1.8rem;
}

.mini-cart__status {
  color: rgb(17 16 13 / 0.65);
  line-height: 1.5;
}

.mini-cart__item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 20px;
  border-bottom: 1px solid rgb(17 16 13 / 0.18);
  padding-bottom: 18px;
}

.mini-cart__item[hidden],
.mini-cart__preorder[hidden] {
  display: none;
}

.mini-cart__item img {
  width: 92px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgb(17 16 13 / 0.2);
}

.mini-cart__item div,
.mini-cart__item span {
  display: block;
}

.mini-cart__product-name {
  margin-bottom: 7px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.mini-cart__product-size,
.mini-cart__product-price {
  color: rgb(17 16 13 / 0.64);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.6;
}

.mini-cart__preorder {
  margin-top: 20px;
}

.mini-cart__preorder > p {
  color: rgb(17 16 13 / 0.7);
  font-size: 0.86rem;
  line-height: 1.45;
}

.preorder-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 18px 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.preorder-consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

.mini-cart__checkout {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: rgb(17 16 13 / 0.18);
  color: rgb(17 16 13 / 0.48);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: not-allowed;
}

.mini-cart__checkout.is-ready {
  background: var(--ink);
  color: white;
  cursor: pointer;
}

.mini-cart__checkout-note {
  margin: 10px 0 0;
  color: #9d3212;
  font-size: 0.72rem;
  line-height: 1.4;
}

.mini-cart-backdrop {
  inset: 0;
  background: rgb(0 0 0 / 0.32);
}

@media (max-width: 960px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .product-visual {
    min-height: 68vh;
  }

  .product-visual img {
    max-height: 60vh;
  }

  .product-info {
    width: min(100%, 720px);
    max-width: none;
    padding: 12px 6px 48px;
  }

  .product-title {
    max-width: 10ch;
    font-size: clamp(4rem, 13vw, 8rem);
  }
}

@media (max-width: 620px) {
  .product-header {
    padding: 15px 14px;
  }

  .product-header__logo {
    width: 70px;
  }

  .product-header__nav {
    gap: 10px;
  }

  .product-header__nav a,
  .product-cart-button {
    font-size: 0.58rem;
  }

  .product-header__nav a:nth-child(1),
  .product-header__nav a:nth-child(3) {
    display: none;
  }

  .product-page {
    gap: 30px;
    padding: 86px 12px 32px;
  }

  .product-visual {
    min-height: 62vh;
    border-width: 3px;
    border-radius: 12px;
    padding: 42px 16px 58px;
  }

  .product-visual img {
    width: 100%;
    max-height: 52vh;
  }

  .product-visual__caption {
    right: 14px;
    bottom: 12px;
    left: 14px;
    font-size: 0.55rem;
  }

  .product-info {
    padding: 4px 8px 36px;
  }

  .product-kicker {
    margin-bottom: 26px;
  }

  .product-title {
    font-size: clamp(3.4rem, 18vw, 5.5rem);
  }

  .product-specs div {
    grid-template-columns: 0.42fr 0.58fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-visual img,
  .product-info {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
