/* ==========================================================================
   BESPOKE SPORT · Product page styling
   --------------------------------------------------------------------------
   Drop-in CSS for the Astra theme + WooCommerce.
   Targets: body.single-product (any /product/* page).

   Where to paste this:
     Appearance ▸ Customize ▸ Additional CSS
     - OR -
     wp-content/themes/astra-child/style.css

   This stylesheet is intentionally heavy with !important rules because
   Astra ships with high-specificity defaults. Remove !important once
   you're confident a rule isn't being overridden.

   Author: Bespoke Sport redesign
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. DESIGN TOKENS  (match the customiser)
   -------------------------------------------------------------------------- */
:root {
  --bs-ink:        #0E0E10;   /* page background */
  --bs-deep:       #050505;   /* deeper sections (description, footer-adj) */
  --bs-panel:      #141417;   /* card / panel surface */
  --bs-panel-2:    #1A1A1E;   /* nested panel */
  --bs-mint:       #7FECB8;   /* accent — matches customiser */
  --bs-mint-soft:  rgba(127,236,184,0.10);
  --bs-cream:      #F2EFE9;
  --bs-text:       rgba(255,255,255,0.85);
  --bs-muted:      rgba(255,255,255,0.55);
  --bs-line:       rgba(255,255,255,0.10);
  --bs-font-ui:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --bs-font-mono:  'JetBrains Mono', SFMono-Regular, ui-monospace, monospace;
}

/* Inter and JetBrains Mono are declared on every page from the plugin's own
   files (includes/customiser-global-fonts.php, 29 Oct 2026). The Google
   @import that sat here was below other rules, so browsers ignored it. */


/* --------------------------------------------------------------------------
   2. GLOBAL — make the whole single-product page dark
   -------------------------------------------------------------------------- */
body.single-product,
body.single-product .site,
body.single-product .site-content,
body.single-product .ast-container,
body.single-product #primary,
body.single-product .entry-content,
body.single-product .content-area,
body.single-product .single-product-page-layout {
  background: var(--bs-ink) !important;
  color: var(--bs-text) !important;
  font-family: var(--bs-font-ui) !important;
}

/* The "boxed" white box Astra wraps around content */
body.single-product .ast-article-single,
body.single-product article.product {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
}

/* Default text */
body.single-product .entry-content p,
body.single-product .entry-content li {
  color: var(--bs-text) !important;
  font-family: var(--bs-font-ui) !important;
}

/* Hyperlinks — mint by default everywhere on the customisable product
   page (not just inside .entry-content). Caveat-out the elements that
   set their own colour (breadcrumb, related-product card link, the
   customiser's own internal links). */
body.single-product .bespoke-single-product a,
body.single-product .entry-content a,
body.single-product .woocommerce-product-details__short-description a,
body.single-product .woocommerce-tabs a {
  color: var(--bs-mint) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1px !important;
  border-bottom: 0 !important;
}
body.single-product .bespoke-single-product a:hover,
body.single-product .entry-content a:hover,
body.single-product .woocommerce-product-details__short-description a:hover,
body.single-product .woocommerce-tabs a:hover {
  color: #fff !important;
  text-decoration-color: var(--bs-mint) !important;
}
/* Don't underline the related-product card link (it's a whole card) */
body.single-product .related .product a,
body.single-product .up-sells .product a {
  text-decoration: none !important;
  color: inherit !important;
}


/* --------------------------------------------------------------------------
   3. HIDE THE EMPTY GALLERY BLOCK above the customiser
   -------------------------------------------------------------------------- */
/* Hide the standard WC product gallery ONLY on customiser products —
   the configurator UI replaces the gallery there. Pre-designed
   products (Wales captain, Brampton, etc.) are standard variable
   products that NEED the gallery, so they keep it.
   The `bespoke-customiser-product` body class is added by
   bespoke_wc_customiser_product_body_class() in customiser-
   woocommerce.php whenever the product has a `_bespoke_product_type`
   meta set. */
body.bespoke-customiser-product .woocommerce-product-gallery,
body.bespoke-customiser-product .single-product-thumbnails,
body.bespoke-customiser-product .ast-woocommerce-container .product > .images {
  display: none !important;
}


/* --------------------------------------------------------------------------
   4. TITLE + PRICE area (the "summary")
   -------------------------------------------------------------------------- */
