:root {
  --ink: #171715;
  --muted: #777772;
  --soft-muted: #a1a19b;
  --paper: #f5f5f1;
  --card: #ffffff;
  --gallery: #f4f4f1;
  --line: #e6e6e0;
  --orange: #ec623f;
  --orange-dark: #d74c2b;
  --radius-lg: 30px;
  --radius-md: 16px;
  --shadow: 0 18px 60px rgba(28, 28, 24, 0.055);
  --ease-out: cubic-bezier(.22,.75,.25,1);
  --ease-in-out: cubic-bezier(.4,0,.2,1);
  --motion-fast: 160ms;
  --motion-base: 260ms;
  --motion-slow: 420ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:not(:disabled),
a {
  cursor: pointer;
}

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

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(236, 98, 63, 0.32);
  outline-offset: 3px;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--motion-fast) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  width: min(100% - 80px, 1440px);
  height: 94px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1.3px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  padding: 5px;
  border-radius: 9px;
  background: var(--ink);
  transform: rotate(-4deg);
}

.brand-mark span {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: #fff;
  transform: rotate(12deg);
}

.brand-mark span:nth-child(1) { height: 9px; }
.brand-mark span:nth-child(2) { height: 16px; }
.brand-mark span:nth-child(3) { height: 12px; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 14px;
  font-weight: 500;
}

.desktop-nav a,
.desktop-nav .nav-soon-link {
  position: relative;
  padding: 12px 0;
  color: #686862;
  transition: color 180ms ease;
}

.desktop-nav button,
.mobile-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.desktop-nav .active {
  color: var(--ink);
}

@media (hover: hover) {
  .desktop-nav a:hover,
  .desktop-nav .nav-soon-link:hover {
    color: var(--ink);
  }
}

.desktop-nav .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateX(-50%);
}

.nav-soon-link[aria-disabled="true"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a3a39c;
  cursor: default;
}

.nav-soon {
  display: inline-flex;
  align-items: center;
  height: 15px;
  padding: 0 5px;
  border-radius: 8px;
  color: #9a7a6c;
  background: #f6ece7;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@media (hover: hover) {
  .desktop-nav .nav-soon-link[aria-disabled="true"]:hover {
    color: #a3a39c;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.icon-button,
.bag-button,
.round-button {
  border: 0;
  background: transparent;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  transition: background 180ms ease;
}

@media (hover: hover) {
  .icon-button:hover {
    background: #eaeae5;
  }
}

.header-icon svg {
  width: 20px;
  height: 20px;
}

.bag-button {
  position: relative;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 0 7px 0 14px;
  border-radius: 24px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: transform 180ms ease, background 180ms ease;
}

@media (hover: hover) {
  .bag-button:hover {
    background: #33332f;
    transform: translateY(-1px);
  }
}

.bag-button svg {
  width: 18px;
  height: 18px;
}

.bag-count {
  min-width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.bag-count.bump,
#cart-title-count.bump {
  animation: count-pop 420ms var(--ease-out);
}

@keyframes count-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.32); background: #ffe2d8; color: var(--orange-dark); }
  100% { transform: scale(1); }
}

.menu-button,
.mobile-nav {
  display: none;
}

main {
  width: min(100% - 80px, 1440px);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0 24px;
  color: #96968f;
  font-size: 12px;
}

.breadcrumb a {
  transition: color 180ms ease;
}

@media (hover: hover) {
  .breadcrumb a:hover {
    color: var(--ink);
  }
}

.breadcrumb span:last-child {
  color: #5d5d58;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, 0.88fr);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(25, 25, 20, 0.035);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.product-gallery {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  touch-action: pan-y;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.92) 0, rgba(255, 255, 255, 0) 43%),
    var(--gallery);
  isolation: isolate;
}

.product-gallery::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 53%;
  height: 28%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-top-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  z-index: -1;
}

.gallery-top-actions {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-actions-right {
  display: flex;
  gap: 10px;
}

.round-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(30, 30, 26, 0.025);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 5px 18px rgba(32, 32, 28, 0.04);
  backdrop-filter: blur(8px);
  transition: transform var(--motion-fast) var(--ease-out),
              background var(--motion-fast) var(--ease-out),
              color var(--motion-fast) var(--ease-out);
}

@media (hover: hover) {
  .round-button:hover {
    transform: translateY(-2px);
    background: #fff;
  }
}

.round-button:active {
  transform: translateY(0) scale(0.96);
}

.round-button svg {
  width: 21px;
  height: 21px;
}

.back-button svg {
  margin-left: -2px;
}

#favorite-button.active {
  color: var(--orange);
}

#favorite-button.active svg {
  fill: currentColor;
}

.product-stage {
  position: absolute;
  inset: 72px 28px 82px;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: 50% 48%;
}

.stage-word {
  position: absolute;
  left: 50%;
  top: 46%;
  color: rgba(31, 31, 27, 0.033);
  font-size: clamp(84px, 10.5vw, 164px);
  font-weight: 700;
  letter-spacing: -9px;
  line-height: 1;
  transform: translate(-50%, -50%);
  user-select: none;
}

