/*
Theme Name: Being Bane
Theme URI: https://beingbane.com
Author: Being Bane
Description: Royal purple, gold and ivory theme for the Being Bane socks store. Works with WooCommerce and Razorpay. Includes a 3D sock viewer, pack builder (Buy 2 Get 1 Free) and interactive homepage.
Version: 1.6.5
Requires at least: 6.0
Requires PHP: 7.4
WC requires at least: 7.0
License: GPLv2 or later
Text Domain: being-bane
*/

:root {
  --bb-purple: #531385;
  --bb-deep: #3A0D5E;
  --bb-ink: #2A0A45;
  --bb-muted: #5A4A6A;
  --bb-ivory: #FBF7EE;
  --bb-paper: #FFFDF8;
  --bb-cream: #F3EBDB;
  --bb-line: #EADFC8;
  --bb-line2: #DFD0B0;
  --bb-gold: #D4B15C;
  --bb-gold-ink: #7D6B4E;
  --bb-error: #A3123A;
  --bb-radius: 24px;
  --bb-display: 'Cinzel', Georgia, serif;
  --bb-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bb-ivory);
  color: var(--bb-ink);
  font-family: var(--bb-body);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--bb-purple); }
a:hover { color: var(--bb-deep); }
button, input, select, textarea { font: inherit; font-variant-numeric: lining-nums; }
:focus-visible { outline: 3px solid var(--bb-gold); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 9999; width: auto; height: auto; clip: auto; background: var(--bb-purple); color: var(--bb-ivory); padding: 10px 16px; border-radius: 999px; }

/* ---------- layout & type ---------- */
.bb-wrap { max-width: 1240px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.bb-narrow { max-width: 1100px; }
.bb-section { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.bb-eyebrow { color: var(--bb-purple); font-weight: 700; letter-spacing: .12em; font-size: 13px; text-transform: uppercase; }
.bb-h1, .bb-h2, .bb-display {
  font-family: var(--bb-display); font-weight: 800; text-transform: uppercase; margin: 0; color: var(--bb-purple);
}
.bb-h1 { font-size: clamp(36px, 6.5vw, 92px); line-height: 1; }
.bb-h2 { font-size: clamp(32px, 5vw, 64px); line-height: 1; }
.bb-h3 { font-family: var(--bb-display); font-weight: 800; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; margin: 0; color: var(--bb-purple); }
.bb-accent { color: var(--bb-purple); }
.bb-mark { background: var(--bb-gold); color: var(--bb-ink); padding: 0 .25em; border-radius: 14px; }
.bb-lead { color: var(--bb-muted); font-size: 18px; max-width: 560px; margin: 0; }
.bb-stack { display: flex; flex-direction: column; gap: 16px; }
.bb-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.bb-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.bb-card { background: var(--bb-ivory); border: 1.5px solid var(--bb-line); border-radius: var(--bb-radius); padding: clamp(18px, 3vw, 28px); }
.bb-card--purple { background: var(--bb-purple); border-color: var(--bb-purple); color: var(--bb-ivory); }
.bb-muted { color: var(--bb-muted); }
.bb-small { font-size: 14px; }

/* ---------- buttons ---------- */
.bb-btn, .button, button.button, a.button, input.button, .wc-block-components-button,
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--bb-purple);
  background: var(--bb-purple); color: var(--bb-ivory) !important; text-decoration: none;
  font-weight: 700; font-size: 16px; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.bb-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: var(--bb-deep); border-color: var(--bb-deep); transform: scale(1.02); }
.bb-btn--ghost { background: transparent; color: var(--bb-purple) !important; }
.bb-btn--ghost:hover { background: var(--bb-cream); }
.bb-btn--gold { background: var(--bb-gold); border-color: var(--bb-gold); color: var(--bb-ink) !important; }
.bb-btn[disabled], .bb-btn.is-disabled { background: var(--bb-line2); border-color: var(--bb-line2); color: var(--bb-muted) !important; cursor: default; transform: none; }
.bb-icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--bb-line2); background: var(--bb-ivory); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: var(--bb-purple); }

/* ---------- header ---------- */
.bb-topbar { background: var(--bb-purple); color: var(--bb-ivory); text-align: center; padding: 8px 16px; font-weight: 700; font-size: 14px; }
.bb-topbar span { color: var(--bb-gold); }
.bb-header { position: sticky; top: 0; z-index: 50; background: rgba(251,247,238,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bb-line); }
.admin-bar .bb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bb-header { top: 46px; } }
.bb-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 8px; padding-bottom: 8px; }
.bb-logo img, .custom-logo { display: block; height: clamp(60px, 8vw, 104px); width: auto; mix-blend-mode: multiply; }
.bb-logo-text { font-family: var(--bb-display); font-weight: 800; font-size: 26px; color: var(--bb-purple); text-decoration: none; }
.bb-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; white-space: nowrap; }
.bb-nav a { text-decoration: none; color: var(--bb-ink); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; }
.bb-nav .current-menu-item > a, .bb-nav a:hover { color: var(--bb-purple); border-bottom-color: var(--bb-gold); }
.bb-bag { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--bb-purple); color: var(--bb-ivory) !important; text-decoration: none; font-weight: 700; }
@media (max-width: 760px) {
  .bb-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .bb-nav::-webkit-scrollbar { display: none; }
  .bb-nav ul { gap: 20px; padding-bottom: 4px; }
  .bb-nav a { font-size: 13px; }
}

