/* ==========================================================================
   ezz — design system copied from 808.vision (Pipeline theme 8.1.0)
   Archivo / white canvas / black accents / uppercase micro-typography
   ========================================================================== */

@import url('/assets/fonts/archivo.css?v=1');

:root {
  /* layout */
  --layout-width: 1450px;
  --outer: 36px;
  --gutter: 20px;
  --header-h: 86px;

  /* colors */
  --bg: #ffffff;
  --bg-accent: #f7f7f7;
  --text: #222222;
  --text-dark: #000000;
  --text-light: #646464;
  --primary: #000000;
  --primary-opposite: #ffffff;
  --border: rgba(34, 34, 34, 0.10);
  --border-strong: rgba(34, 34, 34, 0.20);
  --hairline: rgba(34, 34, 34, 0.08);
  --footer-bg: #000000;
  --footer-text: rgba(255, 255, 255, 0.90);
  --footer-hairline: rgba(255, 255, 255, 0.15);
  --error: #d02e2e;
  --success: #56ad6a;

  /* type scale (808.vision desktop) */
  --font-1: 10px;
  --font-2: 11.5px;
  --font-3: 13px;
  --font-4: 14.5px;
  --font-5: 17.5px;
  --font-6: 22px;
  --font-7: 26px;
  --font-8: 32px;
  --font-9: 39px;
  --font-10: 48px;
  --font-11: 58px;

  --font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 10px;
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-fast: 0.25s var(--ease);
  --t-med: 0.5s var(--ease);
  --t-slow: 0.9s var(--ease);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--font-4);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video, svg { max-width: 100%; }