.image-wrap {
  position: relative;
  width: min(88%, 630px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.image-wrap::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 5%;
  height: 6%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(48, 39, 30, 0.15);
  filter: blur(22px);
}

.product-image {
  --turn-x: 0px;
  --turn-y: 0deg;
  --turn-z: 0px;
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  z-index: 1;
  transform: translate3d(var(--turn-x), 0, var(--turn-z)) rotateY(var(--turn-y)) scale(1.04);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  filter: saturate(1.03);
  transition: opacity var(--motion-base) var(--ease-out),
              transform var(--motion-slow) var(--ease-out),
              filter 420ms var(--ease-out);
  user-select: none;
  -webkit-user-drag: none;
  will-change: opacity, transform;
}

.product-gallery.is-photo-product .image-wrap {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(28, 28, 24, 0.05);
}

.product-image.is-active {
  --turn-x: 0px;
  --turn-y: 0deg;
  --turn-z: 0px;
  opacity: 1;
  z-index: 2;
}

.product-image.turn-out-next {
  --turn-x: -34px;
  --turn-y: -16deg;
  --turn-z: -90px;
}

.product-image.turn-in-next {
  --turn-x: 34px;
  --turn-y: 16deg;
  --turn-z: -90px;
}

.product-image.turn-out-prev {
  --turn-x: 34px;
  --turn-y: 16deg;
  --turn-z: -90px;
}

.product-image.turn-in-prev {
  --turn-x: -34px;
  --turn-y: -16deg;
  --turn-z: -90px;
}

.product-image.color-charcoal,
.view-thumbnail img.color-charcoal {
  filter: grayscale(1) brightness(0.5) contrast(1.28);
}

.product-image.color-oat,
.view-thumbnail img.color-oat {
  filter: grayscale(1) sepia(0.25) brightness(1.28) contrast(0.76);
}

.product-image.no-transition {
  transition: none !important;
}

.view-label {
  position: absolute;
  bottom: 4px;
  left: 50%;
  padding: 7px 13px;
  border: 1px solid rgba(24, 24, 20, 0.06);
  border-radius: 20px;
  color: #6e6e67;
  background: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.gallery-bottom {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 25px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 5;
}

.carousel-controls {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  height: 46px;
  padding: 4px;
  border: 1px solid rgba(20, 20, 16, 0.04);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(30, 30, 25, 0.05);
}

.carousel-controls button {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: background 160ms ease;
}

@media (hover: hover) {
  .carousel-controls button:hover {
    background: var(--paper);
  }
}

.carousel-controls svg {
  width: 17px;
  height: 17px;
}

#slide-count {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px;
  color: #aaa9a3;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

#slide-count strong {
  color: var(--ink);
  font-weight: 600;
}

.view-thumbnails {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(20, 20, 16, 0.04);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 18px rgba(30, 30, 25, 0.04);
}

.view-thumbnail {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 3px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--gallery);
  transition: border-color var(--motion-fast) var(--ease-out),
              transform var(--motion-fast) var(--ease-out),
              background var(--motion-fast) var(--ease-out);
}

.view-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.65) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: thumb-shimmer 1.2s linear infinite;
  pointer-events: none;
}

.view-thumbnail.image-loaded::after {
  display: none;
}

.view-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity var(--motion-base) var(--ease-out), filter 420ms var(--ease-out);
}

.view-thumbnail.image-loaded img {
  opacity: 1;
}

.view-thumbnail.active {
  border-color: var(--ink);
  background: #fff;
  transform: translateY(-1px);
}

@media (hover: hover) {
  .view-thumbnail:hover {
    transform: translateY(-2px);
  }
}

@keyframes thumb-shimmer {
  to { transform: translateX(100%); }
}

.view-loading {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 20px;
  color: #fff;
  background: rgba(23, 23, 21, 0.8);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity var(--motion-fast) var(--ease-out),
              transform var(--motion-fast) var(--ease-out);
  backdrop-filter: blur(8px);
}

.view-loading.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.view-loading::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: loading-spin 700ms linear infinite;
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

.drag-hint {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: #85857f;
  font-size: 11px;
}

.drag-hint svg {
  width: 16px;
  height: 16px;
}

.product-info {
  padding: 48px 52px 36px;
  border-left: 1px solid var(--line);
}

.product-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.new-badge {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 12px;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.product-category {
  color: #8d8d87;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

h1 {
  max-width: 470px;
  margin: 0;
  font-size: clamp(34px, 3.05vw, 48px);
  font-weight: 500;
  letter-spacing: -2.2px;
  line-height: 1.08;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: #797972;
  font-size: 12px;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--ink);
}

.stars svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke-width: 1.2;
}

.rating-divider {
  width: 3px;
  height: 3px;
  margin: 0 2px;
  border-radius: 50%;
  background: #c1c1bb;
}

.rating-row button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid #c7c7c1;
  color: #797972;
  background: transparent;
  font-size: inherit;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 28px;
}