body.single-product .product_title,
body.single-product .entry-title {
  font-family: var(--bs-font-ui) !important;
  font-weight: 800 !important;
  font-size: clamp(36px, 4vw, 64px) !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
  color: #fff !important;
  margin: 0 0 12px !important;
}

/* The £ price */
body.single-product .summary .price,
body.single-product p.price,
body.single-product .woocommerce-Price-amount,
body.single-product .woocommerce-Price-amount.amount {
  font-family: var(--bs-font-ui) !important;
  font-weight: 800 !important;
  color: #fff !important;
  font-size: 48px !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  background: transparent !important;
}

/* Decimal / pence */
body.single-product .woocommerce-Price-amount bdi {
  color: #fff !important;
}

/* Stock indicator */
body.single-product .stock {
  font-family: var(--bs-font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--bs-mint) !important;
}


/* --------------------------------------------------------------------------
   5. LEAD-TIME NOTICE  (replaces the screaming red paragraph)
   --------------------------------------------------------------------------
   Astra usually puts the short description in:
       .woocommerce-product-details__short-description
   The red text is wrapped in inline <span style="color: red"> tags.
   We override those AND restyle the container as a notice card. */

body.single-product .woocommerce-product-details__short-description {
  background: var(--bs-panel) !important;
  border-radius: 8px !important;
  padding: 24px 28px !important;
  margin: 32px 0 24px !important;
  border-left: 4px solid var(--bs-mint) !important;
  position: relative;
}

/* Kill the inline-red emergency notice and re-style it */
body.single-product .woocommerce-product-details__short-description span[style*="color"],
body.single-product .woocommerce-product-details__short-description strong[style*="color"],
body.single-product .woocommerce-product-details__short-description font[color] {
  color: #fff !important;
  background: transparent !important;
  font-weight: 500 !important;
}

body.single-product .woocommerce-product-details__short-description p {
  font-family: var(--bs-font-ui) !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  color: var(--bs-text) !important;
  text-align: left !important;
  margin: 0 0 12px !important;
  text-transform: none !important;
}
body.single-product .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0 !important;
}

/* The dimension lines underneath (Small – 9cm(w) x 14cm(h)) — center-aligned in current
   build; left-align and tidy spacing. */
body.single-product .woocommerce-product-details__short-description p:nth-of-type(n+2) {
  font-family: var(--bs-font-mono) !important;
  font-size: 14px !important;
  color: var(--bs-text) !important;
}


/* --------------------------------------------------------------------------
   6. WOOCOMMERCE TABS  (Description / Additional info / Reviews)
   -------------------------------------------------------------------------- */
body.single-product .woocommerce-tabs {
  background: var(--bs-deep) !important;
  border-top: 1px solid var(--bs-line) !important;

  /* Modern full-bleed: works whether the tabs sit inside a wide
     customiser shell OR inside a 46%-wide WC summary column. The
     old `-9999px margin + 9999px padding` trick collapsed the
     content area to ~1 character wide inside a narrow column,
     which made every letter wrap to its own line on pre-designed
     products like /product/wales-captain-armband/.

     This breaks out of any parent and runs edge-to-edge of the
     viewport — same visual effect, none of the math overflow. */
  position: relative !important;
  width: 100vw !important;
  max-width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin: 56px -50vw 0 !important;
  padding: 64px max(48px, calc((100vw - 1200px) / 2)) !important;
  box-sizing: border-box !important;
}

/* The tab strip itself */
body.single-product .woocommerce-tabs ul.tabs.wc-tabs,
body.single-product .woocommerce-tabs ul.tabs {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--bs-line) !important;
  padding: 0 !important;
  margin: 0 0 40px !important;
  display: flex !important;
}

/* Hide the underline-decoration ::before / ::after pseudo-bars Astra adds */
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 18px 28px !important;
  font-family: var(--bs-font-ui) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  color: var(--bs-muted) !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -1px !important;
  transition: color 0.2s ease, border-color 0.2s ease;
}

body.single-product .woocommerce-tabs ul.tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--bs-mint) !important;
  border-bottom-color: var(--bs-mint) !important;
}

/* Tab panel body */
body.single-product .woocommerce-tabs .panel,
body.single-product .woocommerce-tabs .wc-tab {
  background: transparent !important;
  padding: 0 !important;
}

