/*
Theme Name: Bluesky Peptides
Theme URI: https://www.blueskypeptide.com/
Author: Blue Sky Peptides Dev Team
Author URI: https://www.blueskypeptide.com/
Description: Custom WooCommerce theme recreating the Blue Sky Peptides storefront. Brand palette is driven by CSS variables and key content (promo bar, footer, colors) is editable in the WordPress Customizer.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bluesky-peptides
WC requires at least: 7.0
WC tested up to: 8.7
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  --bsp-blue-light: #5aaff0;
  --bsp-blue:       #3589c9;
  --bsp-blue-mid:   #2f80c8;
  --bsp-blue-dark:  #1f6fb2;
  --bsp-navy:       #16314f;
  --bsp-navy-deep:  #0a263c;
  --bsp-orange:     #ef8e01;
  --bsp-orange-dk:  #d97f00;
  --bsp-gold:       #f3c927;
  --bsp-promo-bg:   #ff5f1f;
  --bsp-grad-blue:      linear-gradient(180deg, #5aaff0 0%, #3589c9 100%);
  --bsp-grad-cta:       linear-gradient(180deg, #f3c927 0%, #ef8e01 100%);
  --bsp-grad-cta-hover: linear-gradient(180deg, #ef8e01 0%, #f3c927 100%);

  --bsp-ink:        #514842;   /* brownish body text used in info copy */
  --bsp-ink-2:      #424242;
  --bsp-muted:      #7d7d7d;
  --bsp-line:       #d7dde3;
  --bsp-bg:         #ffffff;
  --bsp-bg-soft:    #f5f6f8;
  --bsp-bg-tint:    #e9f4fb;   /* sidebar widget body */
  --bsp-bg-lav:     #f4f6fb;   /* info section box */
  --bsp-header-grad-a: #eaf6fd;
  --bsp-header-grad-b: #c9e7fa;

  --bsp-primary:        var(--bsp-blue-mid);
  --bsp-primary-hover:  var(--bsp-blue-dark);
  --bsp-accent:         var(--bsp-orange);
  --bsp-footer-bg:      #2f6fb0;

  --bsp-font: "Open Sans", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bsp-radius: 4px;
  --bsp-shadow: 0 2px 10px rgba(10, 38, 60, .08);
  --bsp-shadow-lg: 0 8px 28px rgba(10, 38, 60, .14);
  --bsp-container: 1200px;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--bsp-font); font-size: 15px; line-height: 1.6; color: var(--bsp-ink-2); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--bsp-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--bsp-primary-hover); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.bsp-container { width: 100%; max-width: var(--bsp-container); margin-inline: auto; padding-inline: 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.bsp-btn { display: inline-block; background: var(--bsp-orange); color: #fff; font-weight: 600; padding: 10px 22px; border: none; border-radius: var(--bsp-radius); text-align: center; transition: background .15s ease; }
.bsp-btn:hover { background: var(--bsp-orange-dk); color: #fff; }
.bsp-btn--blue { background: var(--bsp-blue-mid); }
.bsp-btn--blue:hover { background: var(--bsp-blue-dark); }

/* ==========================================================================
   3. HEADER (light sky-blue)
   ========================================================================== */
.bsp-header { background: linear-gradient(180deg, var(--bsp-header-grad-a) 0%, var(--bsp-header-grad-b) 100%); padding-bottom: 14px; }
.bsp-header__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.bsp-logo img { max-height: 86px; width: auto; }
.bsp-logo__text { font-size: 30px; font-weight: 800; }
.bsp-logo__text .blue { color: #1c4e9c; }
.bsp-logo__text .sky { color: #36a9e1; }
.bsp-logo__text .pep { color: #1b1b1b; font-weight: 700; }

.bsp-header__right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.bsp-account-links { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.bsp-account-links a { color: #173a63; font-weight: 600; }
.bsp-account-links a:hover { color: var(--bsp-blue-mid); }
.bsp-account-links .sep { color: #9bb6cf; }

.bsp-cart { display: inline-flex; align-items: center; }
.bsp-cart__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--bsp-orange); color: #fff; display: grid; place-items: center; box-shadow: var(--bsp-shadow); position: relative; z-index: 2; }
.bsp-cart__icon svg { width: 24px; height: 24px; fill: #fff; }
.bsp-cart__pill { background: var(--bsp-navy); color: #fff; font-size: 14px; font-weight: 600; padding: 10px 18px 10px 28px; border-radius: 24px; margin-left: -16px; white-space: nowrap; }
.bsp-cart__pill .amt { color: var(--bsp-blue-light); }
.bsp-cart__icon { position: relative; }

/* Mobile-only header elements — hidden on desktop, revealed in the mobile media query */
.bsp-burger, .bsp-account-icon, .bsp-cart__badge, .bsp-search__btn { display: none; }

/* Primary nav row */
.bsp-nav { background: transparent; padding-bottom: 0; }
.bsp-nav__inner { display: flex; align-items: stretch; gap: 0; }
.bsp-menu { display: flex; align-items: stretch; background: var(--bsp-grad-blue); border-radius: 6px 6px 0 0; overflow: visible; flex: 0 0 auto; }
.bsp-menu > li { position: relative; }
.bsp-menu > li + li { border-left: 1px solid rgba(255,255,255,.18); }
.bsp-menu > li > a { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: 15px; padding: 15px 22px; }
.bsp-menu > li.menu-item-has-children > a::after { content: "\25BE"; font-size: 11px; opacity: .9; }
.bsp-menu > li:hover > a, .bsp-menu > li.current-menu-item > a { background: rgba(255,255,255,.14); }
.bsp-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; box-shadow: var(--bsp-shadow-lg); border-top: 3px solid var(--bsp-orange); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s ease; z-index: 60; }
.bsp-menu > li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.bsp-menu .sub-menu a { display: block; color: var(--bsp-ink-2); padding: 11px 18px; font-size: 14px; }
.bsp-menu .sub-menu a:hover { background: var(--bsp-bg-tint); color: var(--bsp-blue-dark); }

.bsp-search { flex: 1; display: flex; align-items: center; background: var(--bsp-blue-dark); border-radius: 6px 6px 0 0; margin-left: 10px; padding: 0 16px; }
.bsp-search svg { width: 20px; height: 20px; fill: #cfe6f7; flex: 0 0 auto; }
.bsp-search input { flex: 1; border: 0; background: transparent; color: #fff; font-size: 15px; padding: 14px 12px; outline: none; }
.bsp-search input::placeholder { color: #cfe6f7; }

.bsp-nav__toggle { display: none; background: var(--bsp-blue-mid); border: 0; color: #fff; font-size: 15px; font-weight: 600; padding: 13px 18px; gap: 8px; align-items: center; border-radius: 6px 6px 0 0; }
.bsp-nav__toggle svg { width: 22px; height: 22px; fill: currentColor; }

/* ==========================================================================
   4. PROMO BAR (orange, below nav)
   ========================================================================== */
/* Promo bar is contained to the content width (not full-bleed); orange sits on the light-blue header. */
.bsp-promo { margin-top: 8px; }
.bsp-promo__inner { background: var(--bsp-promo-bg); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 22px; border-radius: 4px; }
.bsp-promo__left { font-size: 13px; line-height: 1.3; }
.bsp-promo__left b { font-size: 14px; }
.bsp-promo__left a { color: #fff; text-decoration: underline; font-size: 12px; }
.bsp-promo__center { text-align: center; flex: 1; }
.bsp-promo__center .big { font-size: 26px; font-weight: 800; line-height: 1.1; }
.bsp-promo__center .sub { font-size: 14px; font-weight: 600; }
.bsp-promo__btn { background: var(--bsp-blue-mid); color: #fff; font-weight: 700; padding: 9px 18px; border-radius: var(--bsp-radius); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.bsp-promo__btn:hover { background: var(--bsp-blue-dark); color: #fff; }

/* ==========================================================================
   5. HERO CAROUSEL
   ========================================================================== */
.bsp-hero-carousel { position: relative; background: var(--bsp-navy-deep); overflow: hidden; margin-top: 22px; }
.bsp-slide { display: none; }
.bsp-slide.is-active { display: block; animation: bspFade .5s ease; }
.bsp-slide img { width: 100%; height: auto; display: block; }
@keyframes bspFade { from { opacity: .4; } to { opacity: 1; } }
.bsp-slides__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 60px; background: rgba(120,130,140,.45); color: #fff; border: 0; font-size: 30px; line-height: 1; z-index: 5; transition: background .15s ease; }
.bsp-slides__nav:hover { background: rgba(80,90,100,.7); }
.bsp-slides__nav--prev { left: 0; }
.bsp-slides__nav--next { right: 0; }

/* ==========================================================================
   6. HOME TWO-COLUMN LAYOUT
   ========================================================================== */
.bsp-home { padding-block: 26px 40px; }
.bsp-home__grid { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }

/* Section bar (blue header strip) */
.bsp-bar { background: var(--bsp-grad-blue); color: #fff; font-weight: 700; font-size: 18px; padding: 13px 18px; border-radius: 6px 6px 0 0; display: flex; align-items: center; gap: 9px; }
.bsp-bar::before { content: "\25B6"; font-size: 12px; }

/* Product grid — separated cards with gutters, like the original */
.bsp-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.bsp-card { border: 1px solid var(--bsp-line); border-radius: 4px; padding: 18px 16px; display: flex; flex-direction: column; text-align: center; position: relative; background: #fff; transition: box-shadow .15s ease; }
.bsp-card:hover { box-shadow: var(--bsp-shadow); }
.bsp-card__badge { position: absolute; top: 10px; left: 10px; background: var(--bsp-grad-blue); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 3px; letter-spacing: .3px; }
.bsp-card__title { font-size: 16px; font-weight: 700; color: var(--bsp-blue-mid); margin: 26px 0 12px; min-height: 44px; }
.bsp-card__title a { color: inherit; }
.bsp-card__title a:hover { color: var(--bsp-blue-dark); }
.bsp-card__media { padding: 6px 0 14px; }
.bsp-card__media img { width: 100%; height: 230px; object-fit: contain; margin: 0 auto; }
.bsp-card__price { font-size: 20px; font-weight: 800; color: #3a3a3a; padding: 14px 0; border-top: 1px solid var(--bsp-line); margin-top: auto; }
.bsp-card__price del { color: var(--bsp-muted); font-weight: 400; font-size: 15px; margin-right: 6px; }
.bsp-card__buy { display: flex; align-items: center; justify-content: center; gap: 10px; }
.bsp-card__buy label { font-size: 14px; color: #555; }
.bsp-card__qty { width: 48px; padding: 7px 6px; border: 1px solid var(--bsp-line); border-radius: var(--bsp-radius); text-align: center; }
.bsp-card__add { background: var(--bsp-grad-cta); color: #fff; border: 0; font-weight: 700; padding: 9px 16px; border-radius: var(--bsp-radius); text-shadow: 0 1px 1px rgba(0,0,0,.18); }
.bsp-card__add:hover { background: var(--bsp-grad-cta-hover); }

/* ==========================================================================
   7. SIDEBAR WIDGETS
   ========================================================================== */
.bsp-widget { margin-bottom: 22px; border: 1px solid var(--bsp-line); border-top: 0; }
.bsp-widget__head { background: var(--bsp-grad-blue); color: #fff; font-weight: 700; font-size: 15px; padding: 11px 15px; display: flex; align-items: center; gap: 8px; }
.bsp-widget__head::before { content: "\25B6"; font-size: 10px; }
.bsp-widget__body { background: var(--bsp-bg-tint); padding: 16px 15px; }

.bsp-news input[type="email"] { width: 100%; border: 1px solid var(--bsp-line); border-radius: var(--bsp-radius); padding: 11px 12px; font-size: 14px; margin-bottom: 10px; }
.bsp-news .bsp-btn { width: auto; }
.bsp-news__reward { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: #2a4a63; }
.bsp-news__reward svg { width: 22px; height: 22px; fill: var(--bsp-orange); flex: 0 0 auto; }
.bsp-news__reward b { color: #1b1b1b; }

.bsp-cartw__line { font-size: 14px; color: #2a4a63; margin-bottom: 12px; }
.bsp-cartw__subtotal { background: #f6e7cf; color: #6b4e2a; text-align: center; font-weight: 600; padding: 10px; border-radius: var(--bsp-radius); margin-bottom: 14px; }
.bsp-cartw__actions { text-align: right; }

.bsp-points__body { font-size: 14px; color: #2a4a63; }

/* ==========================================================================
   8. INFO SECTION
   ========================================================================== */
.bsp-info { background: var(--bsp-bg-lav); border: 1px solid var(--bsp-line); padding: 30px 34px; margin-top: 30px; position: relative; }
.bsp-info h2 { color: var(--bsp-blue-mid); font-size: 24px; font-weight: 600; }
.bsp-info h3 { color: var(--bsp-blue-mid); font-size: 19px; font-weight: 600; margin-top: 1.4em; }
.bsp-info p { color: var(--bsp-ink); margin: 0 0 1em; max-width: 70ch; }
.bsp-info__media { float: right; width: 300px; margin: 10px 0 16px 28px; }
.bsp-info__media img { width: 100%; height: auto; }

/* ==========================================================================
   9. FOOTER (medium blue)
   ========================================================================== */
/* Footer is a contained, centered blue box (white page margins), aligned with the content above. */
.bsp-footer { background: #fff; color: #eaf2fb; font-size: 15px; margin-top: 30px; padding-bottom: 28px; }
.bsp-footer__box { background: var(--bsp-footer-bg); border-radius: 4px; padding: 40px 40px 34px; }
.bsp-footer a { color: #eaf2fb; }
.bsp-footer a:hover { color: #fff; }
.bsp-footer__grid { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 36px; align-items: start; }
.bsp-footer h4 { color: #fff; font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.bsp-footer ul li { margin-bottom: 12px; }
.bsp-footer ul li a { display: inline-flex; align-items: center; gap: 9px; }
.bsp-footer ul li a::before { content: "\25B6"; font-size: 9px; color: #d6e8fb; }
.bsp-footer__badges { display: flex; gap: 12px; align-self: start; }
.bsp-badge-img { height: 56px; width: auto; display: block; }
.bsp-footer__copy { text-align: center; color: #8a97a3; font-size: 13px; margin-top: 18px; }

/* ==========================================================================
   10. WOOCOMMERCE SHOP / CATEGORY ARCHIVE
   ========================================================================== */
.woocommerce-page .bsp-shop-wrap { padding-block: 22px 50px; }

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb, .bsp-breadcrumb { font-size: 13px; color: var(--bsp-muted); margin-bottom: 16px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--bsp-primary); }
.bsp-crumb-sep { color: #b9c4cf; }

/* Page title + category description */
.woocommerce-products-header { margin-bottom: 8px; }
.woocommerce-products-header__title, .woocommerce .page-title {
  text-transform: uppercase; color: var(--bsp-navy-deep); font-size: 26px; font-weight: 700; margin: 0 0 8px;
}
.term-description p { color: var(--bsp-ink); margin: 0 0 14px; max-width: 95ch; }

/* Toolbar: result count + ordering */
.woocommerce .woocommerce-result-count { color: var(--bsp-muted); font-size: 14px; margin: 0; padding: 9px 0; float: left; }
.woocommerce .woocommerce-ordering { float: right; margin: 0 0 14px; }
.woocommerce .woocommerce-ordering select { padding: 9px 12px; border: 1px solid var(--bsp-line); border-radius: 4px; background: #fff; }

/* Product grid */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 10px 0 0; padding: 0; clear: both; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; content: none !important; }
.woocommerce ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important; clear: none !important;
  border: 1px solid var(--bsp-line); border-radius: 4px; padding: 18px 16px; text-align: center;
  position: relative; background: #fff; transition: box-shadow .15s ease;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--bsp-shadow); }
.woocommerce ul.products li.product a img { display: block; width: 100%; height: 230px; object-fit: contain; margin: 6px auto 14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--bsp-blue-mid); font-size: 16px; font-weight: 700; padding: 0 0 8px; min-height: 42px;
}
.woocommerce ul.products li.product .price { color: #3a3a3a; font-size: 20px; font-weight: 800; display: block; padding: 12px 0; border-top: 1px solid var(--bsp-line); }
.woocommerce ul.products li.product .price del { color: var(--bsp-muted); font-weight: 400; font-size: 15px; margin-right: 6px; }
.woocommerce ul.products li.product .bsp-card__badge { top: 10px; left: 10px; }
.woocommerce ul.products li.product .added_to_cart { display: none; }

/* Loop add-to-cart (Qty + button) */
.bsp-loop-cart { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.bsp-loop-cart__label { font-size: 14px; color: #555; }
.bsp-loop-cart .quantity input.qty { width: 52px; padding: 7px 4px; border: 1px solid var(--bsp-line); border-radius: 4px; text-align: center; }

.woocommerce ul.products li.product .button, .woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit { background: var(--bsp-grad-cta); color: #fff; border-radius: 4px; font-weight: 700; padding: 9px 16px; text-shadow: 0 1px 1px rgba(0,0,0,.18); }
.woocommerce ul.products li.product .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--bsp-grad-cta-hover); }
.woocommerce span.onsale { background: var(--bsp-orange); border-radius: 4px; }
.woocommerce .price { color: #3a3a3a; }

/* Pagination */
.woocommerce nav.woocommerce-pagination { margin: 30px 0 0; text-align: center; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  border: 1px solid var(--bsp-line); border-radius: 4px; padding: 8px 14px; color: var(--bsp-primary); background: #fff;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--bsp-blue-mid); color: #fff; border-color: var(--bsp-blue-mid); }

@media (max-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .woocommerce ul.products { grid-template-columns: 1fr; } }

/* ==========================================================================
   10b. SINGLE PRODUCT
   ========================================================================== */
.bsp-single-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.bsp-single-main { min-width: 0; }

/* gallery + summary side by side; tabs/related span full width below.
   Flex + !important is used deliberately to override WooCommerce's default
   float:left / width:48% on the gallery, which otherwise stretches the image. */
.woocommerce.single-product div.product { display: flex; flex-wrap: wrap; gap: 34px; align-items: flex-start; margin: 0; float: none; }
.woocommerce.single-product div.product .woocommerce-product-gallery {
  float: none !important; width: 260px !important; max-width: 260px !important; margin: 0 !important;
  flex: 0 0 260px; position: relative;
}
.woocommerce.single-product div.product .summary {
  float: none !important; width: auto !important; margin: 0 !important; flex: 1 1 340px; min-width: 0;
}
.woocommerce.single-product div.product .woocommerce-tabs,
.woocommerce.single-product div.product .related,
.woocommerce.single-product div.product .upsells { flex: 0 0 100%; width: 100%; }
.single-product .woocommerce-product-gallery__wrapper { margin: 0; }
.single-product .woocommerce-product-gallery__image img { width: 100% !important; height: auto !important; border: 1px solid var(--bsp-line); border-radius: 4px; }
.single-product .woocommerce-product-gallery .flex-control-thumbs { margin-top: 10px; padding: 0; }

/* Summary */
.bsp-summary-badge { position: static; display: inline-block; margin-bottom: 10px; }
.single-product .product_title { font-size: 23px; color: var(--bsp-navy-deep); font-weight: 700; margin: 0 0 8px; }
.bsp-availability { font-size: 14px; color: var(--bsp-muted); margin: 0 0 10px; }
.bsp-availability .in { color: #3aaa35; font-weight: 700; }
.bsp-availability .out { color: #e02b27; font-weight: 700; }
.single-product .summary .price { color: var(--bsp-blue-dark); font-size: 28px; font-weight: 800; margin: 6px 0 16px; }
.single-product .summary .price del { color: var(--bsp-muted); font-weight: 400; font-size: 18px; margin-right: 8px; }
.single-product form.cart { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.single-product form.cart .quantity input.qty { width: 60px; padding: 10px 6px; border: 1px solid var(--bsp-line); border-radius: 4px; text-align: center; }
.single-product .single_add_to_cart_button { background: var(--bsp-grad-cta) !important; color: #fff !important; border-radius: 4px; font-weight: 700; padding: 12px 26px !important; text-shadow: 0 1px 1px rgba(0,0,0,.18); }
.single-product .single_add_to_cart_button:hover { background: var(--bsp-grad-cta-hover) !important; }
.bsp-wishlist-row { font-size: 14px; margin: 4px 0 16px; color: var(--bsp-muted); }
.bsp-wishlist-link { color: var(--bsp-primary); font-weight: 600; }
.bsp-ship-badge { display: flex; align-items: center; gap: 12px; background: transparent; border: 0; padding: 6px 0; margin-top: 6px; }
.bsp-ship-badge__usps { width: 52px; height: auto; flex: 0 0 auto; }
.bsp-ship-badge strong { display: block; color: var(--bsp-navy-deep); font-size: 14px; font-weight: 700; letter-spacing: .2px; }
.bsp-ship-badge span { font-size: 12px; color: var(--bsp-muted); }
.bsp-trust-badges { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.bsp-trust-badges img { width: 76px; height: auto; }
.single-product .summary .product_meta { display: none; }

/* Tabs */
.woocommerce-tabs { margin-top: 34px; }
.woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 -1px; border-bottom: 1px solid var(--bsp-line); display: flex; gap: 4px; }
.woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce-tabs ul.tabs li { background: var(--bsp-bg-soft); border: 1px solid var(--bsp-line); border-radius: 6px 6px 0 0; margin: 0; padding: 0; }
.woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 22px; color: var(--bsp-ink-2); font-weight: 600; }
.woocommerce-tabs ul.tabs li.active { background: var(--bsp-grad-blue); border-color: var(--bsp-blue-mid); }
.woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce-tabs .panel { padding: 22px 4px; }
.woocommerce-tabs .panel h2 { display: none; }

/* Specs / attributes table */
.woocommerce table.shop_attributes { border: 1px solid var(--bsp-line); }
.woocommerce table.shop_attributes th { background: var(--bsp-bg-soft); color: var(--bsp-navy-deep); font-weight: 700; width: 34%; padding: 11px 14px; border-bottom: 1px solid var(--bsp-line); }
.woocommerce table.shop_attributes td { padding: 11px 14px; border-bottom: 1px solid var(--bsp-line); font-style: normal; }

/* TI WooCommerce Wishlist — "Add to Wish List" button (single product) */
.single-product .tinv-wishlist { margin: 8px 0 16px; }
.single-product .tinv-wishlist .tinvwl_add_to_wishlist_button {
  display: inline-flex; align-items: center; gap: 7px; background: transparent !important; border: 0 !important;
  color: var(--bsp-primary) !important; font-weight: 600 !important; font-size: 14px; padding: 0 !important; box-shadow: none !important;
}
.single-product .tinv-wishlist .tinvwl_add_to_wishlist_button:hover { color: var(--bsp-primary-hover) !important; text-decoration: underline; }
.single-product .tinv-wishlist .tinvwl_add_to_wishlist_button:before { color: var(--bsp-orange); }
/* Wishlist button on product cards (catalog) */
.woocommerce ul.products li.product .tinv-wishlist { margin-top: 8px; text-align: center; }
.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button { background: transparent !important; color: var(--bsp-muted) !important; font-size: 12px !important; padding: 0 !important; border: 0 !important; }

/* Wholesale sidebar banner block */
.bsp-wholesale { margin-bottom: 18px; }
.bsp-wholesale a { display: block; }
.bsp-wholesale a + a { margin-top: 10px; }
.bsp-wholesale img { width: 100%; height: auto; display: block; border-radius: 6px; border: 1px solid var(--bsp-line); }

/* Wholesale CTA banner (fallback when no real image is set) */
.bsp-wholesale-cta {
  display: block; margin-bottom: 18px; padding: 20px 18px; border-radius: 6px; text-align: center;
  background: linear-gradient(160deg, #284c94 0%, #1979c3 100%);
  box-shadow: var(--bsp-shadow); position: relative; overflow: hidden;
}
.bsp-wholesale-cta::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(243,201,39,.35) 0%, rgba(243,201,39,0) 70%);
}
.bsp-wholesale-cta__eyebrow { display: block; color: var(--bsp-gold); font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.bsp-wholesale-cta__title { display: block; color: #fff; font-size: 18px; font-weight: 800; margin: 4px 0 10px; line-height: 1.2; }
.bsp-wholesale-cta__link { display: inline-block; color: #fff; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.16); padding: 7px 14px; border-radius: 4px; }
.bsp-wholesale-cta:hover .bsp-wholesale-cta__link { background: var(--bsp-gold); color: var(--bsp-navy-deep); }

/* Generic content tables (page content: Privacy cookie table, etc.) */
.bsp-prose table, .entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 22px; border: 1px solid var(--bsp-line); font-size: 14px; }
.bsp-prose caption, .entry-content caption { text-align: left; font-weight: 700; color: var(--bsp-navy-deep); padding: 8px 0; }
.bsp-prose th, .bsp-prose td, .entry-content th, .entry-content td { border: 1px solid var(--bsp-line); padding: 11px 14px; text-align: left; vertical-align: top; }
.bsp-prose thead th, .bsp-prose tbody th, .entry-content thead th { background: var(--bsp-bg-soft); color: var(--bsp-navy-deep); font-weight: 700; }
.bsp-prose tbody tr:nth-child(even) td, .entry-content tbody tr:nth-child(even) td { background: #f7fafc; }

/* Related / customers also bought */
.single-product .related, .single-product .upsells { margin-top: 40px; }
.single-product .related > h2, .single-product .upsells > h2 {
  background: var(--bsp-grad-blue); color: #fff; font-size: 17px; font-weight: 700;
  padding: 12px 18px; border-radius: 6px 6px 0 0; display: flex; align-items: center; gap: 9px; margin: 0 0 18px;
}
.single-product .related > h2::before, .single-product .upsells > h2::before { content: "\25B6"; font-size: 11px; }

/* Single-product responsive */
@media (max-width: 1024px) {
  .bsp-single-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .woocommerce.single-product div.product .woocommerce-product-gallery {
    width: 100% !important; max-width: 100% !important; flex: 1 1 100%;
  }
}

/* ==========================================================================
   10c. CART / CHECKOUT / MY ACCOUNT (classic shortcodes)
   ========================================================================== */
.woocommerce-cart .bsp-section__head, .woocommerce-checkout .bsp-section__head, .woocommerce-account .bsp-section__head { text-align: left; margin-bottom: 22px; }
.woocommerce-cart .bsp-section__head::after, .woocommerce-checkout .bsp-section__head::after, .woocommerce-account .bsp-section__head::after { display: none; }

/* Cart + order tables */
.woocommerce table.shop_table { border: 1px solid var(--bsp-line); border-radius: 6px; }
.woocommerce table.shop_table thead th { background: var(--bsp-grad-blue); color: #fff; font-weight: 700; padding: 12px 14px; border: 0; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px 14px; }
.woocommerce table.cart img { width: 64px; height: auto; border: 1px solid var(--bsp-line); border-radius: 4px; }
.woocommerce a.remove { color: var(--bsp-error) !important; border: 1px solid var(--bsp-line); }
.woocommerce a.remove:hover { background: var(--bsp-error) !important; color: #fff !important; }
.woocommerce .quantity .qty { border: 1px solid var(--bsp-line); border-radius: 4px; padding: 8px 6px; }

/* Coupon row */
.woocommerce .cart .actions .coupon input.input-text { padding: 11px 12px; border: 1px solid var(--bsp-line); border-radius: 4px; min-width: 180px; }

/* Cart totals + cross-sells headings */
.cart_totals h2, .cross-sells > h2, #order_review_heading {
  background: var(--bsp-grad-blue); color: #fff; font-size: 16px; font-weight: 700;
  padding: 11px 15px; border-radius: 6px 6px 0 0; margin: 0 0 0;
}
.cart_totals table { border: 1px solid var(--bsp-line); }
.cart_totals .wc-proceed-to-checkout { padding-top: 16px; }

/* Primary action buttons -> gold->orange CTA */
.woocommerce .button.alt, .woocommerce #place_order, .woocommerce .checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--bsp-grad-cta) !important; color: #fff !important; font-weight: 700 !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.18); border-radius: 4px;
}
.woocommerce .button.alt:hover, .woocommerce #place_order:hover, .woocommerce .checkout-button:hover { background: var(--bsp-grad-cta-hover) !important; }

/* Checkout layout */
.woocommerce-checkout #customer_details { margin-bottom: 26px; }
.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review, .woocommerce-checkout #order_review_heading { float: none !important; width: 100% !important; }
.woocommerce-checkout .col2-set, .woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { display: block !important; float: none !important; width: 100% !important; }
.woocommerce-checkout .col2-set .col-2 { margin-top: 16px; }
.woocommerce-checkout h3 { background: var(--bsp-grad-blue); color: #fff; font-size: 16px; font-weight: 700; padding: 11px 15px; border-radius: 6px 6px 0 0; margin: 0 0 16px; }
.woocommerce form .form-row label { font-weight: 600; color: var(--bsp-navy-deep); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select, .woocommerce .select2-container .select2-selection,
.woocommerce-account form .input-text { border: 1px solid var(--bsp-line); border-radius: 4px; padding: 11px 12px; }
.woocommerce #order_review { border: 1px solid var(--bsp-line); border-radius: 0 0 6px 6px; padding: 18px; background: var(--bsp-bg-soft); }
.woocommerce #payment { background: transparent; }
.woocommerce #payment ul.payment_methods { border-bottom: 1px solid var(--bsp-line); }

/* My Account */
.woocommerce-account .woocommerce-MyAccount-navigation ul { border: 1px solid var(--bsp-line); border-radius: 6px; overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--bsp-line); }
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 11px 15px; color: var(--bsp-ink-2); font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--bsp-bg-tint); color: var(--bsp-blue-dark); }
.woocommerce-account .woocommerce-MyAccount-content { padding-left: 24px; }
.woocommerce-account .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.woocommerce form.login, .woocommerce form.register { border: 1px solid var(--bsp-line); border-radius: 6px; padding: 22px; }
.woocommerce-account h2, .woocommerce-cart h2, .woocommerce-checkout h2 { color: var(--bsp-navy-deep); }

@media (max-width: 768px) {
  .woocommerce-account .col2-set { grid-template-columns: 1fr; }
  .woocommerce-account .woocommerce-MyAccount-content { padding-left: 0; }
}

/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .bsp-home__grid { grid-template-columns: 1fr; }
  .bsp-nav__inner { flex-wrap: wrap; }
  .bsp-search { flex-basis: 100%; margin-left: 0; margin-top: 8px; border-radius: 6px; }
  .bsp-promo__inner { flex-wrap: wrap; justify-content: center; text-align: center; }
}
@media (max-width: 768px) {
  /* Prevent any stray element from forcing horizontal scroll on mobile */
  html, body { overflow-x: hidden; max-width: 100%; }
  .bsp-header, .bsp-nav, .bsp-nav__inner, .bsp-header__top, .bsp-promo { max-width: 100%; }
  .bsp-nav__inner { box-sizing: border-box; }

  /* ---- Promo bar moves to the very top, full-bleed (like the original) ---- */
  .bsp-header { display: flex; flex-direction: column; padding-bottom: 0; }
  .bsp-promo { order: -1; margin-top: 0; padding-inline: 0; max-width: 100%; }
  .bsp-promo__inner { border-radius: 0; padding: 11px 16px; gap: 12px; }
  .bsp-promo__btn { display: none; }
  .bsp-promo__center { order: -1; }
  .bsp-promo__center .big { font-size: 19px; }
  .bsp-promo__left { font-size: 12px; text-align: right; }

  /* ---- Compact header row: burger | logo | account icon | cart icon ---- */
  .bsp-header__top { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding-block: 10px; }
  .bsp-burger { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--bsp-blue-dark); padding: 4px; cursor: pointer; }
  .bsp-burger svg { width: 30px; height: 30px; fill: currentColor; }
  .bsp-logo { flex: 1; text-align: center; }
  .bsp-logo img { max-height: 46px; }
  .bsp-header__right { flex-direction: row; align-items: center; gap: 12px; }
  .bsp-account-links { display: none; }
  .bsp-account-icon { display: inline-flex; color: var(--bsp-blue-dark); }
  .bsp-account-icon svg { width: 28px; height: 28px; fill: currentColor; }
  .bsp-cart__pill { display: none; }
  .bsp-cart__icon { width: 42px; height: 42px; }
  .bsp-cart__icon svg { width: 22px; height: 22px; }
  .bsp-cart__badge { display: grid; place-items: center; position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--bsp-navy); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }

  /* ---- Search: full-width blue bar, white input + orange button ---- */
  .bsp-nav { background: var(--bsp-blue-mid); padding: 10px 0; margin-top: 0; }
  .bsp-nav__inner { flex-wrap: wrap; padding-inline: 14px; }
  .bsp-nav__toggle { display: none; }
  .bsp-search { order: -1; flex-basis: 100%; min-width: 0; margin: 0; background: #fff; border-radius: 5px; padding: 0; overflow: hidden; }
  .bsp-search svg { display: none; }
  .bsp-search input { color: #333; padding: 13px 14px; min-width: 0; }
  .bsp-search input::placeholder { color: #8a8a8a; }
  .bsp-search__btn { display: inline-flex; align-items: center; justify-content: center; background: var(--bsp-orange); border: 0; width: 50px; align-self: stretch; cursor: pointer; }
  .bsp-search__btn svg { display: block; width: 22px; height: 22px; fill: #fff; }

  /* ---- Menu collapses behind the hamburger ---- */
  .bsp-menu { display: none; flex-direction: column; width: 100%; border-radius: 0; margin-top: 10px; }
  .bsp-nav.is-open .bsp-menu { display: flex; }
  .bsp-menu > li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .bsp-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; background: rgba(0,0,0,.16); }
  .bsp-menu .sub-menu a { color: #eaf2fb; padding-left: 36px; }

  .bsp-products { grid-template-columns: repeat(2, 1fr); }
  .bsp-info__media { float: none; width: 240px; margin: 0 auto 20px; }
  .bsp-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bsp-products { grid-template-columns: 1fr; }
  .bsp-promo__center .big { font-size: 20px; }
  .bsp-footer__grid { grid-template-columns: 1fr; }
}