.price {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.7px;
}

.tax-note {
  color: #a0a099;
  font-size: 11px;
}

.product-description {
  max-width: 445px;
  margin: 18px 0 0;
  color: #73736d;
  font-size: 13px;
  line-height: 1.7;
}

.option-group {
  margin-top: 27px;
}

.option-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.option-label {
  font-size: 12px;
  font-weight: 600;
}

.selected-option {
  color: #888881;
  font-size: 11px;
}

.selected-option.flash {
  animation: option-flash 360ms var(--ease-out);
}

@keyframes option-flash {
  0% { color: var(--orange-dark); transform: translateY(2px); }
  100% { color: #888881; transform: translateY(0); }
}

.color-options {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-swatch {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  transition: border-color var(--motion-fast) var(--ease-out),
              transform var(--motion-fast) var(--ease-out);
}

@media (hover: hover) {
  .color-swatch:hover {
    transform: scale(1.08);
  }
}

.color-swatch.selected {
  border-color: var(--ink);
}

.color-swatch.selected::after {
  content: "✓";
  position: absolute;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #fff;
  background: rgba(23, 23, 21, 0.82);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  animation: check-in 220ms var(--ease-out) both;
}

@keyframes check-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.color-swatch span {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(20, 20, 16, 0.05);
}

.swatch-orange { background: #e96541; }
.swatch-charcoal { background: #373937; }
.swatch-oat { background: #d8c8ae; }
.swatch-camel { background: #b8895c; }
.swatch-stone { background: #cdbfa9; }
.swatch-olive { background: #5a5f3d; }
.swatch-navy { background: #2b3c55; }

.size-guide-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: #797972;
  background: transparent;
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: #c7c7c1;
  text-underline-offset: 3px;
}

.size-guide-button svg {
  width: 14px;
  height: 14px;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.size-options button {
  position: relative;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  transition: color var(--motion-fast) var(--ease-out),
              background var(--motion-fast) var(--ease-out),
              border-color var(--motion-fast) var(--ease-out),
              transform var(--motion-fast) var(--ease-out);
}

@media (hover: hover) {
  .size-options button:hover:not(:disabled) {
    border-color: #b0b0a9;
    transform: translateY(-1px);
  }
}

.size-options button[data-stock="low"]::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px #fff;
}

.size-options button.selected {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.size-options button.selected[data-stock="low"]::after {
  box-shadow: 0 0 0 2px var(--ink);
}

.size-options button.sold-out {
  color: #b9b9b2;
  background: var(--paper);
  border-color: #ecece6;
  cursor: pointer;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

@media (hover: hover) {
  .size-options button.sold-out:hover {
    border-color: rgba(236, 98, 63, 0.5);
    color: var(--orange-dark);
  }
}

.size-options button.sold-out.selected {
  color: var(--orange-dark);
  background: #fff4ef;
  border-color: var(--orange);
  text-decoration: none;
}

.size-note {
  display: block;
  margin-top: 10px;
  color: #9b9b94;
  font-size: 10px;
}

.selection-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color var(--motion-base) var(--ease-out),
              background var(--motion-base) var(--ease-out);
}

.selection-summary.low,
.selection-summary.soldout {
  border-color: rgba(236, 98, 63, 0.32);
  background: #fff8f5;
}

.selection-summary.soldout {
  background: #fff4ef;
  border-color: rgba(236, 98, 63, 0.45);
}

.selection-summary.flash {
  animation: summary-flash 420ms var(--ease-out);
}

@keyframes summary-flash {
  0% { transform: translateY(2px); box-shadow: 0 0 0 0 rgba(236,98,63,.16); }
  50% { box-shadow: 0 0 0 4px rgba(236,98,63,.1); }
  100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(236,98,63,0); }
}

.summary-swatch {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(20, 20, 16, 0.08);
  transition: background var(--motion-base) var(--ease-out);
}

.summary-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.summary-copy strong {
  color: #4f4f49;
  font-size: 10px;
  font-weight: 600;
}

.summary-copy small {
  color: #909089;
  font-size: 9px;
}

.selection-summary.low .summary-copy small,
.selection-summary.soldout .summary-copy small {
  color: var(--orange-dark);
}

.add-to-bag {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(23, 23, 21, 0.13);
  transition: background var(--motion-fast) var(--ease-out),
              transform var(--motion-fast) var(--ease-out),
              box-shadow var(--motion-fast) var(--ease-out);
}

@media (hover: hover) {
  .add-to-bag:hover {
    background: #2c2c28;
    box-shadow: 0 10px 24px rgba(23, 23, 21, 0.18);
    transform: translateY(-2px);
  }
}

.add-to-bag:active {
  transform: translateY(0) scale(0.99);
}

.add-to-bag.added {
  background: #35644d;
}

.add-to-bag.sold-out {
  color: var(--orange-dark);
  background: #f4e9e2;
  box-shadow: 0 8px 20px rgba(215, 76, 43, 0.1);
}

.add-check {
  width: 0;
  height: 16px;
  opacity: 0;
  stroke-width: 2.4;
  transform: scale(0.5);
  transition: width var(--motion-fast) var(--ease-out),
              opacity var(--motion-fast) var(--ease-out),
              transform var(--motion-fast) var(--ease-out);
}

.add-to-bag.added .add-check {
  width: 16px;
  opacity: 1;
  transform: scale(1);
}

.button-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
}

.service-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.service-notes > div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #93938c;
  font-size: 9px;
  line-height: 1.5;
}

.service-notes svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: #565651;
}

.service-notes strong {
  display: block;
  color: #555550;
  font-weight: 500;
}

.product-accordions {
  margin-top: 25px;
  border-top: 1px solid var(--line);
}

.product-accordions details {
  border-bottom: 1px solid var(--line);
}

.product-accordions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 12px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.product-accordions summary::-webkit-details-marker {
  display: none;
}

.product-accordions summary svg {
  width: 15px;
  height: 15px;
  transition: transform 200ms ease;
}

.product-accordions details[open] summary svg {
  transform: rotate(45deg);
}

.product-accordions details p {
  margin: -2px 0 17px;
  color: #85857e;
  font-size: 11px;
  line-height: 1.65;
}

.under-card-note {
  display: flex;
  justify-content: space-between;
  padding: 25px 6px 36px;
  color: #a0a099;
  font-size: 11px;
  letter-spacing: 0.1px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(23, 23, 20, 0.36);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--motion-base) var(--ease-out);
}

.drawer-backdrop.is-open {
  opacity: 1;
}

.drawer-backdrop[hidden] {
  display: none;
}

.cart-panel {
  width: min(100%, 460px);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: #fff;
  box-shadow: -20px 0 70px rgba(20, 20, 18, 0.12);
  animation: drawer-in var(--motion-base) var(--ease-out) both;
  will-change: transform;
}

.drawer-backdrop.closing .cart-panel {
  animation: drawer-out var(--motion-fast) var(--ease-in-out) both;
}

@keyframes drawer-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes drawer-out {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.cart-eyebrow {
  color: #9a9a93;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.cart-header h2 {
  margin: 6px 0 0;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -1.1px;
}

.cart-header h2 span {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  margin-left: 5px;
  border-radius: 50%;
  color: #6f6f69;
  background: var(--paper);
  font-size: 10px;
  vertical-align: 4px;
}

.cart-header .round-button {
  width: 42px;
  height: 42px;
  background: var(--paper);
  box-shadow: none;
}

.empty-cart {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 100px;
  text-align: center;
}

.empty-cart[hidden],
.cart-content[hidden] {
  display: none;
}

.empty-cart-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #777770;
  background: var(--paper);
}

.empty-cart-icon svg {
  width: 27px;
  height: 27px;
}

.empty-cart h3 {
  margin: 22px 0 8px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.6px;
}

.empty-cart p {
  max-width: 250px;
  margin: 0;
  color: #8b8b84;
  font-size: 12px;
  line-height: 1.6;
}

.empty-cart button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 22px;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  transition: background var(--motion-fast) var(--ease-out),
              transform var(--motion-fast) var(--ease-out);
}

@media (hover: hover) {
  .empty-cart button:hover {
    background: var(--paper);
    transform: translateY(-1px);
  }
}

.empty-cart button svg {
  width: 14px;
  height: 14px;
}

.empty-cart-note {
  display: block;
  margin-top: 18px;
  color: #a1a19b;
  font-size: 9px;
}

.cart-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 4px 2px 4px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-image {
  width: 96px;
  height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: var(--gallery);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-image img.color-charcoal {
  filter: grayscale(1) brightness(0.5) contrast(1.28);
}

.cart-item-image img.color-oat {
  filter: grayscale(1) sepia(0.25) brightness(1.28) contrast(0.76);
}

.cart-item-info {
  min-width: 0;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cart-item-top h3 {
  margin: 2px 0 5px;
  font-size: 13px;
  font-weight: 600;
}

.cart-item-top strong {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
}

.cart-variant {
  color: #8a8a83;
  font-size: 10px;
}

.quantity-control {
  width: 92px;
  height: 31px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: 11px;
}

.quantity-control button {
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
}

@media (hover: hover) {
  .quantity-control button:hover:not(:disabled) {
    background: var(--paper);
  }
}

.quantity-control button:disabled {
  color: #c2c2bb;
  cursor: not-allowed;
}

.quantity-value {
  font-variant-numeric: tabular-nums;
}

.quantity-value.bump {
  animation: quantity-pop 320ms var(--ease-out);
}

@keyframes quantity-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.35); color: var(--orange-dark); }
  100% { transform: scale(1); }
}

.remove-item {
  margin-top: 9px;
  padding: 0;
  border: 0;
  color: #9a9a93;
  background: transparent;
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-summary {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.cart-summary > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #83837c;
  font-size: 11px;
}

.cart-summary > div strong {
  color: #52524d;
  font-weight: 500;
}

.cart-summary > div .free-shipping {
  color: #47705a;
}

.cart-summary .cart-total {
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
}

.cart-summary .cart-total strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
}

#cart-subtotal.price-bump,
#cart-total.price-bump,
.cart-item-top strong.price-bump {
  animation: price-pop 420ms var(--ease-out);
}

@keyframes price-pop {
  0% { transform: translateY(0); }
  45% { transform: translateY(-3px); color: var(--orange-dark); }
  100% { transform: translateY(0); }
}

.checkout-button {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.checkout-button svg {
  width: 18px;
  height: 18px;
}

.cart-summary > p {
  margin: 10px 0 0;
  color: #a1a19a;
  font-size: 9px;
  text-align: center;
}

.mobile-purchase {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 260px;
  padding: 13px 20px 13px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #fff;
  background: rgba(23, 23, 21, 0.94);
  box-shadow: 0 14px 40px rgba(20, 20, 18, 0.2);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px) scale(0.97);
  transition: opacity var(--motion-base) var(--ease-out),
              transform var(--motion-base) var(--ease-out);
  backdrop-filter: blur(12px);
  will-change: opacity, transform;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.toast-action {
  flex: 0 0 auto;
  margin-left: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  color: #fff;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  transition: background var(--motion-fast) var(--ease-out),
              border-color var(--motion-fast) var(--ease-out);
}

@media (hover: hover) {
  .toast-action:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
  }
}

.toast-action[hidden] {
  display: none;
}

.toast-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
}

.toast-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 23, 20, 0.36);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity var(--motion-base) var(--ease-out);
}