body.single-product .woocommerce-tabs .panel h2,
body.single-product .woocommerce-tabs .wc-tab h2 {
  display: none !important; /* the "Description" h2 — tab label already says it */
}

body.single-product .woocommerce-tabs .panel p,
body.single-product .woocommerce-tabs .wc-tab p {
  font-family: var(--bs-font-ui) !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  color: var(--bs-text) !important;
  max-width: 760px !important;
  margin: 0 0 18px !important;
}

body.single-product .woocommerce-tabs .panel strong,
body.single-product .woocommerce-tabs .wc-tab strong {
  color: #fff !important;
}


/* --------------------------------------------------------------------------
   7. ADD-TO-CART button + quantity
   -------------------------------------------------------------------------- */
body.single-product .single_add_to_cart_button,
body.single-product button.alt,
body.single-product .button.alt,
/* Stronger than the brand base's black ".woocommerce div.product form.cart
   .button", which left Add to basket dark on the products without the
   customiser — pre-designed armbands, mugs (Nick, launch day 29 Oct 2026). */
body.single-product.woocommerce div.product form.cart .single_add_to_cart_button {
  background: var(--bs-mint) !important;
  color: var(--bs-ink) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 16px 32px !important;
  font-family: var(--bs-font-ui) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  transition: filter 0.2s;
  box-shadow: none !important;
}
body.single-product .single_add_to_cart_button:hover,
body.single-product.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: var(--bs-mint) !important;
  color: var(--bs-ink) !important;
  filter: brightness(1.08) !important;
}

body.single-product .quantity input.qty {
  background: var(--bs-panel) !important;
  border: 1px solid var(--bs-line) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 14px 12px !important;
  font-family: var(--bs-font-mono) !important;
  font-size: 14px !important;
}


/* --------------------------------------------------------------------------
   8. PRODUCT META  (SKU / categories)
   -------------------------------------------------------------------------- */
body.single-product .product_meta {
  border-top: 1px solid var(--bs-line) !important;
  padding-top: 20px !important;
  margin-top: 32px !important;
  font-family: var(--bs-font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--bs-muted) !important;
}
body.single-product .product_meta a {
  color: var(--bs-text) !important;
  border-bottom: 1px solid var(--bs-line) !important;
}


/* --------------------------------------------------------------------------
   9. RELATED / UPSELL grid
   -------------------------------------------------------------------------- */
body.single-product .related.products,
body.single-product .up-sells.upsells {
  background: var(--bs-ink) !important;
  padding: 80px 0 !important;
  margin: 0 -9999px !important;
  padding-left: 9999px !important;
  padding-right: 9999px !important;
  border-top: 1px solid var(--bs-line) !important;
}

body.single-product .related.products > h2,
body.single-product .up-sells > h2 {
  font-family: var(--bs-font-ui) !important;
  font-weight: 800 !important;
  font-size: 36px !important;
  letter-spacing: -0.01em !important;
  color: #fff !important;
  margin: 0 0 32px !important;
}

body.single-product .related .product,
body.single-product .up-sells .product {
  background: var(--bs-panel) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid var(--bs-line) !important;
  padding: 16px !important;
}

body.single-product .related .product .woocommerce-loop-product__title,
body.single-product .up-sells .product .woocommerce-loop-product__title {
  color: #fff !important;
  font-family: var(--bs-font-ui) !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  padding: 12px 0 6px !important;
}

