* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Jost, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #f4f3f1;
}
a { color: #1a1a1a; text-decoration: none; }
a:hover { color: #5c5c5c; }
button { font-family: inherit; }

/* ===== Ticker ===== */
.ticker { overflow: hidden; width: 100%; }
.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerRun 26s linear infinite;
}
@keyframes tickerRun {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  white-space: nowrap;
}
.ticker-item__text {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
}
.ticker-item__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b8b7b3;
  flex: 0 0 auto;
}

/* ===== Header (mobile) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ececea;
  min-height: 54px;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.header__title {
  font-size: 15px;
  letter-spacing: 0.26em;
  font-weight: 400;
  text-transform: uppercase;
}

/* ===== Desktop ticker strip ===== */
.ticker-strip--desktop {
  display: none;
}

/* ===== Page container ===== */
.page {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  position: relative;
  padding-bottom: 170px;
}

/* ===== Gallery mobile ===== */
.gallery--mobile { position: relative; background: #f4f3f1; }
.gallery__scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery__scroll::-webkit-scrollbar { display: none; }
.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 6 / 5;
  overflow: hidden;
}

/* Real <img> instead of a CSS background: the browser can choose a width from
   srcset, and the intrinsic width/height let it reserve space — that
   reservation is what stops the page shifting as photos decode. */
.gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Carries the inline low-quality placeholder until the photo lands. */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.trust-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  overflow: hidden;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
}
.gallery__dots {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d3d3d0;
}
.dot--active { background: #1a1a1a; }

/* ===== Model tabs (mobile underline) ===== */
.model-tabs--mobile {
  display: flex;
  gap: 22px;
  padding: 0 20px;
  border-bottom: 1px solid #ececea;
}
.model-tab {
  border: none;
  background: none;
  padding: 13px 0 11px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: #9a9a96;
  font-family: inherit;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 44px;
}
.model-tab--active {
  border-bottom-color: #1a1a1a;
  color: #1a1a1a;
}
/* Sold out (H2.1): visible, dimmed, not selectable — never hidden. */
.model-tab--disabled {
  color: #d3d3d0;
  cursor: default;
}
.model-tab--disabled.model-tab--active {
  border-bottom-color: #d3d3d0;
}

/* ===== Content ===== */
.content-grid { display: block; }
.info-col { padding: 12px 20px 0; }

.gallery--desktop { display: none; }
.model-tabs--desktop { display: none; }
.brand--desktop { display: none; }
.price-row--desktop { display: none; }
.promo-line--desktop { display: none; }
.divider--desktop { display: none; }
.disclaimer--desktop { display: none; }
.bag-bar--desktop { display: none; }
.btn-wa.btn-wa--desktop { display: none; }
.bag-panel { display: none; }

.title-price {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.product-title {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.005em;
}
.promo-line--mobile {
  margin-top: 3px;
  font-size: 12px;
  color: #8a8a86;
}
.price-block--mobile { flex: 0 0 auto; text-align: right; }
.price-current {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}
.price-old {
  font-size: 12.5px;
  color: #a3a39f;
  text-decoration: line-through;
  margin-top: 3px;
}

.section-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px;
}
.section-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8a86;
}
.color-name { font-size: 12.5px; }
.size-unisex { display: none; }

