/* ==========================================================================
   BabyBoo — Cart Page
   Loaded only on the WooCommerce cart page. Same visual language as the
   approved Single Product page.
   ========================================================================== */

body.woocommerce-cart{
  --bb-sky:#EDF3E7;
  --bb-paper:#FBFAF5;
  --bb-ink:#223324;
  --bb-ink-soft:#66756A;
  --bb-cta:#E2694F;
  --bb-cta-dark:#C9821E;
  --bb-wa:#4C8B5A;
  --bb-wa-dark:#3E7249;
  --bb-yellow:#E8A33D;
  --bb-line:#DDE4D2;
  --bb-muted:#8FA090;
  --bb-radius:20px;
  --bb-shadow:6px 6px 0 rgba(34,51,36,.12);
  overflow-x:hidden;
  max-width:100%;
}

/* Elementor/WooCommerce wrappers must not add width of their own. */
body.woocommerce-cart .bb-cart-main .woocommerce,
body.woocommerce-cart .bb-cart-main .elementor-widget-shortcode,
body.woocommerce-cart .bb-cart-main .elementor-shortcode{width:100%;max-width:100%;margin:0}
body.woocommerce-cart .bb-cart-main .woocommerce::before,
body.woocommerce-cart .bb-cart-main .woocommerce::after{display:none}

/* Section heading / subtitle — same classes as the Single Product page. */
body.woocommerce-cart .bb-section-title .elementor-heading-title{font-weight:800;color:var(--bb-ink)}
body.woocommerce-cart .bb-section-sub{color:var(--bb-ink-soft);font-size:15.5px}

/* ==========================================================================
   CARD
   ========================================================================== */
.bb-cart-card{
  background:var(--bb-paper);
  border:2px solid var(--bb-line);
  border-radius:var(--bb-radius);
  box-shadow:var(--bb-shadow);
  padding:24px;
}

/* ==========================================================================
   ITEM ROWS
   ========================================================================== */
.bb-cart-list{
  border:2px solid var(--bb-line);
  border-radius:14px;
  overflow:hidden;
  background:#FBFAF5;
}
.bb-ci{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding:12px;
  border-bottom:1.5px dashed var(--bb-line);
}
.bb-ci:last-child{border-bottom:none}

.bb-ci-thumb{order:1;flex:0 0 auto;width:50px;height:50px}
.bb-ci-thumb a,.bb-ci-thumb img{display:block}
.bb-ci-thumb img{
  width:50px;height:50px;object-fit:cover;
  border:2px solid var(--bb-line);border-radius:12px;background:var(--bb-sky);
}

.bb-ci-info{order:2;flex:1 1 140px;min-width:0}
.bb-ci-name{
  display:block;font-size:14.5px;font-weight:700;line-height:1.35;
  color:var(--bb-ink);text-decoration:none;overflow-wrap:anywhere;
}
.bb-ci-name:hover{color:var(--bb-cta)}
.bb-ci-meta{display:flex;flex-wrap:wrap;gap:2px 10px;margin-top:2px}
.bb-ci-meta span{font-size:12px;color:var(--bb-ink-soft);line-height:1.4}
.bb-ci-info .backorder_notification{font-size:11.5px;color:var(--bb-cta-dark);margin:3px 0 0}

.bb-ci-qty{order:3;flex:0 0 auto;display:flex;align-items:center;gap:6px}
.bb-qty-btn{
  width:27px;height:27px;border-radius:8px;border:2px solid var(--bb-line);
  background:#fff;font-weight:800;font-size:15px;line-height:1;cursor:pointer;
  color:var(--bb-ink);display:flex;align-items:center;justify-content:center;padding:0;
}
.bb-qty-btn:hover{border-color:var(--bb-cta);color:var(--bb-cta)}
.bb-qty-btn[disabled]{opacity:.4;cursor:default}
.bb-qty-btn[disabled]:hover{border-color:var(--bb-line);color:var(--bb-ink)}
.bb-qty-input{
  width:42px;min-width:0;text-align:center;font-weight:700;font-size:14px;
  padding:3px 2px;border:2px solid var(--bb-line);border-radius:8px;background:#fff;
  color:var(--bb-ink);font-family:inherit;-moz-appearance:textfield;
}
.bb-qty-input::-webkit-outer-spin-button,
.bb-qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.bb-qty-input:focus{outline:none;border-color:var(--bb-cta)}
.bb-ci-qty-single{min-width:20px;text-align:center;font-weight:700;font-size:14px}