body.single-product .related .product .price,
body.single-product .up-sells .product .price {
  color: var(--bs-text) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* Related-grid "Customise" button — mint pill, matches the brand
   accent and the main add-to-cart button styling. */
body.single-product .related .product .button,
body.single-product .related .product a.button,
body.single-product .related .product .add_to_cart_button,
body.single-product .up-sells .product .button,
body.single-product .up-sells .product a.button,
body.single-product .up-sells .product .add_to_cart_button {
  background: var(--bs-mint) !important;
  color: var(--bs-ink) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 9px 18px !important;
  font-family: var(--bs-font-ui) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  margin-top: 10px !important;
  display: inline-block !important;
  transition: filter 0.2s !important;
}
body.single-product .related .product .button:hover,
body.single-product .up-sells .product .button:hover {
  filter: brightness(1.08) !important;
  color: var(--bs-ink) !important;
}


/* --------------------------------------------------------------------------
   10. FORMS  (used by the customiser fallback / cart fields)
   -------------------------------------------------------------------------- */
body.single-product input[type="text"],
body.single-product input[type="email"],
body.single-product input[type="number"],
body.single-product input[type="file"],
body.single-product textarea,
body.single-product select {
  background: var(--bs-panel) !important;
  color: #fff !important;
  border: 1px solid var(--bs-line) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-family: var(--bs-font-ui) !important;
  font-size: 14px !important;
}

body.single-product input:focus,
body.single-product textarea:focus,
body.single-product select:focus {
  border-color: var(--bs-mint) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 3px var(--bs-mint-soft) !important;
}

body.single-product label {
  font-family: var(--bs-font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--bs-muted) !important;
}


/* --------------------------------------------------------------------------
   11. WOOCOMMERCE NOTICES (cart messages, errors, success)
   -------------------------------------------------------------------------- */
body.single-product .woocommerce-message,
body.single-product .woocommerce-info,
body.single-product .woocommerce-error {
  background: var(--bs-panel) !important;
  color: #fff !important;
  border: 0 !important;
  border-left: 4px solid var(--bs-mint) !important;
  border-radius: 6px !important;
  padding: 16px 20px !important;
  font-family: var(--bs-font-ui) !important;
}
body.single-product .woocommerce-error {
  border-left-color: #E66467 !important;
}
body.single-product .woocommerce-message::before,
body.single-product .woocommerce-info::before {
  color: var(--bs-mint) !important;
}


/* --------------------------------------------------------------------------
   12. MOBILE TUNING
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  body.single-product .product_title,
  body.single-product .entry-title { font-size: 36px !important; }
  body.single-product .summary .price,
  body.single-product p.price { font-size: 36px !important; }
  body.single-product .woocommerce-tabs ul.tabs li a { padding: 14px 16px !important; font-size: 13px !important; }
  body.single-product .woocommerce-product-details__short-description { padding: 18px 20px !important; }

  /* Related products — drop to 2 explicit-width flex columns. Grid was
     leaving the first cell empty because Astra ships its own
     :first-child / .product.first rules that don't translate cleanly
     into grid placement. Flex with explicit calc(50% - 6px) widths
     and a wrap parent can't produce empty cells regardless of what
     Astra is doing underneath. */
  body.single-product .related ul.products,
  body.single-product .up-sells ul.products,
  body.single-product .related .products,
  body.single-product .up-sells .products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }
  /* Astra (and Astra parent themes) inject ::before { content: " ";
     display: table; } on ul.products as a legacy float-clearfix. Inside
     a flex container that pseudo becomes a real flex item, stealing the
     first gap slot — every product then sits 12px to the right of where
     it should, and one item gets bumped off each row. Killing the
     pseudo's content removes the ghost flex item entirely. */
  body.single-product .related ul.products::before,
  body.single-product .related ul.products::after,
  body.single-product .up-sells ul.products::before,
  body.single-product .up-sells ul.products::after,
  body.single-product .related .products::before,
  body.single-product .related .products::after,
  body.single-product .up-sells .products::before,
  body.single-product .up-sells .products::after {
    content: none !important;
    display: none !important;
  }
  body.single-product .related ul.products li.product,
  body.single-product .related ul.products li.product.first,
  body.single-product .related ul.products li.product:first-child,
  body.single-product .related ul.products li.product:nth-child(2n+1),
  body.single-product .related ul.products li.product:last-child,
  body.single-product .up-sells ul.products li.product,
  body.single-product .up-sells ul.products li.product.first,
  body.single-product .up-sells ul.products li.product:first-child,
  body.single-product .up-sells ul.products li.product:nth-child(2n+1),
  body.single-product .up-sells ul.products li.product:last-child,
  body.single-product .related .product,
  body.single-product .up-sells .product {
    /* flex: 0 0 (no shrink) so the calculated width is honoured exactly —
       prevents the row from over-flowing and pushing the 2nd item down */
    flex: 0 0 calc(50% - 6px) !important;
    width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    min-width: 0 !important;
    /* Kill Astra's margin-right: 20px which otherwise adds to our 12px
       gap and makes each item effectively wider than 50%, forcing item 2
       onto a new row. */
    margin: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 12px !important;
    float: none !important;
    clear: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
  }
  body.single-product .related .product .woocommerce-loop-product__title,
  body.single-product .related .product h2.woocommerce-loop-product__title,
  body.single-product .up-sells .product .woocommerce-loop-product__title,
  body.single-product .up-sells .product h2.woocommerce-loop-product__title {
    font-size: 14px !important;
    padding: 10px 0 6px !important;
    line-height: 1.25 !important;
  }
  /* Prices in the related grid — override the master .woocommerce-Price-amount
     48px rule (sections 4) which otherwise wins specificity here and renders
     each £xx.xx as huge display text. Cover .price, .amount, and the <bdi>
     wrapper that WC drops around the value. */
  body.single-product .related .product .price,
  body.single-product .related .product .price .woocommerce-Price-amount,
  body.single-product .related .product .price .woocommerce-Price-amount bdi,
  body.single-product .related .product .woocommerce-Price-amount,
  body.single-product .related .product .woocommerce-Price-amount bdi,
  body.single-product .up-sells .product .price,
  body.single-product .up-sells .product .price .woocommerce-Price-amount,
  body.single-product .up-sells .product .price .woocommerce-Price-amount bdi,
  body.single-product .up-sells .product .woocommerce-Price-amount,
  body.single-product .up-sells .product .woocommerce-Price-amount bdi {
    font-size: 16px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
  }
  /* Constrain product image so the card stays compact */
  body.single-product .related .product img,
  body.single-product .up-sells .product img {
    max-height: 140px !important;
    height: auto !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 4px !important;
  }
  body.single-product .related.products > h2,
  body.single-product .up-sells > h2 {
    font-size: 24px !important;
    margin: 0 0 18px !important;
  }
}


