/* ============================================================
   BharosaBazaar — bb-pages.css
   Cart · Checkout · My Account · Single Product · Mobile Menu
   ============================================================ */

/* ── WC MAIN WRAPPER ──────────────────────────────────────── */
.bb-wc-main {
  padding: 0 0 64px;
  min-height: 50vh;
}

/* ── WC NOTICES ───────────────────────────────────────────── */
.bb-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
}
.bb-notice--success { background: #ECFDF5; border: 1px solid #6EE7B7; color: #065F46; }
.bb-notice--error   { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; }
.bb-notice--info    { background: #EFF6FF; border: 1px solid #93C5FD; color: #1E40AF; }
.bb-notice__icon    { flex-shrink: 0; margin-top: 1px; }
.bb-notice__list    { list-style: none; }
.bb-notice__list li { margin-bottom: 4px; }
.bb-notice__list li:last-child { margin-bottom: 0; }

/* ── WC INPUT STYLE ───────────────────────────────────────── */
.bb-input,
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper select,
.woocommerce-input-wrapper textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--bb-border);
  border-radius: 9px;
  font-family: var(--bb-font-body);
  font-size: 14px;
  color: var(--bb-text-primary);
  background: var(--bb-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.bb-input:focus,
.woocommerce-input-wrapper input:focus,
.woocommerce-input-wrapper select:focus,
.woocommerce-input-wrapper textarea:focus {
  border-color: var(--bb-blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.08);
}
.bb-input::placeholder { color: var(--bb-text-light); }

.bb-select-wrap { position: relative; }
.bb-select-wrap select { padding-right: 36px; cursor: pointer; }
.bb-select-chevron {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); pointer-events: none;
  color: var(--bb-text-muted);
}
.bb-orderby-form { display: inline-flex; }
.bb-orderby-select {
  padding: 9px 36px 9px 14px;
  border: 1.5px solid var(--bb-border);
  border-radius: 8px;
  font-family: var(--bb-font-body);
  font-size: 13.5px;
  color: var(--bb-text-secondary);
  background: var(--bb-surface);
  outline: none;
  cursor: pointer;
  appearance: none;
}

/* ── CART PAGE ────────────────────────────────────────────── */
.bb-main--cart,
.bb-wc-main { padding-bottom: 64px; }

.bb-cart-wrap { padding-top: 28px; }

.bb-cart-table-wrap { overflow-x: auto; margin-bottom: 40px; }

.bb-cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bb-cart-table__head tr th {
  padding: 12px 16px;
  background: var(--bb-surface-alt);
  border-bottom: 2px solid var(--bb-border);
  font-family: var(--bb-font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bb-text-muted);
  text-align: left;
}
.bb-cart-row td {
  padding: 16px;
  border-bottom: 1px solid var(--bb-border-light);
  vertical-align: middle;
}

.bb-cart-remove {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bb-surface-alt);
  border: none; cursor: pointer; color: var(--bb-text-muted);
  transition: all 0.2s; text-decoration: none;
}
.bb-cart-remove:hover { background: #FEE2E2; color: #EF4444; }

.bb-cart-thumb-link img,
.bb-cart-table img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }

.bb-cart-product-name { font-weight: 600; color: var(--bb-text-primary); text-decoration: none; }
.bb-cart-product-name:hover { color: var(--bb-blue); }

.bb-cart-price ins,
.bb-cart-subtotal ins { text-decoration: none; }

/* Quantity in cart */
.bb-cart-qty .bb-qv__qty-wrap,
.bb-cart-qty .qty-wrap { display: inline-flex; }