.bb-ci-price{
  order:4;flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;
  min-width:78px;line-height:1.3;
}
.bb-ci-price s{font-size:11.5px;color:var(--bb-muted)}
.bb-ci-price b{color:var(--bb-cta);font-size:15.5px;font-weight:800}
.bb-ci-save{
  font-size:10.5px;background:#EAF4E3;color:var(--bb-wa-dark);font-weight:700;
  padding:1px 8px;border-radius:999px;margin-top:3px;white-space:nowrap;
}

.bb-ci-remove{order:5;flex:0 0 auto;line-height:1}
.bb-ci-remove .remove{
  display:flex;align-items:center;justify-content:center;width:32px;height:32px;
  color:var(--bb-cta);text-decoration:none;background:#fff;
  border:1.5px solid var(--bb-line);border-radius:10px;
}
.bb-ci-remove .remove .bb-trash{display:block;pointer-events:none}
.bb-ci-remove .remove:hover{background:var(--bb-cta);border-color:var(--bb-cta);color:#fff}

/* WooCommerce needs this submit button for its AJAX cart update. */
.bb-cart-update{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ==========================================================================
   SUMMARY
   ========================================================================== */
.bb-cart-collaterals{width:100%}
.bb-cart-sum{
  width:100%;float:none;margin-top:18px;padding-top:12px;
  border-top:2px dashed var(--bb-line);
}
.bb-cart-sum h2{display:none}
.bb-sum-line{
  display:flex;justify-content:space-between;gap:12px;font-size:14.5px;
  padding:3px 0;color:var(--bb-ink-soft);font-weight:600;
}
.bb-sum-old del,.bb-sum-old del .amount{color:var(--bb-muted);text-decoration:line-through}
.bb-sum-disc>span:last-child{color:var(--bb-cta);font-weight:700}
.bb-sum-total{
  display:flex;justify-content:space-between;align-items:baseline;gap:12px;
  font-weight:700;font-size:17px;margin:10px 0 6px;color:var(--bb-ink);
}
.bb-sum-amt{font-size:24px;font-weight:800;color:var(--bb-cta)}
.bb-sum-grand{margin-top:2px}
.bb-save-band{
  display:flex;justify-content:space-between;gap:12px;background:#EAF4E3;
  color:var(--bb-wa-dark);font-weight:700;font-size:14.5px;
  border-radius:12px;padding:10px 14px;margin-top:6px;
}
.bb-dlv-note{
  font-size:13px;color:var(--bb-ink-soft);text-align:center;
  margin:12px 0 0;font-weight:600;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.bb-btn{
  display:flex;align-items:center;justify-content:center;gap:10px;width:100%;
  margin-top:14px;padding:15px 20px;border:none;border-radius:16px;cursor:pointer;
  font-family:inherit;font-weight:700;font-size:17px;text-decoration:none;
  text-align:center;min-height:52px;transition:transform .12s ease;
  box-shadow:5px 5px 0 rgba(34,51,36,.15);
}
.bb-btn:active{transform:translate(3px,3px);box-shadow:2px 2px 0 rgba(34,51,36,.15)}
.bb-btn-cta{background:var(--bb-cta);color:#fff}
.bb-btn-cta:hover{background:var(--bb-cta-dark);color:#fff}
.bb-btn-ghost{background:#fff;color:var(--bb-ink);border:2.5px solid var(--bb-ink)}
.bb-btn-ghost:hover{background:var(--bb-ink);color:#fff}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.bb-cart-empty{text-align:center;padding:46px 20px}
.bb-empty-ic{font-size:56px;line-height:1;margin-bottom:10px}
.bb-empty-title{font-size:21px;margin:0 0 6px;color:var(--bb-ink)}
.bb-empty-text{color:var(--bb-ink-soft);font-size:15px;margin:0 0 6px}
.bb-cart-empty .bb-btn{max-width:340px;margin-left:auto;margin-right:auto}

/* ==========================================================================
   TRUST CHIPS
   ========================================================================== */
body.woocommerce-cart .bb-trust{
  display:flex;gap:10px;flex-wrap:wrap;justify-content:center;max-width:100%;
}
/* Breathing room between the cart card and the trust chips. */
body.woocommerce-cart .elementor-widget.bb-cart-trust{margin-top:44px}
@media(max-width:1024px){
  body.woocommerce-cart .elementor-widget.bb-cart-trust{margin-top:36px}
}
@media(max-width:767px){
  body.woocommerce-cart .elementor-widget.bb-cart-trust{margin-top:30px}
  body.woocommerce-cart .bb-trust{gap:9px}
}
body.woocommerce-cart .bb-trust span{
  display:inline-flex;align-items:center;gap:6px;background:#fff;
  border:2px solid var(--bb-line);border-radius:999px;padding:6px 13px;
  font-size:13px;font-weight:600;color:var(--bb-ink);
}

/* ==========================================================================
   ADD-ON / CROSS-SELL PRODUCTS
   (same card language as the Single Product related section)
   ========================================================================== */
body.bb-no-crosssells .bb-cart-addons{display:none!important}

.bb-cart-related ul.products{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;
  margin:0;padding:0;list-style:none;
}
.bb-cart-related ul.products::before,
.bb-cart-related ul.products::after{display:none}
.bb-cart-related ul.products li.product{
  width:auto!important;margin:0!important;float:none!important;clear:none!important;
  background:var(--bb-paper);border:2px solid var(--bb-line);border-radius:var(--bb-radius);
  box-shadow:var(--bb-shadow);overflow:hidden;display:flex;flex-direction:column;
  position:relative;padding:0;text-align:start;
}
.bb-cart-related ul.products li.product>a.woocommerce-LoopProduct-link{
  display:flex;flex-direction:column;text-decoration:none;color:inherit;
}
.bb-cart-related ul.products li.product img{
  width:100%;aspect-ratio:1/1;object-fit:cover;margin:0;display:block;
  border-bottom:2px solid var(--bb-line);border-radius:0;
}
.bb-cart-related ul.products li.product .woocommerce-loop-product__title{
  font-size:15.5px;font-weight:700;color:var(--bb-ink);padding:14px 16px 4px;margin:0;line-height:1.35;
}
.bb-cart-related ul.products li.product .star-rating{margin:0 16px 6px;color:var(--bb-yellow);font-size:.9em}
.bb-cart-related ul.products li.product .price{
  display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding:0 16px 6px;margin:0;
  font-weight:800;color:var(--bb-cta);font-size:19px;
}
.bb-cart-related ul.products li.product .price del{font-size:12.5px;color:var(--bb-muted);font-weight:700;opacity:1}
.bb-cart-related ul.products li.product .price ins{text-decoration:none;background:none;color:var(--bb-cta)}
.bb-cart-related .bb-loop-save{
  display:inline-block;background:#EAF4E3;color:var(--bb-wa-dark);font-size:11.5px;
  font-weight:700;padding:2px 10px;border-radius:999px;margin:0 16px 10px;
}
.bb-cart-related ul.products li.product .button{
  margin:auto 16px 16px;display:flex;align-items:center;justify-content:center;
  background:var(--bb-cta);color:#fff;border:none;border-radius:12px;padding:11px 10px;
  font-weight:700;font-size:13.5px;text-align:center;min-height:44px;
}
.bb-cart-related ul.products li.product .button:hover{background:var(--bb-cta-dark);color:#fff}
.bb-cart-related ul.products li.product .onsale{
  position:absolute;top:12px;right:12px;left:auto;margin:0;background:var(--bb-cta);color:#fff;
  font-weight:700;font-size:12px;padding:4px 11px;border-radius:999px;
  min-height:0;min-width:0;line-height:1.5;
}
.bb-cart-related ul.products li.product .added_to_cart{
  margin:0 16px 14px;font-size:12.5px;font-weight:700;color:var(--bb-wa-dark);text-decoration:underline;
}

/* "সব খেলনা দেখুন" */
.bb-related-more .elementor-button{
  display:inline-flex;align-items:center;gap:8px;background:transparent;
  border:2px solid var(--bb-ink);color:var(--bb-ink);font-weight:700;font-size:15px;
  padding:13px 26px;border-radius:14px;box-shadow:none;
}
.bb-related-more .elementor-button:hover{background:var(--bb-ink);color:#fff}

/* ==========================================================================
   MOBILE STICKY CHECKOUT BAR (mobile only)
   ========================================================================== */
.bb-cart-sticky{display:none}

@media(max-width:768px){
  body.woocommerce-cart{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  .bb-cart-sticky{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:99;
    align-items:center;gap:10px;background:#fff;border-top:2px solid var(--bb-line);
    box-shadow:0 -4px 18px rgba(34,51,36,.12);
    padding:8px 12px calc(8px + env(safe-area-inset-bottom));
  }
  .bb-cart-sticky.is-hidden{display:none}
  .bb-cart-sticky-price{flex:0 0 auto;line-height:1.2;min-width:0}
  .bb-cart-sticky-label{display:block;font-size:11px;color:var(--bb-ink-soft);font-weight:600}
  .bb-cart-sticky-amt{display:block;font-size:19px;font-weight:800;color:var(--bb-cta);white-space:nowrap}
  .bb-cart-sticky-btn{
    flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:center;
    text-align:center;text-decoration:none;font-weight:700;font-size:15px;
    padding:12px 8px;min-height:48px;border-radius:12px;background:var(--bb-cta);color:#fff;
  }
  .bb-cart-sticky-btn:hover{background:var(--bb-cta-dark);color:#fff}
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media(max-width:768px){
  .bb-cart-card{padding:18px 14px}
  .bb-ci{gap:8px;padding:10px 8px}
  .bb-ci-thumb,.bb-ci-thumb img{width:42px;height:42px}
  .bb-ci-price{min-width:70px}
  .bb-ci-price b{font-size:14px}
  .bb-qty-btn{width:25px;height:25px}
  .bb-qty-input{width:38px}
  .bb-btn{font-size:16px;padding:14px 16px}
  .bb-sum-amt{font-size:21px}

  .bb-cart-related ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .bb-cart-related ul.products li.product .woocommerce-loop-product__title{font-size:13px;padding:11px 11px 4px}
  .bb-cart-related ul.products li.product .price{font-size:16px;padding:0 11px 6px}
  .bb-cart-related .bb-loop-save{margin:0 11px 8px}
  .bb-cart-related ul.products li.product .button{margin:auto 11px 11px;font-size:11.5px;padding:10px 6px}
  .bb-cart-related ul.products li.product .added_to_cart{margin:0 11px 10px}
}

/* Phones: thumbnail left, product info stacked to its right,
   quantity and delete on a bottom row aligned under that info. */
@media(max-width:600px){
  .bb-ci{gap:8px 10px;padding:12px 12px;align-items:flex-start}

  .bb-ci-thumb{order:1;flex:0 0 54px}
  .bb-ci-thumb,.bb-ci-thumb img{width:54px;height:54px}

  .bb-ci-info{order:2;flex:1 1 0;min-width:0}
  .bb-ci-name{font-size:13.5px}
  .bb-ci-meta{flex-direction:column;gap:1px}
  .bb-ci-meta span{font-size:11.5px;overflow-wrap:anywhere}

  .bb-ci-price{
    order:3;flex:1 1 100%;min-width:0;margin:2px 0 0 64px;
    flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 7px;
  }
  .bb-ci-price b{order:1;font-size:15px}
  .bb-ci-price s{order:2}
  .bb-ci-save{order:3;margin-top:0;font-size:10px;padding:1px 8px;white-space:normal}

  .bb-ci-qty{order:4;flex:0 0 auto;margin-left:64px;gap:6px}
  .bb-ci-remove{order:5;flex:0 0 auto;margin-left:auto;align-self:center}
  .bb-ci-remove .remove{width:32px;height:32px}

  .bb-cart-card{padding:16px 12px}
  .bb-btn{font-size:15.5px;min-height:50px}
  body.woocommerce-cart .bb-trust span{font-size:12px;padding:6px 11px}
}

/* ==========================================================================
   TRUST CHIPS — single row on mobile
   Matches the Single Product page treatment: the chips stay on one line and
   the row scrolls horizontally (scrollbar hidden) instead of wrapping onto a
   second line. Cart page + mobile only; desktop and tablet are unchanged.
   ========================================================================== */
@media(max-width:767px){
  body.woocommerce-cart .bb-trust{
    flex-wrap:nowrap;
    gap:7px;
    overflow-x:auto;
    scrollbar-width:none;
    padding-bottom:2px;
  }
  body.woocommerce-cart .bb-trust::-webkit-scrollbar{display:none}
  body.woocommerce-cart .bb-trust span{
    font-size:12px;
    padding:6px 10px;
    gap:5px;
    white-space:nowrap;
    flex-shrink:0;
  }
}
@media(max-width:480px){
  body.woocommerce-cart .bb-trust span{font-size:10.5px;padding:4px 8px;gap:4px}
}
/* ==========================================================================
   ADD-ON / CROSS-SELL CARDS — copied verbatim from the Single Product page's
   related-products section (.bb-related) so both sections share one layout.
   The cart markup already carries the .bb-related class, and this file is
   enqueued only on the cart page, so nothing else can be reached by it.
   ========================================================================== */
.bb-related:not(:has(li.product)){display:none}
.bb-related .related.products>h2,
.bb-related .products>h2{display:none}
.bb-related .bb-related-more .elementor-button{display:inline-flex;align-items:center;gap:8px;background:transparent; border:2px solid var(--bb-ink);color:var(--bb-ink);font-weight:700;font-size:15px; padding:13px 26px;border-radius:14px;box-shadow:none;}
.bb-related .bb-related-more .elementor-button:hover{background:var(--bb-ink);color:#fff}
.bb-related ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px; margin:0;padding:0;list-style:none;}
.bb-related ul.products::before,.bb-related ul.products::after{display:none}
.bb-related ul.products li.product{width:auto!important;margin:0!important;float:none!important;clear:none!important; background:var(--bb-paper);border:2px solid var(--bb-line);border-radius:var(--bb-radius); box-shadow:var(--bb-shadow);overflow:hidden;display:flex;flex-direction:column;position:relative; padding:0;text-align:start;}
.bb-related ul.products li.product>a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;text-decoration:none;color:inherit}
.bb-related ul.products li.product img{width:100%;aspect-ratio:1/1;object-fit:cover;margin:0;display:block; border-bottom:2px solid var(--bb-line);border-radius:0;}
.bb-related ul.products li.product .woocommerce-loop-product__title{font-size:15.5px;font-weight:700;color:var(--bb-ink);padding:14px 16px 4px;margin:0;line-height:1.35;}
.bb-related ul.products li.product .star-rating{margin:0 16px 6px;color:var(--bb-yellow);font-size:.9em}
.bb-related ul.products li.product .price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding:0 16px 10px;margin:0; font-weight:800;color:var(--bb-cta);font-size:19px;}
.bb-related ul.products li.product .price del{font-size:12.5px;color:var(--bb-muted);font-weight:700;opacity:1}
.bb-related ul.products li.product .price ins{text-decoration:none;background:none;color:var(--bb-cta)}
.bb-related ul.products li.product .button{margin:auto 16px 16px;display:flex;align-items:center;justify-content:center; background:var(--bb-cta);color:#fff;border:none;border-radius:12px;padding:11px 10px; font-weight:700;font-size:13.5px;text-align:center;min-height:44px;}
.bb-related ul.products li.product .button:hover{background:var(--bb-cta-dark);color:#fff}
.bb-related ul.products li.product .onsale{position:absolute;top:12px;right:12px;left:auto;margin:0;background:var(--bb-cta);color:#fff; font-weight:700;font-size:12px;padding:4px 11px;border-radius:999px;min-height:0;min-width:0;line-height:1.5;}
.bb-related ul.products li.product .added_to_cart{margin:0 16px 14px;font-size:12.5px;font-weight:700;color:var(--bb-wa-dark);text-decoration:underline;}
@media(min-width:769px) and (max-width:1024px){
  .bb-related ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
}
@media(max-width:768px){
  .bb-related ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .bb-related ul.products li.product .woocommerce-loop-product__title{font-size:13.5px;padding:11px 12px 4px}
  .bb-related ul.products li.product .price{font-size:16px;padding:0 12px 8px}
  .bb-related ul.products li.product .button{margin:auto 12px 12px;font-size:12px;padding:10px 6px}
}
.bb-related .bb-save-pill{display:none!important}
.bb-related ul.products li.product .button{background:var(--bb-cta);color:#fff;border:none;border-radius:12px;font-weight:700; box-shadow:4px 4px 0 rgba(34,51,36,.12);transition:transform .12s ease,background-color .15s;}
.bb-related ul.products li.product .button:active{transform:translate(2px,2px);box-shadow:1px 1px 0 rgba(34,51,36,.12)}
.bb-related ul.products li.product .button.loading{opacity:.7}
.bb-related ul.products li.product .added_to_cart{display:block;text-align:center;margin:0 16px 14px;padding:9px 6px;border-radius:12px; border:2px solid var(--bb-ink);color:var(--bb-ink);font-weight:700;font-size:12.5px;text-decoration:none;}
.bb-related ul.products li.product .added_to_cart:hover{background:var(--bb-ink);color:#fff}
@media(max-width:768px){
  .bb-hero-media .woocommerce-product-gallery,
  .bb-desc-body,
  .bb-related ul.products,
  .bb-reviews ol.commentlist{max-width:100%}
}
.bb-related .bb-section-title .elementor-heading-title{text-align:center}
.bb-related ul.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px; max-width:960px;margin-inline:auto;}
.bb-related ul.products li.product{background:var(--bb-paper);border:2px solid var(--bb-line);border-radius:22px; box-shadow:0 6px 18px rgba(34,51,36,.07);overflow:hidden;padding-bottom:16px;}
.bb-related ul.products li.product img{aspect-ratio:1/1;object-fit:cover;border-bottom:2px solid var(--bb-line);}
.bb-related ul.products li.product .onsale,
.bb-related ul.products li.product .bb-loop-discount{position:absolute;top:14px;right:14px;left:auto;margin:0; background:var(--bb-cta);color:#fff;font-weight:700;font-size:12.5px; padding:5px 13px;border-radius:999px;line-height:1.5;min-height:0;min-width:0; box-shadow:0 3px 8px rgba(226,105,79,.35);}
.bb-related ul.products li.product .woocommerce-loop-product__title{font-size:16px;font-weight:700;padding:16px 18px 6px;line-height:1.4;}
.bb-related ul.products li.product .price{padding:0 18px 8px;font-size:21px;font-weight:800;gap:9px;}
.bb-related ul.products li.product .price del{font-size:13.5px}
.bb-related .bb-loop-save{display:inline-flex;align-items:center;margin:0 18px 14px; background:#EAF4E3;border:1.5px solid #CFE3C2;color:var(--bb-wa-dark); font-weight:700;font-size:12.5px;padding:5px 12px;border-radius:999px;}
.bb-related ul.products li.product .bb-loop-buy,
.bb-related ul.products li.product .button{display:inline-flex;align-items:center;justify-content:center;gap:6px; height:42px;padding:0 12px;border-radius:12px;font-weight:700;font-size:13.5px; margin:0;text-decoration:none;white-space:nowrap;min-height:0;}
.bb-related ul.products li.product .bb-loop-buy{background:var(--bb-cta);color:#fff;border:2px solid var(--bb-cta);}
.bb-related ul.products li.product .bb-loop-buy:hover{background:var(--bb-cta-dark);border-color:var(--bb-cta-dark);color:#fff}
.bb-related ul.products li.product .button{background:#fff!important;color:var(--bb-ink)!important;border:2px solid var(--bb-ink); box-shadow:none;}
.bb-related ul.products li.product .button:hover{background:var(--bb-ink)!important;color:#fff!important}
.bb-related ul.products li.product{display:flex;flex-direction:column}
.bb-related ul.products li.product>a.woocommerce-LoopProduct-link{flex:1 1 auto}
.bb-related .bb-loop-cta{display:flex;flex-wrap:wrap;gap:8px;margin:auto 18px 0;align-items:stretch}
.bb-related .bb-loop-cta>.bb-loop-buy,
.bb-related .bb-loop-cta>.button{flex:1 1 0;min-width:0}
.bb-related .bb-loop-cta>.added_to_cart{flex:1 0 100%;margin:0}
.bb-related .bb-related-more{margin-top:8px}
@media(max-width:1024px){
  .bb-related ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:100%}
}
@media(max-width:768px){
  .bb-related ul.products{gap:12px}
  .bb-related ul.products li.product{border-radius:18px;padding-bottom:12px}
  .bb-related ul.products li.product .woocommerce-loop-product__title{font-size:13.5px;padding:12px 12px 4px}
  .bb-related ul.products li.product .price{font-size:16.5px;padding:0 12px 6px}
  .bb-related .bb-loop-save{margin:0 12px 10px;font-size:11px;padding:4px 9px}
  .bb-related ul.products li.product .bb-loop-buy,
  .bb-related ul.products li.product .button{height:38px;font-size:11.5px;padding:0 6px;border-radius:10px}
  .bb-related ul.products li.product .bb-loop-buy{margin-left:12px}
  .bb-related ul.products li.product .button{margin-right:12px;margin-left:6px}
  .bb-related ul.products li.product .onsale,
  .bb-related ul.products li.product .bb-loop-discount{top:10px;right:10px;font-size:11px;padding:4px 10px}
}
@media(max-width:768px){
  .bb-related .bb-loop-cta{margin:auto 12px 0;gap:6px}
}
.bb-related .bb-loop-cta>*{margin:0!important}
.bb-related ul.products li.product .added_to_cart{border:none;text-decoration:none}
.bb-related ul.products{align-items:stretch}
.bb-related ul.products li.product{overflow:visible;height:100%;padding-bottom:18px;}
.bb-related ul.products li.product img{border-top-left-radius:20px;border-top-right-radius:20px;}
.bb-related ul.products li.product>a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;}
.bb-related ul.products li.product>a.woocommerce-LoopProduct-link>img{flex:0 0 auto}
.bb-related .bb-loop-cta{margin-top:auto;flex-shrink:0;padding-top:4px}
@media(max-width:768px){
  .bb-related ul.products li.product{padding-bottom:14px}
  .bb-related ul.products li.product img{border-top-left-radius:16px;border-top-right-radius:16px}
  .bb-related .bb-loop-cta{flex-direction:column;gap:7px}
  .bb-related .bb-loop-cta>.bb-loop-buy,
  .bb-related .bb-loop-cta>.button{flex:0 0 auto;width:100%}
}
.bb-related ul.products li.product{display:flex!important;flex-direction:column!important;justify-content:flex-start}
.bb-related ul.products li.product>a.woocommerce-LoopProduct-link{width:100%}
.bb-related .bb-loop-cta{width:auto}
@media(min-width:769px){
  .bb-related ul.products li.product{padding-bottom:18px!important}
}
@media(max-width:768px){
  .bb-related ul.products li.product{padding-bottom:16px!important}
}

/* The Single Product related grid gets its grid gap and title weight from the
   Elementor widget itself rather than the stylesheet, so those two values are
   reproduced here to finish matching the rendered card layout. */
.bb-related ul.products{gap:40px 20px}
.bb-related ul.products li.product .woocommerce-loop-product__title{font-weight:800}

/* The add-on section's Elementor container was boxed at 760px, while the Single
   Product related section sits in a 1080px one. At 760px the 3-column grid made
   240px cards, leaving each CTA button 96px for text that needs 101px — which is
   why the two buttons overlapped. Matching the product page's container width
   lets the grid reach its own 960px max and produces identical 306.7px cards.
   Desktop only; the tablet/mobile column counts already handle themselves. */
@media(min-width:1025px){
  .bb-cart-addons>.e-con-inner{max-width:1080px}
}

/* =========================================================
   MICRO FIX - quantity row and delete button

   The theme's input[type=number] rule is (0,1,1) and beat
   .bb-qty-input (0,1,0), so the field stretched to 100% and
   shoved the delete button onto its own line. Matching on the
   parent wins the cascade and pins the field.

   .woocommerce a.remove is (0,2,1) and beat .bb-ci-remove
   .remove (0,2,0), forcing a 1em box with border-radius:100%,
   which is why the red hover circle sat off-centre from the
   icon. Same specificity here puts it back.
   ========================================================= */
.bb-ci .bb-ci-qty{flex:0 0 auto;flex-wrap:nowrap}
.bb-ci .bb-qty-btn{flex:0 0 auto}
.bb-ci .bb-ci-qty input.bb-qty-input{
  flex:0 0 46px;
  width:46px;
  min-width:46px;
  max-width:46px;
  box-sizing:border-box;
}
/* The title block absorbs the slack so the controls stay in one row. */
.bb-ci .bb-ci-info{flex:1 1 140px;min-width:0}
.bb-ci .bb-ci-name{overflow-wrap:anywhere}
.bb-ci .bb-ci-remove{flex:0 0 auto}

.bb-cart-list .bb-ci-remove a.remove{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  min-width:32px;
  padding:0;
  margin:0;
  font-size:14px;
  line-height:1;
  border:1.5px solid var(--bb-line);
  border-radius:10px;
  background:#fff;
  color:var(--bb-cta)!important;
  box-sizing:border-box;
}
.bb-cart-list .bb-ci-remove a.remove:hover,
.bb-cart-list .bb-ci-remove a.remove:focus{
  background:var(--bb-cta);
  border-color:var(--bb-cta);
  color:#fff!important;
}
.bb-cart-list .bb-ci-remove a.remove .bb-trash{display:block;width:15px;height:15px}

@media(max-width:600px){
  .bb-ci .bb-ci-qty input.bb-qty-input{flex:0 0 40px;width:40px;min-width:40px;max-width:40px}
  .bb-cart-list .bb-ci-remove a.remove{width:30px;height:30px;min-width:30px}
}

/* =========================================================
   Sale badge on the suggestion cards

   Two rules out-rank a .bb-related selector here:
     .elementor-products-grid ul.products.elementor-grid
       li.product .onsale          (0,5,2)  padding:0
     .elementor-101 ... span.onsale (0,7,3)  display:block
   against .bb-related ul.products li.product .onsale (0,4,2).

   So every padding value set here was being discarded and the
   badge fell back to WooCommerce min-height:3.236em with
   border-radius:100% - a round blob with the text at the top.
   Out-ranking a template-generated (0,7,3) selector would mean
   hard-coding the Elementor element id, which breaks the moment
   the widget is rebuilt, so display and padding are forced here
   instead. Nothing else uses !important.
   ========================================================= */
.bb-related ul.products li.product .onsale,
.bb-related ul.products li.product .bb-loop-discount{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  padding:9px 16px!important;
  min-height:30px;
  min-width:0;
  line-height:1.5;
  border-radius:999px;
  top:16px;
  right:16px;
  left:auto;
  margin:0;
  white-space:nowrap;
  overflow:visible;
  z-index:3;
  max-width:calc(100% - 32px);
  box-sizing:border-box;
}
@media(max-width:600px){
  .bb-related ul.products li.product .onsale,
  .bb-related ul.products li.product .bb-loop-discount{
    padding:7px 13px!important;
    min-height:27px;
    top:12px;
    right:12px;
  }
}
