/*
  BIG ZAYN — ios.css
  The iOS layer. Loaded LAST on every shop page (with ios.js).
  Same brand: green, cream, the red accent, Bruce Forever for titles, Lato for reading,
  IBM Plex Mono for codes and prices. What changes is the feel: glass, rounded surfaces,
  calm spacing, soft motion, sheets that slide up and swipe away.
  Delete this file's <link> (and ios.js) from a page to go back to the previous look.
*/

/* =============================================
   0. TOKENS
   ============================================= */
:root {
  --ios-ease:   cubic-bezier(.32, .72, 0, 1);     /* the iOS sheet curve */
  --ios-spring: cubic-bezier(.34, 1.4, .64, 1);   /* small overshoot for taps */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;
  --glass:        rgba(37, 67, 54, 0.72);
  --glass-strong: rgba(31, 57, 45, 0.86);
  --blur:         saturate(170%) blur(22px);
  --surface:   rgba(218, 211, 190, 0.055);   /* grouped-list cells, cards */
  --surface-2: rgba(218, 211, 190, 0.10);    /* tinted buttons, pressed cells */
  --field:     rgba(0, 0, 0, 0.16);          /* text fields */
  --sep:       rgba(218, 211, 190, 0.11);
  --sheet:     #1f3a2d;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .14), 0 10px 30px rgba(0, 0, 0, .16);
  --shadow-2: 0 30px 80px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .2);
  --tabbar-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* =============================================
   1. BASE — crisp type, no grey tap flash, no 300ms tap delay
   ============================================= */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 96px;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}
a, button, label, summary, [role="button"] { touch-action: manipulation; }
::selection { background: rgba(235, 51, 9, .9); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid rgba(218, 211, 190, .75); outline-offset: 3px; border-radius: 6px; }
img { -webkit-user-drag: none; }
html.ios-lock, html.ios-lock body { overflow: hidden; }

/* Page to page: a soft cross-fade (Chrome, Edge, Safari 18.2+). The bars stay put. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ios-page-out .22s ease both; }
::view-transition-new(root) { animation: ios-page-in .42s var(--ios-ease) both; }
@keyframes ios-page-out { to { opacity: 0; } }
@keyframes ios-page-in  { from { opacity: 0; transform: translateY(10px); } }
.topbar     { view-transition-name: bz-topbar; }
.ios-tabbar { view-transition-name: bz-tabbar; }

/* =============================================
   2. TOP BAR — frosted glass
   ============================================= */
.topbar {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid transparent;
  border-top: env(safe-area-inset-top, 0px) solid transparent;
  transition: border-color .35s ease, background-color .35s ease;
}
html.ios-scrolled .topbar { border-bottom-color: var(--sep); }

/* Desktop & tablet: the whole header floats as one rounded glass bar —
   logo, name, categories and icons together */
@media (min-width: 769px) {
  .topbar {
    top: 12px;
    left: 20px;
    right: 20px;
    max-width: 1360px;
    margin: 0 auto;
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: 26px;
    padding-right: 22px;
    border: 1px solid var(--sep);
    border-radius: var(--r-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .16), 0 1px 0 rgba(218, 211, 190, .06) inset;
  }
  html.ios-scrolled .topbar { border-color: rgba(218, 211, 190, .16); box-shadow: 0 16px 50px rgba(0, 0, 0, .28), 0 1px 0 rgba(218, 211, 190, .06) inset; }
  .topbar .topnav ul li a { border-radius: var(--r-pill); }
  .topbar .topnav ul li a.active { border-bottom-color: transparent; background: var(--surface-2); color: var(--cream); }
  .icon-btn:hover { background: var(--surface-2); }
}
/* Below 1200px the categories sit in a second floating bar just under the header
   (the nav lives inside .topbar, which is its frame, so it's placed relative to it) */
@media (min-width: 769px) and (max-width: 1199px) {
  .topbar .topnav {
    top: calc(100% + 8px);
    left: -1px;
    right: -1px;
    padding: 0 10px;
    background: rgba(33, 61, 48, .94);
    border: 1px solid var(--sep);
    border-radius: var(--r-pill);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
  }
  .topbar .topnav ul li a { border-bottom: 0; }
}
@media (min-width: 769px) {
  .icon-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; }
  .icon-btn:hover { background: var(--surface-2); }
}
.topnav {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom-color: var(--sep);
}
.topbar .topnav { -webkit-backdrop-filter: none; backdrop-filter: none; }
.topnav ul li a { transition: color .25s ease, border-color .25s ease; }
.topnav ul li a:hover { color: var(--cream); }

.icon-btn { border-radius: var(--r-pill); transition: transform .25s var(--ios-spring), opacity .2s ease; }
.icon-btn:active { transform: scale(.88); opacity: .7; }

/* Bag count: a proper iOS badge */
.cart-badge {
  min-width: 17px;
  width: auto;
  height: 17px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--green);
}
.cart-badge.ios-bump { animation: ios-bump .5s var(--ios-spring); }
@keyframes ios-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* =============================================
   3. PHONE TAB BAR (ios.js) — replaces the ☰ menu
   ============================================= */
.ios-tabbar { display: none; }

@media (max-width: 768px) {
  .ios-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 960;
    padding: 0 6px var(--safe-b);
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border-top: 1px solid var(--sep);
    transition: transform .35s var(--ios-ease);
  }
  .ios-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: var(--tabbar-h);
    width: auto;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: rgba(218, 211, 190, .5);
    font-family: var(--font-body);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    cursor: pointer;
    transition: color .2s ease;
  }
  .ios-tab svg { width: 24px; height: 24px; transition: transform .3s var(--ios-spring); }
  .ios-tab:active svg { transform: scale(.82); }
  .ios-tab.is-on { color: var(--cream); }
  .ios-tab.is-on svg { stroke-width: 2.1; }
  .ios-tab__icon { position: relative; display: flex; font-style: normal; }
  .ios-tab .cart-badge { top: -5px; right: -9px; }
  .icon-btn.ios-tab:active { transform: none; opacity: 1; }

  /* The tab bar does the work of the ☰ menu and the top-right icons.
     Hidden straight from CSS so they never flash while the page loads. */
  .nav-hamburger,
  .nav-dropdown,
  .topbar__icons { display: none !important; }
  .topbar { justify-content: center; min-height: calc(52px + env(safe-area-inset-top, 0px)); padding-top: 12px; padding-bottom: 12px; }   /* the notch space comes on top of the 52px (in-app browsers like X have one) */
  body:has(.topbar) { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }

  /* Things that sit at the bottom of the screen move up above the tab bar */
  body.has-tabbar .buybar { bottom: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: 12px; }
  /* Chat: a quiet icon at the top right of the bar instead of a bubble floating over the page */
  .bzchat-fab {
    top: var(--bz-fab-top, calc(7px + env(safe-area-inset-top, 0px)));
    bottom: auto !important;
    right: 10px;
    z-index: 990;
    width: 38px;
    height: 38px;
    background: transparent !important;
    color: var(--cream);
    border: 0;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .bzchat-fab svg { width: 21px; height: 21px; }
  .bzchat-fab:active { transform: scale(.86); opacity: .7; }
  .bzchat-fab.bzchat-has-reply::after { top: 6px; right: 5px; width: 9px; height: 9px; box-shadow: 0 0 0 2px var(--green); }
  html.ios-lock .bzchat-fab { display: none; }

  /* Checkout is a focused flow: no tab bar, a pay bar instead */
  html.ios-checkout .ios-tabbar { display: none; }
  html.ios-checkout body { padding-bottom: 0 !important; }

  /* Keyboard up: bottom bars step aside */
  html.ios-typing .ios-tabbar,
  html.ios-typing .ios-actionbar,
  html.ios-typing .buybar { transform: translateY(140%) !important; }
}

/* =============================================
   4. TYPE & SPACE — calmer rhythm
   ============================================= */
.manifesto__para p { line-height: 1.7; letter-spacing: .005em; }
.new-arrivals__header, .reviews__header { margin-bottom: 28px; }
@media (min-width: 769px) {
  .manifesto__body { gap: 56px; }
  .reviews { padding-top: 40px; }
}

/* =============================================
   5. BUTTONS
   Primary = cream fill; secondary = tinted glass. Rounded, Lato bold, a soft press.
   ============================================= */