.color-swatches {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.color-swatches::-webkit-scrollbar { display: none; }
.swatch {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.swatch--active { border-color: #1a1a1a; }
/* Sold out (H2.2): visible, dimmed, not clickable — never hidden. */
.swatch--disabled {
  cursor: default;
  opacity: 0.35;
  position: relative;
}
.swatch--disabled::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: linear-gradient(to top right, transparent calc(50% - 1px), #fff, transparent calc(50% + 1px));
}
.swatch__inner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.09);
}

.section-label-row--size { display: none; }

.size-add-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.size-chips { display: flex; gap: 4px; flex: 0 0 auto; }
.size-chip {
  width: 44px;
  min-height: 44px;
  border: 1px solid #ddddda;
  background: #fff;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.size-chip--active {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}
/* Sold out (H2.3): visible, dimmed, not selectable — never hidden. */
.size-chip--disabled {
  color: #d3d3d0;
  border-color: #ececea;
  cursor: default;
  text-decoration: line-through;
}
/* H2.3: every size of the current color is sold out. */
.size-sold-out {
  flex: 1 1 auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 12.5px;
  color: #9a9a96;
}
.btn-add {
  flex: 1 1 auto;
  min-height: 52px;
  border: none;
  background: #1a1a1a;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-add:active { background: #3d3d3a; }
.btn-add:disabled {
  background: #f4f3f1;
  color: #9a9a96;
  cursor: default;
}

.divider {
  height: 1px;
  background: #ececea;
  margin: 22px 0 18px;
}
.disclaimer {
  font-size: 11.5px;
  line-height: 1.6;
  color: #9a9a96;
}

/* ===== Bag bar (mobile fixed) ===== */
.bag-bar--mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.bag-bar__inner {
  width: 100%;
  max-width: 460px;
  pointer-events: auto;
  background: #fff;
  border-top: 1px solid #ececea;
}

.bag-toggle {
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 10px;
  min-height: 44px;
  cursor: pointer;
  text-align: left;
}
.bag-toggle__label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a8a86;
}
.bag-toggle__action {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  color: #1a1a1a;
}

.bag-detail {
  max-height: 148px;
  overflow-y: auto;
  padding: 0 20px;
}
.bag-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #f2f1ef;
}
.bag-line__dot {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
}
.bag-line__info { flex: 1 1 auto; min-width: 0; }
.bag-line__title { font-size: 12.5px; line-height: 1.3; }
.bag-line__meta { font-size: 11.5px; color: #9a9a96; margin-top: 2px; }
.bag-line__stepper {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  border: 1px solid #e4e3e0;
}
.stepper-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  color: #1a1a1a;
}
.stepper-qty { width: 22px; text-align: center; font-size: 13px; }

.promo-strip {
  width: 100%;
  border: none;
  border-top: 1px solid #ececea;
  background: #f4f3f1;
  padding: 10px 20px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.promo-strip__text { font-size: 12.5px; line-height: 1.35; color: #1a1a1a; }
.promo-strip__action {
  flex: 0 0 auto;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
}

.wa-wrap { padding: 12px 20px 14px; }
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.btn-wa--disabled {
  background: #f4f3f1;
  color: #8a8a86;
  border: 1px solid #e4e3e0;
  pointer-events: none;
}
.btn-wa--active {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #1a1a1a;
}
.btn-wa__sep { opacity: 0.55; }
.btn-wa__total { letter-spacing: 0.04em; font-size: 13px; }

/* ============================================================
   DESKTOP (>= 900px)
   ============================================================ */
@media (min-width: 900px) {
  .header { display: none; }
  .ticker-strip--desktop {
    display: block;
    height: 34px;
    background: #f4f3f1;
    border-bottom: 1px solid #ececea;
  }
  .ticker-strip--desktop .ticker-item__text { font-size: 11.5px; letter-spacing: 0.12em; }
  .ticker-strip--desktop .ticker-item { gap: 18px; padding-right: 18px; }

  body { background: #fff; }
  .page { max-width: 1240px; padding-bottom: 0; background: #fff; }

  .gallery--mobile { display: none; }
  .model-tabs--mobile { display: none; }

  .content-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 60px;
    padding: 40px 40px 90px;
    align-items: start;
  }

  .gallery--desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .gallery__tile {
    background: #f4f3f1;
    overflow: hidden;
  }
  .gallery__tile--half { aspect-ratio: 4 / 5; grid-column: auto; }
  .gallery__tile--wide { aspect-ratio: 5 / 4; grid-column: 1 / -1; }

  .info-col { padding: 0; position: sticky; top: 32px; }

  .model-tabs--desktop {
    display: flex;
    gap: 26px;
    border-bottom: 1px solid #ececea;
    margin-bottom: 22px;
  }
  .model-tab--desktop {
    border: none;
    background: none;
    padding: 0 0 12px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: #9a9a96;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .model-tab--desktop.model-tab--active { border-bottom-color: #1a1a1a; color: #1a1a1a; }

  .brand--desktop {
    display: block;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a8a86;
  }
  .title-price--x { }
  .title-price { display: block; }
  .product-title { margin: 8px 0 14px; font-size: 30px; line-height: 1.2; letter-spacing: -0.015em; }
  .promo-line--mobile { display: none; }
  .price-block--mobile { display: none; }

  .price-row--desktop {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .price-current--desktop { font-size: 26px; font-weight: 500; }
  .price-row--desktop .price-old { font-size: 16px; margin-top: 0; }
  .discount-badge {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: #1a1a1a;
    color: #fff;
    padding: 5px 9px;
  }
  .promo-line--desktop {
    display: block;
    margin-top: 8px;
    font-size: 13.5px;
    color: #6f6f6b;
  }

  .divider--mobile { display: none; }
  .divider--desktop {
    display: block;
    margin: 26px 0 20px;
  }

  .section-label-row { margin-bottom: 12px; }
  .section-label { font-size: 11px; letter-spacing: 0.18em; }
  .color-name { font-size: 13.5px; }
  .color-swatches { flex-wrap: wrap; overflow: visible; }
  .swatch { width: 42px; height: 42px; }

  .section-label-row--size { display: flex; align-items: center; gap: 12px; margin: 24px 0 12px; }
  .size-unisex {
    display: block;
    font-size: 12.5px;
    color: #8a8a86;
  }
  .size-add-row { gap: 8px; }
  .size-chip { width: 62px; height: 48px; font-size: 14px; }
  .btn-add { height: 56px; font-size: 13px; letter-spacing: 0.18em; }

  .disclaimer--mobile { display: none; }
  .disclaimer--desktop {
    display: block;
    margin-top: 18px;
    font-size: 12px;
  }

  .bag-bar--mobile { display: none; }

  .bag-panel {
    display: block;
    border: 1px solid #ececea;
    margin-top: 26px;
  }
  .bag-panel .bag-toggle { padding: 14px 18px; }
  .bag-panel .bag-toggle__label { font-size: 11px; }
  .bag-panel .bag-toggle__action { font-size: 11px; }
  .bag-panel .bag-detail { max-height: none; overflow: visible; padding: 0 18px; }
  .bag-panel .bag-line { padding: 10px 0; }
  .bag-panel .bag-line__dot { width: 22px; height: 22px; }
  .bag-panel .bag-line__title { font-size: 13px; }
  .bag-panel .bag-line__meta { font-size: 12px; }
  .bag-panel .stepper-btn { width: 40px; height: 40px; }
  .bag-panel .promo-strip { padding: 12px 18px; min-height: 48px; }
  .bag-panel .promo-strip__text { font-size: 13px; }
  .bag-panel .promo-strip__action { font-size: 11px; }

  /* Matches the compound selector that hides it on mobile — a bare
     `.btn-wa--desktop` here loses on specificity and the CTA disappears. */
  .btn-wa.btn-wa--desktop {
    display: flex;
    margin-top: 12px;
    min-height: 58px;
    font-size: 13px;
    letter-spacing: 0.16em;
  }
  .btn-wa--desktop .btn-wa__total { font-size: 14px; }
}