.modal-backdrop.is-open {
  opacity: 1;
}

.modal-backdrop[hidden] {
  display: none;
}

.size-modal {
  position: relative;
  width: min(100%, 520px);
  padding: 38px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(20, 20, 18, 0.2);
  animation: modal-in var(--motion-base) var(--ease-out) both;
  will-change: transform, opacity;
}

.modal-backdrop.closing .size-modal,
.modal-backdrop.closing .checkout-modal {
  animation: modal-out var(--motion-fast) var(--ease-in-out) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modal-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(8px) scale(0.98); }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  background: var(--paper);
  box-shadow: none;
}

.modal-close svg {
  width: 17px;
  height: 17px;
}

.modal-eyebrow {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.size-modal h2 {
  margin: 8px 0 8px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1.4px;
}

.size-modal > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
}

.size-table-wrap {
  overflow-x: auto;
}

.size-modal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.size-modal th,
.size-modal td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

.size-modal thead th {
  color: #8b8b84;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.size-modal tbody th {
  font-weight: 600;
}

.modal-done {
  width: 100%;
  height: 48px;
  margin-top: 24px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.checkout-backdrop {
  z-index: 60;
}

.checkout-modal {
  position: relative;
  width: min(100%, 560px);
  padding: 36px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(20, 20, 18, 0.2);
  animation: modal-in var(--motion-base) var(--ease-out) both;
  will-change: transform, opacity;
}

.checkout-modal h2 {
  margin: 8px 0 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.8px;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 26px 0 22px;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a5a59e;
  font-size: 10px;
}

.checkout-step span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 10px;
  font-weight: 600;
}

