/* ==================================================================== *
 * Page builder: building blocks, full-width pages, editable slots, visibility.
 * Same tokens and taste as main.css: big type, space instead of rules, one orange action.
 * ==================================================================== */

/* visibility */
@media (max-width: 699px) { .vs-hide-mobile { display: none !important; } }
@media (min-width: 700px) { .vs-hide-desktop { display: none !important; } }

/* chapters */
.vsx { position: relative; padding: clamp(100px, 15vh, 170px) var(--gut); background: var(--bg); color: var(--ink); }
.vsx--light {
  --ink: #0e0e0d; --mute: rgba(14,14,13,0.58); --faint: rgba(14,14,13,0.1); --line: rgba(14,14,13,0.18);
  background: var(--paper); color: var(--ink);
}
.vsx--light :focus-visible { outline-color: var(--ink); }
.vsx--space-tight { padding-top: clamp(56px, 8vh, 90px); padding-bottom: clamp(56px, 8vh, 90px); }
.vsx--space-roomy { padding-top: clamp(150px, 22vh, 250px); padding-bottom: clamp(150px, 22vh, 250px); }

.vsx__title {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.045em; line-height: 0.94;
  font-size: clamp(44px, 5.6vw, 96px); max-width: 16ch; text-wrap: balance;
}
.vsx__title em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.vsx__text { margin-top: 22px; max-width: 52ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--mute); }
.vsx .btn { margin-top: 34px; }

/* headline */
.vsx--size-xl .vsx__title { font-size: clamp(60px, 10vw, 184px); max-width: 12ch; }
.vsx--size-l .vsx__title { font-size: clamp(48px, 6.8vw, 124px); }
.vsx--size-m .vsx__title { font-size: clamp(36px, 4.4vw, 74px); }
.vsx--align-center { text-align: center; }
.vsx--align-center .vsx__title, .vsx--align-center .vsx__text { margin-left: auto; margin-right: auto; }

/* photo or film + text */
.vsx--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.vsx--media-right .vsx__media { order: 2; }
.vsx__media { position: relative; margin: 0; overflow: hidden; border-radius: 22px; background: #141414; aspect-ratio: 4 / 5; }
.vsx--ratio-square .vsx__media { aspect-ratio: 1; }
.vsx--ratio-wide .vsx__media { aspect-ratio: 16 / 10; }
.vsx__media img, .vsx__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vsx--split .vsx__title { font-size: clamp(40px, 4.6vw, 84px); }

/* products */
.vsx__head { margin-bottom: clamp(36px, 5vh, 56px); }
.vsx--products .grid { gap: 40px 16px; }
.vsx--rail .grid--rail { margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); }

/* questions */
.vsx--faq .vsx__head { max-width: 860px; margin-left: auto; margin-right: auto; }
.vsx__faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.vsx__q { border-radius: 18px; background: rgba(244,242,238,0.06); transition: background-color 0.3s; }
.vsx--light .vsx__q { background: rgba(14,14,13,0.05); }
.vsx__q[open] { background: rgba(244,242,238,0.1); }
.vsx--light .vsx__q[open] { background: #fff; }
.vsx__q summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; cursor: pointer; list-style: none; font: 600 clamp(16px, 1.3vw, 19px)/1.35 var(--body); }
.vsx__q summary::-webkit-details-marker { display: none; }
.vsx__q summary i { position: relative; flex: none; width: 16px; height: 16px; }
.vsx__q summary i::before, .vsx__q summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.6px; margin-top: -0.8px; background: currentColor; border-radius: 1px; transition: transform 0.4s var(--out); }
.vsx__q summary i::after { transform: rotate(90deg); }
.vsx__q[open] summary i::after { transform: rotate(0deg); }
.vsx__a { padding: 0 24px 22px; color: var(--mute); font-size: 16px; line-height: 1.6; max-width: 66ch; }
.vsx__a p + p { margin-top: 0.8em; }

/* space */
.vsx--spacer { padding: 0; }
.vsx--h-s { height: 40px; }
.vsx--h-m { height: 90px; }
.vsx--h-l { height: 160px; }
.vsx--h-xl { height: 260px; }

