/* Unknown Kicks — premium streetwear theme */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --border: #e5e5e5;
  --hero-overlay: rgba(0, 0, 0, 0.15);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --header-h: 56px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --page-pad: clamp(1rem, 4vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--page-pad);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

/* Mobile menu toggle (injected by nav.js) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: 0 -0.5rem 0 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  z-index: 110;
}

.site-header--light .nav-toggle {
  color: #fff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.site-header.is-nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header--light {
  color: #fff;
}

.site-header--dark {
  color: var(--fg);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-left,
.nav-right {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.nav-right {
  justify-content: flex-end;
}

.nav-left a,
.nav-right a {
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav-left a:hover,
.nav-right a:hover {
  opacity: 0.55;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  height: 28px;
  width: auto;
  filter: invert(1);
  transition: filter 0.4s var(--ease);
}

.site-header--dark .brand-logo img {
  filter: none;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
}

/* ─── Hero (landing) ─── */
.hero-pin {
  position: relative;
  height: 200vh;
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.hero__media {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    transparent 35%,
    rgba(0, 0, 0, 0.2) 55%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(2rem, 8vh, 5rem);
  z-index: 2;
  color: #fff;
}

.hero__tag {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 1.25rem;
  line-height: 1.1;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid currentColor;
  font-size: 10px;
  letter-spacing: 0.14em;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.btn-ghost:hover {
  background: #fff;
  color: var(--fg);
}

.btn-ghost svg {
  width: 18px;
  height: 1px;
  stroke: currentColor;
  stroke-width: 1;
}

/* Arrivals slides over hero on scroll */
.arrivals-wrap {
  position: relative;
  z-index: 2;
  margin-top: -100vh;
  min-height: 100vh;
  background: var(--bg);
  border-radius: 0;
  transform: translateY(0);
  transition: box-shadow 0.3s;
}

.arrivals-wrap.is-revealed {
  box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.08);
}

.arrivals {
  padding: calc(var(--header-h) + 2.5rem) clamp(1.25rem, 4vw, 3rem) 5rem;
}

.arrivals__head {
  margin-bottom: 0.75rem;
}

.arrivals__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1.1;
}

.arrivals__count {
  font-weight: 400;
  opacity: 0.5;
  font-size: 0.65em;
}

.arrivals__sub {
  font-size: clamp(11px, 1.5vw, 13px);
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--muted);
  margin: 0 0 2.5rem;
  max-width: 36rem;
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.product-card {
  cursor: pointer;
  group: product;
}

.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #efefef;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}

.product-card__media img.primary {
  opacity: 1;
  z-index: 1;
}

.product-card__media img.hover {
  opacity: 0;
  z-index: 2;
}

.product-card:hover .product-card__media img.primary {
  opacity: 0;
}

.product-card:hover .product-card__media img.hover {
  opacity: 1;
}

.product-card:hover .product-card__media img.primary {
  transform: scale(1.03);
}

.product-card__name {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0 0 0.35rem;
  line-height: 1.4;
}

.product-card__price {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: none;
}

/* ─── Product page (PDP) ─── */
.product-page {
  padding-top: var(--header-h);
}

.product-layout--pdp {
  display: grid;
  grid-template-columns: minmax(240px, 22vw) minmax(320px, 1fr) minmax(260px, 24vw);
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 8rem;
  align-items: start;
}

.product-layout__side {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: start;
  z-index: 2;
}

.product-info {
  max-width: 360px;
}

.product-info__title {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}

.product-info__price {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  letter-spacing: 0.06em;
  margin: 0 0 2rem;
  text-transform: none;
}

/* Accordion */
.accordion {
  border-top: 1px solid var(--fg);
}

.accordion__item {
  border-bottom: 1px solid var(--fg);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  background: none;
  border: none;
  font: inherit;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  color: inherit;
  cursor: pointer;
  text-align: left;
  letter-spacing: 0.1em;
}