.checkout-step.active {
  color: var(--ink);
  font-weight: 600;
}

.checkout-step.active span {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.checkout-step.done {
  color: #47705a;
}

.checkout-step.done span {
  color: #fff;
  border-color: #47705a;
  background: #47705a;
}

.checkout-body {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.checkout-review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-review-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #696961;
  font-size: 11px;
}

.checkout-review-row strong {
  color: var(--ink);
  font-weight: 600;
}

.checkout-review-total {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.checkout-fields {
  display: grid;
  gap: 12px;
}

.checkout-field {
  display: grid;
  gap: 5px;
}

.checkout-field label {
  color: #7d7d76;
  font-size: 10px;
}

.checkout-field input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
}

.checkout-field input:focus {
  outline: 2px solid rgba(236, 98, 63, 0.35);
  outline-offset: 1px;
  border-color: var(--orange);
}

.checkout-demo-note {
  margin: 14px 0 0;
  color: #909089;
  font-size: 10px;
  line-height: 1.6;
}

.checkout-done {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 160px;
  text-align: center;
}

.checkout-done-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #47705a;
}

.checkout-done-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

.checkout-done h3 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 600;
}

.checkout-done p {
  max-width: 300px;
  margin: 0;
  color: #8b8b84;
  font-size: 11px;
  line-height: 1.6;
}

