:root {
  --bg: #f7f7f4;
  --ink: #070707;
  --muted: #c8c8c3;
  --soft: #e7e7e2;
  --fast: 180ms;
  --slow: 640ms;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-top: 22px;
  pointer-events: none;
}

.brand-wordmark {
  justify-self: start;
  margin-left: 18px;
  white-space: nowrap;
  color: var(--ink);
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: opacity var(--slow) cubic-bezier(.2, .8, .2, 1);
}

@media (max-width: 900px) {
  .brand-wordmark {
    font-size: clamp(15px, 1.5vw, 20px);
  }

  .nav-link {
    font-size: 15px;
  }

  .preventa-hint {
    font-size: 11px;
  }
}

.icon-button,
.detail-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  pointer-events: auto;
}

.back-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}

.icon-button svg,
.back-button svg,
.detail-arrow svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-toggle {
  justify-self: end;
  margin-right: 8px;
  position: relative;
  z-index: 31;
}

.cart-toggle svg path {
  vector-effect: non-scaling-stroke;
}

.cart-count {
  position: absolute;
  right: 2px;
  bottom: 2px;
  min-width: 17px;
  height: 17px;
  display: none;
  place-items: center;
  border-radius: 99px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
}

.cart-count.has-items {
  display: grid;
}

.category-nav {
  position: fixed;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 31;
  width: min(480px, 70vw);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  pointer-events: auto;
}

.nav-link {
  min-height: 22px;
  color: #d0d0cc;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: color var(--fast), transform var(--fast);
}

.nav-link.active,
.nav-link:hover {
  color: var(--ink);
}

.nav-link:active {
  transform: scale(.94);
}

.preventa-trigger {
  cursor: pointer;
}