.accordion__icon {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.3s var(--ease);
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(45deg);
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.accordion__item.is-open .accordion__panel {
  max-height: 480px;
}

.accordion__body {
  padding: 0 0 1.35rem;
  font-size: clamp(0.8rem, 0.95vw, 0.875rem);
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.65;
  color: var(--fg);
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}

.size-table th,
.size-table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.4rem;
  text-align: center;
}

.size-table th {
  font-weight: 600;
  background: #fafafa;
}

/* Gallery — desktop: vertical scroll stack; mobile: carousel (see @media below) */
.product-gallery {
  position: relative;
  width: 100%;
  max-width: min(640px, 100%);
  margin: 0 auto;
  align-self: start;
  background: transparent;
}

.product-gallery__viewport {
  position: relative;
  overflow: visible;
  background: transparent;
}

.product-gallery__track {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-gallery__slide {
  flex: none;
  width: 100%;
  min-height: calc(100dvh - var(--header-h));
  margin: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.product-gallery__slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - var(--header-h) - 3rem);
  object-fit: contain;
  object-position: center center;
}

.product-gallery__nav,
.product-gallery__dots {
  display: none;
}

/* Mobile / tablet: single image + carousel controls */
@media (max-width: 1024px) {
  .product-gallery {
    max-width: min(560px, 100%);
    align-self: center;
  }

  .product-gallery__viewport {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .product-gallery__track {
    flex-direction: row;
    transition: transform 0.45s var(--ease);
    will-change: transform;
    width: 100%;
  }

  .product-gallery__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    box-sizing: border-box;
  }

  .product-gallery__slide img {
    width: 100%;
    max-width: 100%;
    max-height: min(72vh, calc(100dvh - var(--header-h) - 6rem));
  }

  .product-gallery__nav {
    display: block;
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--fg);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    transition: opacity 0.2s;
  }

  .product-gallery__nav:hover {
    opacity: 0.85;
  }

  .product-gallery__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0;
  }

  .product-gallery__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #c8c8c8;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }

  .product-gallery__dot.is-active {
    background: var(--fg);
    transform: scale(1.15);
  }

  .product-gallery__dot:hover:not(.is-active) {
    background: #999;
  }
}

/* Purchase column */
.product-buy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  gap: 1.25rem;
}

