body {
  font-family: 'Cairo', 'Space Grotesk', sans-serif;
  background-color: rgb(var(--c-page));
  color: rgb(var(--c-ink));
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.sheet-open { overflow: hidden; }
body.has-cart { padding-bottom: 76px; }

.font-latin {
  font-family: 'Space Grotesk', 'Cairo', sans-serif;
  font-variant-numeric: tabular-nums;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

:focus-visible { outline: 2px solid rgb(var(--c-ink)); outline-offset: 2px; }

/* ---------- Product media ---------- */
.product-media {
  position: relative;
  aspect-ratio: 4 / 4.6;
  background-color: rgb(var(--c-faint));
  overflow: hidden;
}
.product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  will-change: transform, opacity;
}
@media (hover: hover) {
  .product-card:hover .product-img { transform: scale(1.04); }
}

/* ---------- Color Swatches ---------- */
.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background-color: var(--dot);
  border: 1px solid rgba(17, 17, 17, 0.28);
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sheet-panel .color-dot {
  width: 26px;
  height: 26px;
}
.color-dot.is-active {
  box-shadow: 0 0 0 2px rgb(var(--c-card)), 0 0 0 3.5px rgb(var(--c-ink));
  transform: scale(1.06);
}

/* ---------- Pills ---------- */
.cat-pill {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 600;
  background: rgb(var(--c-paper));
  color: rgb(var(--c-ink));
  border: 1px solid rgb(var(--c-line));
  transition: background-color .15s, color .15s, border-color .15s;
}
@media (hover: hover) { .cat-pill:not(.is-active):hover { border-color: rgb(var(--c-ink)); } }
.cat-pill.is-active {
  font-weight: 700;
  background: rgb(var(--c-ink));
  color: rgb(var(--c-card));
  border-color: rgb(var(--c-ink));
}

.size-pill {
  font-family: 'Space Grotesk', 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  min-height: 34px;
  text-align: center;
  background: rgb(var(--c-paper));
  color: rgb(var(--c-ink));
  border: 1px solid rgb(var(--c-line));
  transition: background-color .15s, color .15s, border-color .15s;
}
.sheet-panel .size-pill { min-height: 44px; font-size: 13px; }
@media (hover: hover) { .size-pill:not(:disabled):not(.is-active):hover { border-color: rgb(var(--c-ink)); } }
.size-pill.is-active {
  font-weight: 700;
  background: rgb(var(--c-ink));
  color: rgb(var(--c-card));
  border-color: rgb(var(--c-ink));
}
.size-pill.is-sold {
  color: rgb(var(--c-muted) / .55);
  text-decoration: line-through;
  cursor: not-allowed;
  background: repeating-linear-gradient(135deg, rgb(var(--c-paper)), rgb(var(--c-paper)) 5px, rgb(var(--c-faint)) 5px, rgb(var(--c-faint)) 6px);
}

/* ---------- Small controls ---------- */
.icon-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgb(var(--c-line));
  background: rgb(var(--c-card));
  color: rgb(var(--c-ink));
  font-size: 13px; font-weight: 700;
  transition: border-color .15s;
}
@media (hover: hover) { .icon-btn:hover { border-color: rgb(var(--c-ink)); } }

.stepper {
  display: inline-flex; align-items: center;
  background: rgb(var(--c-paper));
  border: 1px solid rgb(var(--c-line));
  padding: 3px;
}
.stepper-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgb(var(--c-card));
  border: 1px solid rgb(var(--c-line));
  font-size: 16px; font-weight: 700;
  transition: transform .1s;
}
.stepper-btn:active { transform: scale(.94); }
.stepper-btn:disabled { opacity: .4; }
.stepper-val {
  min-width: 34px; text-align: center;
  font-family: 'Space Grotesk', 'Cairo', sans-serif;
  font-weight: 700; font-size: 14px;
}

/* ---------- Sheets ---------- */
.sheet-panel { max-height: 92vh; max-height: 92dvh; }
.sheet-panel:focus { outline: none; }
.sheet-media { aspect-ratio: 4 / 5; max-height: 50vh; max-height: 50dvh; width: 100%; }

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] .chev { transform: rotate(180deg); }

@keyframes pillSpring {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.animate-pill-spring { animation: pillSpring 0.24s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes editorialReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-reveal { opacity: 0; animation: editorialReveal 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.animate-sheet-up { animation: sheetSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}