.nav-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.discount-badge {
  color: var(black);
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preventa-hint {
  background: none;
  border: none;
  color: #70706d;
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  padding: 0;
  transition: color var(--fast);
}

.preventa-hint:hover {
  color: var(--ink);
}

body.detail-open .category-nav {
  opacity: 0;
  pointer-events: none;
}

body.detail-open .brand-wordmark {
  opacity: 0;
  pointer-events: none;
}

.site-shell {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.grid-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 150px clamp(18px, 4vw, 70px) 92px;
  transition: opacity var(--slow) cubic-bezier(.2, .8, .2, 1), transform var(--slow) cubic-bezier(.2, .8, .2, 1), filter var(--slow);
}

.brand-mark {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 5;
  color: #d7d7d2;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.product-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: clamp(52px, 8vw, 112px) clamp(24px, 5vw, 88px);
  align-items: end;
}

.product-card {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(160px, 25vw) 36px;
  align-items: end;
  justify-items: center;
  opacity: 0;
  transform: translateY(18px);
  animation: cardIn 620ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.product-card button {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: end center;
}

.product-card img {
  width: min(100%, 280px);
  max-height: 88%;
  object-fit: contain;
  transition: transform 520ms cubic-bezier(.2, .8, .2, 1), filter 520ms;
  transform-origin: 50% 65%;
  will-change: transform;
}

.product-card:hover img {
  transform: translateY(-8px) scale(1.035);
  filter: contrast(1.04);
}

.product-code {
  align-self: end;
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 700;
  text-align: center;
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.detail-open .grid-view {
  opacity: 0;
  transform: scale(.975);
  filter: blur(1px);
  pointer-events: none;
}

body.detail-open .site-footer {
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  min-height: 104px;
  padding: 28px clamp(18px, 4vw, 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5.5vw, 74px);
  flex-wrap: wrap;
  border-top: 1px solid rgba(7, 7, 7, .04);
  color: #70706d;
  font-size: clamp(18px, 1.9vw, 28px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  transition: opacity var(--slow) cubic-bezier(.2, .8, .2, 1);
}

.site-footer a,
.footer-link {
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--fast), transform var(--fast);
}

.footer-link {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-transform: uppercase;
}

.site-footer a:hover,
.footer-link:hover {
  color: var(--ink);
}

.site-footer a:active,
.footer-link:active {
  transform: scale(.96);
}

body.policy-open .grid-view {
  opacity: 0;
  transform: scale(.975);
  filter: blur(1px);
  pointer-events: none;
}

body.policy-open .site-footer {
  opacity: 0;
  pointer-events: none;
}

body.policy-open .category-nav,
body.policy-open .brand-wordmark {
  opacity: 0;
  pointer-events: none;
}

.policy-view {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 88px clamp(18px, 4vw, 48px) 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

body.policy-open .policy-view {
  opacity: 1;
  pointer-events: auto;
}

.policy-panel {
  width: min(700px, 92vw);
  max-height: min(78vh, 820px);
  overflow: auto;
  padding: clamp(28px, 4.5vw, 52px);
  background: rgba(247, 247, 244, .98);
  border: 1px solid rgba(7, 7, 7, .08);
  box-shadow: 0 24px 80px rgba(7, 7, 7, .06);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transform-origin: center center;
}

.policy-content[hidden] {
  display: none;
}

.policy-head {
  margin-bottom: clamp(24px, 4vw, 36px);
  padding-bottom: clamp(18px, 3vw, 28px);
  border-bottom: 1px solid rgba(7, 7, 7, .08);
}

.policy-eyebrow {
  margin: 0 0 10px;
  color: #8f8f89;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.policy-head h1 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  text-transform: none;
}

.policy-body {
  display: grid;
  gap: clamp(22px, 3.5vw, 32px);
}

.policy-block h2 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.policy-block h3 {
  margin: 0 0 10px;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}

.policy-block p {
  margin: 0;
  color: #3d3d39;
  font-size: clamp(14px, 1.45vw, 16px);
  font-weight: 400;
  line-height: 1.65;
}

.policy-block p+p {
  margin-top: 12px;
}

.policy-flight-clone {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid rgba(7, 7, 7, .08);
  color: #70706d;
  font-size: clamp(14px, 1.9vw, 22px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-view {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(75px, 1fr) minmax(250px, 48vw) minmax(50px, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  row-gap: clamp(100px, 4vh, 40px);
  padding: 86px 38px 28px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

body.detail-open .detail-view {
  opacity: 1;
  pointer-events: none;
}

body.detail-open .detail-view .detail-arrow,
body.detail-open .detail-view .detail-hero,
body.detail-open .detail-view .product-panel {
  pointer-events: auto;
}

.detail-back {
  position: fixed;
  top: 19px;
  left: 8px;
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

body.detail-open .detail-back {
  opacity: 1;
  pointer-events: auto;
}

.policy-back {
  position: fixed;
  top: 19px;
  left: 8px;
  z-index: 35;
  pointer-events: none;
}

body.policy-open .policy-back {
  pointer-events: auto;
}

.back-button.detail-back {
  z-index: 45;
}

.detail-hero {
  grid-column: 2;
  grid-row: 1;
  width: min(320px, 40vw);
  height: 100%;
  max-height: min(400px, calc(100vh - 360px));
  min-height: 0;
  margin: 0;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  transform-origin: center center;
  transition: opacity 220ms ease, transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.detail-hero[data-view="side"] img {
  transform: rotateY(180deg);
}

.detail-hero img.switching {
  opacity: 0;
  transform: translateX(var(--slide-x, 0));
}

.detail-hero[data-view="side"] img.switching {
  transform: translateX(var(--slide-x, 0)) rotateY(180deg);
}

.detail-arrow {
  grid-row: 1;
  align-self: center;
}

.detail-arrow.prev {
  grid-column: 1;
}

.detail-arrow.next {
  grid-column: 3;
}

.product-panel {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 180px;
  padding-bottom: 4px;
}

.dots {
  min-height: 16px;
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: center;
}

.dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 50%;
  background: #d2d2cd;
}

.dot.active {
  background: var(--ink);
}

.product-panel h1,
.product-panel p {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1;
}

.shipping-note {
  font-size: clamp(6px, 0.6vw, 8px);
  font-weight: 300;
  color: #70706d;
  margin: 0;
}

.product-discount {
  background: var(--ink);
  color: var(--bg);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 4px;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.original-price {
  text-decoration: line-through;
  color: #70706d;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400;
}

.size-row {
  height: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.size-chip {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #a9a9a3;
  font-size: 12px;
  font-weight: 800;
}

.size-chip.active {
  color: var(--ink);
}

.add-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 48px;
  line-height: .7;
  font-weight: 400;
  transition: transform var(--fast);
}

.add-button:active {
  transform: scale(.86);
}

.drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  bottom: 0;
  width: min(360px, 86vw);
  padding: 86px 30px 30px;
  background: rgba(247, 247, 244, .96);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--soft);
  transform: translateX(105%);
  transition: transform 360ms cubic-bezier(.2, .8, .2, 1);
  display: grid;
  align-content: start;
  gap: 20px;
}

.drawer.open {
  transform: translateX(0);
}

.cart-drawer {
  right: 0;
}

.drawer-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  font-size: 42px;
  line-height: 1;
  transform: rotate(45deg);
}

.drawer a,
.drawer h2,
.checkout-button {
  margin: 0;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
}

.cart-items {
  min-height: 190px;
  display: grid;
  gap: 16px;
  align-content: start;
  color: #999993;
  font-weight: 800;
}

.cart-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--ink);
}

.cart-line img {
  width: 56px;
  height: 44px;
  object-fit: contain;
}

.cart-line span {
  min-width: 0;
}

.cart-line-end {
  display: grid;
  grid-template-columns: auto 28px;
  align-items: center;
  gap: 8px;
}

.remove-item {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #8f8f89;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: color var(--fast), transform var(--fast);
}

.remove-item:hover {
  color: var(--ink);
  transform: rotate(90deg);
}

.remove-item:active {
  transform: scale(.86) rotate(90deg);
}

.checkout-button {
  height: 48px;
  margin-top: 24px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.flight-clone {
  position: fixed;
  z-index: 80;
  object-fit: contain;
  pointer-events: none;
  transform-origin: top left;
  will-change: transform;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    height: 64px;
    align-items: center;
    padding-top: 18px;
  }

  .grid-view {
    display: grid;
    justify-items: center;
    align-content: start;
    padding-top: 88px;
  }

  .product-grid {
    display: contents;
  }

  .product-card {
    display: contents;
  }

  .product-card button {
    grid-row: 1;
    width: min(100%, 320px);
    height: auto;
    min-height: 0;
    display: grid;
    place-items: end center;
  }

  .product-card img {
    width: min(100%, 280px);
    max-height: none;
  }

  .category-nav {
    position: static;
    transform: none;
    grid-row: 2;
    width: 100%;
    max-width: 320px;
    margin-top: 12px;
    gap: 4px;
    pointer-events: auto;
  }

  .product-code {
    grid-row: 3;
    margin-top: 10px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 56px 26px;
  }

  .product-card {
    grid-template-rows: minmax(142px, 38vw) 32px;
  }

  .site-footer {
    justify-content: flex-start;
    gap: 20px 34px;
  }

  .detail-view {
    grid-template-columns: 60px 1fr 60px;
    padding: 88px 12px 24px;
    row-gap: clamp(20px, 3.5vh, 32px);
  }

  .detail-hero {
    width: min(72vw, 480px);
    max-height: min(440px, calc(100vh - 300px));
  }

  .product-panel {
    gap: 18px;
  }

  .nav-link {
    font-size: 13px;
  }

  .preventa-hint {
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  .category-nav {
    max-width: 280px;
    margin-top: 10px;
    gap: 3px;
  }

  .product-code {
    margin-top: 8px;
  }

  .grid-view {
    padding: 76px 18px 44px;
  }

  .product-grid {
    gap: 42px 20px;
  }

  .product-card {
    grid-template-rows: minmax(118px, 42vw) 30px;
  }

  .site-footer {
    min-height: 150px;
    padding: 28px 18px 34px;
    gap: 18px 24px;
    justify-content: center;
    font-size: 18px;
  }

  .detail-view {
    grid-template-columns: 44px 1fr 44px;
    grid-template-rows: minmax(0, 1fr) auto;
    row-gap: 20px;
    padding: 80px 6px 20px;
  }

  .detail-hero {
    width: min(74vw, 420px);
    max-height: min(380px, calc(100vh - 280px));
  }

  .policy-view {
    padding: 96px 14px 32px;
  }

  .policy-panel {
    width: 94vw;
    max-height: 74vh;
    padding: 24px 20px 28px;
  }

  .detail-arrow svg {
    width: 24px;
    height: 24px;
  }

  .product-panel h1,
  .product-panel p {
    font-size: 18px;
  }

  .drawer {
    width: 100%;
    padding: 86px 20px 30px;
  }

  .cart-line {
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
  }

  .cart-line img {
    width: 48px;
    height: 38px;
  }

  .cart-toggle {
    margin-right: 12px;
  }
}

@media (max-width: 400px) {
  .topbar {
    height: 58px;
    padding-top: 16px;
    align-items: center;
  }

  .brand-wordmark {
    font-size: 13px;
    margin-left: 12px;
  }

  .category-nav {
    max-width: 260px;
    margin-top: 8px;
    gap: 2px;
  }

  .product-code {
    margin-top: 6px;
  }

  .grid-view {
    padding: 68px 14px 40px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 35px 15px;
  }

  .product-card {
    grid-template-rows: minmax(140px, 50vw) 28px;
  }

  .product-code {
    font-size: 14px;
  }

  .site-footer {
    min-height: 130px;
    padding: 24px 14px 30px;
    gap: 16px 20px;
    font-size: 16px;
  }

  .detail-view {
    grid-template-columns: 36px 1fr 36px;
    padding: 70px 4px 16px;
    row-gap: 16px;
  }

  .detail-hero {
    width: min(80vw, 350px);
    max-height: min(320px, calc(100vh - 260px));
  }

  .product-panel {
    gap: 12px;
  }

  .product-panel h1,
  .product-panel p {
    font-size: 16px;
  }

  .shipping-note {
    font-size: clamp(5px, 0.5vw, 7px);
  }

  .size-row {
    height: 24px;
    gap: 10px;
  }

  .size-chip {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .add-button {
    width: 42px;
    height: 42px;
    font-size: 42px;
  }

  .drawer {
    width: 100%;
    padding: 80px 16px 24px;
  }

  .drawer h2,
  .drawer a,
  .checkout-button {
    font-size: 18px;
  }

  .cart-items {
    min-height: 160px;
    gap: 14px;
  }

  .cart-line {
    grid-template-columns: 44px 1fr auto;
    gap: 8px;
  }

  .cart-line img {
    width: 44px;
    height: 35px;
  }

  .cart-line span {
    font-size: 12px;
  }

  .cart-line-end strong {
    font-size: 14px;
  }

  .remove-item {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .checkout-button {
    height: 44px;
    margin-top: 20px;
  }

  .policy-view {
    padding: 80px 12px 28px;
  }

  .policy-panel {
    width: 96vw;
    max-height: 78vh;
    padding: 20px 16px 24px;
  }

  .policy-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .policy-head h1 {
    font-size: 20px;
  }

  .policy-body {
    gap: 18px;
  }

  .policy-block h2 {
    font-size: 11px;
  }

  .policy-block h3 {
    font-size: 14px;
  }

  .policy-block p {
    font-size: 13px;
  }

  .cart-toggle {
    margin-right: 14px;
  }
}

@media (max-width: 360px) {
  .topbar {
    height: 54px;
    padding-top: 14px;
    align-items: center;
  }

  .brand-wordmark {
    font-size: 11px;
    margin-left: 10px;
  }

  .category-nav {
    max-width: 240px;
    margin-top: 6px;
    gap: 2px;
  }

  .product-code {
    margin-top: 4px;
  }

  .icon-button,
  .detail-arrow {
    width: 36px;
    height: 36px;
  }

  .icon-button svg,
  .detail-arrow svg {
    width: 22px;
    height: 22px;
  }

  .grid-view {
    padding: 64px 12px 36px;
  }

  .product-grid {
    gap: 30px 12px;
  }

  .product-card {
    grid-template-rows: minmax(120px, 55vw) 26px;
  }

  .product-code {
    font-size: 13px;
  }

  .site-footer {
    min-height: 120px;
    padding: 20px 12px 28px;
    gap: 14px 18px;
    font-size: 14px;
  }

  .detail-view {
    grid-template-columns: 32px 1fr 32px;
    padding: 60px 2px 14px;
    row-gap: 14px;
  }

  .detail-hero {
    width: min(85vw, 300px);
    max-height: min(280px, calc(100vh - 240px));
  }

  .product-panel {
    gap: 10px;
  }

  .product-panel h1,
  .product-panel p {
    font-size: 14px;
  }

  .shipping-note {
    font-size: clamp(4px, 0.4vw, 6px);
  }

  .size-row {
    height: 22px;
    gap: 8px;
  }

  .size-chip {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .add-button {
    width: 38px;
    height: 38px;
    font-size: 38px;
  }

  .drawer {
    width: 100%;
    padding: 75px 14px 20px;
  }

  .drawer h2,
  .drawer a,
  .checkout-button {
    font-size: 16px;
  }

  .cart-items {
    min-height: 140px;
    gap: 12px;
  }

  .cart-line {
    grid-template-columns: 40px 1fr auto;
    gap: 6px;
  }

  .cart-line img {
    width: 40px;
    height: 32px;
  }

  .cart-line span {
    font-size: 11px;
  }

  .cart-line-end strong {
    font-size: 13px;
  }

  .remove-item {
    width: 22px;
    height: 22px;
    font-size: 18px;
  }

  .checkout-button {
    height: 40px;
    margin-top: 16px;
  }

  .policy-view {
    padding: 70px 10px 24px;
  }

  .policy-panel {
    width: 98vw;
    max-height: 80vh;
    padding: 18px 14px 22px;
  }

  .policy-head {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .policy-head h1 {
    font-size: 18px;
  }

  .policy-body {
    gap: 16px;
  }

  .policy-block h2 {
    font-size: 10px;
  }

  .policy-block h3 {
    font-size: 13px;
  }

  .policy-block p {
    font-size: 12px;
  }

  .cart-toggle {
    margin-right: 16px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .topbar {
    height: 60px;
    padding-top: 12px;
  }

  .brand-wordmark {
    font-size: 14px;
  }

  .category-nav {
    width: 50vw;
    gap: 6px 12px;
  }

  .nav-link {
    font-size: 12px;
  }

  .grid-view {
    padding: 80px clamp(16px, 3vw, 60px) 60px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 30px 20px;
  }

  .product-card {
    grid-template-rows: minmax(80px, 15vw) 24px;
  }

  .product-code {
    font-size: 13px;
  }

  .site-footer {
    min-height: 60px;
    padding: 16px clamp(16px, 3vw, 60px);
    gap: 12px 20px;
    font-size: 14px;
  }

  .detail-view {
    grid-template-columns: 50px 1fr 50px;
    padding: 60px 20px 16px;
    row-gap: 12px;
  }

  .detail-hero {
    width: min(40vw, 400px);
    max-height: min(200px, calc(100vh - 200px));
  }

  .product-panel {
    gap: 8px;
  }

  .product-panel h1,
  .product-panel p {
    font-size: 16px;
  }

  .shipping-note {
    font-size: clamp(4px, 0.4vw, 6px);
  }

  .size-row {
    height: 22px;
    gap: 8px;
  }

  .size-chip {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .add-button {
    width: 36px;
    height: 36px;
    font-size: 36px;
  }

  .drawer {
    padding: 70px 20px 20px;
  }

  .policy-view {
    padding: 70px 20px 20px;
  }

  .policy-panel {
    max-height: 70vh;
    padding: 16px 20px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

.preventa-popup {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--slow) cubic-bezier(.2, .8, .2, 1);
}

.preventa-popup[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.preventa-content {
  background: #fff;
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 8px;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--slow) cubic-bezier(.2, .8, .2, 1);
}

.preventa-popup[aria-hidden="false"] .preventa-content {
  transform: translateY(0);
}

.preventa-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #70706d;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  transition: background var(--fast), color var(--fast);
}

.preventa-close:hover {
  background: #f0f0f0;
  color: var(--ink);
}

.preventa-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--ink);
}

.preventa-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #70706d;
  margin: 0 0 12px 0;
}

.preventa-content strong {
  color: var(--ink);
  font-weight: 600;
}

.preventa-content a {
  color: var(--ink);
  text-decoration: underline;
}

.preventa-note {
  margin-top: 16px !important;
  font-style: italic;
  font-size: 13px !important;
}

.discount-highlight {
  color: var(--ink);
  font-weight: 700;
  font-size: 16px !important;
  margin-bottom: 16px !important;
}

@media (max-width: 560px) {
  .preventa-content {
    padding: 24px 20px;
    max-width: 90vw;
  }

  .preventa-content h2 {
    font-size: 18px;
  }

  .preventa-content p {
    font-size: 13px;
  }
}