/* Cart Actions Row */
.bb-cart-actions td { padding: 20px 16px; }
.bb-coupon-wrap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bb-coupon-input {
  width: 220px; padding: 10px 14px;
  border: 1.5px solid var(--bb-border); border-radius: 8px;
  font-family: var(--bb-font-body); font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.bb-coupon-input:focus { border-color: var(--bb-blue); }
.bb-cart-update { margin-left: auto; }

/* Cart Collaterals */
.bb-cart-collaterals { display: flex; justify-content: flex-end; margin-top: 16px; }
.bb-cart-totals {
  width: 100%; max-width: 420px;
  background: var(--bb-surface);
  border: 1.5px solid var(--bb-border);
  border-radius: 16px;
  padding: 28px;
}
.bb-cart-totals__title {
  font-family: var(--bb-font-display);
  font-size: 19px; font-weight: 700;
  color: var(--bb-text-primary);
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--bb-border);
}
.bb-cart-totals-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.bb-cart-totals-table tr th,
.bb-cart-totals-table tr td { padding: 10px 0; border-bottom: 1px solid var(--bb-border-light); font-size: 14px; }
.bb-cart-totals-table tr th { color: var(--bb-text-muted); font-weight: 500; }
.bb-cart-totals-table tr td { text-align: right; font-weight: 600; color: var(--bb-text-primary); }
.bb-cart-totals-total th,
.bb-cart-totals-total td { font-size: 17px !important; font-weight: 800 !important; padding-top: 16px !important; border-bottom: none !important; }
.bb-cart-checkout-btn-wrap a.checkout-button,
.bb-cart-checkout-btn-wrap .wc-proceed-to-checkout a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px;
  background: var(--bb-navy); color: #fff;
  border-radius: var(--bb-btn-radius);
  font-family: var(--bb-font-display); font-size: 16px; font-weight: 700;
  text-decoration: none; transition: background 0.2s;
  margin-bottom: 16px;
}
.bb-cart-checkout-btn-wrap a.checkout-button:hover,
.bb-cart-checkout-btn-wrap .wc-proceed-to-checkout a:hover { background: var(--bb-blue); }
.bb-cart-trust { display: flex; flex-direction: column; gap: 8px; }
.bb-cart-trust__item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--bb-text-muted);
}

/* Empty Cart */
.bb-empty-cart { text-align: center; padding: 60px 20px 40px; }
.bb-empty-cart__graphic svg { width: 180px; height: 180px; margin: 0 auto 28px; }
.bb-empty-cart__title {
  font-family: var(--bb-font-display); font-size: 26px; font-weight: 800;
  color: var(--bb-text-primary); margin-bottom: 10px;
}
.bb-empty-cart__desc { font-size: 15px; color: var(--bb-text-muted); max-width: 420px; margin: 0 auto 28px; line-height: 1.7; }
.bb-empty-cart__shop-btn { font-size: 16px; padding: 14px 32px; }
.bb-empty-cart__recently { margin-top: 56px; }
.bb-empty-cart__rv-label { font-family: var(--bb-font-display); font-size: 18px; font-weight: 700; color: var(--bb-text-primary); margin-bottom: 20px; }

/* ── CHECKOUT PAGE ────────────────────────────────────────── */
.bb-checkout-trust {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: #ECFDF5; border: 1px solid #6EE7B7;
  border-radius: 10px; padding: 12px 18px;
  margin-bottom: 28px; font-size: 13px; font-weight: 600; color: #065F46;
}
.bb-checkout-trust__item { display: flex; align-items: center; gap: 7px; }