.checkout-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.checkout-back,
.checkout-next {
  height: 46px;
  border: 0;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.checkout-back {
  padding: 0 18px;
  color: #696961;
  background: var(--paper);
}

.checkout-next {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
}

.checkout-next svg {
  width: 16px;
  height: 16px;
}

.checkout-note {
  margin: 14px 0 0;
  color: #a1a19b;
  font-size: 9px;
  text-align: center;
}

@media (max-width: 560px) {
  .checkout-modal {
    padding: 26px 20px;
  }

  .checkout-modal h2 {
    font-size: 22px;
  }

  .checkout-steps {
    gap: 4px;
  }

  .checkout-step small {
    display: none;
  }

  .checkout-body {
    padding: 14px;
  }

  .checkout-actions {
    flex-direction: column-reverse;
  }

  .checkout-back {
    width: 100%;
  }
}

@media (max-width: 1120px) {
  .site-header,
  main {
    width: min(100% - 48px, 1100px);
  }

  .product-card {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
  }

  .product-info {
    padding: 40px 34px 30px;
  }

  .product-gallery {
    min-height: 700px;
  }

  .drag-hint {
    display: none;
  }

  .gallery-bottom {
    grid-template-columns: 1fr auto;
  }

  .view-thumbnails {
    justify-self: end;
    margin-right: 5px;
  }
}

@media (max-width: 860px) {
  .site-header {
    height: 78px;
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .account-button {
    display: none;
  }

  .mobile-nav {
    width: calc(100% - 48px);
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .mobile-nav:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
    font-size: 12px;
  }

  .mobile-nav a,
  .mobile-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .mobile-nav .active {
    color: var(--ink);
    background: #f2f2ed;
    font-weight: 600;
  }

  .mobile-nav .nav-soon-link[aria-disabled="true"] {
    color: #a3a39c;
  }

  .breadcrumb {
    margin-top: 7px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    min-height: 620px;
  }

  .product-info {
    padding: 42px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  h1 {
    font-size: 42px;
  }

  .product-description {
    max-width: 580px;
  }
}

@media (max-width: 560px) {
  :root {
    --radius-lg: 22px;
  }

  .site-header,
  main {
    width: calc(100% - 28px);
  }

  .site-header {
    height: 72px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
    font-size: 25px;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
    border-radius: 8px;
  }

  .header-actions {
    gap: 1px;
  }

  .header-icon {
    width: 44px;
    height: 44px;
  }

  .bag-button {
    width: 44px;
    height: 44px;
    justify-content: center;
    margin: 0 1px 0 2px;
    padding: 0;
    border-radius: 50%;
  }

  .bag-button > span:not(.bag-count) {
    display: none;
  }

  .bag-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    width: auto;
    height: 16px;
    padding: 0 4px;
    border: 2px solid var(--paper);
    font-size: 8px;
  }

  .menu-button {
    width: 44px;
    height: 44px;
  }

  .mobile-nav {
    width: calc(100% - 28px);
  }

  .mobile-nav:not([hidden]) {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .breadcrumb {
    gap: 7px;
    margin: 9px 3px 17px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 10px;
  }

  .product-gallery {
    min-height: 480px;
  }

  .gallery-top-actions {
    top: 18px;
    left: 18px;
    right: 18px;
  }

  .round-button {
    width: 44px;
    height: 44px;
  }

  .round-button svg {
    width: 19px;
    height: 19px;
  }

  .gallery-actions-right {
    gap: 7px;
  }

  .product-stage {
    inset: 62px 10px 70px;
  }

  .stage-word {
    font-size: 24vw;
    letter-spacing: -5px;
  }

  .image-wrap {
    width: 100%;
  }

  .gallery-bottom {
    left: 18px;
    right: 18px;
    bottom: 17px;
    column-gap: 8px;
  }

  .carousel-controls {
    height: 52px;
  }

  .carousel-controls button {
    width: 44px;
    height: 44px;
  }

  .view-thumbnails {
    gap: 4px;
    padding: 3px;
    border-radius: 12px;
  }

  .view-thumbnail {
    width: 36px;
    height: 36px;
    padding: 2px;
    border-radius: 9px;
  }

  .product-info {
    padding: 30px 22px 24px;
  }

  .product-heading {
    margin-bottom: 14px;
  }

  h1 {
    font-size: 35px;
    letter-spacing: -1.6px;
  }

  .price-row {
    margin-top: 22px;
  }

  .product-description {
    font-size: 12px;
  }

  .option-group {
    margin-top: 24px;
  }

  .size-options {
    gap: 6px;
  }

  .size-options button {
    height: 44px;
  }

  .color-swatch {
    width: 44px;
    height: 44px;
  }

  .size-guide-button {
    min-height: 44px;
    align-items: center;
  }

  .add-to-bag {
    display: none;
  }

  .service-notes {
    gap: 8px;
  }

  .service-notes > div {
    align-items: flex-start;
  }

  .under-card-note {
    padding: 18px 3px 28px;
    font-size: 9px;
  }

  .size-modal {
    padding: 30px 22px 24px;
    border-radius: 20px;
  }

  .size-modal th,
  .size-modal td {
    padding: 11px 7px;
    font-size: 11px;
  }

  .cart-panel {
    width: 100%;
    padding: 24px 20px 20px;
  }

  .mobile-purchase {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 10px 10px 17px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 17px;
    color: #fff;
    background: rgba(23, 23, 21, 0.95);
    box-shadow: 0 12px 36px rgba(20, 20, 18, 0.2);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 220ms ease, transform 220ms ease;
    backdrop-filter: blur(12px);
  }

  .mobile-purchase > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .mobile-purchase strong {
    font-size: 15px;
    font-weight: 600;
  }

  .mobile-purchase span {
    color: #b7b7b0;
    font-size: 9px;
  }

  .mobile-purchase button {
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    color: var(--ink);
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    transition: color var(--motion-fast) var(--ease-out),
                background var(--motion-fast) var(--ease-out),
                transform var(--motion-fast) var(--ease-out);
  }

  .mobile-purchase button:active {
    transform: scale(0.97);
  }

  .mobile-purchase button.added {
    color: #2e5b45;
    background: #e0f2e8;
  }

  .mobile-purchase button.sold-out {
    color: var(--orange-dark);
    background: #fff0e9;
  }

  .mobile-purchase button.added::before {
    content: "✓";
    margin-right: 6px;
    font-weight: 700;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
    min-width: 0;
    width: calc(100% - 36px);
  }

  .quantity-control {
    width: 108px;
    height: 44px;
  }

  .remove-item {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 2px;
  }

  .toast-action {
    min-height: 44px;
    padding: 10px 14px;
  }
}

@media (max-width: 380px) {
  .carousel-controls button {
    width: 36px;
    height: 36px;
  }

  .view-thumbnail {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 340px) {
  .gallery-bottom {
    column-gap: 4px;
  }

  .carousel-controls {
    height: 44px;
  }

  .carousel-controls button {
    width: 34px;
    height: 34px;
  }

  .view-thumbnail {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 330px) {
  #slide-count {
    display: none;
  }
}

@media (hover: none) {
  .mobile-nav a:active,
  .icon-button:active,
  .carousel-controls button:active,
  .view-thumbnail:active,
  .color-swatch:active,
  .size-options button:active,
  .quantity-control button:active:not(:disabled) {
    transform: scale(0.94);
  }
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.cart-item-image.is-photo {
  background: #fff;
}

.site-footer {
  width: min(100% - 80px, 1440px);
  margin: 0 auto;
  padding: 58px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 48px;
  padding-bottom: 42px;
}

.footer-brand .brand {
  font-size: 26px;
}

.footer-brand p {
  max-width: 270px;
  margin: 18px 0 16px;
  color: #84847d;
  font-size: 12px;
  line-height: 1.7;
}

.footer-mail {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid #c9c9c2;
  color: #55554f;
  font-size: 11px;
  transition: color 180ms ease, border-color 180ms ease;
}

@media (hover: hover) {
  .footer-mail:hover {
    border-color: var(--ink);
    color: var(--ink);
  }
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-links h2 {
  margin: 0 0 12px;
  color: #9d9d96;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.footer-links a,
.footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5f5f59;
  font-size: 12px;
  text-align: left;
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--ink);
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-service {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 8px 0 34px;
}

.footer-service > div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 28, 24, 0.05);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.footer-service svg {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  padding: 14px;
  border-radius: 50%;
  color: var(--orange-dark);
  background: #fdeee7;
}

.footer-service strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding-top: 22px;
  color: #a0a099;
  font-size: 10px;
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #a0a099;
  font-size: 10px;
  transition: color 180ms ease;
}

.footer-legal button:hover {
  color: var(--ink);
}

@media (max-width: 1120px) {
  .site-footer {
    width: min(100% - 48px, 1100px);
  }
}

@media (max-width: 860px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 34px;
  }

  .footer-brand p {
    max-width: 420px;
  }

  .footer-service {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer {
    width: calc(100% - 28px);
    padding: 40px 0 calc(28px + env(safe-area-inset-bottom));
  }

  .footer-main {
    gap: 26px;
    padding-bottom: 26px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
  }

  .footer-links a,
  .footer-links button {
    min-height: 44px;
  }

  .footer-service {
    gap: 12px;
    padding: 4px 0 26px;
  }

  .footer-service > div {
    padding: 18px 20px;
    gap: 14px;
  }

  .footer-service svg {
    width: 48px;
    height: 48px;
    padding: 12px;
  }

  .footer-service strong {
    font-size: 15px;
  }

  .footer-bottom {
    padding-top: 18px;
  }

  .footer-legal button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Search overlay */
.search-backdrop {
  z-index: 65;
  place-items: start center;
  padding: clamp(16px, 9vh, 96px) 20px 24px;
}

.search-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 640px);
  max-height: min(72vh, 680px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(20, 20, 18, 0.24);
  overflow: hidden;
  animation: modal-in var(--motion-base) var(--ease-out) both;
  will-change: transform, opacity;
}

.modal-backdrop.closing .search-modal,
.modal-backdrop.closing .account-modal {
  animation: modal-out var(--motion-fast) var(--ease-in-out) both;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.search-form > svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: none;
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.search-input::placeholder {
  color: var(--soft-muted);
}

.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-close {
  position: static;
  width: 36px;
  height: 36px;
  flex: none;
}

.search-body {
  padding: 14px 16px 18px;
  overflow-y: auto;
}

.search-hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 2px 6px 12px;
}

.search-hints[hidden] {
  display: none;
}

.search-hints-label {
  width: 100%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.search-chip {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  transition: border-color var(--motion-fast) var(--ease-out), background var(--motion-fast) var(--ease-out);
}

@media (hover: hover) {
  .search-chip:hover {
    border-color: var(--ink);
    background: var(--paper);
  }
}

.search-status {
  margin: 0;
  padding: 2px 6px 8px;
  color: var(--muted);
  font-size: 11px;
}

.search-results {
  display: grid;
  gap: 2px;
}

.search-result {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .search-result:hover {
    background: var(--paper);
  }
}

.search-result:focus-visible {
  background: var(--paper);
  outline: 2px solid rgba(236, 98, 63, 0.35);
  outline-offset: 0;
}

.search-result-media {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--gallery);
  overflow: hidden;
}

.search-result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.search-result-info strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-info small {
  color: var(--muted);
  font-size: 11px;
}

.search-result-price {
  font-size: 12px;
  font-weight: 600;
}

.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 26px 8px 10px;
  text-align: center;
}

.search-empty[hidden] {
  display: none;
}

.search-empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--orange-dark);
  background: #fdeee7;
}

.search-empty-icon svg {
  width: 24px;
  height: 24px;
}

.search-empty h3 {
  margin: 14px 0 6px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.4px;
}

.search-empty p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.search-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.search-empty-clear {
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: #55554f;
  font-size: 11px;
  font-weight: 500;
  transition: border-color var(--motion-fast) var(--ease-out),
              color var(--motion-fast) var(--ease-out);
}

@media (hover: hover) {
  .search-empty-clear:hover {
    border-color: var(--ink);
    color: var(--ink);
  }
}

.search-empty-link {
  padding: 8px 2px;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: #c7c7c1;
  text-underline-offset: 3px;
}

@media (hover: hover) {
  .search-empty-link:hover {
    color: var(--ink);
  }
}

/* Account panel */
.account-backdrop {
  z-index: 65;
}

.account-modal {
  position: relative;
  width: min(100%, 520px);
  max-height: min(76vh, 640px);
  padding: 36px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(20, 20, 18, 0.2);
  overflow-y: auto;
  animation: modal-in var(--motion-base) var(--ease-out) both;
  will-change: transform, opacity;
}

.account-modal h2 {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1.2px;
}

.saved-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.saved-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.saved-link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.saved-media {
  flex: none;
  width: 52px;
  height: 60px;
  border-radius: 10px;
  background: var(--gallery);
  overflow: hidden;
}

.saved-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.saved-info strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-info small {
  color: var(--muted);
  font-size: 11px;
}

.saved-remove {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  transition: color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}

.saved-remove svg {
  width: 14px;
  height: 14px;
}

@media (hover: hover) {
  .saved-remove:hover {
    border-color: var(--ink);
    color: var(--ink);
  }
}

.account-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 24px 2px 14px;
}