/* full-width pages built with chapters: room for the bar on top, plain text kept readable */
.canvas > .vsx:first-child, .canvas > .vs-first { padding-top: calc(var(--nav-h) + clamp(70px, 11vh, 130px)); }
.canvas > p, .canvas > h2, .canvas > h3, .canvas > ul, .canvas > ol, .canvas > blockquote, .canvas > figure {
  max-width: 760px; margin: 0 auto 1.2em; padding: 0 var(--gut); box-sizing: content-box;
}
.canvas > :not(.vsx):not(section):not(.scenes):first-child { margin-top: calc(var(--nav-h) + 60px); }
.canvas > p { font-size: 18px; line-height: 1.65; color: var(--mute); }
.canvas > h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3vw, 48px); letter-spacing: -0.04em; line-height: 1; margin-top: 1.6em; }
.canvas > figure img { width: 100%; height: auto; border-radius: 18px; }

/* editable slots on shop, category and product pages */
.shop .vs-slot { margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); }
@media (max-width: 699px) { .shop .vs-slot { margin-left: 0; margin-right: 0; } }
.vs-slot--shop-top { margin-bottom: clamp(40px, 6vh, 80px); }
.vs-slot--shop-bottom { margin-top: clamp(60px, 9vh, 110px); margin-bottom: calc(-1 * clamp(90px, 14vh, 150px)); }
.vs-slot > p { max-width: 760px; margin: 0 auto 1em; padding: 0 var(--gut); color: var(--mute); }

@media (max-width: 699px) {
  .vsx { padding-top: 90px; padding-bottom: 90px; }
  .vsx--split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .vsx--media-right .vsx__media { order: 0; }
  .vsx__title { font-size: clamp(38px, 11vw, 56px); }
  .vsx--size-xl .vsx__title { font-size: clamp(48px, 15vw, 76px); }
  .vsx__q summary { padding: 18px 18px; }
  .vsx__a { padding: 0 18px 18px; }
}

/* Touch comfort: every tap target at least ~44 px on touch screens, without changing the look. */
@media (pointer: coarse) {
  .pick__help, .text-link, .rail__all { display: inline-flex; align-items: center; min-height: 44px; }
  .shop__cats a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; }
  .dot { width: 40px; height: 40px; }
  .dot::after { inset: 12px; }
  .dot::before { inset: 6px; }
  .woocommerce-form__input-checkbox, input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }
  .woocommerce-LostPassword a, .woocommerce-privacy-policy-link { display: inline-block; padding: 10px 0; }
}

/* Delivery dates */
.pdp__eta { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--mute); }
.pdp__eta span { color: var(--ink); font-weight: 600; margin-right: 4px; }
.pdp__eta b, .drawer__eta b { color: var(--ink); font-weight: 600; }
.drawer__eta { margin: 6px 0 0; font-size: 13px; color: var(--mute); }

/* Your usual size, picked for you */
.sz.is-usual span { position: relative; }
.sz.is-usual span::after { content: ""; position: absolute; top: -6px; right: -10px; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); }

/* Phone product page: sticky add bar */
.pdp-bar { display: none; }
@media (max-width: 699px) {
  .pdp-bar {
    display: flex; position: fixed; z-index: 65; left: 12px; right: 86px; bottom: calc(14px + env(safe-area-inset-bottom));
    align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px;
    background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 18px 40px rgba(0,0,0,0.45);
    transform: translateY(140%); opacity: 0; transition: transform 0.55s var(--spring), opacity 0.3s;
  }
  .pdp-bar.is-on { transform: none; opacity: 1; }
  .pdp-bar__text { min-width: 0; flex: 1; display: grid; line-height: 1.25; }
  .pdp-bar__text b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-bar__text span { font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-bar__btn { min-height: 44px; padding: 0 18px; font-size: 14px; flex: none; }
  body.pdp-bar-on .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.cart-open .pdp-bar, body.quick-open .pdp-bar, body.vee-open .pdp-bar, body.menu-open .pdp-bar { opacity: 0; pointer-events: none; }
}

/* Looks pill: only while the lineup is on screen */
@media (max-width: 699px) {
  .looks .looks__sticky { opacity: 0; transform: translateY(24px); pointer-events: none; }
  .looks.pill-on .looks__sticky { opacity: 1; transform: none; }
  .looks.pill-on .looks__sticky-btn { pointer-events: auto; }
  .looks:not(.pill-on) .looks__sticky-btn { pointer-events: none; }
}
@media (max-width: 699px) { body.toast-on .looks.pill-on .looks__sticky { transform: translateY(-78px); } }

/* Checkout: details remembered from last time */
.co-remembered { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: rgba(244,242,238,0.06); font-size: 14px; color: var(--mute); }
.co-remembered button { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; min-height: 32px; }