.btn-buy, .btn-bag, .cart-checkout-btn, .buybar__btn, .cart-empty__btn,
.login-modal__btn, .profile-login-btn, .bz-pop__form button,
.cf__btn, .track__btn, .rv__btn, .rv__link, .pv2__btn, .bzchat__send-btn, .bzchat__compose button,
.bz-pieces__addall, .bz-piece__add, .pdx__add, .tags__more, .co-code__form button,
.bzdrops__form button, .bzfx-sent__btn, .ios-actionbar__btn, .sort-dropdown-btn {
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  -webkit-appearance: none;
  appearance: none;
  transition: transform .25s var(--ios-spring), opacity .2s ease, background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn-buy:active, .btn-bag:active, .cart-checkout-btn:active, .buybar__btn:active, .cart-empty__btn:active,
.login-modal__btn:active, .profile-login-btn:active, .bz-pop__form button:active,
.cf__btn:active, .track__btn:active, .rv__btn:active, .rv__link:active, .pv2__btn:active, .bzchat__send-btn:active,
.bz-pieces__addall:active, .bz-piece__add:active, .pdx__add:active, .tags__more:active, .co-code__form button:active,
.bzdrops__form button:active, .bzfx-sent__btn:active, .ios-actionbar__btn:active, .sort-dropdown-btn:active {
  transform: scale(.97);
  opacity: .88;
}
button:disabled { cursor: default; }

/* Big buttons */
.btn-buy, .btn-bag, .cart-checkout-btn, .login-modal__btn, .profile-login-btn, .bz-pop__form button,
.track__btn, .rv__btn, .ios-actionbar__btn, .bz-pieces__addall {
  min-height: 52px;
  font-size: 13px;
}

/* Primary */
.btn-buy, .cart-checkout-btn, .buybar__btn, .login-modal__btn, .profile-login-btn, .bz-pop__form button,
.cf__btn--solid, .track__btn, .rv__btn, .rv__link--solid, .pv2__btn--solid, .bzchat__send-btn, .bzchat__compose button,
.bz-pieces__addall, .co-code__form button, .bzdrops__form button, .ios-actionbar__btn {
  background: var(--cream);
  color: var(--green);
  border: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 18px rgba(0, 0, 0, .18);
}
.btn-buy:hover, .cart-checkout-btn:hover, .buybar__btn:hover, .login-modal__btn:hover, .profile-login-btn:hover,
.bz-pop__form button:hover, .cf__btn--solid:hover, .track__btn:hover, .rv__btn:hover, .pv2__btn--solid:hover,
.bz-pieces__addall:hover, .co-code__form button:hover, .ios-actionbar__btn:hover {
  background: #e8e2cf;
  color: var(--green);
  border-color: transparent;
}

/* Secondary (tinted) */
.btn-bag, .cart-empty__btn, .cf__btn:not(.cf__btn--solid), .rv__link:not(.rv__link--solid),
.pv2__btn:not(.pv2__btn--solid), .bz-piece__add, .pdx__add, .tags__more, .bzfx-sent__btn, .sort-dropdown-btn {
  background: var(--surface-2);
  color: var(--cream);
  border: 1px solid transparent;
  box-shadow: none;
}
.btn-bag:hover, .cart-empty__btn:hover, .cf__btn:not(.cf__btn--solid):hover, .rv__link:not(.rv__link--solid):hover,
.pv2__btn:not(.pv2__btn--solid):hover, .bz-piece__add:hover, .pdx__add:hover, .tags__more:hover,
.bzfx-sent__btn:not(:disabled):hover, .sort-dropdown-btn:hover {
  background: rgba(218, 211, 190, .16);
  color: var(--cream);
  border-color: transparent;
}
.bz-piece__add.is-added, .bz-pieces__addall.is-added { background: none; box-shadow: none; color: var(--red); }

.cart-empty__btn { padding: 16px 28px; font-size: 12px; }
.pdx__add, .bz-piece__add { font-size: 10px; padding: 10px 14px; }
.tags__more { padding: 12px 18px; font-size: 11px; }

/* Text links that act like buttons: no underline, gentle colour */
.cart-continue, .bz-pop__no, .bzfx-sent__back { transition: color .2s ease, opacity .2s ease; }
.bz-pop__no { text-decoration: none; }

/* =============================================
   6. FIELDS — filled, rounded, 16px so iPhones don't zoom in
   ============================================= */
.form-field input, .form-field select, .form-field textarea,
.bz-pop__form input[type=email], .bz-footer__list-form input[type=email],
.bzchat__start input, .bzchat__start textarea, .bzchat__compose textarea,
.co-code__form input, .track__form input, .rv__form textarea, .rv__form input, .rv__field input, .rv__field textarea,
.bzdrops__form input, .bzfx-code__input, .pv2__details-form input, .pv2__details-form select,
.bzacct input, .profile-login-box input, .fit input, .bzsearch__bar input {
  border-radius: var(--r-sm);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.form-field input, .form-field select, .form-field textarea,
.bz-pop__form input[type=email], .bz-footer__list-form input[type=email],
.bzchat__start input, .bzchat__start textarea, .bzchat__compose textarea,
.co-code__form input, .track__form input, .rv__form textarea, .rv__field input, .rv__field textarea,
.bzdrops__form input, .bzfx-code__input, .pv2__details-form input, .pv2__details-form select,
.bzacct input, .profile-login-box input, .fit input {
  background: var(--field);
  border: 1px solid rgba(218, 211, 190, .14);   /* a faint outline: empty boxes are easy to spot */
  color: var(--cream);
  padding: 14px 16px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus,
.bz-pop__form input[type=email]:focus, .bz-footer__list-form input[type=email]:focus,
.bzchat__start input:focus, .bzchat__start textarea:focus, .bzchat__compose textarea:focus,
.co-code__form input:focus, .track__form input:focus, .rv__form textarea:focus, .rv__field input:focus, .rv__field textarea:focus,
.bzdrops__form input:focus, .bzfx-code__input:focus, .pv2__details-form input:focus, .pv2__details-form select:focus,
.bzacct input:focus, .profile-login-box input:focus, .fit input:focus {
  outline: none;
  background: rgba(0, 0, 0, .22);
  border-color: rgba(218, 211, 190, .45);
  box-shadow: 0 0 0 4px rgba(218, 211, 190, .1);
}
.form-field input:disabled { opacity: .5; }
::placeholder { color: rgba(218, 211, 190, .6); }

/* Select: iOS chevron */
.form-field select, .pv2__details-form select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dad3be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.form-field select option { background: var(--sheet); color: var(--cream); }
.form-field label { letter-spacing: .1em; }

/* Field errors: say what's wrong, right under the field */
.form-field input.error, .form-field select.error { border-color: rgba(255, 99, 71, .85); background-color: rgba(235, 51, 9, .08); }
.field-error { display: block; margin-top: 7px; font-family: var(--font-body); font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.4; color: #ff8a70; }
.field-fix { padding: 6px 12px; border: 0; border-radius: var(--r-pill); background: rgba(218, 211, 190, .14); color: var(--cream); font-family: var(--font-body); font-weight: 700; font-size: 13px; cursor: pointer; }
.field-fix:active { transform: scale(.96); }

/* Checkbox: round iOS check */
.optin input[type=checkbox], input[type=checkbox].ios-check {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(218, 211, 190, .4);
  background: transparent;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.optin input[type=checkbox]::after {
  content: '';
  width: 10px;
  height: 6px;
  border: solid var(--green);
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform .25s var(--ios-spring);
}
.optin input[type=checkbox]:checked { background: var(--cream); border-color: var(--cream); }
.optin input[type=checkbox]:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }

/* Footer sign-up: field and button side by side, both rounded */
body .bz-footer__list-form { gap: 8px; }
body .bz-footer__list-form input[type=email] { border: 1px solid rgba(218, 211, 190, .14); border-radius: var(--r-sm); background: var(--field); padding: 13px 16px; font-size: 16px; }
body .bz-footer__list-form input[type=email]:focus { border-color: rgba(218, 211, 190, .45); }
body .bz-footer__list-form button { border-radius: var(--r-sm); font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .14em; padding: 0 22px; }
/* Short pages (a thank-you, an empty bag): the footer sits at the bottom of the screen, not mid-page */
body.has-bz-footer { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.has-bz-footer > :not(script):not(style) { flex-shrink: 0; }
/* only the page's own content blocks stretch (never toasts, sheets or bars that float) */
body.has-bz-footer > main, body.has-bz-footer > section, body.has-bz-footer > .gallery-divider, body.has-bz-footer > .pdx__more, body.has-bz-footer > .profile-login-gate { width: 100%; }
body.has-bz-footer > .bz-footer { margin-top: auto; width: 100%; }

/* THE LIST: a soft rounded card, no lines around it; the footer has no rule on top */
body .bz-footer { border-top: 0; padding-top: 24px; }
body .bz-footer__list {
  border: 0;
  width: calc(100% - 48px);
  max-width: 1352px;
  margin: 0 auto;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
}
body .bz-footer__list-copy b { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .16em; }
body .bz-footer__list-copy { font-size: 13px; line-height: 1.5; }
body .bz-footer__list-form button { min-height: 46px; }
@media (max-width: 1000px) {
  body .bz-footer__list { width: calc(100% - 24px); padding: 24px 20px; }
  body .bz-footer__list-copy b { display: block; margin: 0 0 6px; }
}
/* Decorative rules under page titles go too */
.cart-page__divider, .checkout__divider, .faq-header__line { display: none; }

/* =============================================
   7. IMAGES & CARDS — rounded, with a little air between them
   ============================================= */
.gallery-item__image-wrap,
.detail__image-wrap,
.pdx__card-img,
.bzsearch__img {
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;          /* keeps the rounded corners while photos fade */
}
.gallery-item__img, .pdx__card-img img, .bzsearch__img img {
  transition: transform .9s var(--ios-ease), opacity .18s ease;
}
@media (hover: hover) {
  .gallery-item:hover .gallery-item__img, .pdx__card:hover .pdx__card-img img { transform: scale(1.035); }
}
.gallery-item:active .gallery-item__image-wrap,
.pdx__card:active .pdx__card-img { transform: scale(.985); }
.gallery-item__image-wrap, .pdx__card-img { transition: transform .3s var(--ios-spring); }

.new-arrivals__grid, .gallery, .pdx__look-grid { gap: 16px; }
.gallery-item__info { padding-left: 4px; padding-right: 4px; }

@media (max-width: 768px) {
  .new-arrivals { padding-left: 12px; padding-right: 12px; }
  .new-arrivals__header { padding: 0 8px; }
  .new-arrivals__grid, .gallery, .pdx__look-grid { gap: 10px; }
  .gallery { padding-left: 12px; padding-right: 12px; }
  .gallery-item__image-wrap, .pdx__card-img, .bzsearch__img { border-radius: var(--r-sm); }
  .gallery-item__info { padding: 10px 4px 14px; }
}

/* Labels on photos become small glass pills */
.gallery-item__num { border-radius: var(--r-pill); padding: 3px 9px 2px; }
.gallery-item--window .gallery-item__cta {
  border-radius: var(--r-pill);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  padding: 7px 14px 6px;
}
.bzheart--card {
  border-radius: 50%;
  background: rgba(31, 57, 45, .55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform .3s var(--ios-spring);
}
.bzheart:active { transform: scale(.85); }
.gallery-item--skeleton .gallery-item__image-wrap { border-radius: var(--r-md); }

/* Review cards keep the orange frame; corners soften */
.tag { border-radius: var(--r-lg); }
.tags { gap: 16px; }
@media (max-width: 768px) { .tags { gap: 10px; } .tag { border-radius: var(--r-md); } }

/* =============================================
   8. GALLERY — category chips (phones) and the sort menu
   ============================================= */
.ios-chips { display: none; }
@media (max-width: 768px) {
  .ios-chips {
    display: flex;
    gap: 8px;
    order: 5;
    flex-basis: calc(100% + 32px);
    max-width: calc(100% + 32px);
    margin: 18px -16px 0;
    padding: 2px 16px 4px;
    scroll-padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ios-chips::-webkit-scrollbar { display: none; }
  .ios-chip {
    flex: none;
    scroll-snap-align: start;
    padding: 9px 16px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: rgba(218, 211, 190, .78);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    white-space: nowrap;
    transition: background-color .25s ease, color .25s ease, transform .25s var(--ios-spring);
  }
  .ios-chip:active { transform: scale(.94); }
  .ios-chip.is-on { background: var(--cream); color: var(--green); }
  .gallery-header { display: flex; flex-wrap: wrap; }
}

.sort-dropdown-btn { padding: 11px 16px; font-size: 10px; }
.sort-dropdown-menu {
  border-radius: var(--r-md);
  border: 1px solid var(--sep);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  padding: 6px;
  transform-origin: top right;
}
.sort-dropdown-menu.open { animation: ios-pop .28s var(--ios-ease); }
.sort-dropdown-menu button {
  border-radius: var(--r-xs);
  border-bottom: 0 !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
  text-align: left;
}
.sort-dropdown-menu button.active { background: var(--surface-2); }
@keyframes ios-pop { from { opacity: 0; transform: scale(.94) translateY(-4px); } }

/* Tier + sort dropdowns side by side */
.gallery-header__right:has(#tierDrop:not([hidden])) { flex-direction: row; align-items: center; gap: 8px; }
.gallery-header__tiers[hidden] { display: none; }
@media (max-width: 768px) {
  .gallery-header__right:has(#tierDrop:not([hidden])) { justify-content: flex-start; }
}

/* Phones: the sort menu is an action sheet from the bottom */
@media (max-width: 768px) {
  .sort-dropdown-menu.open {
    position: fixed;
    left: 8px; right: 8px; top: auto;
    bottom: calc(8px + var(--safe-b));
    z-index: 1300;
    min-width: 0;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: var(--r-lg);
    box-shadow: 0 0 0 100vmax rgba(8, 16, 12, .5), var(--shadow-2);
    animation: ios-sheet-up .42s var(--ios-ease);
  }
  .sort-dropdown-menu.open button { padding: 15px 16px; font-size: 12px; text-align: center; }
}

/* =============================================
   9. PRODUCT PAGE
   ============================================= */
.thumb { border-radius: var(--r-xs); overflow: hidden; border-color: transparent; transition: border-color .2s ease, transform .25s var(--ios-spring); }
.thumb:active { transform: scale(.95); }
.thumb.active { border-color: var(--cream); }
.detail__image { transition: opacity .35s ease; }

/* Specs as an iOS grouped list */
.detail__specs {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 0 16px;
  border: 0;
}
.detail__specs .spec-row { border-bottom: 1px solid var(--sep); padding-top: 13px; padding-bottom: 13px; }
.detail__specs .spec-row:last-child { border-bottom: 0; }

.qty-wrap { border: 0; background: var(--surface-2); border-radius: var(--r-sm); padding: 2px; }
.qty-btn { border-radius: 10px; width: 40px; height: 40px; }
.qty-btn:active { background: rgba(218, 211, 190, .16); transform: scale(.92); }
.pdx__heart { border-radius: 50%; transition: transform .3s var(--ios-spring), border-color .2s ease; }
.pdx__heart:active { transform: scale(.88); }

/* Phone carousel (ios.js): swipe between photos, dots below */
.ios-carousel { display: none; }
.ios-dots { display: none; }
@media (max-width: 768px) {
  .detail__image-wrap { margin: 0 12px; width: auto; border-radius: var(--r-lg); }
  .detail__image-wrap.has-ios-carousel #mainImage,
  .detail__image-wrap.has-ios-carousel .swipe-arrows,
  .detail__image-wrap.has-ios-carousel .swipe-label,
  body:has(.has-ios-carousel) .swipe-dots { display: none !important; }
  .ios-carousel {
    display: flex;
    position: absolute;
    inset: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .ios-carousel::-webkit-scrollbar { display: none; }
  .ios-carousel__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
  .ios-carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ios-dots {
    display: flex;
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    gap: 7px;
    padding: 6px 9px;
    border-radius: var(--r-pill);
    background: rgba(20, 38, 29, .42);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 2;
  }
  .ios-dots button {
    width: 7px; height: 7px; padding: 0; border: 0; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .45);
    transition: width .35s var(--ios-ease), background-color .25s ease;
    cursor: pointer;
  }
  .ios-dots button.is-on { width: 18px; background: #fff; }
  .detail__breadcrumb { padding-left: 16px; padding-right: 16px; }

  /* Buy bar: glass, above the tab bar */
  .buybar {
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border-top: 1px solid var(--sep);
    transition: transform .4s var(--ios-ease);
  }
  .buybar__btn { border-radius: var(--r-sm); padding: 15px 22px; font-size: 11px; }
}

/* Full-screen photo viewer (ios.js) */
.ios-viewer {
  --pull: 0;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 22, 17, calc(1 - var(--pull) * .7));
  opacity: 0;
  transition: opacity .3s ease;
}
.ios-viewer.open { opacity: 1; }
.ios-viewer__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.ios-viewer__track::-webkit-scrollbar { display: none; }
.ios-viewer__slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-x;
}
.ios-viewer__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transform-origin: center;
  transform: scale(.94);
  transition: transform .45s var(--ios-ease);
  user-select: none;
  -webkit-user-select: none;
}
.ios-viewer.open .ios-viewer__slide img { transform: none; }
.ios-viewer__x {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  z-index: 2;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(218, 211, 190, .16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--cream);
  cursor: pointer;
}
.ios-viewer__x svg { width: 18px; height: 18px; }
.ios-viewer__count {
  position: absolute;
  bottom: calc(22px + var(--safe-b));
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(218, 211, 190, .14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream);
}

/* =============================================
   10. BAG & CHECKOUT — cards and grouped lists
   ============================================= */
.cart-summary__inner,
.checkout__summary-inner {
  background: var(--surface);
  border: 0;
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.cart-item__img-wrap { border-radius: var(--r-sm); overflow: hidden; }
/* Bag items: one rounded group, separators inset like iOS lists, none on the last row */
.cart-items:not(:empty) { background: var(--surface); border-radius: var(--r-lg); padding: 0 20px; }
.cart-item { border-bottom: 1px solid var(--sep); }
.cart-item:last-child { border-bottom: 0; }
.cart-item__controls { border-top: 0; padding-top: 0; }
@media (max-width: 768px) { .cart-items:not(:empty) { padding: 0 14px; border-radius: var(--r-md); } .cart-item { padding: 16px 0; } }
.cart-item { transition: opacity .3s ease, transform .3s var(--ios-ease); }

.checkout__section {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  margin-bottom: 16px;
  border: 0;
}
.checkout__summary-divider, .cart-summary__divider { opacity: .6; }

/* Payment method: two big selectable rows with a round check */
.payment-options { flex-direction: column; gap: 10px; }
.payment-opt {
  position: relative;
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 16px 52px 16px 18px;
  text-align: left;
  font-size: 11px;
  color: rgba(218, 211, 190, .72);
  border-radius: var(--r-md);
  background: var(--field);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .1em;
  transition: border-color .2s ease, background-color .2s ease, transform .25s var(--ios-spring);
}
.payment-opt:active { transform: scale(.98); }
.payment-opt.active { border-color: var(--cream); background: rgba(218, 211, 190, .08); color: var(--cream); }
.payment-opt:hover { border-color: rgba(218, 211, 190, .3); color: var(--cream); }
.payment-opt.active:hover { border-color: var(--cream); }
.payment-opt::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 20px; height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(218, 211, 190, .35);
  box-sizing: border-box;
}
.payment-opt.active::after {
  border: 0;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23254336' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.payment-opt__icon { display: inline-flex; }
.payment-opt__icon svg { width: 22px; height: 22px; }
.payment-note { border-left: 0; border-radius: var(--r-sm); background: var(--field); padding: 12px 14px; color: rgba(218, 211, 190, .6); }
.checkout__secure { display: flex; align-items: center; justify-content: center; gap: 6px; }
.checkout__secure svg { width: 12px; height: 12px; }

@media (max-width: 768px) {
  .checkout__section, .cart-summary__inner, .checkout__summary-inner { padding: 22px 18px; border-radius: var(--r-md); }
}

/* Page heads: title first, one quiet line under it */
.cart-page__header { flex-direction: column; align-items: flex-start; gap: 8px; }
.cart-page__count { margin-left: 0; font-family: var(--font-body); font-size: 14px; letter-spacing: .01em; text-transform: none; color: var(--muted); }
.checkout__header { flex-direction: column; align-items: flex-start; gap: 10px; }
.checkout__label { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .16em; }
@media (max-width: 768px) {
  .checkout__title { font-size: 30px; white-space: nowrap; }
  .cart-page__title { font-size: 40px; }
}

/* Sticky total + button on phones (ios.js) */
.ios-actionbar { display: none; }
@media (max-width: 768px) {
  .ios-actionbar {
    display: flex;
    align-items: center;
    gap: 16px;
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    z-index: 955;
    padding: 12px 16px calc(12px + var(--safe-b));
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border-top: 1px solid var(--sep);
    transition: transform .4s var(--ios-ease);
  }
  html:not(.ios-checkout) body.has-tabbar .ios-actionbar { bottom: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: 12px; }
  .ios-actionbar.is-hidden, .ios-actionbar.is-empty { transform: translateY(160%); }
  .ios-actionbar__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .ios-actionbar__k { font-family: var(--font-body); font-weight: 700; font-size: 9.5px; letter-spacing: .14em; color: var(--faint); }
  .ios-actionbar__v { font-family: var(--font-mono); font-size: 16px; font-weight: 500; color: var(--cream); white-space: nowrap; }
  .ios-actionbar__btn { flex: 1; min-height: 50px; padding: 0 18px; cursor: pointer; }
  .ios-actionbar__btn:disabled { opacity: .5; }
  html.ios-checkout .checkout { padding-bottom: 110px; }
}

/* =============================================
   11. SHEETS & POPUPS
   Desktop: a centred card that scales in. Phones: a sheet that slides up, with a grabber.
   ============================================= */
.review-modal__box,
.login-modal,
.pv2sheet__box,
.bz-pop__panel,
.bzacct__panel {
  border-radius: var(--r-xl);
  border: 1px solid var(--sep);
  background: var(--sheet);
  box-shadow: var(--shadow-2);
}
.review-modal__backdrop {
  background: rgba(10, 20, 15, .55);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  animation: ios-fade .3s ease;
}
.login-overlay, .pv2sheet, .bz-pop, .bzacct {
  background: rgba(10, 20, 15, .5);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
}
.login-overlay.open .login-modal, .pv2sheet:not([hidden]) .pv2sheet__box, .review-modal__box { animation: ios-card-in .45s var(--ios-ease); }
.login-modal { overflow: hidden; }
.login-modal__header { border-bottom-color: var(--sep); }
.bz-pop__panel { transition: transform .5s var(--ios-ease); }
@keyframes ios-card-in { from { opacity: 0; transform: scale(.95) translateY(10px); } }
@keyframes ios-fade { from { opacity: 0; } }
@keyframes ios-sheet-up { from { transform: translateY(100%); } }

/* Round close buttons */
.review-modal__close, .login-modal__close, .bzacct__close, .bz-pop__x, .bzchat__close, .bzsearch__close, .ios-sheet__x {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: rgba(218, 211, 190, .75);
  font-size: 13px;
  line-height: 1;
  transition: background-color .2s ease, transform .25s var(--ios-spring);
}
.review-modal__close:active, .login-modal__close:active, .bzacct__close:active, .bz-pop__x:active,
.bzchat__close:active, .bzsearch__close:active, .ios-sheet__x:active { transform: scale(.88); }
.bz-pop__x { top: 14px; right: 14px; }

/* Search: a glass panel */
.bzsearch {
  background: rgba(10, 20, 15, .55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.bzsearch__bar {
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--sheet);
}
.bzsearch__results { border-radius: 0 0 var(--r-lg) var(--r-lg); background: var(--sheet); }
.bzsearch__bar input { background: var(--field); padding: 12px 14px; }
.bzsearch.open .bzsearch__bar, .bzsearch.open .bzsearch__results { animation: ios-pop .35s var(--ios-ease); }
.bzsearch__cats a {
  border-radius: var(--r-pill);
  border-color: transparent;
  background: var(--surface-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
}

/* Chat */
.bzchat { border-radius: var(--r-xl); overflow: hidden; background: var(--sheet); border-color: var(--sep); box-shadow: var(--shadow-2); }
.bzchat__msg p { border-radius: 18px; }
.bzchat__msg--customer p { border-bottom-right-radius: 6px; }
.bzchat__msg--admin p { border-bottom-left-radius: 6px; border: 0; background: var(--surface-2); }
.bzchat__compose { border-top-color: var(--sep); }
.bzchat__compose textarea { border-radius: 20px; }
.bzchat__compose button { border-radius: var(--r-pill); }
.bzchat-fab {
  border: 0;
  background: rgba(218, 211, 190, .92);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3), 0 1px 0 rgba(255, 255, 255, .4) inset;
  transition: transform .3s var(--ios-spring), bottom .4s var(--ios-ease), opacity .2s ease;
}

/* Chat as a ticket: END CHAT, notes, the ended state and the confirm */
.bzchat__head-actions { display: flex; align-items: center; gap: 8px; }
.bzchat__end {
  padding: 7px 12px; border: 0; border-radius: var(--r-pill);
  background: rgba(235, 51, 9, .14); color: #ff8a70;
  font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .1em; cursor: pointer;
  transition: transform .25s var(--ios-spring), background-color .2s ease;
}
.bzchat__end:hover { background: rgba(235, 51, 9, .22); }
.bzchat__end:active { transform: scale(.94); }
.bzchat__end[hidden] { display: none; }
.bzchat__sys {
  align-self: center; margin: 6px 0; padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--muted);
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .02em; text-align: center;
}
.bzchat__ended { padding: 16px 16px calc(14px + var(--safe-b)); border-top: 1px solid var(--sep); text-align: center; }
.bzchat__ended-h { margin: 0 0 4px; font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--cream); }
.bzchat__ended-sub { margin: 0 0 14px; font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: var(--muted); }
.bzchat__ended .bzchat__send-btn { width: 100%; min-height: 48px; }
.bzchat__confirm {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(10, 20, 15, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: ios-fade .2s ease;
}
.bzchat__confirm-card {
  width: 100%; max-width: 290px; padding: 20px 16px 12px; border-radius: 18px;
  background: rgba(45, 79, 63, .97); box-shadow: var(--shadow-2); text-align: center;
  animation: ios-card-in .3s var(--ios-ease);
}
.bzchat__confirm-h { margin: 0 0 6px; font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--cream); }
.bzchat__confirm-sub { margin: 0 0 16px; font-family: var(--font-body); font-size: 13px; line-height: 1.45; color: var(--muted); }
.bzchat__confirm-end, .bzchat__confirm-cancel {
  display: block; width: 100%; min-height: 46px; border: 0; border-radius: var(--r-sm); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .1em;
}
.bzchat__confirm-end { background: var(--red); color: #fff; margin-bottom: 8px; }
.bzchat__confirm-cancel { background: transparent; color: var(--cream); }

/* Review popup: no hard corners inside */
.bz-piece__img { border-radius: var(--r-xs); }
.bz-piece { border-bottom-color: var(--sep); }

/* ── PHONES: everything becomes a bottom sheet ── */
@media (max-width: 768px) {
  #reviewModal { align-items: flex-end !important; padding: 0 !important; }
  .login-overlay.open, .pv2sheet:not([hidden]) { align-items: flex-end; padding: 0; }

  .review-modal__box,
  .login-modal,
  .pv2sheet__box,
  .bz-pop__panel,
  .ios-sheet__panel {
    position: relative;
    width: 100%;
    max-width: none;
    max-height: 92vh;
    margin: 0;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border-width: 1px 0 0;
    padding-bottom: calc(20px + var(--safe-b));
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform .4s var(--ios-ease);
  }
  .review-modal__box, .login-overlay.open .login-modal, .pv2sheet:not([hidden]) .pv2sheet__box { animation: ios-sheet-up .48s var(--ios-ease); }
  .bz-pop.is-open .bz-pop__panel { transform: none; }
  .bz-pop__panel { transform: translateY(100%); padding-top: 44px; }
  .review-modal__box { padding-top: 40px; }

  /* the grabber */
  .review-modal__box::before,
  .login-modal::before,
  .pv2sheet__box::before,
  .bz-pop__panel::before,
  .bzacct__panel::before,
  .ios-sheet__panel::before,
  .bzchat::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    width: 38px;
    height: 5px;
    margin-left: -19px;
    border-radius: var(--r-pill);
    background: rgba(218, 211, 190, .28);
    z-index: 3;
  }
  .login-modal__header { padding-top: 26px; }

  /* Account panel (wishlist + login) */
  .bzacct__panel {
    top: auto !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0;
    width: 100% !important;
    max-height: 90vh !important;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border-width: 1px 0 0;
    padding-top: 18px;
    padding-bottom: var(--safe-b);
    transform: translateY(100%);
    transition: transform .45s var(--ios-ease);
  }
  .bzacct.open .bzacct__panel { transform: none; }

  /* Chat: a tall sheet */
  .bzchat {
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 88vh !important;
    max-height: none !important;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border-width: 1px 0 0;
    padding-top: 12px;
    padding-bottom: var(--safe-b);
    opacity: 1;
    transform: translateY(105%);
    transition: transform .45s var(--ios-ease);
  }
  .bzchat.open { transform: none; box-shadow: 0 0 0 100vmax rgba(10, 20, 15, .45), var(--shadow-2); }

  /* Search: full screen, glass behind */
  .bzsearch__bar { margin-top: 0; border-radius: 0; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .bzsearch__results { border-radius: 0; max-height: none; height: calc(100vh - 64px); }
}

/* SHOP sheet (ios.js) */
.ios-sheet {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: flex;
  align-items: flex-end;
  background: rgba(10, 20, 15, .5);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.ios-sheet.open { opacity: 1; pointer-events: auto; }
.ios-sheet__panel {
  background: var(--sheet);
  border-top: 1px solid var(--sep);
  box-shadow: var(--shadow-2);
  transform: translateY(100%);
  padding: 20px 16px calc(var(--tabbar-h) + var(--safe-b) + 16px);
}
.ios-sheet.open .ios-sheet__panel { transform: none; }
.ios-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px 10px; }
.ios-sheet__title { font-family: var(--font-display); font-size: 22px; letter-spacing: .08em; color: var(--cream); }
.ios-sheet__x { border: 0; cursor: pointer; }
.ios-sheet__x svg { width: 15px; height: 15px; }
.ios-sheet__list { overflow-y: auto; }

/* iOS inset grouped list (used by the SHOP sheet and FAQ) */
.ios-group__h {
  margin: 18px 16px 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--faint);
}
.ios-group { background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.ios-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 14px 0 18px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .14em;
  position: relative;
  transition: background-color .15s ease;
}
.ios-row + .ios-row::before { content: ''; position: absolute; top: 0; left: 18px; right: 0; height: 1px; background: var(--sep); }
.ios-row:active { background: var(--surface-2); }
.ios-row svg { width: 16px; height: 16px; color: rgba(218, 211, 190, .35); }
.ios-row.is-on { color: var(--cream); }
.ios-row.is-on span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 10px; vertical-align: 2px; }

/* =============================================
   12. TOAST — a glass pill from the top (like an iOS banner)
   ============================================= */
html body .bzfx-toast {
  top: calc(12px + env(safe-area-inset-top, 0px));
  bottom: auto;
  left: 50%;
  right: auto;
  border: 1px solid var(--sep);
  border-radius: var(--r-pill);
  padding: 12px 22px 12px 14px;
  background: rgba(31, 57, 45, .86);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
  transform: translate(-50%, -24px) scale(.96);
  transition: opacity .35s ease, transform .55s var(--ios-ease);
}
html body .bzfx-toast.in { transform: translate(-50%, 0) scale(1); }
html body .bzfx-toast__bar { display: none; }
@media (min-width: 769px) {
  html body .bzfx-toast { top: 88px; }
}

/* =============================================
   13. PAGES
   ============================================= */
/* FAQ: inset grouped list */
.faq-list { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 0; }
.faq-item { border-color: var(--sep); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { padding-left: 20px; padding-right: 20px; }
.faq-a__inner { padding-left: 20px; padding-right: 20px; }
.faq-q__icon { transition: transform .35s var(--ios-ease); }

/* Confirmation, track, review: cards */
.tres, .rv__items, .track__form { border-radius: var(--r-lg); }
.tres { background: var(--surface); border: 0; padding: 24px; }
.tres__steps { border-radius: var(--r-md); }
.rv__star { transition: transform .3s var(--ios-spring); }
.rv__star:active { transform: scale(.8); }

/* =============================================
   PROFILE — Apple Wallet card, a segmented control for the sections,
   grouped rounded lists for perks and orders
   ============================================= */
.profile.pv2 { padding-top: 92px; }
.pv2__main { padding: 28px 48px 96px; max-width: 980px; width: 100%; margin: 0 auto; }

/* Sections: one segmented control, sticky under the header (desktop and phone) */
.profile.pv2 .pv2__side {
  position: sticky;
  top: 92px;
  bottom: auto;
  left: auto;
  right: auto;
  z-index: 30;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  width: min(640px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 3px;
  border: 0;
  border-radius: 13px;
  background: rgba(20, 38, 29, .72);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.profile.pv2 .pv2__tab {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-height: 38px;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  color: rgba(218, 211, 190, .62);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: background-color .3s var(--ios-ease), color .25s ease, box-shadow .3s ease, transform .25s var(--ios-spring);
}
.profile.pv2 .pv2__tab[hidden] { display: none; }
.profile.pv2 .pv2__tab svg { width: 16px; height: 16px; opacity: 1; }
.profile.pv2 .pv2__tab:hover { color: var(--cream); }
.profile.pv2 .pv2__tab:active { transform: scale(.95); }
.profile.pv2 .pv2__tab.on { background: var(--cream); color: var(--green); box-shadow: 0 3px 10px rgba(0, 0, 0, .22); }
.profile.pv2 .pv2__out { display: none; }
.pv2__panel.on { animation: ios-page-in .45s var(--ios-ease); }

/* Large title */
.pv2__hello { font-size: 30px; line-height: 1.15; margin-bottom: 8px; }
.pv2__sub { font-size: 15px; margin-bottom: 28px; }
.pv2__k { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .14em; color: var(--faint); margin: 0 4px 10px; }

/* The card: Wallet style */
.pv2card { border-radius: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .38), 0 2px 6px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .08); }
.pv2flip:focus-visible .pv2flip__inner { border-radius: 20px; }
.pv2card__edit { border-radius: var(--r-pill); font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .1em; padding: 8px 14px; background: rgba(0, 0, 0, .25); }
.pv2__turn { text-align: center; max-width: 420px; }

/* Tier progress in its own rounded group */
.pv2__progress { background: var(--surface); border-radius: var(--r-lg); padding: 22px 20px 16px; max-width: 420px; margin-top: 22px; }
.pv2__forlife { margin: 4px 0 0; text-align: center; }

/* Perks: an inset grouped list with round ticks */
.pv2__perks { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.pv2__perks li { position: relative; align-items: center; gap: 14px; padding: 14px 18px; border-top: 0; font-size: 15px; }
.pv2__perks li + li::before { content: ''; position: absolute; top: 0; left: 54px; right: 0; height: 1px; background: var(--sep); }
.pv2__perks .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--metal-1, var(--cream)); color: var(--green);
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
}

/* Sign out: an iOS destructive row (all screen sizes) */
.profile.pv2 .pv2__out-mobile {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 36px 0 0;
  padding: 16px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--red);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  box-shadow: none;
}
.profile.pv2 .pv2__out-mobile:hover { background: var(--surface-2); color: var(--red); }

/* Orders: each order a card; the 4-step tracker is a segmented progress bar */
.pv2__making { border: 0; border-radius: var(--r-lg); background: var(--surface); padding: 20px; gap: 18px; }
.pv2__making img, .pv2__making-img { border-radius: var(--r-sm); }
.pv2__making-title { font-size: 17px; font-weight: 700; }
.pv2__track4 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; width: 100%; max-width: 320px; margin-bottom: 14px; }
.pv2__track4 b { display: none; }
.pv2__track4 i { flex: 1; width: auto; height: 5px; border: 0; border-radius: var(--r-pill); background: rgba(218, 211, 190, .14); }
.pv2__track4 i.done { background: var(--cream); }
.pv2__track4 i.now { background: var(--red); box-shadow: 0 0 12px rgba(235, 51, 9, .45); }
.pv2__track4 span { flex-basis: 100%; margin: 8px 0 0; font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .12em; }
.pv2__making-link, .pv2__balance a {
  border: 0; padding: 9px 14px; border-radius: var(--r-pill); background: var(--surface-2);
  font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .1em; color: var(--cream);
}
.pv2__balance { padding: 14px 16px; border-radius: var(--r-md); background: rgba(235, 51, 9, .1); color: var(--cream); }
.pv2__past { border: 0; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.pv2__past-h { margin-top: 32px; }
.pv2__past-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 0; padding: 14px 16px; }
.pv2__past-row + .pv2__past-row::before { content: ''; position: absolute; top: 0; left: 74px; right: 0; height: 1px; background: var(--sep); }
.pv2__past-row img, .pv2__past-img { width: 44px; height: 56px; border-radius: 8px; }
.pv2__past-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pv2__past-ref { font-size: 12px; }
.pv2__past-when { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--cream); }
.pv2__past-when svg { width: 18px; height: 18px; flex: none; }
.pv2__past-when svg circle { fill: #30d158; }
.pv2__past-when svg path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.profile.pv2 .pv2__past-row .pv2__making-link { grid-column: auto; justify-self: end; white-space: nowrap; }
.pv2__empty { padding: 28px 20px; text-align: center; border-radius: var(--r-lg); background: var(--surface); color: var(--muted); font-size: 14px; }

/* Wardrobe & saved: rounded tiles */
.pv2__piece { border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface); transition: transform .3s var(--ios-spring); }
.pv2__piece:active { transform: scale(.97); }
.pv2__piece-sku { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.pv2__chip { border-radius: var(--r-pill); padding: 5px 9px; }

/* Your fit */
.pv2__fit { border: 0; border-radius: var(--r-lg); background: var(--surface); }
.pv2__fit-icon { border: 0; background: var(--cream); color: var(--green); font-weight: 700; }
.pv2__fit-img { border: 0; border-radius: var(--r-md); }

/* Details sheet */
.pv2__details-form label { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .1em; }
.pv2__details-btns .pv2__btn { flex: 1; min-height: 48px; }

/* Signed-out gate */
.profile-login-box { border-radius: var(--r-xl); background: var(--surface); border-color: transparent; }

@media (max-width: 820px) {
  .profile.pv2 { padding-top: 52px; }
  .pv2__main { padding: 22px 16px 40px; }
  .profile.pv2 .pv2__side { top: 60px; margin-top: 14px; width: calc(100% - 24px); }
  .profile.pv2 .pv2__tab { flex-direction: column; gap: 4px; min-height: 50px; padding: 7px 2px 6px; font-size: 9px; letter-spacing: .06em; }
  .profile.pv2 .pv2__tab svg { width: 19px; height: 19px; }
  .pv2__hello { font-size: 24px; }
  .pv2__progress, .pv2__turn, .profile.pv2 .pv2__out-mobile { max-width: none; }
  .pv2__making { padding: 16px; }
}

/* Profile on tablets: the categories sit in a second bar under the header */
@media (min-width: 769px) and (max-width: 1199px) {
  .profile.pv2 { padding-top: 136px; }
  .profile.pv2 .pv2__side { top: 140px; }
}

/* Fit picker (confirmation page): one rounded group of choices, no ruled lines,
   iOS radio rows, pill sizes, the size chart as a picture */
.fit__opts { border-top: 0; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.fit__row { border-bottom: 0; position: relative; }
.fit__row + .fit__row::before { content: ''; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: var(--sep); }
.fit__row.is-open { background: rgba(218, 211, 190, .035); }
.fit__opt { padding: 18px 18px; }
.fit__opt b { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.fit__dot { width: 22px; height: 22px; border-width: 1.5px; }
.fit__dot::after { inset: 0; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23254336' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; transition: transform .25s var(--ios-spring); }
.fit__opt.on .fit__dot { border-color: var(--cream); }
.fit__row .fit__panel { margin: 0 18px 22px 58px; }
.fit__sizes { gap: 8px; }
.fit__sizes button {
  min-width: 58px; border: 0; border-radius: var(--r-pill); background: var(--surface-2);
  font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--cream);
  transition: background-color .2s ease, color .2s ease, transform .25s var(--ios-spring);
}
.fit__sizes button:active { transform: scale(.94); }
.fit__sizes button.on { background: var(--cream); color: var(--green); }
.fit__chart { position: relative; margin: 6px 0 18px; }
.fit__chart-img { display: block; width: 100%; max-width: 560px; height: auto; border-radius: var(--r-md); box-shadow: var(--shadow-1); cursor: zoom-in; }
.fit__chart-tap { display: block; margin-top: 8px; font-family: var(--font-body); font-size: 12px; color: var(--faint); }
.fit__grid label, .fit__group-h { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .08em; }
.fit__grid input, .fit__grid select { border: 1px solid transparent; border-radius: var(--r-sm); background: var(--field); font-size: 16px; padding: 13px 14px; }
.fit__grid input:focus, .fit__grid select:focus { border-color: rgba(218, 211, 190, .45); box-shadow: 0 0 0 4px rgba(218, 211, 190, .1); }
.fit__save { border-radius: var(--r-sm); min-height: 52px; font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .12em; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: transform .25s var(--ios-spring); }
.fit__save:active { transform: scale(.97); }
.fit__how summary { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .08em; }
@media (max-width: 640px) {
  .fit__row .fit__panel { margin: 0 14px 20px; }
  .fit__opt { padding: 16px 14px; }
  .fit__row + .fit__row::before { left: 50px; }
}

/* Fit picker: segmented unit switch, rounded rows */
.fit__unit { border: 0; background: var(--field); border-radius: 10px; padding: 2px; }
.fit__unit button { border-radius: 8px; transition: background-color .25s ease, color .25s ease; }
.fit__table-wrap { border-radius: var(--r-sm); overflow: hidden; }

/* Pay-your-way: no rule above it */
.bzpay { border-top: 0; padding-top: 6px; }
.pdx__express { display: block; width: 100%; margin-top: 4px; padding: 6px 0; border: 0; background: none; text-align: left; font: 400 13px var(--font-body); color: var(--muted); cursor: pointer; }
.pdx__express u { color: var(--cream); text-underline-offset: 3px; }
.bzpay__k { font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .14em; color: var(--faint); }
/* All the ways to pay on one line (fits a 360px phone and the bag's summary card) */
.bzpay__opts { flex-wrap: wrap; gap: 6px 10px; }
.bzpay__opts span { font-size: 11.5px; gap: 5px; }
.bzpay__opts svg { width: 14px; height: 14px; }
.cart-summary .bzpay__opts { justify-content: space-between; flex-wrap: nowrap; }
/* Wide enough for the five pay options on one line */
@media (min-width: 1025px) { .cart-page__layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; } }


/* No side rules or underlines on notes and small links — quiet text instead */
.checkout__note, .profile__home-note, .profile-login-note { border-left: 0; padding-left: 4px; color: rgba(218, 211, 190, .5); }
.faq-a__inner, .faq-item.open .faq-a__inner { border-left: 0; }
.co-code__toggle, .fit__link, .fit__skip, .checkout__returning a {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--cream);
  opacity: .8;
}
.co-code__toggle:hover, .fit__link:hover, .fit__skip:hover { opacity: 1; }


/* Account panel (wishlist + client login): no dividing rules, rounded parts */
.bzacct__wish { border-right: 0; border-bottom: 0; }
.bzacct__img { border-radius: var(--r-xs); }
.bzacct__add { border-radius: var(--r-pill); border: 0; background: var(--surface-2); font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .1em; padding: 8px 12px; }
.bzacct__login { background: var(--surface); border-radius: var(--r-lg); margin: 12px; }
.bzacct__login button[type=submit] {
  min-height: 50px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .25s var(--ios-spring), opacity .2s ease;
}
.bzacct__login button[type=submit]:active { transform: scale(.97); opacity: .88; }
@media (max-width: 768px) {
  .bzacct__panel { height: auto !important; inset: auto 0 0 0 !important; }
  .bzacct__wish { padding: 40px 20px 8px; }
  .bzacct__login { margin: 8px 12px 12px; padding: 24px 18px 22px; }
}

/* =============================================
   HOMEPAGE — the sliding window, the new arrivals shelf,
   reviews one at a time, big manifesto numbers
   ============================================= */
/* The window: one picture, edge to edge, under the floating header. No text, no buttons. */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 480px; background: var(--panel); overflow: hidden; }
.hero[hidden] { display: none; }
.hero__stage { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden;
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.hero__slide.is-on { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.2s ease; }
.hero__media, .hero__media picture, .hero__media img, .hero__media video { display: block; width: 100%; height: 100%; }
.hero__media video { object-fit: cover; object-position: center; pointer-events: none; }
.hero__media img { object-fit: cover; object-position: center; transform: scale(1.06); transition: transform 8s cubic-bezier(.2, .6, .2, 1); }
.hero__slide.is-on .hero__media img { transform: scale(1); }
.hero__slide.is-skeleton { opacity: 1; visibility: visible; animation: bz-pulse 1.4s ease-in-out infinite; }
@media (max-width: 768px) {
  .hero { height: calc(100svh - var(--tabbar-h) - var(--safe-b)); min-height: 420px; }
}

/* New arrivals: pages of pictures that turn by themselves — desktop 4 × 2, phones 2 × 2 */
.shelf { max-width: 1360px; margin: 72px auto 0; padding: 0 20px; }
.shelf__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.shelf__label { font-family: var(--font-display); font-size: clamp(26px, 3vw, 44px); letter-spacing: .06em; color: var(--cream); }
.shelf__arrows, .reviews__nav { display: flex; align-items: center; gap: 8px; }
.shelf__arrows[hidden] { display: none; }
.shelf__arrow {
  width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--cream); font-size: 22px; line-height: 1; cursor: pointer;
  transition: background-color .2s ease, transform .25s var(--ios-spring);
}
.shelf__arrow:hover { background: rgba(218, 211, 190, .16); }
.shelf__arrow:active { transform: scale(.9); }
.shelf__track {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px;
}
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__page {
  flex: 0 0 100%; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 16px;
  padding: 0 20px; scroll-snap-align: start; scroll-snap-stop: always;
}
.shelf__track > .shelf__card.is-skeleton { flex: 0 0 calc(25% - 12px); margin-left: 16px; }
.shelf__card { display: block; color: inherit; }
.shelf__img { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; background: var(--panel); isolation: isolate; transition: transform .3s var(--ios-spring); }
.shelf__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform .9s var(--ios-ease); }
.shelf__img-alt { opacity: 0; }
@media (hover: hover) {
  .shelf__card:hover .shelf__img-alt { opacity: 1; }
  .shelf__card:hover .shelf__img img { transform: scale(1.03); }
}
.shelf__card:active .shelf__img { transform: scale(.98); }
.shelf__card.is-skeleton .shelf__img { animation: bz-pulse 1.4s ease-in-out infinite; }
.shelf__dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.shelf__dots:empty { display: none; }
.shelf__dots i { width: 6px; height: 6px; border-radius: var(--r-pill); background: rgba(218, 211, 190, .25); transition: width .35s var(--ios-ease), background-color .25s ease; }
.shelf__dots i.is-on { width: 18px; background: var(--cream); }
@media (max-width: 768px) {
  .shelf { margin-top: 40px; padding: 0 12px; }
  .shelf__head { padding: 0 8px; }
  .shelf__arrows { display: none; }
  .shelf__track { margin: 0 -12px; }
  .shelf__page { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px; }
  .shelf__track > .shelf__card.is-skeleton { flex-basis: calc(50% - 17px); margin-left: 12px; }
}

/* Reviews: one card at a time, sideways; no frame */
.tag { border: 0; background: var(--surface); }
.tags--rail {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.tags--rail::-webkit-scrollbar { display: none; }
.tags--rail .tag { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
.reviews__nav { margin-left: auto; }
.reviews__nav .reviews__all { margin-left: 8px; }
@media (max-width: 900px) { .tags--rail .tag { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 768px) {
  .tags--rail { gap: 10px; margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px; }
  .tags--rail .tag { flex-basis: 86%; }
  .reviews__nav .shelf__arrow { display: none; }
}

/* Manifesto: the BIG ZAYN / FOR THE MODERN MAN / LAGOS line sits under the title on every screen */
.manifesto__stamp { flex-direction: column; align-items: flex-start; gap: 14px; }
.stamp__sub { writing-mode: horizontal-tb; transform: none; margin-left: 0; align-self: flex-start; }

/* The opening quote hangs to the left, so the title's M and the line under it start at the same place */
.manifesto .stamp__label { position: relative; }
.manifesto .stamp__q { position: absolute; right: 100%; top: 0; }

/* Manifesto: big numbers */
.para__num { font-family: var(--font-display); font-size: clamp(44px, 5vw, 76px); line-height: .9; letter-spacing: .02em; color: var(--red); padding-top: 0; }
.manifesto__para { grid-template-columns: 150px minmax(0, 1fr); gap: 28px; }
.manifesto__para.ios-reveal .para__num { opacity: 0; transform: translateY(18px) scale(.94); transition: opacity .7s ease .1s, transform .9s var(--ios-ease) .1s; }
.manifesto__para.ios-reveal.is-in .para__num { opacity: 1; transform: none; }
@media (max-width: 768px) {
  .manifesto__para { grid-template-columns: 1fr; gap: 8px; }
  .para__num { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  /* no autoplay or zoom: the slides change only when swiped or tapped */
  .hero__media img { transform: none !important; }
}

/* Cookie choice: a small card at the bottom (phones: above the tab bar) */
.bz-cookie {
  position: fixed; z-index: 1250; left: 20px; bottom: 20px; width: min(400px, calc(100vw - 40px));
  padding: 18px 18px 16px; border-radius: 20px; border: 1px solid var(--sep);
  background: rgba(31, 57, 45, .92); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow-2); color: var(--cream);
  opacity: 0; transform: translateY(24px); transition: opacity .35s ease, transform .5s var(--ios-ease);
}
.bz-cookie.is-open { opacity: 1; transform: none; }
.bz-cookie__h { margin: 0 0 6px; font-family: var(--font-body); font-weight: 700; font-size: 15px; }
.bz-cookie__p { margin: 0 0 14px; font-family: var(--font-body); font-size: 13px; line-height: 1.55; color: var(--muted); }
.bz-cookie__p a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.bz-cookie__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bz-cookie__btn {
  min-height: 44px; border: 0; border-radius: var(--r-sm); cursor: pointer;
  background: var(--surface-2); color: var(--cream);
  font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .1em;
  transition: transform .25s var(--ios-spring), background-color .2s ease;
}
.bz-cookie__btn:hover { background: rgba(218, 211, 190, .16); }
.bz-cookie__btn--yes { background: var(--cream); color: var(--green); }
.bz-cookie__btn--yes:hover { background: #e8e2cf; }
.bz-cookie__btn:active { transform: scale(.96); }
@media (max-width: 768px) {
  .bz-cookie { left: 10px; right: 10px; width: auto; bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); }
  html.ios-checkout .bz-cookie { bottom: calc(10px + var(--safe-b)); }
}
/* While the chat is open the cookie notice steps aside (it covered the chat's buttons on phones); it's back when the chat closes */
html.bzchat-lock .bz-cookie { display: none; }

/* =============================================
   14. EASE IN ON SCROLL (ios.js adds .ios-reveal / .is-in)
   ============================================= */
.ios-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .7s var(--ios-ease);
  transition-delay: var(--ios-delay, 0ms);
}
.ios-reveal.is-in { opacity: 1; transform: none; }

/* =============================================
   15. LESS MOTION if the phone asks for it
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .ios-reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Support chat v2: photos, voice notes, bookings (support.js) ── */
.bzchat .bzchat__bookbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 14px; border: 0; border-radius: var(--r-pill); background: var(--surface-2); color: var(--cream); font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .1em; cursor: pointer; }
.bzchat .bzchat__bookbtn svg { width: 17px; height: 17px; flex: none; }
.bzchat .bzchat__compose { align-items: flex-end; gap: 6px; }
.bzchat .bzchat__tools { display: flex; gap: 2px; flex: none; }
.bzchat .bzchat__compose .bzchat__tool, .bzchat .bzchat__recording .bzchat__tool {
  display: grid; place-items: center; width: 36px; height: 36px; min-width: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: rgba(218,211,190,.7); cursor: pointer; box-shadow: none;
}
.bzchat .bzchat__compose .bzchat__tool:hover { background: var(--surface-2); color: var(--cream); }
.bzchat .bzchat__tool svg { width: 21px; height: 21px; }
.bzchat .bzchat__recording { display: flex; align-items: center; gap: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--cream); }
.bzchat .bzchat__recording .bzchat__tool { width: auto; padding: 0 12px; border-radius: var(--r-pill); font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .1em; margin-left: auto; }
.bzchat__recdot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: bzRec 1s ease-in-out infinite; }
.bzchat__rechint { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
@keyframes bzRec { 50% { opacity: .25; } }
.bzchat__photo { display: block; border-radius: 16px; overflow: hidden; max-width: 220px; }
.bzchat__photo img { display: block; width: 100%; height: auto; max-height: 280px; object-fit: cover; }   /* tall photos are cropped in the chat; tap opens the full one */
.bzchat__msg--image p { margin-top: 4px; }
.bzchat__voice { width: 230px; max-width: 100%; height: 40px; }
.bzchat__booking { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); color: var(--cream); font-family: var(--font-body); font-size: 13px; }
.bzchat__booking b { font-size: 14px; text-transform: capitalize; }
.bzchat__booking b.bzchat__plain { text-transform: none; }
.bzchat__booking em { font-style: normal; color: var(--muted); }
.bzchat__booking small { margin-top: 4px; font-size: 11px; color: var(--muted); }
.bzchat .bzchat__booking .bzchat__pay { margin-top: 10px; width: 100%; }
.bzchat__bookform { display: flex; flex-direction: column; gap: 12px; text-align: left; max-height: 100%; overflow-y: auto; }
.bzchat__bookform > * { flex-shrink: 0; }   /* the form scrolls; nothing in it gets squashed */
.bzchat__bookform label { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.bzchat__bookform label span { font-weight: 400; letter-spacing: 0; }
.bzchat__bookform input { background: rgba(0,0,0,.2); border: 0; border-radius: 12px; color: var(--cream); font: 400 16px var(--font-body); padding: 11px 12px; letter-spacing: 0; color-scheme: dark; }
.bzchat__seg { display: flex; gap: 4px; padding: 3px; border-radius: var(--r-pill); background: rgba(0,0,0,.2); }
.bzchat__seg button { flex: 1; border: 0; border-radius: var(--r-pill); padding: 9px 6px; background: transparent; color: var(--muted); font: 700 12px var(--font-body); cursor: pointer; }
.bzchat__seg button.on { background: var(--cream); color: var(--green); }
.bzchat__expsub { margin: -4px 0 0; font: 400 13px/1.45 var(--font-body); color: var(--muted); }
.bzchat__bookform select { background: rgba(0,0,0,.2); border: 0; border-radius: 12px; color: var(--cream); font: 400 16px var(--font-body); padding: 11px 12px; letter-spacing: 0; color-scheme: dark; -webkit-appearance: none; appearance: none; }
.bzchat .bzchat__bookbtn[hidden] { display: none; }
.bzchat__seglabel span { font-weight: 400; letter-spacing: 0; }
/* Express: pick the piece by its picture, like in the shop */
.bzchat__pieces { display: flex; flex-shrink: 0; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; margin: 0 -2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.bzchat__pieces::-webkit-scrollbar { display: none; }
.bzchat .bzchat__piece { flex: 0 0 104px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px; padding: 0 0 8px; border: 2px solid transparent; border-radius: 14px; background: rgba(0,0,0,.2); color: var(--cream); text-align: left; cursor: pointer; overflow: hidden; }
.bzchat__piece img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--panel); }
.bzchat__piece b { padding: 0 8px; font: 700 11px var(--font-body); letter-spacing: .04em; }
.bzchat__piece span { padding: 0 8px; font: 400 11px var(--font-body); color: var(--muted); }
.bzchat .bzchat__piece.on { border-color: var(--cream); }
.bzchat__seglabel { margin: 0 0 -6px; font: 700 10px var(--font-body); letter-spacing: .12em; color: var(--muted); }
.bzchat .bzchat__linkbtn { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; color: var(--cream); font: 400 13px var(--font-body); padding: 6px; cursor: pointer; }
.bzchat .bzchat__linkbtn svg { width: 15px; height: 15px; }
.bzchat .bzchat__bookbtn + .bzchat__bookbtn { margin-top: -6px; }
.bzchat__msg .bzchat__booking span { font-family: var(--font-body); font-size: 13px; color: var(--cream); }

/* ── PRODUCT PAGE: YOUR FIT (product-extras.js) — chosen before the bag, same choices as the bag ── */
.pfit { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 4px; padding: 14px 16px; border: 1px solid rgba(218, 211, 190, .18); border-radius: var(--r-sm); background: var(--field); color: var(--cream); font-family: var(--font-body); text-align: left; cursor: pointer; }
.pfit[hidden] { display: none; }
.pfit__k { font-family: var(--font-display); font-size: 10px; letter-spacing: .18em; color: rgba(218, 211, 190, .78); white-space: nowrap; }
.pfit__v { flex: 1; font-size: 14px; color: var(--muted); }
.pfit.is-set .pfit__v { color: var(--cream); }
.pfit__go { font-size: 20px; line-height: 1; color: var(--muted); }
.pfit-sheet { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.pfit-sheet.open { opacity: 1; pointer-events: auto; }
.pfit-sheet__panel { position: relative; width: min(640px, 100%); max-height: 90vh; max-height: 90dvh; overflow-y: auto; padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; background: var(--green); transform: translateY(24px); transition: transform .3s var(--ios-spring, ease); }
.pfit-sheet.open .pfit-sheet__panel { transform: none; }
@media (min-width: 769px) { .pfit-sheet { align-items: center; } .pfit-sheet__panel { border-radius: 22px; } }
.pfit-sheet__x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--cream); cursor: pointer; z-index: 1; }
.pfit-sheet .fit { margin: 0; padding: 0; background: none; }
.pfit-sheet__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.pfit-sheet__done { min-height: 50px; border: 0; border-radius: var(--r-sm); background: var(--cream); color: var(--green); font: 700 13px var(--font-body); letter-spacing: .12em; cursor: pointer; }
.pfit-sheet__skip { border: 0; background: none; color: var(--muted); font: 400 12px var(--font-body); letter-spacing: .06em; padding: 8px; cursor: pointer; }