.bb-checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.bb-checkout-section {
  background: var(--bb-surface);
  border: 1.5px solid var(--bb-border-light);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.bb-checkout-section__title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--bb-font-display);
  font-size: 16px; font-weight: 700;
  color: var(--bb-text-primary);
  margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 1px solid var(--bb-border);
}
.bb-checkout-login-prompt {
  background: var(--bb-surface-alt); border: 1px solid var(--bb-border);
  border-radius: 9px; padding: 12px 16px;
  font-size: 13.5px; color: var(--bb-text-secondary);
  margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.bb-checkout-login-link { color: var(--bb-blue); font-weight: 600; text-decoration: none; }

/* WooCommerce form fields */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--bb-text-secondary); margin-bottom: 6px; }
.form-row label .required { color: var(--bb-orange-hot); }
.form-row input.input-text,
.form-row select,
.form-row textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--bb-border); border-radius: 9px; font-family: var(--bb-font-body); font-size: 14px; outline: none; transition: border-color 0.2s; }
.form-row input.input-text:focus,
.form-row select:focus { border-color: var(--bb-blue); box-shadow: 0 0 0 3px rgba(26,86,219,0.08); }
.form-row.form-row-wide { grid-column: 1 / -1; }
.form-row.woocommerce-invalid input { border-color: #EF4444; }
.form-row.woocommerce-validated input { border-color: var(--bb-green); }

/* Payment methods */
.wc_payment_methods { list-style: none; }
.wc_payment_method { border: 1.5px solid var(--bb-border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: border-color 0.2s; }
.wc_payment_method:has(input:checked) { border-color: var(--bb-blue); background: #EFF6FF; }
.wc_payment_method label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.payment_box { padding: 14px 16px; background: var(--bb-surface-alt); border-radius: 8px; margin-top: 10px; font-size: 13px; color: var(--bb-text-muted); }
#place_order {
  width: 100%; padding: 16px; margin-top: 16px;
  background: var(--bb-navy); color: #fff;
  border: none; border-radius: var(--bb-btn-radius);
  font-family: var(--bb-font-display); font-size: 17px; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
}
#place_order:hover { background: var(--bb-blue); }

/* Order Review Table */
table.shop_table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.shop_table th { padding: 10px 0; font-weight: 700; color: var(--bb-text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid var(--bb-border); }
table.shop_table td { padding: 12px 0; border-bottom: 1px solid var(--bb-border-light); }
table.shop_table .order-total td, table.shop_table .order-total th { font-size: 16px; font-weight: 800; color: var(--bb-text-primary); border-top: 2px solid var(--bb-border); border-bottom: none; }

@media (max-width: 900px) {
  .bb-checkout-grid { grid-template-columns: 1fr; }
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
}

/* ── THANK YOU PAGE ───────────────────────────────────────── */
.bb-thankyou { padding: 32px 0 64px; max-width: 820px; margin: 0 auto; }
.bb-thankyou__banner {
  text-align: center; background: var(--bb-navy); color: #fff;
  border-radius: 20px; padding: 48px 32px; margin-bottom: 36px;
}
.bb-thankyou__check-wrap { margin-bottom: 24px; }
.bb-thankyou__check { width: 80px; height: 80px; margin: 0 auto; }
.bb-thankyou__title { font-family: var(--bb-font-display); font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.bb-thankyou__subtitle { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.bb-thankyou__order-num { font-size: 14px; color: rgba(255,255,255,0.6); }
.bb-thankyou__info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.bb-thankyou__info-box { background: var(--bb-surface); border: 1.5px solid var(--bb-border); border-radius: 12px; padding: 16px; text-align: center; }
.bb-thankyou__info-label { font-size: 12px; color: var(--bb-text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.bb-thankyou__info-val { font-family: var(--bb-font-display); font-size: 15px; font-weight: 700; color: var(--bb-text-primary); }
.bb-thankyou__total { color: var(--bb-navy); font-size: 18px !important; }
.bb-order-status { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.bb-order-status--processing { background: #DBEAFE; color: #1E40AF; }
.bb-order-status--completed  { background: #D1FAE5; color: #065F46; }
.bb-order-status--pending    { background: #FEF3C7; color: #92400E; }
.bb-order-status--cancelled  { background: #FEE2E2; color: #991B1B; }
.bb-order-status--on-hold    { background: #E5E7EB; color: #374151; }
.bb-thankyou__section-title { font-family: var(--bb-font-display); font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.bb-order-table { width: 100%; border-collapse: collapse; }
.bb-order-table th { padding: 10px 14px; background: var(--bb-surface-alt); border-bottom: 2px solid var(--bb-border); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bb-text-muted); text-align: left; }
.bb-order-table td { padding: 14px; border-bottom: 1px solid var(--bb-border-light); font-size: 14px; }
.bb-order-table tfoot td,
.bb-order-table tfoot th { padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--bb-border-light); }
.bb-order-item { display: flex; align-items: center; gap: 12px; }
.bb-order-item__img { width: 48px; height: 48px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.bb-order-item__name { font-weight: 600; color: var(--bb-text-primary); }
.bb-thankyou__addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.bb-thankyou__address-box { background: var(--bb-surface-alt); border-radius: 12px; padding: 20px; }
.bb-thankyou__address-box h4 { font-family: var(--bb-font-display); font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.bb-thankyou__address-box address { font-size: 14px; color: var(--bb-text-secondary); line-height: 1.7; font-style: normal; }
.bb-thankyou__actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .bb-thankyou__info-grid { grid-template-columns: 1fr 1fr; }
  .bb-thankyou__addresses { grid-template-columns: 1fr; }
}

/* ── MY ACCOUNT ───────────────────────────────────────────── */
.bb-myaccount { padding: 32px 0 64px; }
.bb-myaccount__header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bb-navy); border-radius: 18px; padding: 28px 32px;
  margin-bottom: 36px; gap: 20px; flex-wrap: wrap;
}
.bb-myaccount__avatar-wrap { display: flex; align-items: center; gap: 18px; }
.bb-myaccount__avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.3); }
.bb-myaccount__name { font-family: var(--bb-font-display); font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.bb-myaccount__email { font-size: 13.5px; color: rgba(255,255,255,0.65); margin-bottom: 4px; }
.bb-myaccount__since { font-size: 12px; color: rgba(255,255,255,0.45); }
.bb-myaccount__logout { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.25); font-size: 13px; }
.bb-myaccount__logout:hover { color: #fff; border-color: #fff; }

.bb-myaccount__layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }

.bb-myaccount__nav {
  background: var(--bb-surface); border: 1.5px solid var(--bb-border-light);
  border-radius: 16px; padding: 12px; position: sticky; top: 110px;
}
.bb-myaccount__nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--bb-text-secondary);
  text-decoration: none; transition: all 0.2s; margin-bottom: 2px;
}
.bb-myaccount__nav-link:hover { background: var(--bb-surface-alt); color: var(--bb-navy); }
.bb-myaccount__nav-link.is-active { background: var(--bb-navy); color: #fff; }

.bb-myaccount__content {
  background: var(--bb-surface); border: 1.5px solid var(--bb-border-light);
  border-radius: 16px; padding: 28px;
}
/* WooCommerce account content */
.woocommerce-account .woocommerce { padding: 0; }

/* Account Dashboard */
.bb-account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.bb-account-stat-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bb-surface-alt); border: 1.5px solid var(--bb-border-light);
  border-radius: 14px; padding: 20px;
}
.bb-account-stat-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bb-account-stat-card__icon--orders  { background: #EFF6FF; color: #1A56DB; }
.bb-account-stat-card__icon--heart   { background: #FFF1F2; color: #EF4444; }
.bb-account-stat-card__icon--address { background: #F0FDF4; color: #059669; }
.bb-account-stat-card__num { font-family: var(--bb-font-display); font-size: 28px; font-weight: 800; color: var(--bb-text-primary); line-height: 1; }
.bb-account-stat-card__label { font-size: 12px; color: var(--bb-text-muted); margin-top: 4px; }
.bb-account-welcome { font-size: 14px; color: var(--bb-text-secondary); line-height: 1.8; background: var(--bb-surface-alt); border-radius: 12px; padding: 18px; margin-bottom: 28px; }
.bb-account-welcome a { color: var(--bb-blue); }

.bb-account-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bb-account-section-header h3 { font-family: var(--bb-font-display); font-size: 17px; font-weight: 700; color: var(--bb-text-primary); }
.bb-section__cta--sm { font-size: 13px; padding: 6px 12px; }

.bb-orders-list { display: flex; flex-direction: column; gap: 0; }
.bb-order-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--bb-border-light);
  gap: 16px; flex-wrap: wrap;
}
.bb-order-row:last-child { border-bottom: none; }
.bb-order-row__info { display: flex; flex-direction: column; gap: 3px; }
.bb-order-row__num { font-weight: 700; font-size: 14px; color: var(--bb-text-primary); }
.bb-order-row__date { font-size: 12px; color: var(--bb-text-muted); }
.bb-order-row__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bb-order-row__total { font-weight: 700; font-size: 15px; color: var(--bb-text-primary); }
.bb-btn--xs { padding: 6px 14px; font-size: 12.5px; }

/* WC Orders table */
.woocommerce-orders-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce-orders-table th { padding: 10px 14px; background: var(--bb-surface-alt); border-bottom: 2px solid var(--bb-border); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bb-text-muted); text-align: left; }
.woocommerce-orders-table td { padding: 14px; border-bottom: 1px solid var(--bb-border-light); }
.woocommerce-orders-table a { color: var(--bb-blue); text-decoration: none; }

@media (max-width: 900px) {
  .bb-myaccount__layout { grid-template-columns: 1fr; }
  .bb-myaccount__nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
  .bb-myaccount__nav-link { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 600px) {
  .bb-account-stats { grid-template-columns: 1fr; }
  .bb-myaccount__header { padding: 20px; }
}

/* ── SINGLE PRODUCT ───────────────────────────────────────── */
.bb-main--product,
.bb-product-single .bb-wc-main { padding-bottom: 64px; }
.bb-product-single .bb-wc-main .bb-container { max-width: 1200px; }

/* WC single product overrides */
.woocommerce-product-gallery { border-radius: 16px; overflow: hidden; }
.woocommerce-product-gallery__image a { display: block; }
.woocommerce-product-gallery__image img { border-radius: 14px; }

.summary.entry-summary .product_title {
  font-family: var(--bb-font-display) !important;
  font-size: clamp(22px, 3.5vw, 34px) !important;
  font-weight: 800 !important;
  color: var(--bb-text-primary) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
}
.summary.entry-summary .price {
  font-family: var(--bb-font-display);
  font-size: 28px !important; font-weight: 800 !important;
  color: var(--bb-text-primary) !important; margin: 14px 0 !important;
}
.summary.entry-summary .price ins { text-decoration: none; }
.summary.entry-summary .price del { font-size: 16px; opacity: 0.5; margin-left: 8px; font-weight: 400; }

.summary .cart { margin: 24px 0 !important; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.summary .single_add_to_cart_button {
  background: var(--bb-navy) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--bb-btn-radius) !important;
  font-family: var(--bb-font-display) !important;
  font-size: 16px !important; font-weight: 700 !important;
  padding: 14px 28px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.summary .single_add_to_cart_button:hover { background: var(--bb-blue) !important; }

/* Product tabs */
.woocommerce-tabs.wc-tabs-wrapper { margin-top: 48px; }
.woocommerce-tabs ul.tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--bb-border);
  list-style: none; padding: 0; margin: 0 0 28px;
}
.woocommerce-tabs ul.tabs li {
  margin: 0 !important; padding: 0 !important; background: none !important;
  border: none !important; border-radius: 0 !important;
}
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li a {
  display: block; padding: 12px 22px !important;
  font-family: var(--bb-font-display); font-size: 14px; font-weight: 600;
  color: var(--bb-text-muted) !important; text-decoration: none;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all 0.2s;
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
  color: var(--bb-navy) !important;
  border-bottom-color: var(--bb-navy) !important;
}
.woocommerce-tabs .panel { padding: 0 !important; font-size: 15px; line-height: 1.8; color: var(--bb-text-secondary); }

/* Related products */
.related.products > h2,
.upsells.products > h2 {
  font-family: var(--bb-font-display) !important;
  font-size: 22px !important; font-weight: 700 !important;
  color: var(--bb-text-primary) !important; margin-bottom: 24px !important;
}
.related.products ul.products,
.upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 20px !important; list-style: none !important; padding: 0 !important;
}

/* ── MOBILE MENU DRAWER ───────────────────────────────────── */
#bb-mobile-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 9800;
}
#bb-mobile-drawer.is-open { display: block; }

.bb-mob-drawer__overlay {
  position: fixed; inset: 0;
  background: rgba(10,22,40,0.55);
  backdrop-filter: blur(4px);
  animation: bb-fadeIn 0.25s ease;
}
.bb-mob-drawer__inner {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 300px; max-width: 88vw;
  background: var(--bb-surface);
  z-index: 9801;
  overflow-y: auto;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 6px 0 40px rgba(10,22,40,0.2);
}
#bb-mobile-drawer.is-open .bb-mob-drawer__inner { transform: translateX(0); }

.bb-mob-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; background: var(--bb-navy);
}
.bb-mob-drawer__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--bb-font-display); font-size: 16px; font-weight: 800; color: #fff;
}
.bb-mob-drawer__close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.bb-mob-drawer__close:hover { background: rgba(255,255,255,0.25); }

.bb-mob-drawer__search { padding: 16px; border-bottom: 1px solid var(--bb-border); }
.bb-mob-drawer__search form { display: flex; border: 1.5px solid var(--bb-border); border-radius: 9px; overflow: hidden; }
.bb-mob-search-input { flex: 1; padding: 10px 14px; border: none; font-family: var(--bb-font-body); font-size: 14px; outline: none; }
.bb-mob-search-btn { width: 44px; background: var(--bb-blue); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.bb-mob-nav { display: flex; flex-direction: column; padding: 12px 12px; flex: 1; }
.bb-mob-nav__link {
  display: flex; align-items: center;
  padding: 12px 14px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--bb-text-secondary);
  text-decoration: none; transition: all 0.2s;
  border-bottom: 1px solid var(--bb-border-light);
}
.bb-mob-nav__link:hover { background: var(--bb-surface-alt); color: var(--bb-navy); }
.bb-mob-nav__link:last-child { border-bottom: none; }

.bb-mob-drawer__actions {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding: 14px 16px;
  border-top: 1px solid var(--bb-border);
}
.bb-mob-action-link {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 6px; border-radius: 10px;
  font-size: 11.5px; font-weight: 600; color: var(--bb-text-secondary);
  text-decoration: none; background: var(--bb-surface-alt);
  transition: all 0.2s;
}
.bb-mob-action-link:hover { background: var(--bb-navy); color: #fff; }

.bb-mob-drawer__trust {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px;
  background: var(--bb-surface-alt); border-top: 1px solid var(--bb-border);
}
.bb-mob-drawer__trust span { font-size: 11.5px; color: var(--bb-text-muted); }

/* Hamburger animation */
.bb-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bb-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.bb-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sticky header scroll effects */
.bb-header--scrolled { box-shadow: 0 2px 20px rgba(10,22,40,0.12); }
.bb-header--hidden   { transform: translateY(-100%); transition: transform 0.35s var(--bb-ease); }

/* Mobile search open */
.bb-header__search--mobile-open {
  display: flex !important;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bb-surface);
  border-top: 1px solid var(--bb-border);
  padding: 12px var(--bb-gutter);
  box-shadow: var(--bb-shadow-md);
  z-index: 100;
}

/* ── HEADER TRANSITION ────────────────────────────────────── */
.bb-header { transition: transform 0.35s var(--bb-ease), box-shadow 0.25s; }

/* ── BB BTN SIZES ─────────────────────────────────────────── */
.bb-btn--sm  { padding: 7px 16px; font-size: 13px; }
.bb-btn--lg  { padding: 14px 32px; font-size: 16px; }
.bb-btn--xs  { padding: 5px 12px; font-size: 12px; }

/* ── WC FORM LABELS & ERRORS ──────────────────────────────── */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  padding: 14px 18px; border-radius: 10px; margin-bottom: 20px;
  font-size: 14px; list-style: none; display: flex; align-items: center; gap: 10px;
}
.woocommerce-error   { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; }
.woocommerce-info    { background: #EFF6FF; border: 1px solid #93C5FD; color: #1E40AF; }
.woocommerce-message { background: #ECFDF5; border: 1px solid #6EE7B7; color: #065F46; }

/* ── WC ACCOUNT FORM ──────────────────────────────────────── */
.woocommerce-form-login,
.woocommerce-form-register {
  max-width: 480px; margin: 0 auto;
  background: var(--bb-surface); border: 1.5px solid var(--bb-border);
  border-radius: 16px; padding: 32px;
}
.woocommerce-form-login__submit,
.woocommerce-form-register__submit,
.woocommerce button[type="submit"],
.woocommerce input[type="submit"] {
  background: var(--bb-navy) !important; color: #fff !important;
  border: none !important; border-radius: var(--bb-btn-radius) !important;
  font-family: var(--bb-font-display) !important; font-size: 15px !important;
  font-weight: 700 !important; padding: 12px 28px !important;
  cursor: pointer !important; transition: background 0.2s !important;
}
.woocommerce button[type="submit"]:hover,
.woocommerce input[type="submit"]:hover { background: var(--bb-blue) !important; }

/* ── RESULT COUNT / ORDERING BAR ─────────────────────────── */
.bb-result-count { font-size: 13.5px; color: var(--bb-text-muted); }