/* --------------------------------------------------------------------------
   12b. CUSTOM SINGLE-PRODUCT TEMPLATE LAYOUT
   --------------------------------------------------------------------------
   Layout containers used by templates/single-product-bespoke.php. The
   class names (.bs-*) intentionally don't collide with WC / Astra / Elementor
   so nothing leaks into other pages. */

body.single-product .bespoke-single-product {
  background: var(--bs-ink) !important;
  color: var(--bs-text) !important;
  font-family: var(--bs-font-ui) !important;
  padding: 0 !important;
}
body.single-product .bs-shell {
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 0 56px !important;
}

/* Breadcrumb */
body.single-product .bs-breadcrumb {
  padding: 20px 0 !important;
  border-bottom: 1px solid var(--bs-line) !important;
  font-family: var(--bs-font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--bs-muted) !important;
}
body.single-product .bs-breadcrumb a {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
}
body.single-product .bs-breadcrumb a:hover {
  color: var(--bs-mint) !important;
}
body.single-product .bs-breadcrumb .sep {
  margin: 0 14px !important;
  color: rgba(255,255,255,0.3) !important;
}

/* Hero — eyebrow + title + subtitle on the left, price + suffix on the right */
body.single-product .bs-hero {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 40px !important;
  align-items: start !important;
  padding: 48px 0 32px !important;
}
body.single-product .bs-hero__left {
  text-align: left !important;
}
body.single-product .bs-hero__right {
  text-align: right !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 4px !important;
}
body.single-product .bs-hero__right .bs-from {
  font-family: var(--bs-font-mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--bs-muted) !important;
  margin-bottom: 4px !important;
}
body.single-product .bs-hero__right .price {
  margin: 0 !important;
  text-align: right !important;
}

/* Customiser wrapper just adds some vertical breathing room */
body.single-product .bs-customiser-wrap {
  margin: 24px 0 0 !important;
}

/* Ticker / marquee directly under the customiser. Mirrors the homepage
   marquee styling but scoped to the product page + made full-bleed via
   the 50vw break-out trick so the green strip spans edge-to-edge even
   though it sits inside .bs-shell. */