/* ---------- footer ---------- */
.bb-footer { background: var(--bb-purple); color: var(--bb-ivory); font-size: 15px; margin-top: 0; }
.bb-footer a { color: var(--bb-ivory); }
.bb-footer__name { font-family: var(--bb-display); font-weight: 800; font-size: clamp(40px, 9vw, 120px); line-height: .95; text-transform: uppercase; }
.bb-footer__name span { color: inherit; }
.bb-footer__cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 36px; }
.bb-footer h4 { color: var(--bb-gold); letter-spacing: .08em; font-size: 13px; margin: 0 0 8px; }
.bb-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bb-footer__bottom { border-top: 1px solid #8A4FC2; margin-top: 32px; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; opacity: .92; }

/* ---------- homepage ---------- */
.bb-hero { padding-top: 32px; padding-bottom: 56px; }
.bb-hero__logo { flex: 0 0 auto; width: clamp(280px, 40vw, 480px); max-width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; position: relative; }
.bb-hero__logo img { width: 70%; height: auto; position: relative; mix-blend-mode: multiply; animation: bbLogoIn .9s cubic-bezier(.3,1.4,.5,1); transition: transform .25s ease; }
.bb-hero__logo img:hover { transform: scale(1.06); }
.bb-hero__ring { position: absolute; inset: 0; border-radius: 999px; border: 3px dashed var(--bb-gold); animation: bbSpin 18s linear infinite; }
.bb-hero__disc { position: absolute; inset: 7%; border-radius: 999px; background: var(--bb-cream); }
.bb-hero__text { flex: 1 1 420px; min-width: 0; }
.bb-marquee { background: var(--bb-gold); color: var(--bb-ink); overflow: hidden; white-space: nowrap; padding: 14px 0; transform: rotate(-1.2deg); margin: 8px -20px; }
.bb-marquee__in { display: inline-block; font-family: var(--bb-display); font-weight: 800; font-size: 26px; animation: bbMarquee 26s linear infinite; }
.bb-marquee:hover .bb-marquee__in { animation-play-state: paused; }

.bb-studio { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.bb-studio__view { flex: 1 1 420px; min-width: 0; }
.bb-studio__tiles { flex: 1 1 420px; min-width: 0; }
.bb-swatches { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.bb-swatch { aspect-ratio: 1 / 1; border-radius: 16px; border: 2px solid var(--bb-line2); cursor: pointer; transition: transform .15s ease; padding: 0; }
.bb-swatch:hover, .bb-swatch.is-active { transform: scale(1.08); border-color: var(--bb-purple); box-shadow: 0 8px 18px rgba(42,10,69,.2); }

.bb-3d { position: relative; width: 100%; box-sizing: border-box; padding-bottom: 58px; border-radius: 28px; background: var(--bb-ivory); border: 2px solid var(--bb-line); overflow: hidden; }
.bb-3d canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.bb-3d__shadow { position: absolute; left: 18%; right: 18%; bottom: 64px; height: 8%; border-radius: 50%; background: rgba(42,10,69,.14); filter: blur(10px); pointer-events: none; }
.bb-3d__ctrl { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.bb-3d__ctrl button { width: 38px; height: 38px; border-radius: 999px; border: 1.5px solid var(--bb-line2); background: var(--bb-ivory); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.bb-3d__ctrl span { font-size: 11px; font-weight: 700; color: var(--bb-gold-ink); }
.bb-3d__label { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(251,247,238,.92); color: var(--bb-purple); border: 1px solid var(--bb-line2); border-radius: 999px; padding: 3px 12px 3px 4px; font-weight: 700; font-size: 12px; }
.bb-3d__label i { width: 16px; height: 16px; border-radius: 999px; border: 1px solid #CBB98F; display: inline-block; }
.bb-3d__full { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 999px; border: 0; background: var(--bb-purple); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

.bb-compare { position: relative; height: 500px; border-radius: 32px; overflow: hidden; border: 2px solid var(--bb-line); }
.bb-compare__pane { position: absolute; inset: 0; padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.bb-compare__pane--a { background: #F1EFF4; color: #4A4752; }
.bb-compare__pane--b { background: var(--bb-purple); color: var(--bb-ivory); clip-path: inset(0 0 0 50%); }
.bb-compare__pane ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: clamp(15px, 1.4vw, 18px); max-width: 520px; }
.bb-compare__title { font-family: var(--bb-display); font-weight: 800; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.05; }
.bb-compare__handle { position: absolute; top: 0; bottom: 0; left: calc(50% - 2px); width: 4px; background: var(--bb-gold); pointer-events: none; }
.bb-compare__knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 999px; background: var(--bb-gold); border: 4px solid var(--bb-ivory); box-shadow: 0 8px 20px rgba(42,10,69,.3); display: flex; align-items: center; justify-content: center; }
.bb-compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

.bb-tour { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.bb-tour__stage { flex: 1 1 380px; min-width: 0; border-radius: 32px; background: var(--bb-purple); display: flex; align-items: center; justify-content: center; padding: 24px; min-height: clamp(340px, 50vw, 480px); position: relative; overflow: hidden; }
.bb-tour__stage svg { width: 100%; max-width: 300px; height: auto; overflow: hidden; }
.bb-part { cursor: pointer; transition: fill .2s ease; }
.bb-tour__info { flex: 1 1 440px; min-width: 0; border-radius: 32px; border: 2px solid var(--bb-line2); padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.bb-tour__stat { font-family: var(--bb-display); font-weight: 800; font-size: clamp(64px, 10vw, 130px); line-height: .9; color: var(--bb-purple); }
.bb-dots { display: flex; gap: 8px; }
.bb-dots button { height: 12px; width: 12px; border-radius: 999px; border: 0; padding: 0; background: var(--bb-line2); cursor: pointer; transition: width .3s ease; }
.bb-dots button.is-active { width: 36px; background: var(--bb-purple); }
.bb-bar { height: 6px; border-radius: 999px; background: var(--bb-line); overflow: hidden; }
.bb-bar i { display: block; height: 100%; background: var(--bb-purple); transition: width .5s ease; }

.bb-stretch { background: var(--bb-purple); color: var(--bb-ivory); }
.bb-stretch .bb-h2 { color: var(--bb-ivory); }
.bb-stretch__stage { flex: 1 1 380px; min-width: 0; border-radius: 32px; background: var(--bb-deep); min-height: 400px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bb-stretch__sock { transition: transform .08s linear; }
.bb-stretch__sock.is-released { transition: transform .7s cubic-bezier(.34,1.8,.5,1); }
.bb-stretch input[type=range] { width: 100%; max-width: 440px; accent-color: var(--bb-gold); height: 32px; }

.bb-flip { height: clamp(220px, 28vw, 300px); padding: 0; border: 0; background: transparent; cursor: pointer; perspective: 1200px; text-align: left; font: inherit; width: 100%; }
.bb-flip__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,1.3,.5,1); }
.bb-flip.is-flipped .bb-flip__in { transform: rotateY(180deg); }
.bb-flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 26px; padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; justify-content: space-between; }
.bb-flip__front { background: var(--bb-purple); color: var(--bb-ivory); }
.bb-flip__back { background: var(--bb-ivory); border: 3px solid var(--bb-purple); color: var(--bb-ink); transform: rotateY(180deg); }
.bb-flip__q { font-family: var(--bb-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; }
.bb-flip__a { font-family: var(--bb-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 40px); color: var(--bb-purple); line-height: 1; }

.bb-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.bb-rail > * { flex: 0 0 min(300px, 82%); scroll-snap-align: start; }
.bb-athlete { margin: 0; border-radius: 28px; overflow: hidden; border: 2px solid var(--bb-line); background: var(--bb-ivory); }
.bb-athlete__img { aspect-ratio: 3 / 4; background: var(--bb-purple); color: var(--bb-ivory); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-weight: 700; }
.bb-athlete__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-athlete figcaption { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }

/* ---------- pack builder (product page) ---------- */
.bb-builder { display: flex; flex-direction: column; gap: 20px; margin: 18px 0 24px; }
.bb-builder__label { font-weight: 700; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.bb-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.bb-pill { min-height: 48px; min-width: 56px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--bb-line2); background: var(--bb-ivory); color: var(--bb-ink); font-weight: 700; cursor: pointer; }
.bb-pill.is-active { background: var(--bb-purple); border-color: var(--bb-purple); color: var(--bb-ivory); }
.bb-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bb-pack { text-align: left; border-radius: 20px; padding: 14px 16px; border: 2px solid var(--bb-line2); background: var(--bb-ivory); color: var(--bb-ink); cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.bb-pack strong { font-size: 15px; }
.bb-pack b { font-family: var(--bb-display); font-weight: 800; font-size: 24px; color: var(--bb-purple); }
.bb-pack small { font-size: 12px; font-weight: 700; opacity: .85; }
.bb-pack.is-active { background: var(--bb-purple); border-color: var(--bb-purple); color: var(--bb-ivory); }
.bb-pack.is-active b { color: var(--bb-gold); }
.bb-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
@media (max-width: 480px) { .bb-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bb-tile { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 16px; border: 2px solid var(--bb-line); background: var(--bb-ivory); }
.bb-tile.is-picked { background: var(--bb-cream); border-color: var(--bb-purple); }
.bb-tile__photo { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--bb-ivory); cursor: zoom-in; }
.bb-tile__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-tile__dot { position: absolute; inset: 22%; border-radius: 999px; border: 2px solid #CBB98F; }
.bb-tile__zoom { position: absolute; right: 5px; top: 5px; width: 22px; height: 22px; border-radius: 999px; background: rgba(83,19,133,.9); display: flex; align-items: center; justify-content: center; }
.bb-tile__name { font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
.bb-tile__add { width: 100%; min-height: 36px; border-radius: 999px; border: 0; background: var(--bb-purple); color: var(--bb-ivory); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.bb-stepper { display: flex; align-items: center; justify-content: space-between; min-height: 36px; border-radius: 999px; background: var(--bb-purple); color: var(--bb-ivory); padding: 0 2px; }
.bb-stepper button { width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--bb-ivory); font-size: 18px; font-weight: 700; cursor: pointer; padding: 0; }
.bb-summary { position: sticky; top: calc(var(--bb-head, 0px) + 8px); z-index: 5; box-shadow: 0 10px 22px -14px rgba(42,10,69,.45); border-radius: 20px; background: var(--bb-cream); border: 2px solid var(--bb-line); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.bb-summary div { display: flex; justify-content: space-between; gap: 10px; }
.bb-summary__total { padding-top: 8px; border-top: 2px solid var(--bb-line); align-items: center; }
.bb-summary__total b { font-family: var(--bb-display); font-weight: 800; font-size: 30px; }
.bb-nudge { font-size: 14px; font-weight: 700; color: var(--bb-purple); }
.bb-builder-ready .bb-has-builder form.variations_form { display: none; }

/* ---------- full-screen viewer ---------- */
.bb-viewer { position: fixed; inset: 0; z-index: 10000; background: var(--bb-ivory); display: none; flex-direction: column; }
.bb-viewer.is-open { display: flex; }
.bb-viewer__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--bb-line); }
.bb-viewer__title { display: flex; align-items: center; gap: 10px; font-family: var(--bb-display); font-weight: 800; font-size: 18px; color: var(--bb-purple); }
.bb-viewer__title i { width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--bb-line2); display: inline-block; }
.bb-viewer__stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding-bottom: 12px; overflow: hidden; }
.bb-viewer__stage > .bb-3d { border: 0; border-radius: 0; height: 100%; }
.bb-viewer__photo { position: absolute; inset: 16px; border-radius: 22px; background: var(--bb-cream); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bb-viewer__photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bb-viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(251,247,238,.95); box-shadow: 0 4px 12px rgba(42,10,69,.18); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.bb-viewer__nav--prev { left: 10px; } .bb-viewer__nav--next { right: 10px; }
.bb-viewer__tabs { display: flex; gap: 6px; padding: 12px 10px 16px; border-top: 1px solid var(--bb-line); overflow-x: auto; }
.bb-viewer__tabs button { flex: 1 0 auto; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--bb-line2); background: var(--bb-ivory); color: var(--bb-purple); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.bb-viewer__tabs button.is-active { background: var(--bb-purple); border-color: var(--bb-purple); color: var(--bb-ivory); }
body.bb-noscroll { overflow: hidden; }

/* ---------- pages ---------- */
.bb-page { padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(32px, 6vw, 64px); }
.bb-page__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.bb-content { display: flex; flex-direction: column; gap: 18px; }
.bb-content h2 { font-family: var(--bb-display); font-weight: 800; font-size: clamp(22px, 3vw, 30px); color: var(--bb-purple); margin: 18px 0 0; }
.bb-content ul, .bb-content ol { padding-left: 22px; }
.bb-content li { margin: 6px 0; }
.bb-content > p, .bb-content > ul { max-width: 760px; }
.bb-contact-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.bb-contact-cards a { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.bb-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }

/* ---------- WooCommerce ---------- */
.woocommerce .woocommerce-breadcrumb { color: var(--bb-muted); font-size: 14px; margin-bottom: 16px; }
.woocommerce div.product { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 48px); }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none !important; width: auto !important; margin: 0 !important; }
.woocommerce div.product div.images { flex: 1 1 460px; min-width: 0; }
.woocommerce div.product div.summary { flex: 1 1 380px; min-width: 0; }
.woocommerce div.product .product_title { font-family: var(--bb-display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; color: var(--bb-purple); text-transform: uppercase; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--bb-ink); font-family: var(--bb-display); font-weight: 800; font-size: 34px; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { flex: 1 1 100%; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--bb-ivory); border-color: var(--bb-line2); border-radius: 14px 14px 0 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--bb-purple); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--bb-ivory); }
.woocommerce div.product div.images .flex-control-thumbs li img { border-radius: 12px; }
.woocommerce div.product div.images img { border-radius: 24px; }
.woocommerce span.onsale { background: var(--bb-gold); color: var(--bb-ink); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--bb-display); font-weight: 800; color: var(--bb-ink); }
.woocommerce ul.products li.product .price { color: var(--bb-purple); font-weight: 700; }
.woocommerce ul.products li.product a img { border-radius: 20px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce .quantity .qty, .select2-container--default .select2-selection--single, .woocommerce-cart table.cart td.actions .coupon .input-text {
  min-height: 50px; border-radius: 14px; border: 1.5px solid var(--bb-line2); background: var(--bb-paper); color: var(--bb-ink); padding: 10px 14px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 28px; }
.woocommerce form .form-row label { font-weight: 700; font-size: 14px; }
.woocommerce table.shop_table { border-radius: 20px; border-color: var(--bb-line); background: var(--bb-ivory); }
.woocommerce table.shop_table th { font-family: var(--bb-display); color: var(--bb-purple); }
.woocommerce-checkout #payment, .woocommerce-cart .cart-collaterals .cart_totals { background: var(--bb-cream); border-radius: 24px; padding: 18px; }
.woocommerce-checkout #payment div.payment_box { background: var(--bb-ivory); color: var(--bb-ink); border-radius: 14px; }
.woocommerce-checkout h3, .woocommerce-cart h2, .woocommerce-order h2 { font-family: var(--bb-display); font-weight: 800; color: var(--bb-purple); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: 16px; border-top-color: var(--bb-purple); background: var(--bb-cream); color: var(--bb-ink); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--bb-purple); }
.bb-offer-note { border-radius: 16px; background: var(--bb-cream); border: 2px dashed var(--bb-purple); padding: 12px 16px; margin-bottom: 16px; font-weight: 700; color: var(--bb-purple); }

/* ---------- motion ---------- */
@keyframes bbSpin { to { transform: rotate(360deg); } }
@keyframes bbMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bbLogoIn { 0% { transform: scale(.4) rotate(-12deg); opacity: 0; } 70% { transform: scale(1.08) rotate(2deg); opacity: 1; } 100% { transform: none; } }
@keyframes bbDot { 0%,100% { r: 9; } 50% { r: 13; } }
.bb-dotpulse { animation: bbDot 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- additions: athletes, fit finder, viewer placeholder ---------- */
.bb-athlete figcaption { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.bb-rail-nav { display: flex; gap: 10px; }
.bb-fit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; }
.bb-fit select { min-height: 40px; border-radius: 999px; border: 2px solid var(--bb-line2); background: var(--bb-ivory); color: var(--bb-ink); padding: 0 14px; font: inherit; font-weight: 700; }
.bb-fit__out { font-weight: 700; color: var(--bb-purple); }
.bb-tile.is-oos { opacity: .45; }
.bb-tile.is-oos .bb-tile__add { background: var(--bb-line2); color: var(--bb-ink); cursor: not-allowed; }
.bb-tile__add[disabled] { opacity: .5; cursor: not-allowed; }
.bb-builder__error { color: #A3122A; font-weight: 700; font-size: 14px; min-height: 1.2em; }
.bb-builder .bb-btn[disabled] { opacity: .55; cursor: not-allowed; }
.bb-viewer__ph { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--bb-muted); text-align: center; padding: 24px; font-weight: 700; }
.bb-viewer__ph b { font-family: var(--bb-display); font-size: 22px; color: var(--bb-purple); }

#bb-main { overflow-x: clip; }
.bb-summary__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.bb-summary__chips:empty { display: none; }
.bb-summary__chips span { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1.5px solid var(--bb-line2); background: var(--bb-ivory); border-radius: 999px; padding: 2px 10px 2px 4px; font-size: 13px; font-weight: 700; }
.bb-summary__chips i { width: 14px; height: 14px; border-radius: 999px; border: 1px solid #CBB98F; display: inline-block; }
.bb-summary { padding: 10px 14px; gap: 6px; }
.bb-summary__line { align-items: center; font-size: 14px; }
.bb-summary__amt { font-family: var(--bb-display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--bb-ink); white-space: nowrap; }
.bb-summary .bb-nudge:empty { display: none; }
@media (max-width: 700px) {
	.bb-compare { height: auto; display: flex; flex-direction: column; }
	.bb-compare__pane { position: relative; inset: auto; clip-path: none !important; }
	.bb-compare__handle, .bb-compare input[type=range] { display: none; }
}
@media (max-width: 700px) { .bb-hide-sm { display: none; } }
[id] { scroll-margin-top: calc(var(--bb-head, 0px) + 12px); }
.bb-field input, .bb-field textarea { min-height: 48px; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--bb-line2); background: #FFFDF8; color: var(--bb-ink); font: inherit; font-weight: 400; font-size: 16px; width: 100%; }

/* Other socks vs Being Bane – side by side (stacks on small screens) */
.bb-compare { height: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; overflow: visible; border: 0; border-radius: 0; }
.bb-compare__pane { position: relative; inset: auto; clip-path: none !important; border-radius: 28px; border: 2px solid var(--bb-line); }
.bb-compare__handle, .bb-compare input[type=range] { display: none; }
/* Athletes – name and team sit on the photo, so one card shows everything */
.bb-athlete { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; background: var(--bb-purple); }
.bb-athlete__img { position: absolute; inset: 0; aspect-ratio: auto; padding-bottom: 90px; }
.bb-athlete figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; background: linear-gradient(to top, rgba(42,10,69,.92), rgba(42,10,69,0)); color: var(--bb-ivory); }
.bb-athlete figcaption .bb-muted { color: var(--bb-ivory); opacity: .85; }
.bb-athlete__img img { position: absolute; inset: 0; }

/* ---------- real photos ---------- */
.bb-tour__stage--photo { background: #F3F2F0; padding: 0; }
.bb-tour__zoom { position: relative; width: 100%; max-width: min(440px, 100%); margin: 0 auto; transition: transform .7s cubic-bezier(.3,1.1,.4,1); }
.bb-tour__zoom img { display: block; width: 100%; height: auto; border-radius: 0; }
.bb-tour__stage--photo { overflow: hidden; align-items: center; }
.bb-hot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 999px; border: 3px solid var(--bb-ivory); background: var(--bb-purple); cursor: pointer; padding: 0; box-shadow: 0 4px 14px rgba(42,10,69,.4); }
.bb-hot span { position: absolute; inset: -9px; border-radius: 999px; border: 2px solid var(--bb-gold); animation: bbHot 1.8s ease-out infinite; }
.bb-hot.is-active { background: var(--bb-gold); }
@keyframes bbHot { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.bb-studio__photo { margin: 0; border-radius: 24px; overflow: hidden; background: #F3F2F0; border: 2px solid var(--bb-line); position: relative; }
.bb-studio__photo img { display: block; width: 100%; max-height: 420px; object-fit: contain; transition: opacity .25s ease; }
.bb-studio__photo figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(251,247,238,.94); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; color: var(--bb-purple); }
@media (max-width: 700px) { .bb-studio__photo img { max-height: 300px; } }
img.bb-stretch__sock { width: min(280px, 70%); height: auto; border-radius: 22px; background: #F3F2F0; transform-origin: 50% 0; }
@media (prefers-reduced-motion: reduce) { .bb-hot span { animation: none; } .bb-tour__zoom { transition: none; } }
@media (min-width: 900px) {
	.woocommerce div.product div.images { position: sticky; top: calc(var(--bb-head, 0px) + 16px); align-self: flex-start; }
}
.woocommerce div.product div.images img { background: #F3F2F0; }
.bb-studio__photo--main img { max-height: 560px; }
@media (max-width: 700px) { .bb-studio__photo--main img { max-height: 380px; } }

/* ---------- Who wears Being Bane ---------- */
.bb-athletes { position: relative; }
.bb-athletes .bb-rail { scrollbar-width: none; padding: 4px 2px 8px; }
.bb-athletes .bb-rail::-webkit-scrollbar { display: none; }
.bb-athletes .bb-rail > * { flex: 0 0 calc((100% - 54px) / 4); }
.bb-athletes__nav { position: absolute; top: 42%; transform: translateY(-50%); z-index: 2; box-shadow: 0 4px 12px rgba(42,10,69,.25); }
.bb-athletes__nav--prev { left: -12px; } .bb-athletes__nav--next { right: -12px; }
.bb-athlete__ph { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.bb-athlete__ph small { opacity: .8; font-weight: 500; }
.bb-athletes__dots { justify-content: center; }
@media (max-width: 1000px) { .bb-athletes .bb-rail > * { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 640px) {
	.bb-athletes .bb-rail > * { flex-basis: 100%; scroll-snap-align: center; }
	.bb-athletes__nav--prev { left: 8px; } .bb-athletes__nav--next { right: 8px; }
	.bb-athlete { max-height: none; aspect-ratio: 4 / 5; }
}
/* ---------- mobile polish ---------- */
@media (max-width: 782px) {
	.bb-nav { overflow: visible; }
	.bb-nav ul { flex-wrap: wrap; justify-content: center; gap: 6px 16px; white-space: normal; }
	.bb-nav a { font-size: 12px; letter-spacing: .04em; }
	.bb-hero__logo { width: min(320px, calc(100vw - 48px)); }
	.bb-tour__zoom { max-width: 100%; }
}

/* ===================== Mobile story homepage ===================== */
.bb-story { display: none; }
.bb-story-on body { overflow: hidden; }
.bb-story-on .bb-topbar, .bb-story-on .bb-header, .bb-story-on .bb-footer, .bb-story-on #bb-main > :not(.bb-story), .bb-story-on .demo-banner { display: none !important; }
.bb-story-on .bb-story { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; height: 100dvh; max-width: 560px; margin: 0 auto; background: var(--bb-ivory); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.bb-story__top { padding: 10px 16px 6px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.bb-story__bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.bb-story__bars button { height: 16px; padding: 6px 0; border: 0; background: transparent; cursor: pointer; }
.bb-story__bars i { display: block; height: 4px; border-radius: 999px; background: var(--bb-line2); transition: background .3s; }
.bb-story__bars button.is-done i { background: var(--bb-purple); }
.bb-story__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.bb-story__logo img { height: 56px; width: auto; display: block; mix-blend-mode: multiply; }
.bb-story__logo { text-decoration: none; color: var(--bb-purple); }
.bb-story__chapter { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--bb-purple); text-align: center; white-space: nowrap; }
.bb-story__actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.bb-story__actions .bb-bag { min-height: 40px; padding: 0 12px; }
.bb-story__menu-btn { width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--bb-line2); background: var(--bb-ivory); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 0; }
.bb-story__menu-btn span { width: 16px; height: 2px; border-radius: 2px; background: var(--bb-purple); }
.bb-story__menu { position: absolute; top: 100%; right: 16px; left: 16px; z-index: 5; background: var(--bb-ivory); border: 2px solid var(--bb-line); border-radius: 20px; box-shadow: 0 16px 34px rgba(42,10,69,.18); display: flex; flex-direction: column; padding: 8px; }
.bb-story__menu a { padding: 12px 14px; font-weight: 700; color: var(--bb-ink); text-decoration: none; border-radius: 12px; }
.bb-story__menu a:hover { background: var(--bb-cream); }
.bb-story__body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 20px 12px; }
.bb-story__screen { display: flex; flex-direction: column; gap: min(14px, 1.8dvh); animation: bbStoryIn .4s ease-out; }
@keyframes bbStoryIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.bb-story__welcome { align-items: center; justify-content: center; text-align: center; min-height: 100%; gap: min(18px, 2dvh); }
.bb-story__logo-ring { position: relative; width: min(260px, 34dvh); height: min(260px, 34dvh); display: flex; align-items: center; justify-content: center; }
.bb-story__logo-ring .bb-hero__ring { inset: 0; }
.bb-story__logo-ring .bb-hero__disc { inset: 7%; }
.bb-story__logo-ring img { width: 70%; height: auto; position: relative; mix-blend-mode: multiply; animation: bbLogoIn .9s cubic-bezier(.3,1.4,.5,1); }
.bb-story__h1 { margin: 0; font-family: var(--bb-display); font-weight: 800; color: var(--bb-purple); font-size: clamp(26px, 4.6dvh, 40px); line-height: 1.05; text-transform: uppercase; }
.bb-story__h2 { margin: 0; font-family: var(--bb-display); font-weight: 800; color: var(--bb-purple); font-size: clamp(22px, 3.6dvh, 30px); line-height: 1.05; text-transform: uppercase; }
.bb-story__p { margin: 0; font-size: 15px; color: var(--bb-muted); max-width: 320px; }
.bb-story__p--left { max-width: none; font-size: 14px; }
.bb-story__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.bb-story__num { font-family: var(--bb-display); font-weight: 800; color: var(--bb-purple); white-space: nowrap; }
.bb-story__num span + span { color: #A8925F; }
.bb-story__stage { position: relative; border-radius: 24px; background: var(--bb-purple); height: min(280px, 33dvh); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.bb-story__stage svg { height: 84%; width: auto; max-width: 90%; position: relative; overflow: hidden; }
.bb-story__stage-ring { width: 240px; height: 240px; inset: auto !important; border-color: #8A4FC2 !important; border-width: 2px !important; }
.bb-story__hint { position: absolute; top: 10px; right: 14px; font-size: 11px; font-weight: 700; color: #EADFF7; }
.bb-story__info { display: flex; flex-direction: column; gap: 4px; min-height: 92px; }
.bb-story__statrow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bb-story__statrow strong { font-size: 17px; }
.bb-story__stat { font-family: var(--bb-display); font-weight: 800; color: var(--bb-purple); font-size: clamp(28px, 4.4dvh, 40px); line-height: 1; }
.bb-story__dots { justify-content: center; }
.bb-story__stage--stretch { background: var(--bb-purple); }
.bb-story__stage--stretch svg { height: min(200px, 23dvh); transform-origin: 50% 0; }
.bb-story__label { font-weight: 700; font-size: 14px; }
.bb-story__label span { color: var(--bb-purple); }
#bb-st-range { width: 100%; accent-color: var(--bb-purple); height: 36px; }
.bb-story__msg { min-height: 40px; font-weight: 700; color: var(--bb-purple); font-size: 14px; }
.bb-story__flip { height: min(112px, 14dvh); }
.bb-story__flip .bb-flip__q { font-size: clamp(16px, 2.4dvh, 20px); }
.bb-story__flip .bb-flip__a { font-size: 24px; }
.bb-story__flip .bb-flip__face { padding: 14px 18px; border-radius: 20px; font-size: 13px; }
.bb-story__tap { font-weight: 700; font-size: 13px; color: var(--bb-gold); }
.bb-story__pack { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 20px; border: 3px solid var(--bb-line2); background: var(--bb-ivory); color: var(--bb-ink); text-decoration: none; }
.bb-story__pack--best { background: var(--bb-purple); border-color: var(--bb-purple); color: var(--bb-ivory); }
.bb-story__badge { align-self: flex-start; background: var(--bb-gold); color: var(--bb-ink); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: 12px; letter-spacing: .08em; }
.bb-story__small { font-size: 12px; font-weight: 700; letter-spacing: .04em; opacity: .9; }
.bb-story__packrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bb-story__packrow b { font-family: var(--bb-display); font-size: 22px; font-weight: 800; }
.bb-story__packrow em { font-style: normal; font-family: var(--bb-display); font-weight: 800; font-size: 24px; color: var(--bb-purple); }
.bb-story__pack--best .bb-story__packrow em { color: var(--bb-gold); }
.bb-story__packrow s { opacity: .7; font-weight: 700; font-size: 14px; }
.bb-story__strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.bb-story__strip::-webkit-scrollbar { display: none; }
.bb-story__strip a { flex: 0 0 84px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--bb-ink); font-size: 11px; font-weight: 700; text-align: center; }
.bb-story__strip img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; border: 2px solid var(--bb-line); background: #F3F2F0; }
.bb-story__ath { position: relative; }
.bb-story__rail > * { flex: 0 0 100% !important; scroll-snap-align: center; }
.bb-story__rail .bb-athlete { aspect-ratio: auto; height: min(440px, 50dvh); }
.bb-story__ath .bb-athletes__nav { top: 40%; }
.bb-story__ath .bb-athletes__nav--prev { left: 8px; } .bb-story__ath .bb-athletes__nav--next { right: 8px; }
.bb-story__foot { padding: 10px 16px 14px; border-top: 1px solid var(--bb-line); background: var(--bb-ivory); display: flex; flex-direction: column; gap: 8px; }
.bb-story__teaser { text-align: center; font-size: 14px; color: var(--bb-muted); }
.bb-story__teaser:empty { display: none; }
.bb-story__navrow { display: flex; gap: 10px; }
.bb-story__back { width: 54px; height: 54px; flex-shrink: 0; }
.bb-story__next { flex: 1; min-height: 54px; justify-content: center; font-size: 17px; }
.bb-story__arrow { display: inline-block; animation: bbNudge 1.2s ease-in-out infinite; }
@keyframes bbNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .bb-story__screen, .bb-story__arrow, .bb-story__logo-ring img { animation: none; } }
[hidden] { display: none !important; }

.bb-fit__toggle { align-self: flex-start; border: 0; background: transparent; padding: 4px 0; color: var(--bb-purple); font-weight: 700; font-size: 14px; text-decoration: underline; cursor: pointer; }
.bb-fit { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--bb-cream); border: 1.5px solid var(--bb-line); }
.bb-fit__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-fit__chip { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--bb-line2); background: var(--bb-ivory); color: var(--bb-ink); font-weight: 700; font-size: 13px; cursor: pointer; }
.bb-fit__chip.is-active { background: var(--bb-purple); border-color: var(--bb-purple); color: var(--bb-ivory); }
.bb-pill--ghost { border-style: dashed; color: var(--bb-purple); }
.bb-pill--ghost.is-active { background: var(--bb-cream); color: var(--bb-purple); border-color: var(--bb-purple); }
.bb-step { scroll-margin-top: calc(var(--bb-head, 0px) + 12px); animation: bbStepIn .35s ease-out; }
@keyframes bbStepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bb-story__stage--stretch img.bb-stretch__sock { height: min(210px, 24dvh); width: auto; border-radius: 16px; background: #F3F2F0; transform-origin: 50% 0; }
.bb-builder__head { display: none; }
.bb-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-choice { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--bb-purple); background: var(--bb-cream); color: var(--bb-ink); font-weight: 500; font-size: 14px; cursor: pointer; }
.bb-choice span { color: var(--bb-purple); font-weight: 700; text-decoration: underline; font-size: 13px; }
@media (max-width: 760px) {
	.bb-has-builder div.product div.images, .bb-has-builder div.product .product_title, .bb-has-builder div.product p.price, .bb-has-builder .woocommerce-product-details__short-description, .bb-has-builder .woocommerce-breadcrumb { display: none !important; }
	.bb-has-builder .bb-builder { margin-top: 0; }
	.bb-builder__head { display: flex; flex-direction: column; gap: 2px; }
	.bb-has-builder .bb-page { padding-top: 16px; }
}
@media (max-width: 760px) { .bb-has-builder .bb-builder { min-height: calc(100dvh - var(--bb-head, 0px) - 32px); } }
.bb-athlete__img img { object-fit: cover; object-position: 50% 75%; }

/* ---------- athlete cards: whole photo visible, name below it ---------- */
.bb-athlete { position: relative; aspect-ratio: auto !important; max-height: none !important; height: auto; display: flex; flex-direction: column; background: var(--bb-ivory); border: 2px solid var(--bb-line); }
.bb-athlete__img { position: relative !important; inset: auto !important; aspect-ratio: 4 / 5; padding: 0 !important; background: var(--bb-purple); overflow: hidden; }
.bb-athlete__img img { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50% !important; }
.bb-athlete__ph { position: absolute; inset: 0; justify-content: center; }
.bb-athlete figcaption { position: static !important; padding: 12px 16px 14px !important; background: var(--bb-ivory) !important; color: var(--bb-ink) !important; display: flex; flex-direction: column; gap: 2px; }
.bb-athlete figcaption .bb-small { color: var(--bb-muted); }
.bb-athlete figcaption em { color: var(--bb-purple); }
/* mobile story: the photo takes the free height, keeps its 4:5 shape, nothing is cut */
.bb-story__rail .bb-athlete { height: auto !important; border: 0; background: transparent; align-items: center; }
.bb-story__rail .bb-athlete__img { height: max(240px, calc(100dvh - 380px)); width: auto; max-width: 100%; border-radius: 22px; }
.bb-story__rail .bb-athlete figcaption { align-self: stretch; text-align: center; background: transparent !important; padding: 10px 8px 0 !important; }
.bb-story__ath .bb-athletes__nav { top: calc((100dvh - 380px) / 2); }

/* ---------- anatomy with the real single sock ---------- */
.bb-tour__stage--sock, .bb-story__stage--sock { background: radial-gradient(circle at 50% 45%, #FFFDF8 0, #F3EBDB 70%); border: 2px solid var(--bb-line); }
.bb-anat { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; }
.bb-tour__stage--sock .bb-anat { height: min(440px, 60vh); }
.bb-anat__in { position: relative; height: 92%; aspect-ratio: 554 / 720; max-width: 100%; transition: transform .6s cubic-bezier(.3,1.1,.4,1); }
.bb-anat__in img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(42,10,69,.25)); }
.bb-story__stage--sock .bb-hot { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
@media (prefers-reduced-motion: reduce) { .bb-anat__in { transition: none; } }
@media (max-width: 760px) {
	.bb-builder .bb-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.bb-builder .bb-pill { min-width: 0; padding: 0 8px; }
	.bb-fit__chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: 100%; }
	.bb-fit__chip { padding: 0 4px; min-height: 38px; font-size: 12px; }
	.bb-fit { padding: 10px 12px; }
	.bb-builder { gap: 14px; }
}

/* ---------- Story on every screen size + one-step-per-screen product flow ---------- */
@media (min-width: 761px) {
	.bb-story-on body { background: var(--bb-cream, #F3EBDB); }
	.bb-story-on .bb-story { max-width: 760px; box-shadow: 0 0 0 1px var(--bb-line), 0 30px 80px rgba(42,10,69,.12); }
	.bb-story__body { padding: 10px 40px 16px; }
	.bb-story__top { padding: 14px 40px 8px; }
	.bb-story__foot { padding: 12px 40px 18px; }
	.bb-story__p { max-width: 460px; font-size: 16px; }
	.bb-story__stage { height: min(360px, 40dvh); }
	.bb-story__flip { height: min(120px, 15dvh); }
}
.bb-story__menu button { padding: 12px 14px; font: inherit; font-weight: 700; color: var(--bb-purple); text-align: left; background: transparent; border: 0; border-radius: 12px; cursor: pointer; }
.bb-story__menu button:hover { background: var(--bb-cream); }
.bb-story__menu-small { display: flex; gap: 4px; flex-wrap: wrap; border-top: 1px solid var(--bb-line); margin-top: 4px; padding-top: 4px; }
.bb-story__menu-small a { font-size: 13px; padding: 8px 12px; color: var(--bb-muted); }

.bb-flow-on .bb-has-builder div.product div.images, .bb-flow-on .bb-has-builder div.product .product_title, .bb-flow-on .bb-has-builder div.product p.price,
.bb-flow-on .bb-has-builder .woocommerce-product-details__short-description, .bb-flow-on .bb-has-builder .woocommerce-breadcrumb,
.bb-flow-on .bb-has-builder .woocommerce-tabs, .bb-flow-on .bb-has-builder .related, .bb-flow-on .bb-has-builder .upsells, .bb-flow-on .bb-has-builder .product_meta { display: none !important; }
.bb-flow-on .bb-has-builder div.product div.summary { float: none !important; width: 100% !important; max-width: 720px; margin: 0 auto !important; }
.bb-flow-on .bb-has-builder .bb-page { padding-top: 16px; }
.bb-flow-on .bb-has-builder .bb-builder { margin: 0; gap: 16px; min-height: 0 !important; padding-bottom: 96px; }
.bb-flow-on .bb-footer { display: none; }
.bb-builder__head { display: flex !important; flex-direction: column; gap: 8px; }
.bb-flow__bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.bb-flow__bars i { display: block; height: 4px; border-radius: 999px; background: var(--bb-line2); transition: background .3s; }
.bb-flow__bars i.is-done { background: var(--bb-purple); }
.bb-flow__h { margin: 0; font-family: var(--bb-display); font-weight: 800; color: var(--bb-purple); font-size: clamp(24px, 3.4vw, 34px); line-height: 1.05; text-transform: uppercase; }
.bb-builder .bb-step { gap: 14px; }
.bb-flow__nav { display: flex; gap: 10px; position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(720px, 100%); z-index: 30; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--bb-ivory); border-top: 1px solid var(--bb-line); box-sizing: border-box; }
.bb-flow__back { width: 54px; height: 54px; flex-shrink: 0; }
.bb-flow__nav .bb-flow__next { flex: 1; min-height: 54px; justify-content: center; font-size: 17px; }

.bb-lengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bb-length { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 16px; border-radius: 20px; border: 2px solid var(--bb-line2); background: var(--bb-ivory); color: var(--bb-ink); font: inherit; text-align: center; cursor: pointer; transition: border-color .2s, transform .2s; }
.bb-length:not(:disabled):hover { border-color: var(--bb-purple); transform: translateY(-2px); }
.bb-length__img { display: block; width: 100%; aspect-ratio: 360 / 510; max-height: min(260px, 29dvh); border-radius: 14px; overflow: hidden; background: #F3F2F0; margin-bottom: 6px; }
.bb-length__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bb-length.is-soon { opacity: 1; }
.bb-length b { font-family: var(--bb-display); font-weight: 800; color: var(--bb-purple); font-size: clamp(14px, 2vw, 18px); line-height: 1.1; }
.bb-length small { font-size: 12px; color: var(--bb-muted); }
.bb-length em { font-style: normal; font-family: var(--bb-display); font-weight: 800; color: var(--bb-purple); font-size: 18px; }
.bb-length em span { font-family: var(--bb-body, inherit); font-size: 12px; font-weight: 500; color: var(--bb-muted); }
.bb-length.is-active { border-color: var(--bb-purple); background: var(--bb-cream); box-shadow: 0 0 0 2px var(--bb-purple) inset; }
.bb-length.is-soon { cursor: not-allowed; }
.bb-length.is-soon b { color: #8C8070; }
.bb-length .bb-length__soon { font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bb-ink); background: var(--bb-gold); border-radius: 999px; padding: 3px 10px; margin-top: 2px; }

.bb-offers { display: flex; flex-direction: column; gap: 12px; }
.bb-offer { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 18px 20px; border-radius: 22px; border: 3px solid var(--bb-line2); background: var(--bb-ivory); color: var(--bb-ink); font: inherit; text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.bb-offer:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(42,10,69,.14); }
.bb-offer--best { background: var(--bb-purple); border-color: var(--bb-purple); color: var(--bb-ivory); }
.bb-offer.is-active { box-shadow: 0 0 0 3px var(--bb-gold); }
.bb-offer__badge { align-self: flex-start; background: var(--bb-gold); color: var(--bb-ink); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: 12px; letter-spacing: .08em; }
.bb-offer__small { font-size: 13px; font-weight: 700; letter-spacing: .04em; opacity: .92; }
.bb-offer__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bb-offer__row b { font-family: var(--bb-display); font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.bb-offer__row em { font-style: normal; font-family: var(--bb-display); font-weight: 800; font-size: clamp(24px, 3.2vw, 32px); color: var(--bb-purple); }
.bb-offer--best .bb-offer__row em { color: var(--bb-gold); }
.bb-offer__row s { opacity: .7; font-weight: 700; font-size: 14px; }
@media (min-width: 761px) { .bb-builder .bb-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .bb-builder .bb-pill { min-height: 56px; font-size: 17px; } }
@media (max-width: 760px) {
	.bb-length__img { max-height: min(170px, 20dvh); }
	.bb-length { padding: 10px 6px 12px; }
	.bb-offer { padding: 14px 16px; gap: 4px; }
	.bb-offers { gap: 10px; }
	.bb-flow-on .bb-has-builder .bb-builder { gap: 12px; }
}
.bb-flow-on .bb-topbar { display: none; }
@media (max-width: 760px) { .bb-flow-on .bb-header .bb-nav { display: none; } .bb-flow-on .bb-logo img { max-height: 48px; width: auto; } }

/* 360° photo spin (viewer's last tab) */
.bb-spin { position: absolute; inset: 16px; border-radius: 22px; background: #EFEFEE; overflow: hidden; display: flex; align-items: center; justify-content: center; padding-bottom: 58px; box-sizing: border-box; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.bb-spin.is-drag { cursor: grabbing; }
.bb-spin__stack { position: relative; height: 100%; max-width: 100%; aspect-ratio: 720 / 640; will-change: transform; }
.bb-spin__stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.bb-spin__hint { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(83,19,133,.9); color: #FBF7EE; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; transition: opacity .4s; pointer-events: none; }

/* Real 3D sock (model-viewer) in the full-screen viewer */
.bb-model { position: absolute; inset: 16px; border-radius: 22px; background: radial-gradient(circle at 50% 40%, #FBFBFA 0, #EFEFEE 72%); overflow: hidden; }
.bb-model model-viewer { display: block; width: 100%; height: 100%; --poster-color: transparent; }
.bb-model > .bb-3d { position: absolute; inset: 0; border: 0; border-radius: 0; height: 100%; }
.bb-model__load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6B5E7A; font-weight: 700; font-size: 14px; pointer-events: none; }
.bb-model .bb-spin__hint { animation: bbHintOut .5s 4s forwards; }
@keyframes bbHintOut { to { opacity: 0; } }