img { border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
input, select, textarea { font-family: inherit; }
::selection { background: #000; color: #fff; }

/* --------------------------------------------------------- helpers */
.container { width: 100%; max-width: var(--layout-width); margin: 0 auto; padding: 0 var(--outer); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.hidden { display: none !important; }

/* --------------------------------------------------------- typography */
.kicker,
.kicker-flourished {
  display: block;
  text-align: center;
  font-family: var(--font);
  font-size: var(--font-4);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 20px;
  margin: 0 0 50px;
  position: relative;
}
.kicker::after,
.kicker-flourished::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
}
.section-title {
  font-size: var(--font-7);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}
.page-title {
  font-size: var(--font-9);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.25;
  text-align: center;
  color: var(--text-dark);
}

/* --------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font);
  font-size: var(--font-3);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--t-med), color var(--t-med), border-color var(--t-med), opacity var(--t-med);
}
.btn--block { width: 100%; }
.btn--dark { background: var(--primary); color: var(--primary-opposite); border-color: var(--primary); }
.btn--dark:hover { background: #222; border-color: #222; }
.btn--outline { background: #fff; color: #000; border-color: #000; }
.btn--outline:hover { background: #000; color: #fff; }
.btn--ghost { border-color: var(--border-strong); color: var(--text); background: #fff; }
.btn--ghost:hover { border-color: #000; }
.btn[disabled], .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: var(--font-2); }

/* --------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(34, 34, 34, 0.07);
  height: var(--header-h);
  transition: box-shadow var(--t-fast), background-color var(--t-fast);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(34, 34, 34, 0.06), 0 10px 30px rgba(0, 0, 0, 0.05);
}
/* keep the bar readable where backdrop-filter is unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255, 255, 255, 0.97); }
  .site-header.is-scrolled { background: #fff; }
}
.header__inner {
  position: relative;
  height: 100%;
  max-width: var(--layout-width);
  margin: 0 auto;
  padding: 0 var(--outer);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--text);
  transition: opacity var(--t-fast);
}
.header__icon-btn:hover { opacity: 0.55; }
.header__icon-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.header__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.30em;
  text-indent: 0.30em;
  line-height: 1;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
  transition: opacity var(--t-fast);
}
.header__logo:hover { opacity: 0.6; }
/* uploaded logo replaces the EZZ wordmark */
.header__logo img,
.menu-drawer__brand img {
  display: block;
  height: 30px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  border: 0;
}
.menu-drawer__brand img { height: 26px; max-width: 150px; }
@media (max-width: 767px) {
  .header__logo img { height: 26px; max-width: 150px; }
}
.header__cart { margin-left: 0; margin-right: -10px; position: relative; }
.header__cart svg { width: 25px; height: 25px; stroke-width: 1.9; }
.header__cart-count {
  position: absolute;
  top: 1px;
  right: -1px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
  letter-spacing: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.header__cart.has-items .header__cart-count { opacity: 1; transform: scale(1); }

/* --------------------------------------------------------- drawers */
.drawer-underlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
}
.drawer-underlay.is-open { opacity: 1; visibility: visible; }

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 960;
  width: 420px;
  max-width: 88vw;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.55s var(--ease-out);
  overflow-y: auto;
}
.menu-drawer.is-open { transform: translateX(0); }
.menu-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 28px;
  border-bottom: 1px solid var(--hairline);
}
.menu-drawer__brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.30em;
  text-indent: 0.30em;
  text-transform: uppercase;
}
.menu-drawer__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.menu-drawer__close:hover { background: #000; color: #fff; border-color: #000; }
.menu-drawer__links { padding: 18px 28px 28px; }
.menu-drawer__links a {
  display: block;
  padding: 11px 0;
  font-size: var(--font-4);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--t-fast), transform var(--t-fast);
}
.menu-drawer__links a:hover { color: #000; transform: translateX(4px); }
.menu-drawer__foot {
  margin-top: auto;
  padding: 22px 28px 32px;
  border-top: 1px solid var(--hairline);
  font-size: var(--font-2);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* --------------------------------------------------------- cart drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 960;
  width: 440px;
  max-width: 92vw;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease-out);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 28px;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
.cart-drawer__title {
  font-size: var(--font-4);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 0 28px; }
.cart-drawer__body::-webkit-scrollbar { width: 5px; }
.cart-drawer__body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.cart-drawer__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 28px;
  text-align: center;
  color: var(--text-light);
}
.cart-drawer__empty svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: 0.5; }
.cart-drawer__empty p { font-size: var(--font-3); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cart-drawer__foot { flex-shrink: 0; padding: 20px 28px 28px; border-top: 1px solid var(--hairline); }
.cart-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: var(--font-3);
}
.cart-row__label { color: var(--text-light); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; font-size: var(--font-2); }
.cart-row__value { font-weight: 700; }
.cart-row--total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: var(--font-5); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.cart-drawer__foot .btn { margin-top: 16px; }
.cart-drawer__continue {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 0;
  background: none;
  font-size: var(--font-2);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--t-fast);
}
.cart-drawer__continue:hover { color: #000; }

/* cart line item */
.cd-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.cd-item__media {
  width: 76px;
  height: 101px;
  flex-shrink: 0;
  background: var(--bg-accent);
  overflow: hidden;
}
.cd-item__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-item__info { flex: 1; min-width: 0; }
.cd-item__name {
  font-size: var(--font-3);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: 4px;
}
.cd-item__meta { font-size: var(--font-2); color: var(--text-light); margin-bottom: 10px; }
.cd-item__price { font-size: var(--font-3); font-weight: 700; }
.cd-item__actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.cd-qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); height: 32px; }
.cd-qty button {
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-fast);
}
.cd-qty button:hover { background: var(--bg-accent); }
.cd-qty span { min-width: 28px; text-align: center; font-size: var(--font-2); font-weight: 700; }
.cd-remove {
  border: 0;
  background: none;
  padding: 4px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--t-fast);
}
.cd-remove:hover { color: #000; }

/* --------------------------------------------------------- hero */
/* Homepage hero — same geometry as 808.vision:
   full-bleed media, fixed 2.346:1 ratio at every width (desktop + mobile),
   no max-height, no overlay tint. The ratio is the only thing that sets
   the height, exactly like the original section-video block. */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2.346 / 1;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__media,
.hero > img,
.hero > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 var(--outer);
}
.hero__logo {
  display: block;
  font-family: var(--font);
  font-size: clamp(48px, 9.6vw, 150px);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  text-align: center;
}
.hero--fallback { background: #0a0a0a; }
.hero--fallback .hero__logo { font-size: clamp(44px, 10vw, 160px); }
/* No media uploaded yet: keep a readable placeholder block. */
.hero.is-empty { aspect-ratio: 16 / 9; background: #0a0a0a; }
.hero.is-empty .hero__overlay { display: none; }
.hero.is-empty .hero__logo { display: block; }
/* Real media uploaded: the frame is pure image/video, like the original. */
.hero.has-media .hero__overlay,
.hero.has-media .hero__logo { display: none; }

/* --------------------------------------------------------- sections */
.section { padding: 30px 0 56px; }
.section--tight { padding: 40px 0; }

/* --------------------------------------------------------- product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}
.product-card { display: block; position: relative; }
.product-card__media {
  position: relative;
  overflow: hidden;
  background: var(--bg-accent);
  aspect-ratio: 0.7505 / 1;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease), opacity var(--t-fast);
}
.product-card:hover .product-card__media img { transform: scale(1.045); }
.product-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 5px 10px;
  background: #fff;
  color: #656565;
  font-size: var(--font-2);
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
}
.product-card__info { padding: 8px 0 0; text-align: center; }
.product-card__title {
  font-size: var(--font-4);
  font-weight: 700;
  line-height: 1.5;
  color: #000;
  margin: 8px 0 2px;
}
.product-card__price { font-size: var(--font-3); font-weight: 700; color: #000; margin: 3px 0; }
.product-card__price s { color: #9b9b9b; font-weight: 400; margin-left: 6px; text-decoration-thickness: 1px; }

/* legacy aliases (pages may still use them) */
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.product-card img { width: 100%; }
.save-badge { position: absolute; top: 10px; right: 10px; z-index: 3; padding: 5px 10px; background: #fff; color: #656565; font-size: var(--font-2); font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }

/* --------------------------------------------------------- catalog bar */
.catalog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.catalog-search {
  position: relative;
  flex: 1;
  max-width: 320px;
}
.catalog-search svg {
  position: absolute;
  left: 0;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--text-light);
  stroke-width: 1.8;
  pointer-events: none;
}
.catalog-search input {
  width: 100%;
  padding: 10px 10px 10px 27px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font-size: var(--font-3);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  outline: none;
  transition: border-color var(--t-fast);
}
.catalog-search input::placeholder { color: var(--text-light); font-weight: 400; letter-spacing: 0.02em; }
.catalog-search input:focus { border-bottom-color: #000; }
.catalog-sort {
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 30px 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
  font-family: var(--font);
  font-size: var(--font-2);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  outline: none;
}
.catalog-sort:focus { border-color: #000; }

/* --------------------------------------------------------- empty state */
.empty-state {
  padding: 80px 20px;
  text-align: center;
  color: var(--text-light);
}
.empty-state svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.4; opacity: 0.35; margin-bottom: 18px; }
.empty-state h3 {
  font-size: var(--font-4);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state p { font-size: var(--font-3); margin-bottom: 22px; }

/* --------------------------------------------------------- footer */
.site-footer {
  margin-top: 60px;
  padding: 50px 0 30px;
  background: var(--footer-bg);
  color: var(--footer-text);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 60px;
}
.footer__title {
  font-size: var(--font-3);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.footer__links li { margin-bottom: 9px; }
.footer__links a {
  font-size: var(--font-4);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--footer-text);
  transition: color var(--t-fast);
}
.footer__links a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--footer-hairline);
}
.footer__payments { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__payments span {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--footer-hairline);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.footer__socials { display: flex; gap: 20px; }
.footer__socials a {
  font-size: var(--font-2);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--t-fast);
}
.footer__socials a:hover { color: #fff; }
.footer__copy { font-size: var(--font-2); color: rgba(255, 255, 255, 0.6); letter-spacing: 0.04em; }

/* legacy footer aliases */
.footer-inner { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; padding-bottom: 60px; }
.footer-col h4 { font-size: var(--font-3); font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: var(--footer-text); font-size: var(--font-4); font-weight: 700; }
.footer-divider { border-top: 1px solid var(--footer-hairline); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; border-top: 1px solid var(--footer-hairline); }
.payments { display: flex; gap: 8px; }
.socials { display: flex; gap: 20px; }
.socials a { color: rgba(255,255,255,0.7); font-size: var(--font-2); font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.footer-copy { font-size: var(--font-2); color: rgba(255,255,255,0.6); }

/* --------------------------------------------------------- forms */
.field { margin-bottom: 18px; }
.field__hint {
  margin-top: 8px;
  font-size: var(--font-3);
  color: var(--text-light);
  line-height: 1.5;
}
.field__hint:empty { display: none; }
.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--font-2);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
}
.field__input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: var(--font-4);
  font-weight: 400;
  line-height: 1.4;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field__input:focus,
.field select:focus,
.field textarea:focus { border-color: #000; box-shadow: 0 0 0 1px #000; }
.field__input::placeholder { color: #9b9b9b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --------------------------------------------------------- skeleton loaders */
/* Placeholder blocks shown while the real products are being fetched. */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg-accent);
  border-radius: 2px;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: skeletonShimmer 1.35s ease-in-out infinite;
}
[data-theme="dark"] .skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
}
@keyframes skeletonShimmer {
  100% { transform: translateX(100%); }
}
.skel-card { display: block; }
.skel-card__media { width: 100%; aspect-ratio: 0.75 / 1; }
.skel-card__info { padding: 14px 0 0; }
.skel-line { height: 12px; margin-bottom: 8px; }
.skel-line--short { width: 52%; height: 10px; margin-bottom: 0; }
.skel-product { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.skel-product__media { width: 100%; aspect-ratio: 0.7505 / 1; }
.skel-product__info { text-align: center; padding-top: 8px; }
.skel-product__info .skel-line { height: 16px; margin: 0 auto 14px; }
.skel-product__info .skel-line--short { height: 20px; width: 38%; margin: 0 auto 10px; }
@media (prefers-reduced-motion: reduce) {
  .skeleton::after { animation: none; transform: none; }
}

/* --------------------------------------------------------- product page */
.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 450px;
  gap: 77px;
  padding: 8px 77px 0 0;
  align-items: start;
}
.product-media { display: flex; gap: 20px; min-width: 0; }
.product-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 60px;
  flex-shrink: 0;
}
.product-thumbs button {
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid transparent;
  background: var(--bg-accent);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.72;
  transition: opacity var(--t-fast), border-color var(--t-fast);
}
.product-thumbs button:hover { opacity: 1; }
.product-thumbs button.is-active { border-color: #000; opacity: 1; }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-main {
  position: relative;
  flex: 1;
  min-width: 0;
  background: var(--bg-accent);
  aspect-ratio: 0.7505 / 1;
  overflow: hidden;
}
.product-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-main img.is-zoomable { cursor: zoom-in; }
.product-main__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-in;
  color: #111;
  transition: transform var(--t-fast), background var(--t-fast);
}
.product-main__zoom:hover { background: #fff; }
.product-main__zoom:active { transform: scale(0.94); }
.product-main__zoom svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* --------------------------------------------------------- image lightbox */
/* Fullscreen product image viewer — tap the image to open it. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  background: rgba(8, 8, 8, 0.97);
  opacity: 0;
  transition: opacity 220ms ease;
  overscroll-behavior: contain;
}
.lightbox.is-open { display: block; }
.lightbox.is-visible { opacity: 1; }

.lightbox__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 14px;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
}
.lightbox__counter {
  font-size: var(--font-2);
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}
.lightbox__title {
  flex: 1;
  min-width: 0;
  font-size: var(--font-2);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.9;
}
.lightbox__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: -6px -6px -6px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__close:active { transform: scale(0.94); }
.lightbox__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.lightbox__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 78px 14px 118px;
  touch-action: pan-y;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.94);
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.3, 1), opacity 220ms ease;
  will-change: transform, opacity;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.lightbox.is-visible .lightbox__img { opacity: 1; transform: scale(1); }
.lightbox__img.is-zoomed { transition: none; cursor: grab; }
.lightbox__img.is-dragging { cursor: grabbing; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__nav:active { transform: scale(0.94); }
.lightbox__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__nav.is-hidden { opacity: 0; pointer-events: none; }

.lightbox__strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent);
}
.lightbox__strip::-webkit-scrollbar { display: none; }
.lightbox__strip:empty { display: none; }
.lightbox__strip button {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity var(--t-fast), border-color var(--t-fast);
}
.lightbox__strip button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__strip button.is-active { opacity: 1; border-color: #fff; }

.lightbox__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
  z-index: 2;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--font-2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.lightbox__hint.is-hidden { opacity: 0; }

@media (min-width: 768px) {
  .lightbox__nav { display: inline-flex; }
  .lightbox__stage { padding: 84px 90px 116px; }
  .lightbox__hint { bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); }
}
@media (max-width: 767px) {
  .lightbox__strip { justify-content: center; }
  .lightbox__strip button { width: 48px; height: 48px; }
}

.product-info { text-align: center; padding: 8px 0 0; }
.product-info__title {
  font-size: var(--font-9);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 22px;
}
.product-info__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: var(--font-5);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 34px;
}
.product-info__price .price-now { color: var(--text-dark); font-weight: 800; }
.product-info__price .price-was,
.product-info__price s {
  color: #9b9b9b;
  font-weight: 400;
  font-size: var(--font-3);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.product-info__price .price-off {
  padding: 4px 8px;
  background: var(--text-dark);
  color: #fff;
  font-size: var(--font-1);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}
.variant-block { margin-bottom: 26px; }
.variant-label {
  display: block;
  margin-bottom: 14px;
  font-size: var(--font-2);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
}
.variant-label b { font-weight: 800; }
.size-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.size-btn {
  min-width: 60px;
  height: 46px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--font-3);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color var(--t-med), color var(--t-med), border-color var(--t-med);
}
.size-btn:hover { border-color: #000; }
.size-btn.selected { background: #000; border-color: #000; color: #fff; }
.size-btn.out {
  border-color: rgba(220,38,38,.35);
  color: #b91c1c;
  background: rgba(220,38,38,.05);
  text-decoration: line-through;
  pointer-events: none;
}
.size-btn.low:not(.selected) { border-color: rgba(245,158,11,.65); }
.size-btn.low::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  border-radius: 50%;
  background: #f59e0b;
  vertical-align: middle;
}

/* --------------------------------------------------------- colour variants */
.color-block { margin-bottom: 26px; }
.color-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 60px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--font-3);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color var(--t-med), color var(--t-med), border-color var(--t-med);
}
.color-chip:hover { border-color: #000; }
.color-chip.selected { background: #000; border-color: #000; color: #fff; }
.color-chip.out {
  border-color: rgba(220,38,38,.35);
  color: #b91c1c;
  background: rgba(220,38,38,.05);
  text-decoration: line-through;
  pointer-events: none;
}
.color-chip.low:not(.selected) { border-color: rgba(245,158,11,.65); }
.color-chip.low::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
  flex: 0 0 5px;
}

/* -------------------------------------------------- variant availability */
.variant-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: -8px 0 26px;
  font-family: var(--font);
  font-size: var(--font-2);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.variant-status[hidden] { display: none; }
.variant-status__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #9b9b9b;
}
.variant-status__text { color: var(--text-light); }
.variant-status[data-state="available"] .variant-status__dot { background: #16a34a; }
.variant-status[data-state="available"] .variant-status__text { color: #15803d; }
.variant-status[data-state="low"] .variant-status__dot { background: #f59e0b; }
.variant-status[data-state="low"] .variant-status__text { color: #b45309; }
.variant-status[data-state="out"] .variant-status__dot { background: #dc2626; }
.variant-status[data-state="out"] .variant-status__text { color: #b91c1c; text-decoration: line-through; }

.product-info .add-to-cart { margin-bottom: 12px; }
.buy-now { margin-bottom: 14px; }
.pay-options {
  display: block;
  margin: 0 auto 26px;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--font-2);
  font-weight: 500;
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color var(--t-fast);
}
.pay-options:hover { color: #000; }
.pay-options-list { display: none; margin: -12px 0 26px; font-size: var(--font-2); color: var(--text-light); text-align: center; }
.pay-options-list.is-open { display: block; }

.qty-control {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 122px;
  height: 46px;
  margin: 0 auto 30px;
  border: 1px solid var(--border-strong);
}
.qty-control button {
  width: 38px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-fast);
}
.qty-control button:hover { background: var(--bg-accent); }
.qty-control span { min-width: 30px; text-align: center; font-size: var(--font-4); font-weight: 700; }

.accordion { border-top: 1px solid var(--border); text-align: left; }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 30px 16px 0;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: var(--font-3);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  position: relative;
}
.accordion__head svg {
  position: absolute;
  right: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  transition: transform var(--t-med);
}
.accordion__item.is-open .accordion__head svg { transform: rotate(90deg); }
.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
  font-size: var(--font-3);
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.65;
}
.accordion__item.is-open .accordion__body { max-height: 1400px; }
.accordion__body-inner { padding: 0 0 20px; }
.accordion__body p { margin-bottom: 10px; }

.size-guide-img {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 6px 0 14px;
  background: var(--bg-accent);
  border: 1px solid var(--hairline);
  cursor: zoom-in;
}

.shipping-note { padding: 60px 0 10px; text-align: center; }
.shipping-note__title {
  font-size: var(--font-3);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}
.shipping-note__text { font-size: var(--font-3); color: var(--text-light); }

/* more stuff */
.more-stuff { padding: 40px 0 0; position: relative; }
.more-stuff__nav {
  position: absolute;
  top: 46%;
  z-index: 4;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background var(--t-fast);
}
.more-stuff__nav:hover { background: #fff; }
.more-stuff__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.more-stuff__nav--prev { left: -4px; }
.more-stuff__nav--next { right: -4px; }
.more-stuff__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }

/* --------------------------------------------------------- outfit page */
.outfit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 450px;
  gap: 77px;
  padding: 8px 77px 0 0;
  align-items: start;
}
.outfit-media { min-width: 0; }
.outfit-main-img {
  width: 100%;
  aspect-ratio: 0.7505 / 1;
  background: var(--bg-accent);
  overflow: hidden;
}
.outfit-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.outfit-details { min-width: 0; padding-left: 36px; }
.outfit-name {
  font-size: var(--font-9);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 18px;
}
.outfit-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 30px;
}
.outfit-price-sale {
  font-size: var(--font-5);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.outfit-price-old { font-size: var(--font-3); color: #9b9b9b; text-decoration: line-through; }

.outfit-product-section {
  border-top: 1px solid var(--border);
  padding: 18px 0 16px;
}
.outfit-product-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.outfit-product-img {
  width: 64px;
  height: 86px;
  flex-shrink: 0;
  background: var(--bg-accent);
  overflow: hidden;
}
.outfit-product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.outfit-product-label {
  font-size: var(--font-2);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}
.outfit-product-name {
  font-size: var(--font-3);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.4;
}
.outfit-sizes-label {
  display: block;
  margin: 14px 0 10px;
  font-size: var(--font-2);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
}
.outfit-product-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.outfit-product-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.outfit-actions { margin: 26px 0 26px; }
.outfit-preview {
  display: none;
  position: fixed;
  z-index: 200;
  pointer-events: none;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  background: var(--bg-accent);
}
.outfit-preview img { width: 260px; height: 340px; object-fit: cover; display: block; }
.outfit-preview.active { display: block; }

/* --------------------------------------------------------- cart page */
.page-head { padding: 34px 0 30px; text-align: center; }
.page-head__title {
  font-size: var(--font-8);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text);
}
.page-head__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  font-size: var(--font-2);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color var(--t-fast);
}
.page-head__back:hover { color: #000; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 60px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead th {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border);
  font-size: var(--font-2);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: left;
}
.cart-table thead th:nth-child(2),
.cart-table thead th:nth-child(3),
.cart-table thead th:nth-child(4) { text-align: center; }
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.cart-line { display: flex; align-items: center; gap: 18px; }
.cart-line__img { width: 84px; height: 112px; object-fit: cover; background: var(--bg-accent); flex-shrink: 0; }
.cart-line__name { font-size: var(--font-3); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 4px; }
.cart-line__meta { font-size: var(--font-2); color: var(--text-light); margin-bottom: 8px; }
.cart-line__remove {
  border: 0; background: none; padding: 0;
  font-size: var(--font-2); color: var(--text-light);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.cart-line__remove:hover { color: #000; }
.cart-table .cell-price,
.cart-table .cell-total { font-size: var(--font-3); font-weight: 700; text-align: center; white-space: nowrap; }
.cart-table .cell-qty { text-align: center; }
.cart-table .cell-qty .cd-qty { margin: 0 auto; }
.cart-table .cell-remove { width: 44px; text-align: right; }

.summary-box { background: var(--bg-accent); padding: 28px 28px 30px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary-box__title {
  font-size: var(--font-3);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.summary-box .cart-row { padding: 10px 0; }
.summary-box .cart-row--total { font-size: var(--font-5); }
.summary-box .btn { margin-top: 20px; }
.summary-box__note { margin-top: 12px; font-size: var(--font-2); color: var(--text-light); text-align: center; }
.promo-row { margin: 18px 0 6px; display: flex; gap: 8px; }
.promo-row .field__input { min-width: 0; }
.promo-msg { display: none; margin-top: 8px; font-size: var(--font-2); color: var(--success); }

/* --------------------------------------------------------- checkout */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: start; }
.checkout-form { max-width: 620px; }
.form-section { margin-bottom: 34px; }
.form-section__title {
  font-size: var(--font-3);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.delivery-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.delivery-option {
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.delivery-option:hover { border-color: #000; }
.delivery-option.selected { border-color: #000; background: #fafafa; }
.delivery-option.is-disabled {
  opacity: 0.45;
  background: #f5f5f5;
  border-style: dashed;
  cursor: not-allowed;
}
.delivery-option.is-disabled:hover { border-color: var(--border-strong); }
.delivery-option.is-disabled .delivery-option__desc { color: #b00020; }
.delivery-option__name {
  display: block;
  font-size: var(--font-3);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.delivery-option__desc { font-size: var(--font-2); color: var(--text-light); }
.terms { font-size: var(--font-2); color: var(--text-light); line-height: 1.7; }
.terms a { color: #000; text-decoration: underline; text-underline-offset: 2px; }
.error-msg { display: none; margin-top: 10px; font-size: var(--font-2); color: var(--error); }

.checkout-summary { background: var(--bg-accent); padding: 28px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: var(--font-3); }
.summary-item__name { font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.summary-item__meta { font-size: var(--font-2); color: var(--text-light); text-transform: none; letter-spacing: 0; }
.summary-item--total { border-bottom: 0; padding-top: 18px; font-size: var(--font-5); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

/* --------------------------------------------------------- thankyou */
.thankyou { max-width: 620px; margin: 0 auto; padding: 90px 0 40px; text-align: center; }
.thankyou__icon { width: 56px; height: 56px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; border: 1px solid #000; border-radius: 50%; }
.thankyou__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.thankyou__title { font-size: var(--font-8); font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 12px; }
.thankyou__sub { font-size: var(--font-4); color: var(--text-light); margin-bottom: 28px; }
.thankyou__order {
  display: inline-block;
  margin-bottom: 34px;
  padding: 14px 26px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: var(--font-2);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.thankyou__order b { font-size: var(--font-4); margin-left: 8px; }
.thankyou__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------- page transition */
/* White squares that sweep across the screen, then sweep away on arrival. */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(6, 1fr);
  pointer-events: none;
  visibility: hidden;
}
.page-transition.is-active { visibility: visible; }
.page-transition__cell {
  background: #fff;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.34s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.page-transition.is-covered .page-transition__cell { transform: scaleY(1); }
.page-transition.is-instant .page-transition__cell { transition: none; }

/* --------------------------------------------------------- mobile bottom bar */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 940;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--hairline);
  padding: 7px 0 calc(7px + env(safe-area-inset-bottom));
}
.bottom-nav__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  max-width: 520px;
  margin: 0 auto;
}
.bottom-nav__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  position: relative;
  transition: color var(--t-fast);
}
.bottom-nav__item svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav__item.is-active,
.bottom-nav__item:hover { color: #000; }
.bottom-nav__badge {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.bottom-nav__badge.is-on { display: inline-flex; }

@media (max-width: 768px) {
  .bottom-nav { display: block; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none; }
}

/* --------------------------------------------------------- reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.32s; }

/* Cards injected by JS after load: entrance motion without ever hiding content. */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.product-card.is-in {
  animation: cardIn 380ms var(--ease) both;
}
.product-card.is-in.reveal--delay-1 { animation-delay: 0.04s; }
.product-card.is-in.reveal--delay-2 { animation-delay: 0.08s; }
.product-card.is-in.reveal--delay-3 { animation-delay: 0.12s; }
.product-card.is-in.reveal--delay-4 { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* loading shimmer for images */
.img-shimmer { position: relative; background: var(--bg-accent); }
.img-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* --------------------------------------------------------- responsive */
@media (max-width: 1200px) {
  .product-page { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding-right: 24px; }
  .product-info__title { font-size: var(--font-8); }
  .outfit-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding-right: 24px; }
  .outfit-name { font-size: var(--font-8); }
}
@media (max-width: 1099px) {
  :root { --outer: 24px; --header-h: 74px; }
  .product-grid, .products-grid, .more-stuff__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cart-layout { grid-template-columns: 1fr; gap: 36px; }
  .summary-box, .checkout-summary { position: static; }
  .checkout-layout { grid-template-columns: 1fr; gap: 36px; }
  .checkout-form { max-width: none; }
}
@media (max-width: 899px) {
  .product-page { grid-template-columns: 1fr; gap: 36px; padding: 0; }
  .outfit-layout { grid-template-columns: 1fr; gap: 36px; padding: 0; }
  .product-media { flex-direction: column-reverse; }
  .product-thumbs { flex-direction: row; width: 100%; overflow-x: auto; }
  .product-thumbs button { width: 62px; height: 62px; flex-shrink: 0; }
  .product-info__title, .outfit-name { font-size: var(--font-7); }
}
@media (max-width: 768px) {
  :root { --outer: 16px; --gutter: 12px; --header-h: 66px; }
  .header__logo { font-size: 22px; }
  .product-grid, .products-grid, .more-stuff__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid, .footer-inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; }
  .footer__bottom, .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-footer { margin-top: 56px; padding-top: 40px; }
  .page-title, .page-head__title { font-size: var(--font-7); }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
  .cart-table td { padding: 4px 0; border: 0; text-align: left !important; }
  .cart-table .cell-remove { position: absolute; right: 0; }
  .cart-table tr { position: relative; }
  .field-row, .delivery-options { grid-template-columns: 1fr; }
  .hero__logo { letter-spacing: 0.16em; text-indent: 0.16em; }
  .menu-drawer { width: 88vw; }
  .product-info__price { margin-bottom: 26px; }
}
@media (max-width: 480px) {
  .cart-drawer { width: 100vw; max-width: 100vw; }
  .product-grid, .products-grid, .more-stuff__track { gap: 10px; }
  .product-card__title { font-size: var(--font-3); }
}