body.single-product #bespoke-marquee {
  background: #5DCAA5 !important;
  overflow: hidden !important;
  padding: 22px 0 !important;
  border-top: 1px solid rgba(255,255,255,0.18) !important;
  border-bottom: 1px solid rgba(255,255,255,0.18) !important;
  position: relative !important;
  z-index: 5 !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  display: block !important;
}
body.single-product #bespoke-marquee .bespoke-marquee-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  animation: bespoke-marquee-scroll 45s linear infinite !important;
  width: max-content !important;
}
body.single-product #bespoke-marquee .bespoke-marquee-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 48px !important;
  font-family: 'Anton', sans-serif !important;
  font-size: 28px !important;
  letter-spacing: 0.04em !important;
  color: #04342C !important;
  white-space: nowrap !important;
  padding: 0 0 0 48px !important;
  text-transform: uppercase !important;
}
body.single-product #bespoke-marquee .bespoke-marquee-dot {
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  background: #04342C !important;
  border-radius: 50% !important;
  opacity: 0.5 !important;
  flex-shrink: 0 !important;
  font-size: 0 !important;
}
@keyframes bespoke-marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* Tabs + at-a-glance side-by-side */
body.single-product .bs-tabs-grid {
  display: grid !important;
  /* minmax(0, ...) rather than bare fr. A bare fr column will not shrink
     below its content, so a single over-wide child blows out the whole
     grid - which is how the 100vw tabs pushed the sidebar off-screen. */
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
  gap: 56px !important;
  align-items: start !important;
  padding: 32px 0 !important;
}
body.single-product .bs-tabs-grid .woocommerce-tabs {
  /* Undo section 6 inside the grid, where the tabs must NOT be full-bleed.

     Zeroing the margins alone was not enough, and it broke every product
     page that has this grid (found 12 Sep 2026). Section 6 does full-bleed
     with FOUR properties that only work together: position relative,
     left 50% to push the tabs right by half their parent, width 100vw, and
     a -50vw margin to pull them back. This override removed the pull-back
     and kept the push and the width. So inside the grid the tabs stayed a
     whole viewport wide and sat shoved right by half their column: on
     desktop that blew the 2fr column out to the full screen width and
     pushed the At a glance sidebar off-screen, and on a phone it cut off
     the right half of every line of the description. Reset all of them. */
  width: auto !important;
  max-width: none !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-top: 0 !important;
}

@media (max-width: 900px) {
  body.single-product .bs-shell { padding: 0 20px !important; }
  body.single-product .bs-hero { grid-template-columns: 1fr !important; gap: 16px !important; }
  body.single-product .bs-hero__right { align-items: flex-start !important; text-align: left !important; }
  body.single-product .bs-hero__right .price { text-align: left !important; }
  body.single-product .bs-tabs-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; }
}


/* --------------------------------------------------------------------------
   13. EYEBROW · SUBTITLE · PRICE SUFFIX  (content shortcodes)
   -------------------------------------------------------------------------- */
body.single-product .bs-eyebrow {
  font-family: var(--bs-font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--bs-mint) !important;
  margin: 0 0 14px !important;
}
body.single-product .bs-subtitle {
  font-family: var(--bs-font-ui) !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
  color: var(--bs-text) !important;
  max-width: 640px !important;
  margin: 12px 0 28px !important;
}
body.single-product .bs-price-suffix {
  font-family: var(--bs-font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--bs-muted) !important;
  margin-top: 8px !important;
}


/* --------------------------------------------------------------------------
   14. SIZING CHART  (the "How they measure up" block)
   -------------------------------------------------------------------------- */