.product-buy__sheet {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-buy__pickers {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-buy__group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.product-buy__bar {
  width: 100%;
}

.product-buy .picker-label {
  margin-bottom: 0;
}

.product-buy .color-picker {
  margin-bottom: 0;
}

.size-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.size-picker__btn {
  min-width: 52px;
  height: 52px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.size-picker__btn:active {
  transform: scale(0.97);
}

.size-picker__btn:hover,
.size-picker__btn.is-selected {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn-cart {
  width: 100%;
  max-width: none;
  margin-top: 0.5rem;
  padding: 1.15rem 1.5rem;
  background: var(--fg);
  color: var(--bg);
  border: none;
  font: inherit;
  font-size: clamp(0.8rem, 1vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-cart:hover {
  opacity: 0.85;
}

.btn-cart:active:not(:disabled) {
  transform: scale(0.99);
}

.btn-cart--pdp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0;
  padding: 1rem 1.25rem;
  min-height: 54px;
}

.btn-cart__label {
  flex: 1;
  text-align: left;
}

.btn-cart__price {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  opacity: 0.92;
}

/* Footer strip */
.site-footer {
  padding: 3rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  font-size: 9px;
  text-align: center;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer__sep {
  color: var(--muted);
  opacity: 0.6;
}

.site-footer__admin {
  color: var(--muted);
  transition: opacity 0.2s, color 0.2s;
}

.site-footer__admin:hover {
  color: var(--fg);
  opacity: 0.85;
}

.site-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  transition: opacity 0.2s;
}

.site-footer__credit:hover {
  opacity: 0.75;
}

.site-footer__credit img {
  flex-shrink: 0;
  border-radius: 3px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-layout--pdp {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 4rem;
  }

  .product-layout__side {
    position: static;
    height: auto;
    justify-content: flex-start;
    max-width: none;
  }

  .product-info {
    max-width: none;
  }

  .product-buy {
    align-items: stretch;
    text-align: left;
    margin-left: 0;
    max-width: none;
  }

  .product-gallery {
    max-width: none;
  }

  .btn-cart {
    max-width: none;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 12px;
  }

  :root {
    --header-h: 52px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    padding-top: max(0px, env(safe-area-inset-top));
    padding-left: max(var(--page-pad), env(safe-area-inset-left));
    padding-right: max(var(--page-pad), env(safe-area-inset-right));
  }

  .site-header.is-nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 104;
    background: rgba(0, 0, 0, 0.45);
  }

  .nav-toggle {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 111;
  }

  .nav-left {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 105;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 1.25rem var(--page-pad) 2rem;
    background: var(--bg);
    color: var(--fg);
    font-size: 0.9375rem;
    letter-spacing: 0.12em;
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-header--light .nav-left {
    background: rgba(10, 10, 10, 0.97);
    color: #fff;
  }

  .site-header.is-nav-open .nav-left {
    transform: translateX(0);
  }

  .nav-left a {
    display: block;
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    min-height: 44px;
    line-height: 1.4;
  }

  .site-header--light .nav-left a {
    border-bottom-color: rgba(255, 255, 255, 0.15);
  }

  .brand-logo {
    grid-column: 2;
    justify-self: center;
  }

  .nav-right {
    grid-column: 3;
    font-size: 0.8125rem;
    gap: 0;
  }

  .nav-right a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Landing hero — simpler scroll on phones */
  .hero-pin {
    height: auto;
  }

  .hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero__media img {
    object-position: center top;
  }

  .arrivals-wrap {
    margin-top: 0;
  }

  .hero__content {
    left: var(--page-pad);
    right: var(--page-pad);
    bottom: clamp(1.5rem, 6vh, 3rem);
  }

  .hero__tag {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .arrivals {
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .product-card__name,
  .product-card__price {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .category-filters {
    gap: 0.4rem;
    margin-bottom: 1.5rem;
  }

  .filter-btn {
    padding: 0.55rem 0.85rem;
    min-height: 40px;
    font-size: 9px;
  }

  /* PDP — gallery → title → options → fixed CTA */
  .product-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .product-layout--pdp {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 var(--page-pad) 2rem;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .product-info {
    display: contents;
  }

  .product-gallery {
    order: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }

  .product-info__title {
    order: 1;
    font-size: 1.125rem;
    line-height: 1.3;
    margin: 1.25rem 0 0.35rem;
    padding-top: 0.25rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .product-info__price {
    order: 2;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 0 0 1rem;
    text-transform: none;
    width: 100%;
    max-width: 100%;
  }

  .product-buy {
    order: 3;
    display: contents;
  }

  .product-buy__sheet {
    order: 3;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 1rem;
    padding: 1.25rem;
    background: #f8f8f8;
    border: 1px solid var(--border);
    gap: 1.15rem;
    box-sizing: border-box;
  }

  .product-buy__pickers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
  }

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

  .product-buy__group {
    gap: 0.75rem;
  }

  .product-buy__bar {
    order: 99;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.75rem var(--page-pad) calc(0.75rem + env(safe-area-inset-bottom, 0px));
    padding-left: max(var(--page-pad), env(safe-area-inset-left));
    padding-right: max(var(--page-pad), env(safe-area-inset-right));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.08);
  }

  .product-buy__bar .btn-cart--pdp {
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 0.9rem 1rem;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    box-sizing: border-box;
  }

  .btn-cart--pdp .btn-cart__label {
    min-width: 0;
  }

  .btn-cart--pdp .btn-cart__price {
    flex-shrink: 0;
    white-space: nowrap;
  }

  #product-accordion {
    order: 4;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .accordion__body {
    overflow-wrap: anywhere;
  }

  .size-picker {
    gap: 0.4rem;
  }

  .size-picker__btn {
    min-width: 48px;
    height: 48px;
    flex: 1;
    max-width: 72px;
  }

  .color-picker__btn {
    width: 48px;
    height: 48px;
  }

  .stock-status {
    font-size: 0.6875rem;
  }

  .site-footer {
    padding: 2rem var(--page-pad);
    font-size: 10px;
  }
}

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

  .nav-right a {
    font-size: 0.75rem;
  }
}

/* Category filters */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* Color picker */
.picker-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 0;
  color: var(--muted);
}

.color-picker {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.color-picker__btn {
  width: 44px;
  height: 44px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--swatch, #ccc);
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, box-shadow 0.2s;
}

.color-picker__btn:active {
  transform: scale(0.94);
}

.color-picker__btn.is-selected {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px var(--bg);
}

.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0;
}

.stock-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.stock-status--ok {
  color: #1a6b2a;
}

.stock-status--ok::before {
  background: #1a6b2a;
}

.stock-status--low {
  color: #9a5c00;
}

.stock-status--low::before {
  background: #d4920a;
}

.stock-status--muted::before {
  background: var(--muted);
}

.picker-value {
  font-weight: 400;
  color: var(--fg);
  text-transform: none;
  letter-spacing: 0.04em;
}

.picker-value::before {
  content: "·";
  margin: 0 0.35rem;
  color: var(--border);
}

.product-card.is-sold-out {
  opacity: 0.55;
}

/* Inner pages */
.page-inner .site-header {
  position: sticky;
}

body.page-inner {
  overflow-x: clip;
}

.page-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) 4rem;
}

.page-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0 0 2rem;
}

/* ─── Cart ─── */
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cart-header .page-title {
  margin-bottom: 0;
}

.cart-continue {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.cart-continue:hover {
  opacity: 1;
}

.cart-empty {
  padding: 2rem 0;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.9375rem;
}

.cart-empty p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  background: var(--bg);
}

.cart-card__media {
  flex-shrink: 0;
  width: 96px;
  height: 120px;
  background: #efefef;
  overflow: hidden;
}

.cart-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-card__body {
  flex: 1;
  min-width: 0;
}

.cart-card__name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  text-transform: none;
}

.cart-card__name:hover {
  opacity: 0.65;
}

.cart-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.cart-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.cart-card__tag-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cart-card__price {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
}

.cart-card__actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--fg);
}