.account-empty-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--orange-dark);
  background: #fdeee7;
}

.account-empty-icon svg {
  width: 22px;
  height: 22px;
}

.account-empty h3 {
  margin: 14px 0 6px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.4px;
}

.account-empty p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.account-empty .account-browse {
  margin-top: 14px;
}

.account-browse {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.account-note {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--soft-muted);
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .search-backdrop {
    padding: 12px;
  }

  .search-modal {
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .account-modal {
    max-height: calc(100vh - 24px);
    padding: 28px 22px 24px;
    border-radius: 20px;
  }

  .account-modal h2 {
    font-size: 25px;
  }

  .account-browse {
    min-height: 44px;
  }

  .saved-remove {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-modal,
  .account-modal {
    animation: none;
  }
}

/* 404 */
.error-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62vh;
  padding: clamp(48px, 9vw, 112px) 0;
}

.error-eyebrow {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.error-page h1 {
  max-width: 780px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 500;
  letter-spacing: -3.2px;
  line-height: 1.02;
}

.error-page p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.error-primary,
.error-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
}

.error-primary {
  color: #fff;
  background: var(--ink);
}

.error-primary svg {
  width: 16px;
  height: 16px;
}

.error-secondary {
  border: 1px solid var(--line);
  background: #fff;
}

@media (hover: hover) {
  .error-primary:hover {
    background: #33332f;
  }

  .error-secondary:hover {
    border-color: var(--ink);
  }
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 42px;
  color: var(--muted);
  font-size: 12px;
}

.error-links a {
  text-decoration: underline;
  text-decoration-color: #c7c7c1;
  text-underline-offset: 4px;
}

@media (hover: hover) {
  .error-links a:hover {
    color: var(--ink);
  }
}

.error-footer .footer-legal a {
  color: inherit;
}

@media (max-width: 560px) {
  .error-page {
    min-height: 56vh;
    padding: 40px 0 64px;
  }

  .error-page h1 {
    letter-spacing: -2px;
  }

  .error-primary,
  .error-secondary {
    min-height: 48px;
  }

  .error-links {
    margin-top: 30px;
  }
}