body.single-product .bs-sizing-chart {
  margin: 64px 0 !important;
  padding: 40px 0 !important;
  border-top: 1px solid var(--bs-line) !important;
}
body.single-product .bs-sizing-chart__head {
  font-family: var(--bs-font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--bs-mint) !important;
  margin: 0 0 14px !important;
}
body.single-product .bs-sizing-chart__topline {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-bottom: 28px !important;
}
body.single-product .bs-sizing-chart__title {
  font-family: var(--bs-font-ui) !important;
  font-weight: 800 !important;
  font-size: clamp(28px, 3vw, 44px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.01em !important;
  color: #fff !important;
  margin: 0 !important;
}
body.single-product .bs-sizing-chart__caption {
  font-family: var(--bs-font-ui) !important;
  font-size: 13px !important;
  color: var(--bs-muted) !important;
  max-width: 320px !important;
  text-align: right !important;
  margin: 0 !important;
}
/* The table is sized like the At a glance box, not like a headline.
   It used to scale with the window - 36px text, 80px size pills, 124px rows,
   stretched 1313px wide on a desktop - so four sock sizes took 770px of page.
   Now it is capped at 640px, with 15px text and 34px pills.

   The scroll wrapper is a safety net: values never wrap (so "Age 5-8" stays on
   one line), and on a phone a chart with long values scrolls sideways inside
   its own box instead of being clipped by the page's overflow-x: hidden. */
body.single-product .bs-sizing-chart__scroll {
  overflow-x: auto !important;
  max-width: 640px !important;
}
body.single-product .bs-sizing-chart__table {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  font-family: var(--bs-font-ui) !important;
}
/* Astra boxes every table cell in; only the rule under each row is wanted. */
body.single-product .bs-sizing-chart__table th,
body.single-product .bs-sizing-chart__table td {
  border: 0 !important;
  border-bottom: 1px solid var(--bs-line) !important;
  background: transparent !important;
}
body.single-product .bs-sizing-chart__table th {
  font-family: var(--bs-font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--bs-muted) !important;
  text-align: left !important;
  vertical-align: bottom !important;
  /* A long heading wraps as "DIMENSIONS / (W × H)", not "DIMENSIONS (W / × H)" */
  text-wrap: balance !important;
  padding: 0 16px 10px 0 !important;
  font-weight: 500 !important;
}
body.single-product .bs-sizing-chart__table td {
  padding: 10px 16px 10px 0 !important;
  color: var(--bs-text) !important;
  font-size: 15px !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}
body.single-product .bs-sizing-chart__table th:last-child,
body.single-product .bs-sizing-chart__table td:last-child {
  text-align: right !important;
  padding-right: 0 !important;
}
body.single-product .bs-sizing-chart__table td:last-child {
  font-family: var(--bs-font-mono) !important;
  font-size: 14px !important;
}
body.single-product .bs-sizing-chart__table tr:last-child td {
  border-bottom: 0 !important;
}
body.single-product .bs-size-pill {
  display: inline-flex !important;
  width: 34px !important;
  height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--bs-panel) !important;
  border: 1px solid var(--bs-line) !important;
  border-radius: 5px !important;
  font-family: var(--bs-font-ui) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  color: #fff !important;
}
@media (max-width: 600px) {
  body.single-product .bs-sizing-chart__table th,
  body.single-product .bs-sizing-chart__table td {
    padding-right: 12px !important;
    /* Let the long age labels wrap. The nowrap set further up keeps
       "Age 5-8" on one line, which is right on a desktop and ruinous on a
       phone: "Young Adult / Smaller Build Adult" held one 248px line, a
       table cannot be narrower than its content, and every wrapper above it
       sizes to fit — so that one cell made the whole page 467px wide on a
       375px screen. The body clips the overflow, which took the heading and
       the price off the edges with it.

       This has to live here, below the nowrap rule: the two have the same
       specificity and a media query carries no extra weight, so whichever
       comes last wins. */
    white-space: normal !important;
  }
  /* The size column still never wraps; 28cm has no business breaking. */
  body.single-product .bs-sizing-chart__table th:first-child,
  body.single-product .bs-sizing-chart__table td:first-child {
    white-space: nowrap !important;
  }
  /* And a heading sized for a phone rather than a desktop. */
  body.single-product .bs-hero h1.product_title {
    font-size: 28px !important;
    line-height: 1.1 !important;
  }
  body.single-product .bs-sizing-chart__table th:last-child,
  body.single-product .bs-sizing-chart__table td:last-child {
    padding-right: 0 !important;
  }
}


/* --------------------------------------------------------------------------
   15. AT A GLANCE SIDEBAR  (renders inside the Description tab column)
   -------------------------------------------------------------------------- */
body.single-product .bs-sidebar {
  background: var(--bs-panel) !important;
  border-radius: 8px !important;
  padding: 24px 28px !important;
  border: 1px solid var(--bs-line) !important;
  align-self: flex-start !important;
}
body.single-product .bs-sidebar__label {
  font-family: var(--bs-font-mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--bs-muted) !important;
  margin-bottom: 16px !important;
}
body.single-product .bs-sidebar__row {
  display: flex !important;
  justify-content: space-between !important;
  padding: 12px 0 !important;
  border-top: 1px solid var(--bs-line) !important;
  font-size: 13px !important;
  font-family: var(--bs-font-ui) !important;
  gap: 16px !important;
}
body.single-product .bs-sidebar__row:first-of-type {
  border-top: 0 !important;
  padding-top: 0 !important;
}
body.single-product .bs-sidebar__row .k {
  color: var(--bs-muted) !important;
}
body.single-product .bs-sidebar__row .v {
  color: #fff !important;
  font-weight: 500 !important;
  text-align: right !important;
}