.qty-stepper__btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.qty-stepper__btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.qty-stepper__val {
  min-width: 2rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
}

.cart-card__remove {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-summary {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.cart-summary__title {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

.cart-summary__row + .cart-summary__row {
  margin-top: 0.85rem;
}

.cart-summary__divider {
  height: 1px;
  margin: 1.25rem 0;
  background: var(--border);
}

.cart-summary__row--total {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
}

.cart-summary__row--total strong {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.cart-summary__checkout {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  text-align: center;
  text-decoration: none;
}

.cart-summary__note {
  margin: 1rem 0 0;
  font-size: 0.625rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: none;
}

.link-btn {
  background: none;
  border: none;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  color: var(--muted);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  overflow: visible;
}

/* ─── Checkout page ─── */
.checkout-page .page-title {
  margin-bottom: 0.5rem;
}

.checkout-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.checkout-back:hover {
  opacity: 1;
}

.checkout-intro {
  margin-bottom: 2rem;
}

.checkout-lead {
  margin: 0;
  max-width: 42rem;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: none;
  color: var(--muted);
}

.checkout-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.checkout-step {
  border: 1px solid var(--border);
  background: var(--bg);
}

.checkout-step__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.35rem 0;
}

.checkout-step__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--fg);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.checkout-step__title {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.checkout-step__desc {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: none;
  color: var(--muted);
}

.checkout-step__body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.checkout-step__body label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.checkout-step__body input,
.checkout-step__body select {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font: inherit;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg);
}

.checkout-step__body select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg) 50%),
    linear-gradient(135deg, var(--fg) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.checkout-same-billing {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  margin: 0 !important;
  padding: 1rem;
  border: 1px solid var(--border);
  background: #fafafa;
  font-size: 0.75rem !important;
  letter-spacing: 0.06em;
  text-transform: none;
  cursor: pointer;
}

.checkout-same-billing input {
  width: auto;
  margin: 0;
  accent-color: var(--fg);
}

.checkout-billing-fields {
  margin-top: 1rem;
}

.payment-element-wrap {
  min-height: 120px;
}

.payment-loading {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--muted);
}