/* Catalogue mode (catalogue.js): the button beside TIER / SORT, and the full-screen swipe gallery */
.gallery-header__right:has(#catBtn:not([hidden])) { flex-direction: row; align-items: center; gap: 8px; }
.catmode-btn { flex: 0 0 auto; align-self: stretch; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 40px; padding: 0 13px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--surface-2); color: var(--cream); font: 700 10px var(--font-body); letter-spacing: .12em; cursor: pointer; transition: background .2s; }
.catmode-btn:hover { background: rgba(218, 211, 190, .16); }
.catmode-btn:active { transform: scale(.95); }
.catmode-btn[hidden] { display: none; }
.catmode-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.gallery-item__img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* Phones: at the right end, after the sort; just the icon when the tier menu is there too (no room for the words) */
@media (max-width: 768px) {
  .gallery-header__right:has(#catBtn:not([hidden])) { justify-content: flex-start; }
  .catmode-btn { order: 3; margin-left: auto; }
  .gallery-header__right:has(#tierDrop:not([hidden])) .catmode-btn { padding: 0 11px; }
  .gallery-header__right:has(#tierDrop:not([hidden])) .catmode-btn span { display: none; }
}

html.catv-lock, html.catv-lock body { overflow: hidden; }
.catv { --catv-bar: calc(90px + env(safe-area-inset-bottom, 0px)); position: fixed; inset: 0; z-index: 3000; background: #0c1611; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.catv.open { opacity: 1; pointer-events: auto; }
.catv__track { position: absolute; inset: 0 0 var(--catv-bar); display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.catv__track::-webkit-scrollbar { display: none; }
.catv__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
.catv__frame { position: relative; display: flex; max-width: 100%; max-height: 100%; }
.catv__frame img { display: block; width: min(100vw, calc((100vh - var(--catv-bar)) * var(--ar, .75))); width: min(100vw, calc((100dvh - var(--catv-bar)) * var(--ar, .75))); height: auto; aspect-ratio: var(--ar, .75); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.catv__frame .catv__wish { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; transition: opacity .25s ease; }
.catv--bare .catv__wish { opacity: 0; pointer-events: none; }
.catv__x, .catv__count, .catv__add, .catv__nav { position: absolute; transition: opacity .25s ease; }
.catv--bare .catv__x, .catv--bare .catv__count, .catv--bare .catv__add, .catv--bare .catv__nav { opacity: 0; pointer-events: none; }
.catv__x { top: calc(14px + env(safe-area-inset-top, 0px)); left: 14px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(31, 57, 45, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--cream); cursor: pointer; }
.catv__x svg { width: 18px; height: 18px; }
.catv__count { top: calc(26px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); font: 400 11px var(--font-body); letter-spacing: .14em; color: rgba(218, 211, 190, .55); pointer-events: none; }
.catv__add { left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(340px, calc(100% - 32px)); min-height: 50px; border: 0; border-radius: var(--r-pill); background: var(--cream); color: var(--green); font: 700 13px var(--font-body); letter-spacing: .14em; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.catv__add:active { transform: translateX(-50%) scale(.97); }
.catv__add.done { background: rgba(218, 211, 190, .85); }
.catv__nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: none; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(31, 57, 45, .55); color: var(--cream); cursor: pointer; }
.catv__nav svg { width: 20px; height: 20px; }
.catv__nav--prev { left: 18px; }
.catv__nav--next { right: 18px; }
.catv__nav:disabled { opacity: .25; cursor: default; }
@media (hover: hover) and (pointer: fine) { .catv__nav { display: flex; } }

/* iPhone zooms the page into any field with text under 16px. Touch screens get 16px in every field, so typing never zooms. */
@media (hover: none) and (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea { font-size: 16px !important; }
}