/* --------------------------------------------------------------------------
   16. PHOTO STRIP  ([bespoke_photos], directly under the customiser)
   The product's gallery photos as square tiles running the full width of
   the screen, drifting left like the green ticker below them. The script
   (customiser-product-page.php) moves the track and adds .is-live; without
   it the strip is a plain row that scrolls sideways. Tiles are 320px, 220px
   on phones; keep the image `sizes` in the shortcode in step with these.
   -------------------------------------------------------------------------- */
body.single-product .bs-photos {
  --bs-photo: 320px;
  --bs-photo-gap: 16px;
  position: relative !important;
  margin: 32px 0 0 !important;
  padding: 0 0 32px !important;
}
/* Only the moving row runs the full width of the screen; the buttons stay in
   the content column so they line up with its right edge even when the
   browser shows a scrollbar (100vw includes the scrollbar, the column doesn't). */
body.single-product .bs-photos__viewport {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 0 0 calc(50% - 50vw) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}
body.single-product .bs-photos__viewport::-webkit-scrollbar { display: none !important; }
body.single-product .bs-photos__track {
  display: flex !important;
  gap: var(--bs-photo-gap) !important;
  width: max-content !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 56px !important;
}
body.single-product .bs-photos__item {
  flex: 0 0 var(--bs-photo) !important;
  width: var(--bs-photo) !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: var(--bs-panel) !important;
}
body.single-product .bs-photos__item::before,
body.single-product .bs-photos__item::marker { content: none !important; display: none !important; }
body.single-product .bs-photos__img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  margin: 0 !important;
  border-radius: 0 !important;
  -webkit-user-drag: none !important;
  user-select: none !important;
  pointer-events: none !important;
}

/* Moving: the script slides the track, so the viewport clips instead of
   scrolling. pan-y leaves up-and-down swipes to the page. */
body.single-product .bs-photos.is-live .bs-photos__viewport {
  overflow: hidden !important;
  touch-action: pan-y !important;
  cursor: grab !important;
}
body.single-product .bs-photos.is-dragging .bs-photos__viewport { cursor: grabbing !important; }
body.single-product .bs-photos.is-live .bs-photos__track {
  padding: 0 !important;
  will-change: transform;
}

/* Previous / pause / next, right-aligned under the strip at the content edge */
body.single-product .bs-photos__controls { display: none !important; }
body.single-product .bs-photos.is-live .bs-photos__controls {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
}
body.single-product .bs-photos__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--bs-line) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  cursor: pointer !important;
  line-height: 1 !important;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease !important;
}
body.single-product .bs-photos__btn:hover {
  border-color: var(--bs-mint) !important;
  color: var(--bs-mint) !important;
  background: transparent !important;
}
body.single-product .bs-photos__btn:focus-visible {
  outline: 2px solid var(--bs-mint) !important;
  outline-offset: 2px !important;
}
body.single-product .bs-photos__btn svg { display: block !important; }
/* The pause button's wording, for screen readers only */
body.single-product .bs-photos__sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
body.single-product .bs-photos__icon-play,
body.single-product .bs-photos.is-paused .bs-photos__icon-pause { display: none !important; }
body.single-product .bs-photos.is-paused .bs-photos__icon-play { display: block !important; }

@media (max-width: 900px) {
  body.single-product .bs-photos {
    --bs-photo: 220px;
    --bs-photo-gap: 12px;
    margin-top: 24px !important;
    padding-bottom: 24px !important;
  }
  body.single-product .bs-photos__track { padding: 0 20px !important; }
  body.single-product .bs-photos.is-live .bs-photos__track { padding: 0 !important; }
  body.single-product .bs-photos.is-live .bs-photos__controls { margin-top: 12px !important; }
}


/* ==========================================================================
   END · Bespoke Sport product styling
   ========================================================================== */