.payment-error {
  margin: 0.75rem 0 0;
}

.payment-dev {
  padding: 1rem;
  border: 1px dashed var(--border);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.payment-dev p {
  margin: 0;
}

.checkout-error {
  margin: 0;
}

.checkout-order {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
  z-index: 2;
}

.checkout-order__title {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.checkout-order__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.checkout-order__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.checkout-order__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 70px;
  background: #efefef;
  overflow: hidden;
}

.checkout-order__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-order__item-body {
  min-width: 0;
}

.checkout-order__item-name {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.45;
  margin-bottom: 0.35rem;
  text-transform: none;
}

.checkout-order__item-name:hover {
  opacity: 0.65;
}

.checkout-order__item-meta {
  margin: 0 0 0.35rem;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.checkout-order__item-price {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.checkout-order__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

.checkout-order__divider {
  height: 1px;
  margin: 1.15rem 0;
  background: var(--border);
}

.checkout-order__row--total {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
}

.checkout-order__row--total strong {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.checkout-order__submit,
.checkout-form__submit {
  display: block;
  width: 100%;
  margin-top: 1.35rem;
  text-align: center;
}

.checkout-form__footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.checkout-form__footer .checkout-form__submit {
  margin-top: 0;
}

.checkout-form__footer .checkout-note {
  margin-top: 1rem;
}

.checkout-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.checkout-form input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  font: inherit;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h2 {
  font-size: 11px;
  margin: 0 0 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row--3 {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.optional {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
}

.referral-status {
  font-size: 10px;
  text-transform: none;
  margin-top: 0.5rem;
}

.referral-status.is-valid {
  color: #1a6b2a;
}

.referral-status.is-invalid {
  color: #a32a2a;
}

.checkout-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.checkout-note {
  font-size: 0.625rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-top: 1rem;
  text-align: center;
}

.error-msg {
  color: #a32a2a;
  font-size: 10px;
  text-transform: none;
}

.confirm-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 560px;
}

.confirm-block h3 {
  font-size: 10px;
  margin: 0 0 0.5rem;
}

.confirm-block p,
.confirm-block ul {
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin: 0;
}

/* ─── Order confirmation ─── */
.confirm-page {
  max-width: 960px;
}

.confirm-loading {
  padding: 4rem 0;
  text-align: center;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--muted);
}

.confirm-loading p {
  margin: 0;
}

.confirm-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.confirm-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--fg);
  color: var(--fg);
}

.confirm-hero__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.confirm-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.confirm-hero__lead {
  margin: 0 auto 1rem;
  max-width: 32rem;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: none;
  color: var(--muted);
}

.confirm-hero__order {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.confirm-hero__order strong {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.confirm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.confirm-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.confirm-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  background: var(--bg);
}

.confirm-card__title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.confirm-dl {
  margin: 0;
}

.confirm-dl__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.confirm-dl__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.confirm-dl__row:first-child {
  padding-top: 0;
}

.confirm-dl dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirm-dl dd {
  margin: 0;
  font-weight: 500;
  line-height: 1.45;
}

.confirm-address {
  margin: 0;
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  line-height: 1.65;
  text-transform: none;
}

.confirm-summary {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
}

.confirm-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.confirm-summary__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.confirm-badge {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirm-badge--paid {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.confirm-summary__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.confirm-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.confirm-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.confirm-item__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 70px;
  background: #efefef;
  overflow: hidden;
}

.confirm-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.confirm-item__thumb--empty {
  background: #f4f4f4;
}

.confirm-item__body {
  flex: 1;
  min-width: 0;
}

.confirm-item__name {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: none;
}

.confirm-item__meta {
  margin: 0;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.confirm-item__price {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.confirm-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

.confirm-summary__divider {
  height: 1px;
  margin: 1.15rem 0;
  background: var(--border);
}

.confirm-summary__row--total {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
}

.confirm-summary__row--total strong {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.confirm-actions {
  margin-top: 2.5rem;
  text-align: center;
}

.confirm-actions__btn {
  display: inline-block;
  min-width: min(100%, 320px);
  text-align: center;
  text-decoration: none;
}

.confirm-note {
  margin: 1rem auto 0;
  max-width: 28rem;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  line-height: 1.55;
  text-transform: none;
  color: var(--muted);
}

.confirm-error {
  max-width: 28rem;
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
}

.confirm-error__title {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.confirm-error__msg {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.confirm-error__btn {
  color: var(--fg);
  border-color: var(--fg);
}

@media (max-width: 768px) {
  /* Cart, checkout, confirmation — must follow desktop rules above */
  body.page-inner {
    font-size: 14px;
    letter-spacing: 0.06em;
  }

  .page-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-top: calc(var(--header-h) + 1.25rem);
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
    padding-left: max(var(--page-pad), env(safe-area-inset-left));
    padding-right: max(var(--page-pad), env(safe-area-inset-right));
    overflow-x: hidden;
  }

  .page-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .cart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
  }

  .cart-items,
  .cart-summary {
    min-width: 0;
    width: 100%;
  }

  .cart-card {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.85rem 1rem;
    padding: 1.15rem;
    width: 100%;
    min-width: 0;
  }

  .cart-card__media {
    grid-row: 1 / span 2;
    width: 80px;
    height: 100px;
  }

  .cart-card__body {
    grid-column: 2;
    min-width: 0;
  }

  .cart-card__name {
    font-size: 0.875rem;
    overflow-wrap: anywhere;
  }

  .cart-card__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .cart-summary {
    position: static;
    padding: 1.25rem;
  }

  .cart-summary__checkout {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 48px;
    text-align: center;
  }

  .checkout-page .page-title {
    margin-bottom: 0.35rem;
  }

  .checkout-intro {
    margin-bottom: 1.5rem;
  }

  .checkout-lead {
    font-size: 0.8125rem;
  }

  .checkout-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
  }

  .checkout-steps,
  .checkout-order {
    width: 100%;
    min-width: 0;
  }

  .checkout-order {
    position: static;
    order: -1;
    max-height: none;
    overflow: visible;
    padding: 1.25rem;
  }

  .checkout-step__head {
    flex-wrap: wrap;
    padding: 1.15rem 1.15rem 0;
    gap: 0.75rem;
  }

  .checkout-step__title {
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
  }

  .checkout-step__body {
    padding: 1rem 1.15rem 1.15rem;
  }

  .form-row,
  .form-row--3 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .checkout-step__body input,
  .checkout-step__body select,
  .checkout-form input {
    font-size: 16px;
    min-height: 44px;
  }

  .checkout-order__submit,
  .checkout-form__submit {
    min-height: 48px;
  }

  .checkout-order__item-name {
    font-size: 0.75rem;
    overflow-wrap: anywhere;
  }

  .confirm-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
  }

  .confirm-summary {
    order: -1;
  }

  .confirm-dl__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .confirm-actions__btn {
    display: block;
    width: 100%;
    max-width: none;
  }

  .confirm-hero {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .confirm-card,
  .confirm-summary {
    padding: 1.15rem;
  }

  .confirm-error {
    width: 100%;
    max-width: none;
    margin: 2rem 0;
    box-sizing: border-box;
  }
}

