﻿/* ─── Additional Book-specific styles ─── */

html, body { overflow-x: hidden; width: 100%; }
html, body, #fib-wrapper { max-width: 100vw; overflow-x: hidden; }
* { box-sizing: border-box; }

/* Book card image aspect ratio fix for WooCommerce */
.book-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Price display */
.book-card-price .amount {
  font-weight: 800;
}
.book-card-price .woocommerce-Price-currencySymbol {
  font-size: 14px;
  margin-right: 2px;
}

/* Single product price section */
.book-price-section .price .amount {
  font-size: 28px;
  font-weight: 900;
}
.book-price-section .price .woocommerce-Price-currencySymbol {
  font-size: 18px;
}

/* Single product form */
.single-add-form { margin-top: 20px; }
.single-qty-row { margin-bottom: 14px; }
.qty-selector {
  display: inline-flex; align-items: center; gap: 0;
  border: 1.5px solid var(--border); border-radius: 10px;
  overflow: hidden; background: #fff;
}
.qty-selector button {
  width: 40px; height: 40px; display: flex;
  align-items: center; justify-content: center;
  background: var(--bg-section); border: none;
  font-size: 18px; font-weight: 700; cursor: pointer;
  color: var(--text); transition: var(--transition);
}
.qty-selector button:hover { background: var(--border); }
.qty-selector .qty-input {
  width: 60px; height: 40px; text-align: center;
  border: none; border-left: 1.5px solid var(--border-light);
  border-right: 1.5px solid var(--border-light);
  font-size: 16px; font-weight: 700;
}
.qty-selector .qty-input:focus { outline: none; }
.single-btn-row { display: flex; gap: 10px; }
.single-add-to-cart, .single-buy-now {
  flex: 1; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  padding: 14px 16px; border-radius: var(--radius);
  font-size: 15px; font-weight: 800; cursor: pointer;
  transition: var(--transition); border: none; line-height: 1;
}
.single-add-to-cart {
  background: var(--accent-light); color: var(--primary);
}
.single-add-to-cart:hover { background: var(--primary); color: #fff; }
.single-buy-now {
  background: var(--primary); color: #fff;
}
.single-buy-now:hover { background: var(--primary-dark); transform: translateY(-1px); }
.single-add-to-cart:disabled, .single-buy-now:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.single-out-of-stock {
  padding: 14px 20px; background: #fee2e2;
  color: #991b1b; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; text-align: center;
  margin-top: 20px;
}
.single-book-pricing {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 4px; flex-wrap: wrap;
}
.single-current-price { font-size: 22px; font-weight: 900; color: var(--primary); }
.single-current-price .amount { font-weight: 900; }
.single-current-price .woocommerce-Price-currencySymbol { font-size: 14px; }
.single-old-price { font-size: 15px; color: #595959; text-decoration: line-through; }
.single-old-price .amount { font-weight: 400; }
.single-stock {
  font-size: 13px; font-weight: 700; padding: 4px 12px;
  border-radius: 6px;
}
.single-stock.in-stock { background: #dcfce7; color: #166534; }
.single-stock.out-of-stock { background: #fee2e2; color: #991b1b; }

/* Add to cart form on single product */
.add-to-cart-form .single-add-to-cart .amount {
  font-weight: 800;
}
.add-to-cart-form .single-add-to-cart .woocommerce-Price-currencySymbol {
  font-size: 14px;
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}
.woocommerce-message {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.woocommerce-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.woocommerce-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
  font-weight: 800;
  text-decoration: underline;
}

/* WooCommerce form fields */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: var(--transition);
}
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Cart table */
.woocommerce table.shop_table {
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.woocommerce table.shop_table th {
  background: var(--bg-section);
  font-weight: 700;
  padding: 12px;
  font-size: 14px;
}
.woocommerce table.shop_table td {
  padding: 12px;
  border-top: 1px solid var(--border-light);
}
.woocommerce table.shop_table .button {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.woocommerce table.shop_table .button:hover {
  background: var(--primary-dark);
}

/* Checkout */
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.woocommerce-checkout h3 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* My Account */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
  background: var(--accent-light);
  color: var(--primary);
}

/* Filter toggle on mobile */
@media (max-width: 768px) {
  .filter-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
  }
  .filter-sidebar.open {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.5);
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .filter-sidebar.open .filter-widget {
    max-width: 320px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    margin: 0;
  }
  .filter-sidebar.open .filter-close {
    display: block !important;
  }
}

/* Cart count badge */
.cart-count {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}

/* ══════════════════════════════════════
   CART DRAWER (slide-in sidebar)
   ══════════════════════════════════════ */
body.drawer-open { overflow: hidden; }
.cart-drawer-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 99998; backdrop-filter: blur(2px);
}
.cart-drawer-overlay.open { display: block; }
.cart-drawer {
  position: fixed; top: 0; left: -100%; width: 380px; max-width: 92vw;
  height: 100%; background: var(--bg-card); z-index: 99999;
  display: flex; flex-direction: column;
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1); box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.cart-drawer.open { left: 0; }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.cart-drawer-header h3 { font-size: 16px; margin: 0; font-weight: 800; }
.cart-drawer-close {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-section); border: none; font-size: 18px; cursor: pointer;
  color: var(--text-muted); border-radius: 50%; transition: var(--transition);
}
.cart-drawer-close:hover { background: var(--danger); color: #fff; }
.cart-drawer-body {
  flex: 1; overflow-y: auto; padding: 0 14px; display: flex; flex-direction: column;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.cart-drawer-items { display: flex; flex-direction: column; gap: 0; flex: 1; }
.cart-drawer-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
  position: relative;
}
.cart-drawer-item:last-child { border-bottom: none; }
.cart-drawer-item-img {
  flex: 0 0 44px; width: 44px; height: 58px; border-radius: 6px;
  overflow: hidden; background: var(--bg-section);
}
.cart-drawer-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-drawer-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-drawer-item-name {
  display: block; font-size: 12px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-decoration: none; line-height: 1.3;
}
.cart-drawer-item-name:hover { color: var(--primary); }
.cart-drawer-item-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-light); justify-content: space-between;
}
.cart-drawer-item-qty {
  display: flex; align-items: center; gap: 0; margin-top: 2px;
}
.cart-drawer-item-qty .drawer-qty-minus,
.cart-drawer-item-qty .drawer-qty-plus {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-section); border: 1px solid var(--border-light);
  cursor: pointer; font-size: 18px; font-weight: 700; transition: var(--transition);
  padding: 0; color: var(--text); line-height: 1; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.cart-drawer-item-qty .drawer-qty-minus {
  border-radius: 6px 0 0 6px; border-right: none;
}
.cart-drawer-item-qty .drawer-qty-plus {
  border-radius: 0 6px 6px 0; border-left: none;
}
.cart-drawer-item-qty .drawer-qty-minus:hover,
.cart-drawer-item-qty .drawer-qty-plus:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.cart-drawer-item-qty .drawer-qty-input {
  width: 40px; height: 34px; text-align: center;
  border: 1px solid var(--border-light); border-radius: 0;
  font-size: 17px; font-weight: 800; padding: 0;
  background: var(--bg-card); color: var(--text);
  -moz-appearance: textfield; appearance: textfield;
  line-height: 1;
}
.cart-drawer-item-qty .drawer-qty-input::-webkit-outer-spin-button,
.cart-drawer-item-qty .drawer-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.cart-drawer-item-qty .drawer-qty-input:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 2px var(--primary-bg);
}
.cart-drawer-item-price {
  font-size: 12px; font-weight: 800; color: var(--primary);
  white-space: nowrap;
}
.cart-drawer-item-remove {
  position: absolute; top: 10px; left: 0;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  color: var(--text-light); background: none; border: none;
  cursor: pointer; flex-shrink: 0; font-size: 14px;
  border-radius: 50%; transition: var(--transition);
}
.cart-drawer-item-remove:hover { background: var(--danger); color: #fff; }
.cart-drawer-totals {
  margin-top: auto; padding: 14px 14px 0; border-top: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
}
.cart-drawer-total-row {
  display: flex; justify-content: space-between; font-size: 14px; font-weight: 700;
  align-items: center;
}
.cart-drawer-total-price { font-size: 17px; font-weight: 900; color: var(--primary); }
.cart-drawer-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius); font-size: 14px; font-weight: 800;
  cursor: pointer; transition: var(--transition); text-decoration: none; margin: 0 14px 14px;
  width: calc(100% - 28px);
}
.cart-drawer-checkout-btn:hover { background: var(--primary-dark); color: #fff; }
.cart-drawer-view-cart {
  display: block; text-align: center; font-size: 12px; color: var(--text-muted);
  padding: 4px 14px 12px; font-weight: 600;
}
.cart-drawer-view-cart:hover { color: var(--primary); }
.cart-drawer-empty {
  text-align: center; padding: 60px 0; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cart-drawer-empty svg { opacity: 0.3; }
.cart-drawer-empty p { font-size: 14px; font-weight: 600; margin: 0; }
.cart-drawer-shop-link {
  display: inline-block; padding: 10px 24px; background: var(--primary); color: #fff;
  border-radius: var(--radius); font-weight: 700; font-size: 13px; transition: var(--transition);
}
.cart-drawer-shop-link:hover { background: var(--primary-dark); color: #fff; }

/* ── Mobile: compact cart drawer ── */
@media(max-width:480px){
  .cart-drawer { width: 100vw; max-width: 100vw; }
  .cart-drawer-header { padding: 12px 14px; }
  .cart-drawer-header h3 { font-size: 14px; }
  .cart-drawer-body { padding: 0 10px; }
  .cart-drawer-item { gap: 8px; padding: 10px 0; }
  .cart-drawer-item-img { flex: 0 0 38px; width: 38px; height: 50px; border-radius: 5px; }
  .cart-drawer-item-name { font-size: 11px; }
  .cart-drawer-item-qty .drawer-qty-minus,
  .cart-drawer-item-qty .drawer-qty-plus { width: 32px; height: 32px; font-size: 17px; }
  .cart-drawer-item-qty .drawer-qty-input { width: 38px; height: 32px; font-size: 16px; }
  .cart-drawer-item-price { font-size: 11px; }
  .cart-drawer-totals { padding: 12px 10px 0; }
  .cart-drawer-total-row { font-size: 13px; }
  .cart-drawer-total-price { font-size: 15px; }
  .cart-drawer-checkout-btn { padding: 12px; font-size: 13px; margin: 0 10px 10px; width: calc(100% - 20px); }
}

/* ══════════════════════════════════════
   WISHLIST BADGE
   ══════════════════════════════════════ */
.header-wishlist-btn {
  position: relative;
}
.wishlist-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ══════════════════════════════════════
   CHECKOUT STYLING
   ══════════════════════════════════════ */
.co-stack { display: flex; flex-direction: column; gap: 16px; max-width: 520px; margin: 0 auto; padding: 24px 16px; }
.co-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: visible; box-shadow: var(--shadow-sm); }
.co-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px; font-weight: 700; font-size: 15px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-section);
}
.co-card-head svg { flex-shrink: 0; }
.co-ship-cost { margin-right: auto; font-size: 14px; color: var(--primary); }
.co-card-body { padding: 20px; }
.co-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-field { margin-bottom: 14px; }
.co-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.co-field label span { color: var(--danger); }
.co-field input, .co-field textarea, .co-field select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 14px; background: #fff;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  font-family: var(--font);
}
.co-field input:focus, .co-field textarea:focus, .co-field select:focus {
  outline: none; border-color: var(--primary);
}
.co-commune-wrap { position: relative; }
.co-commune-dropdown {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  max-height: 200px; overflow-y: auto; z-index: 100; box-shadow: var(--shadow-md);
}
.co-cm-item {
  padding: 10px 14px; cursor: pointer; font-size: 14px;
  border-bottom: 1px solid var(--border-light); transition: var(--transition);
}
.co-cm-item:last-child { border-bottom: none; }
.co-cm-item:hover { background: var(--accent-light); color: var(--primary); }
.co-commune-dropdown .bk-co-commune-option {
  padding: 10px 14px; cursor: pointer; font-size: 14px;
  border-bottom: 1px solid var(--border-light); transition: var(--transition);
}
.co-commune-dropdown .bk-co-commune-option:last-child { border-bottom: none; }
.co-commune-dropdown .bk-co-commune-option:hover { background: var(--accent-light); color: var(--primary); }
.co-delivery-toggle { display: flex; gap: 12px; }
.co-radio-mini {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: var(--transition);
}
.co-radio-mini:has(input:checked) { border-color: var(--primary); background: var(--accent-light); }
.co-radio-mini input { display: none; }
.co-radio-mini-label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.co-rate-label { font-size: 14px; color: var(--primary); }
.co-coupon { margin-bottom: 16px; }
.co-coupon-row { display: flex; gap: 8px; }
.co-coupon-row input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; }
.co-coupon-row input:focus { outline: none; border-color: var(--primary); }
.co-coupon-btn {
  padding: 10px 20px; background: var(--primary); color: #fff; border: none;
  border-radius: 8px; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.co-coupon-btn:hover { background: var(--primary-dark); }
.co-coupon-msg { font-size: 13px; margin-top: 6px; font-weight: 600; }

/* Checkout Items */
.co-items { display: flex; flex-direction: column; gap: 12px; }
.co-item { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.co-item:last-child { border-bottom: none; padding-bottom: 0; }
.co-item-thumb { width: 55px; height: 70px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--bg-section); }
.co-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-item-body { flex: 1; min-width: 0; }
.co-item-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.co-item-name a { color: var(--text); }
.co-item-name a:hover { color: var(--primary); }
.co-item-meta { display: flex; justify-content: space-between; align-items: center; }
.co-item-qty { font-size: 13px; color: var(--text-light); }
.co-item-price { font-size: 15px; font-weight: 800; color: var(--primary); }

/* Checkout Totals */
.co-totals { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.co-total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.co-total-label { color: var(--text-muted); }
.co-total-value { font-weight: 700; }
.co-total-sub .co-total-value { color: var(--text); }
.co-total-discount .co-total-value { color: var(--success); }
.co-total-ship .co-total-value { color: var(--primary); }
.co-total-final { padding-top: 12px; margin-top: 8px; border-top: 2px solid var(--primary); font-size: 18px; }
.co-total-final .co-total-label { color: var(--text); font-weight: 800; }
.co-total-final .co-total-value { color: var(--primary); font-size: 20px; }

/* Checkout Payment */
.co-pay { margin-bottom: 0; }
.co-radio {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--bg-card);
}
.co-radio-content { display: flex; flex-direction: column; gap: 2px; }
.co-radio-title { font-weight: 700; font-size: 15px; }
.co-radio-sub { font-size: 13px; color: var(--text-muted); }

/* Checkout Submit */
.co-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 24px; background: var(--primary); color: #fff;
  border: none; border-radius: 12px; font-size: 16px;
  font-weight: 800; cursor: pointer; transition: var(--transition);
  max-width: 420px; margin: 0 auto;
}
.co-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }
.co-submit-error { background: #fef2f2; border: 1px solid #dc2626; border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600; color: #dc2626; text-align: center; }

/* Mobile Sticky */
.co-sticky { display: none; }
@media (max-width: 768px) {
  .co-sticky {
    display: block;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg-card); z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 12px 16px;
  }
  .co-sticky-inner { display: flex; align-items: center; gap: 12px; }
  .co-sticky-info { flex: 1; }
  .co-sticky-label { display: block; font-size: 12px; color: var(--text-muted); }
  .co-sticky-total { display: block; font-size: 18px; font-weight: 900; color: var(--primary); }
  .co-sticky-btn {
    padding: 11px 22px; background: var(--primary); color: #fff;
    border: none; border-radius: 12px; font-size: 15px;
    font-weight: 800; cursor: pointer; transition: var(--transition);
    white-space: nowrap;
  }
  .co-sticky-btn:hover { background: var(--primary-dark); }
  .co-submit { display: none; }
  .co-field-row { grid-template-columns: 1fr; }
  .co-stack { padding: 16px 12px; }
}

/* ══════════════════════════════════════
   THANK YOU PAGE
   ══════════════════════════════════════ */
.ty-wrap { max-width: 700px; margin: 40px auto; padding: 0 20px; }
.ty-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 40px; text-align: center; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }

/* ─── 3D Book Animation ─── */
.ty-3d-wrap {
  width: 200px; height: 180px; margin: 0 auto 24px;
  position: relative;
}
.ty-3d-wrap canvas {
  width: 100%; height: 100%; display: block;
}

/* Particles */
.ty-particles { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 200px; height: 180px; pointer-events: none; z-index: 5; }
.ty-p {
  position: absolute; left: 50%; top: 50%;
  font-size: 16px; opacity: 0;
  animation: tyParticleFly 1.5s ease-out forwards;
  will-change: transform, opacity;
}
.ty-p1 { animation-delay: 1.2s; --tx: -50px; --ty: -60px; }
.ty-p2 { animation-delay: 1.3s; --tx: 40px; --ty: -55px; }
.ty-p3 { animation-delay: 1.1s; --tx: -30px; --ty: -70px; font-size: 22px; }
.ty-p4 { animation-delay: 1.4s; --tx: 55px; --ty: -40px; }
.ty-p5 { animation-delay: 1.25s; --tx: -60px; --ty: -30px; }
.ty-p6 { animation-delay: 1.15s; --tx: 30px; --ty: -65px; font-size: 20px; }
.ty-p7 { animation-delay: 1.35s; --tx: -45px; --ty: 20px; }
.ty-p8 { animation-delay: 1.45s; --tx: 50px; --ty: 15px; }

@keyframes tyParticleFly {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  20% { opacity: 1; transform: translate(calc(var(--tx) * 0.3), calc(var(--ty) * 0.3)) scale(1.2); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.5); }
}

.ty-title { font-size: 28px; margin-bottom: 8px; }
.ty-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 8px; }
.ty-msg { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.ty-table-wrap { overflow-x: auto; text-align: right; margin-bottom: 24px; }
.ty-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ty-table th { background: var(--bg-section); padding: 10px 12px; font-weight: 700; border-bottom: 1px solid var(--border); }
.ty-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.ty-thumb { width: 40px; height: 50px; display: inline-block; vertical-align: middle; margin-left: 8px; border-radius: 4px; overflow: hidden; }
.ty-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ty-name { vertical-align: middle; font-weight: 600; }
.ty-totals { text-align: right; margin-bottom: 24px; }
.ty-total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.ty-total-label { color: var(--text-muted); }
.ty-total-value { font-weight: 700; }
.ty-total-final { padding-top: 8px; border-top: 2px solid var(--primary); font-size: 18px; }
.ty-total-final .ty-total-value { color: var(--primary); }
.ty-details { text-align: right; margin-bottom: 16px; }
.ty-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.ty-label { color: var(--text-muted); }
.ty-value { font-weight: 700; }
.ty-status-pending { color: var(--warning); }
.ty-footer-msg { font-size: 14px; color: var(--text-muted); margin-top: 16px; }

/* Order Progress Steps */
.ty-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 24px 0; }
.ty-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.ty-step-icon {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; border: 2px solid var(--border); color: var(--text-light); background: var(--bg-card);
}
.ty-step-done .ty-step-icon {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.ty-step span { font-size: 11px; color: var(--text-light); font-weight: 600; white-space: nowrap; }
.ty-step-done span { color: var(--primary); }
.ty-step-line { width: 40px; height: 2px; background: var(--border); margin-bottom: 18px; }

/* WhatsApp CTA */
.ty-whatsapp { margin: 20px 0; }
.ty-whatsapp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: #25D366; color: #fff;
  border-radius: 10px; font-size: 14px; font-weight: 700;
  text-decoration: none; transition: 0.2s;
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}
.ty-whatsapp-btn:hover { background: #1da851; color: #fff; transform: translateY(-1px); }

/* Action Buttons */
.ty-actions { margin-top: 24px; }
.ty-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 700;
  text-decoration: none; transition: 0.2s; cursor: pointer; border: none;
}
.ty-btn-primary { background: var(--primary); color: #fff; }
.ty-btn-primary:hover { background: var(--primary-dark); color: #fff; }
.ty-discount { color: #16a34a; }

@media (max-width: 768px) {
  .ty-steps { gap: 0; }
  .ty-step-line { width: 28px; }
  .ty-step span { font-size: 10px; }
}
.ty-related {
  width: 100vw; margin-left: calc(-50vw + 50%);
  background: var(--bg-alt, #f9f8f6);
  border-top: 1px solid var(--border-light, #eee);
  padding: 40px 24px;
}
.ty-related-inner {
  max-width: 1200px; margin: 0 auto;
}
.ty-related-heading {
  font-size: 22px; font-weight: 800; margin: 0 0 20px; color: var(--text, #2C2C2C);
}
.ty-related ul.products {
  grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important;
}
@media (max-width: 900px) {
  .ty-related ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 600px) {
  .ty-related { padding: 28px 16px; }
  .ty-related ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .ty-related-heading { font-size: 18px; }
}
@media (max-width: 768px) {
  .ty-card { padding: 24px 16px; }
  .ty-table td:before { content: attr(data-label) ': '; font-weight: 600; display: inline-block; width: 80px; }
  .ty-table thead { display: none; }
  .ty-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
  .ty-table td { display: block; padding: 4px 0; border: none; }
  .ty-thumb { width: 36px; height: 44px; }
}

/* ══════════════════════════════════════
   CART PAGE
   ══════════════════════════════════════ */
.cart-page { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty svg { margin-bottom: 16px; }
.cart-empty h2 { font-size: 24px; margin-bottom: 8px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 24px; }
.cart-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: var(--primary); color: #fff;
  border-radius: var(--radius); font-weight: 700; transition: var(--transition);
}
.cart-btn-primary:hover { background: var(--primary-dark); color: #fff; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
.cart-sidebar { order: 1; }
.cart-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); position: sticky; top: 100px; }
.cart-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px; font-weight: 700; font-size: 15px;
  border-bottom: 1px solid var(--border-light); background: var(--bg-section);
}
.cart-coupon { padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.cart-coupon-row { display: flex; gap: 8px; }
.cart-coupon-row input { flex: 1; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; }
.cart-coupon-row input:focus { outline: none; border-color: var(--primary); }
.cart-coupon-row button {
  padding: 8px 16px; background: var(--primary); color: #fff;
  border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
  transition: var(--transition);
}
.cart-coupon-row button:hover { background: var(--primary-dark); }
.cart-coupon-msg { font-size: 12px; margin-top: 4px; font-weight: 600; }
.cart-totals { padding: 16px 20px; }
.cart-total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.ct-label { color: var(--text-muted); }
.ct-value { font-weight: 700; }
.ct-ship { color: var(--primary); font-size: 13px; }
.cart-divider { height: 1px; background: var(--border-light); margin: 8px 0; }
.cart-total-final { padding-top: 8px; margin-top: 4px; font-size: 18px; }
.cart-total-final .ct-label { color: var(--text); font-weight: 800; }
.cart-total-final .ct-value { color: var(--primary); }
.cart-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 20px 12px; padding: 14px; border-radius: var(--radius);
  font-size: 15px;
}
.cart-continue {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0 20px 20px; font-size: 13px; color: var(--text-muted); padding: 6px;
}
.cart-continue:hover { color: var(--primary); }
.cart-info { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.cart-info-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cart-info-item strong { display: block; font-size: 14px; color: var(--text); }
.cart-info-item span { display: block; color: var(--text-muted); }
.cart-items { order: 0; }
.cart-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.cart-title { font-size: 24px; margin: 0; }
.cart-count-badge { font-size: 14px; color: var(--text-muted); }
.cart-table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--bg-section); padding: 12px 14px; font-size: 14px; font-weight: 700; text-align: right; border-bottom: 1px solid var(--border); }
.cart-table td { padding: 14px; vertical-align: middle; border-bottom: 1px solid var(--border-light); }
.cart-table-row:hover td { background: #faf7f2; }
.ctd-thumb { width: 80px; }
.ctd-thumb img { width: 60px; height: 80px; object-fit: cover; border-radius: 6px; }
.ctd-name { font-weight: 700; font-size: 15px; color: var(--text); display: block; margin-bottom: 4px; }
.ctd-name:hover { color: var(--primary); }
.ctd-attrs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.ctd-attr { font-size: 12px; color: var(--text-muted); }
.ctd-stock { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.ctd-stock.in-stock { background: #dcfce7; color: #166534; }
.ctd-stock.out-of-stock { background: #fee2e2; color: #991b1b; }
.ctd-stock.on-backorder { background: #fef3c7; color: #92400e; }
.ctd-qty-inner { display: flex; align-items: center; gap: 4px; }
.ci-qty-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-section); border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; font-size: 16px; font-weight: 700; transition: var(--transition);
  color: var(--text);
}
.ci-qty-btn:hover { background: var(--border); }
.ci-qty-input {
  width: 48px; height: 32px; text-align: center; border: 1px solid var(--border);
  border-radius: 6px; font-size: 14px; font-weight: 700;
}
.ci-qty-input:focus { outline: none; border-color: var(--primary); }
.ctd-subtotal-val { font-weight: 800; font-size: 16px; color: var(--primary); }
.ci-remove { color: var(--text-light); transition: var(--transition); display: flex; }
.ci-remove:hover { color: var(--danger); }
/* ═══════════════════════════════════════════════
   PRODUCT SLIDER (center-zoom carousel)
   ═══════════════════════════════════════════════ */
.slider-section { overflow: hidden; }
.product-slider-wrap { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 50px; }
.product-slider { overflow: hidden; position: relative; }
.slider-track {
  display: flex; align-items: center; gap: 16px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  cursor: grab;
}
.slider-track:active { cursor: grabbing; }
.slider-card {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 0;
  transition: all 0.4s ease;
  transform: scale(0.85);
  opacity: 0.6;
  filter: blur(0.5px);
}
.slider-card.center {
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
}
.slider-card-link {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
  text-decoration: none;
}
.slider-card.center .slider-card-link { box-shadow: var(--shadow-md); }
.slider-card-link:hover { text-decoration: none; }
.slider-card-img {
  position: relative;
  padding-top: 120%;
  overflow: hidden;
  background: var(--bg-section);
}
.slider-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.slider-card.center .slider-card-img img { transform: scale(1.05); }
.slider-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 4px;
  z-index: 2;
}
.slider-card-info { padding: 12px 14px 14px; }
.slider-card-title {
  font-size: 14px; font-weight: 800;
  color: var(--text); margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.slider-card-author {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.slider-card-price { font-size: 15px; font-weight: 800; color: var(--primary); }
.slider-card-price .amount { font-weight: 800; }
.slider-card-price .woocommerce-Price-currencySymbol { font-size: 12px; }
.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card); border: 1.5px solid var(--border);
  color: var(--text); cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  z-index: 5; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.slider-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.slider-prev { right: 0; }
.slider-next { left: 0; }
@media (max-width: 768px) {
  .product-slider-wrap { padding: 0 40px; }
  .slider-card { flex: 0 0 calc(50% - 8px); transform: scale(0.9); }
  .slider-card.center { transform: scale(1); }
  .slider-nav { width: 32px; height: 32px; }
  .slider-card-info { padding: 10px 12px 12px; }
}
@media (max-width: 480px) {
  .slider-card { flex: 0 0 calc(70% - 8px); }
  .product-slider-wrap { padding: 0 30px; }
}

/* ═══════════════════════════════════════════════
   HEADER SAVE ADDRESS BUTTON
   ═══════════════════════════════════════════════ */
.header-save-addr {
  display: flex; align-items: center; gap: 4px;
  color: var(--header-text); opacity: 0.85;
  font-size: 13px; font-weight: 600;
  transition: var(--transition);
}
.header-save-addr:hover { opacity: 1; color: var(--primary-light); }
.header-save-addr svg { flex-shrink: 0; }
.header-save-addr span { display: none; }
@media (min-width: 900px) {
  .header-save-addr span { display: inline; }
}

@media (max-width: 768px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-sidebar { order: 0; }
  .cart-card { position: static; }
  .cart-table thead { display: none; }
  .cart-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
  .cart-table td { display: flex; align-items: center; gap: 8px; padding: 6px 0; border: none; }
  .cart-table td:before { content: attr(data-label) ': '; font-weight: 600; font-size: 13px; color: var(--text-muted); min-width: 60px; }
  .ctd-thumb { width: 50px; }
  .ctd-thumb img { width: 50px; height: 65px; }
  .ctd-thumb:before { display: none; }
}

/* ══════════════════════════════════════
   HEADER WISHLIST / CART BUTTONS
   ══════════════════════════════════════ */
.header-cart-btn { position: relative; }
.header-wishlist-btn svg, .header-cart-btn svg { flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   BOOK CARD — Square, beautiful, ATC + wishlist
   ═══════════════════════════════════════════════ */
.bf-book-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border-radius: 16px;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
}
.bf-book-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-8px);
  border-color: transparent;
}

/* ─── Thumbnail (square ratio) ─── */
.bf-book-card-thumb {
  position: relative; overflow: hidden;
  background: var(--bg-section);
}
.bf-book-card-thumb > a {
  display: block; position: relative; padding-top: 100%;
}
.bf-book-card-thumb > a img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 8px;
  transition: transform 0.4s ease;
}
.bf-book-card:hover .bf-book-card-thumb > a img { transform: scale(1.04); }
.bf-book-card-hover-img { display: none; }

/* ─── Badges ─── */
.bf-book-card-badges {
  position: absolute; top: 8px; right: 8px;
  display: flex; flex-direction: column; gap: 4px; z-index: 3;
}
.bf-badge {
  font-size: 10px; font-weight: 800; padding: 3px 8px;
  border-radius: 4px; color: #fff; line-height: 1.3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.bf-badge-sale { background: linear-gradient(135deg, #dc2626, #ef4444); }
.bf-badge-featured { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.bf-badge-oos { background: linear-gradient(135deg, #6b7280, #9ca3af); }

/* ─── Actions overlay ─── */
.bf-book-card-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 14px 12px;
  background: linear-gradient(transparent 8%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.65));
  z-index: 5;
  backdrop-filter: blur(2px);
}
.bf-card-atc {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 5px; padding: 10px 12px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 12px; font-weight: 800; cursor: pointer; text-decoration: none;
  transition: all 0.2s ease; font-family: var(--font);
  letter-spacing: 0.3px;
}
.bf-card-atc:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4); }
.bf-card-atc:active { transform: translateY(0); }
.bf-card-atc svg { flex-shrink: 0; }
.bf-card-atc span { white-space: nowrap; }

.bf-card-wish {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.92);
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all 0.2s ease; flex-shrink: 0;
  color: var(--text-light); box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.bf-card-wish:hover { background: #fef2f2; color: var(--danger); transform: scale(1.1); }
.bf-card-wish.active { color: var(--danger); background: #fef2f2; box-shadow: 0 2px 8px rgba(220,38,38,0.15); }

.bf-card-view {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.92);
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all 0.2s ease; flex-shrink: 0;
  color: var(--text-light); text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.bf-card-view:hover { background: var(--primary-bg); color: var(--primary); transform: scale(1.1); }

/* ─── Card Body ─── */
.bf-book-card-body {
  padding: 12px 14px 14px; flex: 1;
  display: flex; flex-direction: column; gap: 5px;
  text-align: right;
}
.bf-card-author {
  font-size: 11px; color: var(--text-muted); font-weight: 600;
  line-height: 1.3;
}
.bf-card-title {
  font-size: 14px; font-weight: 800; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin: 0;
}
.bf-card-title a { color: var(--text); transition: color 0.2s; }
.bf-card-title a:hover { color: var(--primary); }

.bf-card-rating { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.bf-card-stars { display: flex; gap: 1px; }
.bf-card-stars svg { flex-shrink: 0; }
.bf-card-reviews { font-size: 10px; color: var(--text-muted); font-weight: 600; }

.bf-card-price { margin-top: auto; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--border-light); }
.bf-card-current-price .amount { font-weight: 900; font-size: 17px; color: var(--primary); }
.bf-card-current-price .woocommerce-Price-currencySymbol { font-size: 12px; font-weight: 800; }
.bf-card-old-price {
  text-decoration: line-through; color: var(--text-light);
  font-size: 12px; font-weight: 400;
  opacity: 0.7;
}

/* ─── Mobile: always show actions ─── */
@media (hover: none) and (pointer: coarse) {
  .bf-card-wish { width: 40px; height: 40px; }
  .bf-card-wish svg { width: 18px; height: 18px; }
  .bf-card-view { width: 40px; height: 40px; }
  .bf-card-view svg { width: 18px; height: 18px; }
}
@media (max-width: 768px) {
  .bf-book-card-actions { padding: 10px 8px; }
  .bf-book-card-body { padding: 10px 10px 12px; }
  .bf-card-title { font-size: 13px; }
  .bf-card-current-price .amount { font-size: 15px; }
}

/* ═══════════════════════════════════════════════
   SHOP ARCHIVE GRID
   ═══════════════════════════════════════════════ */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.woocommerce ul.products li.product {
  margin: 0;
  padding: 0;
  width: auto !important;
  float: none !important;
  clear: none !important;
}
@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.archive-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px 20px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 768px) {
  .archive-layout { grid-template-columns: 1fr; }
}

.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.result-count {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
}
.archive-toolbar .woocommerce-ordering {
  margin: 0;
}
.archive-toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font);
  background: var(--card);
}

.filter-sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 100px;
}
.filter-widget h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.filter-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.filter-widget ul li a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: 0.15s;
}
.filter-widget ul li a:hover,
.filter-widget ul li a.active {
  color: var(--primary);
  font-weight: 700;
}
@media (max-width: 768px) {
  .filter-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    border-radius: 0;
    overflow-y: auto;
    padding-top: 60px;
  }
  .filter-sidebar.open { display: block; }
  .filter-toggle { display: inline-flex !important; }
  .filter-close { display: block !important; }
}

.woocommerce-pagination {
  margin-top: 24px;
  text-align: center;
}
.woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-pagination ul.page-numbers li span,
.woocommerce-pagination ul.page-numbers li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: 0.15s;
}
.woocommerce-pagination ul.page-numbers li span.current,
.woocommerce-pagination ul.page-numbers li a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ═══════════════════════════════════════════════
   REVIEWS GRID on homepage
   ═══════════════════════════════════════════════ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.review-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.review-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.review-stars { display: flex; gap: 2px; margin-top: 4px; }
.review-text { font-size: 14px; line-height: 1.7; color: var(--text); font-style: italic; margin-bottom: 8px; }
.review-product { font-size: 12px; color: var(--text-muted); }
.review-product a { color: var(--primary); font-weight: 600; }

/* ═══════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════ */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 16px 20px; background: none; border: none;
  font-size: 15px; font-weight: 700; cursor: pointer; color: var(--text);
  text-align: right; transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question svg { flex-shrink: 0; transition: transform 0.3s ease; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-item.open .faq-question { color: var(--primary); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px; font-size: 14px; color: var(--text-muted); line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 16px; }

/* ═══════════════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════════════ */
.fib-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 999999; padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.15); direction: rtl; text-align: center; max-width: 90vw; }
.fib-toast.success { background: #059669; }
.fib-toast.error { background: #dc2626; }

/* ═══════════════════════════════════════════════
   WISHLIST SIDEBAR — RTL enhanced
   ═══════════════════════════════════════════════ */
.wishlist-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 99998;
}
.wishlist-overlay.open { display: block; }
.wishlist-sidebar {
  position: fixed; top: 0; left: -400px; width: 380px; max-width: 90vw;
  height: 100%; background: var(--bg-card); z-index: 99999;
  display: flex; flex-direction: column;
  transition: left 0.3s ease; box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.wishlist-sidebar.open { left: 0; }
.wishlist-sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid var(--border-light);
}
.wishlist-sidebar-header h3 { font-size: 18px; margin: 0; }
.wishlist-sidebar-close {
  background: none; border: none; font-size: 20px; cursor: pointer;
  color: var(--text-muted); padding: 4px; border-radius: 6px; transition: var(--transition);
}
.wishlist-sidebar-close:hover { background: var(--bg-section); color: var(--text); }
.wishlist-sidebar-body { flex: 1; overflow-y: auto; padding: 16px; }
.wishlist-loading {
  text-align: center; padding: 60px 0; color: var(--text-muted); font-size: 14px;
}
.wishlist-sidebar-body .wishlist-empty {
  text-align: center; padding: 60px 0; color: var(--text-muted); font-size: 14px;
}
.wishlist-sidebar-body .wishlist-empty svg {
  width: 48px; height: 48px; color: var(--border); margin-bottom: 12px;
}
.wishlist-sidebar-body .wishlist-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.wishlist-sidebar-body .wishlist-item:last-child { border-bottom: none; }
.wishlist-sidebar-body .wishlist-item-img { width: 55px; height: 70px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--bg-section); }
.wishlist-sidebar-body .wishlist-item-img img { width: 100%; height: 100%; object-fit: cover; }
.wishlist-sidebar-body .wishlist-item-info { flex: 1; min-width: 0; }
.wishlist-sidebar-body .wishlist-item-name {
  display: block; font-size: 14px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wishlist-sidebar-body .wishlist-item-name:hover { color: var(--primary); }
.wishlist-sidebar-body .wishlist-item-author {
  display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px;
}
.wishlist-sidebar-body .wishlist-item-price {
  display: block; font-size: 14px; font-weight: 800; color: var(--primary); margin-top: 4px;
}
.wishlist-sidebar-body .wishlist-item-remove {
  color: var(--text-light); font-size: 20px; padding: 4px 8px;
  transition: var(--transition); background: none; border: none; cursor: pointer;
  align-self: flex-start; margin-top: 2px;
}
.wishlist-sidebar-body .wishlist-item-remove:hover { color: var(--danger); }
.wishlist-item-atc {
  display: inline-block; margin-top: 6px; padding: 4px 10px;
  background: var(--primary); color: #fff; border: none; border-radius: 6px;
  font-size: 11px; font-weight: 700; cursor: pointer;
  transition: background 0.2s;
}
.wishlist-item-atc:hover { background: var(--primary-dark); }

/* Heart pulse animation */
@keyframes wish-pulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.bf-card-wish.wish-pulse { animation: wish-pulse 0.4s ease; will-change: transform; }

/* ═══════════════════════════════════════════════
   SAVE ADDRESS POPUP (compact redesign)
   ═══════════════════════════════════════════════ */
.addr-popup-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 99999; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.addr-popup-overlay.open { display: flex; }
.addr-popup {
  background: var(--bg-card); border-radius: 16px;
  padding: 0; max-width: 440px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  overflow-y: auto; border: 1px solid var(--border-light);
  animation: addr-popup-in 0.3s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}
@keyframes addr-popup-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.addr-popup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px; border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; background: var(--bg-card); z-index: 1;
  border-radius: 16px 16px 0 0;
}
.addr-popup-header h3 {
  margin: 0; font-size: 17px; font-weight: 800; text-align: right;
  color: var(--text); display: flex; align-items: center; gap: 8px;
}
.addr-popup-header h3::before {
  content: '📍'; font-size: 18px;
}
.addr-popup-close {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--bg-section); color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.addr-popup-close:hover { background: var(--border); color: var(--text); transform: rotate(90deg); }
.addr-popup-compact { padding: 0; }
.addr-popup-form {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 22px; text-align: right;
}
.addr-row { display: flex; gap: 10px; }
.addr-row .addr-field { flex: 1; min-width: 0; }
.addr-field { width: 100%; }
.addr-field label {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  margin-bottom: 5px; text-align: right; letter-spacing: 0.3px;
}
.addr-field label .required { color: var(--danger, #DC2626); font-size: 14px; }
.addr-field input,
.addr-field select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: var(--font);
  background: var(--bg-input, #fff); color: var(--text);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  box-sizing: border-box;
}
.addr-field input::placeholder { color: var(--text-light); opacity: 0.7; }
.addr-field input:focus,
.addr-field select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217,119,6,0.12);
}
.addr-field select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center; padding-left: 32px;
}

/* Error state for fields */
.addr-field.error input,
.addr-field.error select {
  border-color: var(--danger, #DC2626);
  background: rgba(220,38,38,0.04);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.addr-field.error label { color: var(--danger, #DC2626); }
.addr-field .field-error {
  display: none; font-size: 11px; color: var(--danger, #DC2626);
  margin-top: 5px; text-align: right; line-height: 1.4; font-weight: 500;
  animation: field-error-in 0.25s cubic-bezier(0.16,1,0.3,1);
  padding: 4px 8px; background: rgba(220,38,38,0.06);
  border-radius: 6px; border-right: 2px solid var(--danger);
}
.addr-field.error .field-error { display: block; }
@keyframes field-error-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Success state */
.addr-field.success input,
.addr-field.success select {
  border-color: var(--success, #16A34A);
  background: rgba(22,163,74,0.04);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.08);
}

/* Commune searchable dropdown within popup */
.addr-commune-wrap { position: relative; }
.addr-commune-dd {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-card, #fff); border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 10px 10px;
  max-height: 180px; overflow-y: auto;
  z-index: 999; box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.addr-cm-item {
  padding: 9px 14px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 13px; transition: background 0.15s; color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.addr-cm-item:last-child { border-bottom: none; }
.addr-cm-item:hover { background: rgba(217,119,6,0.08); }
.addr-cm-ar { font-weight: 600; color: var(--text); }
.addr-cm-fr { font-size: 12px; color: var(--text-muted); }

/* Delivery options */
.addr-delivery-options { display: flex; gap: 8px; margin-top: 4px; }
.addr-delivery-option {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 12px; border: 1.5px solid var(--border);
  border-radius: 10px; cursor: pointer; transition: all 0.2s ease;
  background: var(--bg-input, #fff); font-size: 13px; font-weight: 600;
}
.addr-delivery-option input { display: none; }
.addr-delivery-option:has(input:checked) {
  border-color: var(--primary); background: rgba(217,119,6,0.06);
  box-shadow: 0 0 0 3px rgba(217,119,6,0.1);
}
.addr-delivery-label { pointer-events: none; }

/* Ship info */
.addr-ship-info {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--bg-section); border-radius: 10px;
  font-size: 13px; color: var(--text-muted); margin-top: 4px;
  border: 1px solid var(--border-light);
}
.addr-ship-rate { font-weight: 800; color: var(--primary); font-size: 15px; }

/* Actions */
.addr-popup-actions {
  padding: 0 22px 22px; display: flex; gap: 10px; flex-wrap: wrap;
}
.addr-btn {
  padding: 12px 16px; border-radius: 10px; font-size: 14px;
  font-weight: 700; cursor: pointer; transition: all 0.2s ease; border: none;
}
.addr-btn-skip {
  flex: 1 1 40%; background: var(--bg-section, #f3f4f6);
  color: var(--text-muted, #6b7280); border: 1.5px solid var(--border);
}
.addr-btn-skip:hover { background: var(--border, #e5e7eb); color: var(--text); }
.addr-btn-primary {
  flex: 1 1 55%; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}
.addr-btn-primary:hover {
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(217,119,6,0.4);
}

/* Shipping unavailable */
.addr-shipping-unavailable {
  display: none; align-items: center; gap: 8px; padding: 10px 14px;
  background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.2);
  border-radius: 10px; color: var(--danger); font-size: 12px;
}
.addr-shipping-unavailable svg { flex-shrink: 0; color: var(--danger); }
.addr-hub-empty {
  font-size: 12px; color: var(--text-muted); padding: 8px 12px;
  background: var(--bg-section); border-radius: 8px; text-align: center;
}

.addr-delivery-options {
  display: flex; gap: 8px;
}
.addr-delivery-option {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px; border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  font-size: 13px; transition: var(--transition); text-align: center;
}
.addr-delivery-option:has(input:checked) {
  border-color: var(--primary); background: rgba(180,83,9,0.04);
}
.addr-delivery-option input { accent-color: var(--primary); margin: 0; }
.addr-delivery-label { font-size: 13px; font-weight: 600; color: var(--text); }

/* Shipping info row in popup */
.addr-ship-info {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(22,163,74,0.06); border: 1px solid rgba(22,163,74,0.15); border-radius: 8px;
  padding: 10px 12px; font-size: 13px;
  color: var(--text);
}
.addr-ship-info span:first-child { color: var(--text-muted); }
.addr-ship-rate { font-weight: 700; color: var(--success, #16A34A); }

/* Shipping unavailable */
.addr-shipping-unavailable {
  display: flex; align-items: center; gap: 6px;
  background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.15);
  border-radius: 8px; padding: 8px 12px; font-size: 12px;
  color: var(--danger, #DC2626); margin-top: 6px;
}

/* Hub select */
.addr-hub-wrap { margin-top: 8px; }
.addr-hub-empty {
  font-size: 12px; color: var(--text-muted); text-align: center;
  padding: 8px; background: var(--bg-section); border-radius: 6px;
  margin-top: 6px;
}
.addr-ship-info span:first-child { color: #166534; }
.addr-ship-rate { color: #15803d; font-weight: 700; font-size: 14px; }

/* Shipping unavailable message (wilayas without delivery) */
.bk-shipping-unavailable,
.co-shipping-unavailable,
.addr-shipping-unavailable,
.bf-ed-ex-unavailable {
  display: none; align-items: center; gap: 8px;
  margin-top: 10px; padding: 10px 12px;
  border-radius: 10px; background: rgba(220,38,38,0.07);
  border: 1px solid rgba(220,38,38,0.28);
  color: #dc2626; font-size: 13px; font-weight: 600; line-height: 1.5;
}
.addr-shipping-unavailable { margin-top: 0; }

/* Hub / Stop Desk picker */
.bf-ed-ex-hub { flex-direction: column; align-items: stretch; }
.bf-ed-ex-hub > select { flex: 1; width: 100%; }
.bf-ed-ex-hub-empty,
.bk-express-hub-empty,
.co-hub-empty,
.addr-hub-empty {
  display: none; margin-top: 8px; padding: 9px 12px;
  border-radius: 8px; background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.35);
  color: #b45309; font-size: 12.5px; font-weight: 600; line-height: 1.5;
}
.addr-hub-empty { margin-top: 6px; font-size: 12px; }

/* Delivery options hidden because the method is not available in the wilaya */
.bk-delivery-option,
.co-radio-mini,
.addr-delivery-option,
.bf-ed-ex-radio { transition: opacity 0.2s ease; }

@media (max-width: 480px) {
  .addr-popup-overlay { padding: 12px; }
  .addr-popup { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
  .addr-popup-form { padding: 14px 16px; gap: 10px; }
  .addr-popup-header { padding: 14px 16px 10px; }
  .addr-popup-actions { padding: 0 16px 16px; }
  .addr-row { gap: 8px; }
}

/* ═══════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ═══════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-card); z-index: 9997;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  padding: 6px 0 env(safe-area-inset-bottom, 6px) 0;
  direction: rtl;
}
.mobile-bottom-nav .mbn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 0; color: var(--text-muted); font-size: 10px;
  font-weight: 600; text-decoration: none; position: relative;
  transition: var(--transition);
}
.mobile-bottom-nav .mbn-item:hover,
.mobile-bottom-nav .mbn-item:active { color: var(--primary); }
.mobile-bottom-nav .mbn-item svg { width: 22px; height: 22px; }
.mobile-bottom-nav .mbn-item span { line-height: 1; }
.mobile-bottom-nav .mbn-badge {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  background: var(--danger); color: #fff; font-size: 9px; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-right: 14px; padding: 0 4px;
}

/* ═══════════════════════════════════════════════
   GALLERY ZOOM OVERLAY
   ═══════════════════════════════════════════════ */
.gallery-zoom-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  z-index: 99999; display: flex; align-items: center;
  justify-content: center; cursor: zoom-out;
}
.gallery-zoom-img {
  max-width: 90vw; max-height: 90vh; object-fit: contain;
  border-radius: 12px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — show mobile nav on small screens
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: 60px; }
  .co-sticky { bottom: 0; }
  .bk-co-sticky { bottom: 0; transform: translateY(0); }
  .single-product .bf-pd-sticky-bar { bottom: 60px !important; }
  .reviews-grid { grid-template-columns: 1fr; }
  .faq-question { font-size: 14px; padding: 14px 16px; }
  .bf-card-title { font-size: 13px; }
  .bf-book-card-body { padding: 10px 10px 0; }
}

@media (max-width: 480px) {
}

/* ═══════════════════════════════════════════════
   PAGE HERO (SMALL)
   ═══════════════════════════════════════════════ */
.page-hero-sm {
  background: linear-gradient(135deg, #92400e, #b45309);
  padding: 110px 20px 40px;
  text-align: center;
  color: #fff;
}
.page-hero-sm h1 {
  font-size: 30px; font-weight: 900; margin: 12px 0 6px;
}
.page-hero-sm .page-hero-date {
  font-size: 13px; opacity: 0.85; margin: 0;
}
.page-hero-icon svg {
  width: 44px; height: 44px; stroke: rgba(255,255,255,0.9);
}

/* ═══════════════════════════════════════════════
   PAGE POLICY BODY
   ═══════════════════════════════════════════════ */
.page-policy-body {
  max-width: 780px; margin: 0 auto; padding: 40px 20px 60px;
}
.policy-content {
  line-height: 1.9; font-size: 15px; color: var(--text);
}
.policy-content h2, .policy-content h3 {
  margin-top: 28px; color: var(--text);
}
.policy-content p { margin-bottom: 16px; }
.policy-content ul, .policy-content ol { margin-bottom: 16px; padding-right: 20px; }
.policy-content li { margin-bottom: 6px; }
.policy-footer-links {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px; font-size: 14px;
}
.policy-footer-links a { color: var(--primary); font-weight: 600; text-decoration: none; }
.policy-footer-links span { color: var(--border); }

/* ═══════════════════════════════════════════════
   RETURNS HIGHLIGHTS
   ═══════════════════════════════════════════════ */
.returns-highlights {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; margin-top: 40px;
}
@media (max-width: 600px) { .returns-highlights { grid-template-columns: 1fr; } }
.return-step {
  text-align: center; padding: 24px 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.return-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-weight: 900; font-size: 18px; margin-bottom: 12px;
}
.return-step strong { display: block; font-size: 15px; margin-bottom: 4px; }
.return-step p { font-size: 13px; color: var(--text-light); margin: 0; }

/* ═══════════════════════════════════════════════
   FAQ PAGE
   ═══════════════════════════════════════════════ */
.faq-list { margin-top: 24px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 12px; overflow: hidden; background: var(--card);
}
.faq-q {
  padding: 18px 20px; font-weight: 700; font-size: 15px;
  cursor: pointer; list-style: none; display: flex;
  align-items: center; justify-content: space-between; gap: 12px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+'; font-size: 20px; color: var(--primary);
  font-weight: 300; transition: transform 0.2s;
  flex-shrink: 0;
}
details[open] .faq-q::after { content: '−'; }
.faq-a {
  padding: 0 20px 18px; font-size: 14px; line-height: 1.8;
  color: var(--text-light);
}
.faq-cta {
  margin-top: 48px; padding: 32px; text-align: center;
  background: var(--bg-alt); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.faq-cta h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.faq-cta p { font-size: 14px; color: var(--text-light); margin: 0 0 20px; }
.faq-cta-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border: 1.5px solid var(--border);
  border-radius: var(--radius); text-decoration: none;
  font-weight: 700; font-size: 14px; color: var(--text);
  background: var(--card); cursor: pointer; transition: var(--transition);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ═══════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════ */
.contact-hero {
  background: linear-gradient(135deg, #92400e, #b45309);
  padding: 120px 16px 60px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.contact-hero h1 { font-size: 34px; font-weight: 900; margin: 0 0 12px; }
.contact-hero p { font-size: 17px; margin: 0 auto; max-width: 500px; line-height: 1.8; }
.contact-body { max-width: 1100px; margin: -40px auto 0; padding: 0 16px; position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; align-items: center; gap: 16px; transition: var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--primary-bg); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.contact-card-icon svg { width: 22px; height: 22px; stroke: var(--primary); }
.contact-card-text { flex: 1; }
.contact-card-text strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.contact-card-text span, .contact-card-text a {
  font-size: 15px; color: var(--text-light); text-decoration: none;
}
.contact-card-text a:hover { color: var(--primary); }

.contact-form-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.contact-form-card h2 { font-size: 22px; font-weight: 800; margin: 0 0 20px; }
.contact-form-card .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 480px) { .contact-form-card .form-row { grid-template-columns: 1fr; } }
.contact-form-card .form-group { margin-bottom: 14px; }
.contact-form-card label {
  display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; color: var(--text);
}
.contact-form-card .required { color: #dc2626; }
.contact-form-card input,
.contact-form-card textarea,
.contact-form-card select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px; font-family: var(--font);
  background: var(--bg); color: var(--text); transition: border-color 0.2s;
}
.contact-form-card input:focus,
.contact-form-card textarea:focus,
.contact-form-card select:focus { outline: none; border-color: var(--primary); }
.contact-form-card textarea { resize: vertical; min-height: 130px; }
.contact-form-card button {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius);
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 800;
  font-family: var(--font); cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.contact-form-card button:hover {
  background: var(--primary-dark); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(146,64,14,0.3);
}
.contact-form-card button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
#booksContactStatus {
  margin-top: 14px; padding: 10px 14px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; display: none;
}
#booksContactStatus.success { display: block; background: #d1fae5; color: #065f46; }
#booksContactStatus.error { display: block; background: #fef2f2; color: #991b1b; }

.contact-social { margin-top: 24px; }
.contact-social h4 { font-size: 16px; font-weight: 700; margin: 0 0 12px; text-align: center; }
.contact-social-links { display: flex; gap: 10px; justify-content: center; }
.contact-social-links a {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary-bg); display: flex; align-items: center;
  justify-content: center; color: var(--primary); transition: var(--transition);
}
.contact-social-links a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.contact-social-links svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 600px) { .about-grid { grid-template-columns: 1fr; } }
.about-card {
  text-align: center; padding: 32px 20px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: var(--transition);
}
.about-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.about-card svg { margin-bottom: 16px; }
.about-card h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.about-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin: 0; }
.about-content .policy-content { max-width: 680px; margin: 0 auto; }

/* ═══════════════════════════════════════════════
   TRACKING FORM
   ═══════════════════════════════════════════════ */
.tracking-form-box {
  margin-top: 32px; padding: 32px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); text-align: center;
}
.tracking-form-box h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.tracking-form-box p { font-size: 14px; color: var(--text-light); margin: 0 0 20px; }
.tracking-form {
  display: flex; gap: 12px; max-width: 420px; margin: 0 auto;
}
.tracking-form input {
  flex: 1; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 15px; font-family: var(--font);
}
.tracking-form input:focus { outline: none; border-color: var(--primary); }
.tracking-form button {
  padding: 12px 24px; border: none; border-radius: var(--radius);
  background: var(--primary); color: #fff; font-weight: 800;
  font-size: 14px; cursor: pointer; white-space: nowrap;
}
.tracking-form button:hover { background: var(--primary-dark); }
@media (max-width: 480px) { .tracking-form { flex-direction: column; } }

/* ═══════════════════════════════════════════════
   SINGLE PRODUCT PAGE — bf-pd-* classes
   PROFESSIONAL BOOK DETAIL LAYOUT
   ═══════════════════════════════════════════════ */

/* ─── Breadcrumb ─── */
.bf-pd-breadcrumb, .breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-light); margin-top: 16px; margin-bottom: 12px;
  padding: 10px 14px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); max-width: 1200px; margin-left: auto; margin-right: auto;
  position: relative; z-index: 1;
}
.bf-pd-breadcrumb a { color: var(--text-light); text-decoration: none; transition: 0.15s; }
.bf-pd-breadcrumb a:hover { color: var(--primary); }
.bf-pd-breadcrumb .sep { color: #d1d5db; font-size: 14px; }
.bf-pd-breadcrumb > span:last-child { color: var(--text); font-weight: 600; }

/* ─── Hero Grid ─── */
.bf-pd-hero {
  display: grid; grid-template-columns: 300px 1fr; gap: 24px;
  margin-bottom: 24px; align-items: start;
}
@media (max-width: 768px) { .bf-pd-hero { grid-template-columns: 1fr; gap: 24px; } }

/* ─── Gallery ─── */
.bf-pd-gallery { position: sticky; top: 100px; }
@media (max-width: 768px) { .bf-pd-gallery { position: static; max-width: 320px; margin: 0 auto; } }
.bf-pd-img-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center;
  transition: box-shadow 0.3s;
}
.bf-pd-img-box:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.bf-pd-main-img { width: 100%; height: 100%; object-fit: contain; }
.bf-pd-no-img {
  font-size: 14px; color: var(--text-light);
  display: flex; align-items: center; justify-content: center; height: 100%;
}

/* ─── Details ─── */
.bf-pd-details { display: flex; flex-direction: column; gap: 8px; }

.bf-pd-cat {
  display: inline-flex; align-self: flex-start;
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--primary); padding: 4px 14px;
  border-radius: 20px; letter-spacing: 0.3px;
}

.bf-pd-title {
  font-size: clamp(18px, 2.2vw, 24px); font-weight: 900;
  color: var(--text); line-height: 1.3; margin: 0;
}

/* ─── Rating ─── */
.bf-pd-rating { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bf-pd-stars { display: flex; gap: 2px; }
.bf-pd-rating-text { font-size: 14px; font-weight: 700; color: #92400e; }
.bf-pd-rating-sep { color: #d1d5db; font-size: 12px; }
.bf-pd-rating-count { font-size: 13px; color: var(--text-light); }

/* ─── Stock ─── */
.bf-pd-stock-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bf-pd-stock {
  font-size: 14px; font-weight: 700; padding: 6px 14px;
  border-radius: var(--radius); display: inline-flex; align-items: center; gap: 6px;
}
.bf-pd-stock.in-stock { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.bf-pd-stock.out-of-stock { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.bf-pd-delivery-time { font-size: 13px; color: var(--text-light); }

/* ─── Price ─── */
.bf-pd-price-box {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.bf-pd-price-current { display: flex; align-items: baseline; gap: 10px; }
.bf-pd-price-old { font-size: 16px; color: #595959; text-decoration: line-through; }
.bf-pd-price-val { font-size: 28px; font-weight: 900; color: var(--primary-dark); }
.bf-pd-price-val .woocommerce-Price-currencySymbol { font-size: 18px; }

.bf-pd-wishlist-btn {
  width: 44px; height: 44px; border: 2px solid var(--border); border-radius: 50%;
  background: var(--card); cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: 0.2s; color: var(--text-light); flex-shrink: 0;
}
.bf-pd-wishlist-btn:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
.bf-pd-wishlist-btn.active { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

/* ─── Description ─── */
.bf-pd-desc {
  font-size: 14px; line-height: 1.7; color: var(--text-light);
  padding: 4px 0;
}

/* ─── Features Grid ─── */
.bf-pd-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 6px 0;
}
@media (max-width: 480px) { .bf-pd-features { grid-template-columns: 1fr; } }
.bf-pd-feature {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--bg-alt);
  border-radius: var(--radius); font-size: 13px;
}
.bf-pd-feat-icon { font-size: 16px; flex-shrink: 0; }
.bf-pd-feat-label { color: var(--text-light); font-weight: 500; flex-shrink: 0; }
.bf-pd-feat-value { color: var(--text); font-weight: 700; margin-right: auto; }

/* ─── Form (qty + actions) ─── */
.bf-pd-form { margin-top: 4px; }
.bf-pd-qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.bf-pd-qty-label { font-size: 14px; font-weight: 700; color: var(--text); }
.bf-pd-qty {
  display: inline-flex; align-items: center; border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.bf-pd-qty-btn {
  width: 40px; height: 40px; border: none; background: var(--bg-alt);
  cursor: pointer; font-size: 18px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; justify-content: center; transition: 0.1s;
}
.bf-pd-qty-btn:hover { background: var(--primary-bg); color: var(--primary); }
.bf-pd-qty-input {
  width: 48px; height: 40px; text-align: center; font-size: 16px; font-weight: 700;
  border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border);
  font-family: var(--font); background: var(--card);
  -moz-appearance: textfield;
}
.bf-pd-qty-input::-webkit-outer-spin-button,
.bf-pd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.bf-pd-actions { display: flex; gap: 12px; }
@media (max-width: 480px) { .bf-pd-actions { flex-direction: column; } }

.bf-pd-btn {
  flex: 1; padding: 14px 24px; border: none; border-radius: var(--radius);
  font-size: 15px; font-weight: 800; cursor: pointer; font-family: var(--font);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: 0.2s; text-decoration: none;
}
.bf-pd-btn-cart {
  background: var(--card); color: var(--primary); border: 2px solid var(--primary);
}
.bf-pd-btn-cart:hover { background: var(--primary-bg); transform: translateY(-1px); }
.bf-pd-btn-buy {
  background: var(--primary); color: #fff;
}
.bf-pd-btn-buy:hover { background: var(--primary-dark); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(146,64,14,0.3); }
.bf-pd-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ─── Out of stock ─── */
.bf-pd-oos {
  text-align: center; padding: 20px; font-size: 15px; font-weight: 700;
  color: #991b1b; background: #fef2f2; border: 1px solid #fecaca;
  border-radius: var(--radius);
}

/* ─── WhatsApp ─── */
.bf-pd-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; background: #25D366; color: #fff;
  border-radius: var(--radius); font-size: 14px; font-weight: 700;
  text-decoration: none; transition: 0.2s; align-self: flex-start;
}
.bf-pd-whatsapp:hover { background: #1da851; transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,211,102,0.3); color: #fff; }

/* ─── Trust ─── */
.bf-pd-trust {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0;
}
.bf-pd-trust-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text-light);
  padding: 8px 14px; background: var(--bg-alt); border-radius: var(--radius);
}
.bf-pd-trust-item svg { flex-shrink: 0; color: var(--primary); }

/* ─── Express Order Form ─── */
.bf-pd-form-section {
  background: linear-gradient(135deg, var(--card) 0%, #fef9ef 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; margin-top: 12px;
}
.bf-pd-form-heading {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; color: var(--heading);
  margin-bottom: 12px;
}
.bf-pd-form-heading svg { color: var(--primary); }
.bf-pd-express-form { display: flex; flex-direction: column; gap: 10px; }
.bf-pd-ex-row { display: flex; gap: 12px; }
.bf-pd-ex-row-2col > * { flex: 1; min-width: 0; }
@media (max-width: 500px) { .bf-pd-ex-row-2col { flex-direction: column; } }
.bf-pd-ex-field { display: flex; flex-direction: column; gap: 4px; }
.bf-pd-ex-field label {
  font-size: 12px; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .3px;
}
.bf-pd-ex-field .required { color: #dc2626; }
.bf-pd-ex-field input,
.bf-pd-ex-field select,
.bf-pd-ex-field textarea {
  padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px;
  font-family: inherit; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.bf-pd-ex-field input:focus,
.bf-pd-ex-field select:focus,
.bf-pd-ex-field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(180,115,55,0.12);
}
.bf-pd-ex-commune-wrap { position: relative; }
.bf-pd-ex-commune-dd {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  max-height: 200px; overflow-y: auto; display: none;
}
.bf-pd-ex-cd-item {
  padding: 10px 14px; font-size: 13px; cursor: pointer;
  transition: background .15s;
}
.bf-pd-ex-cd-item:hover { background: var(--bg-alt); }
.bf-pd-ex-delivery {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.bf-pd-ex-radio {
  flex: 1; min-width: 120px; cursor: pointer;
}
.bf-pd-ex-radio input { display: none; }
.bf-pd-ex-radio-label {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px; font-weight: 700;
  color: var(--text-light); transition: all .2s;
}
.bf-pd-ex-radio input:checked + .bf-pd-ex-radio-label {
  border-color: var(--primary); background: var(--bg-warm);
  color: var(--primary);
}
.bf-pd-ex-qty { display: flex; align-items: center; gap: 12px; }
.bf-pd-ex-qty label { font-size: 12px; font-weight: 700; color: var(--text-light); }
.bf-pd-ex-qty-selector {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.bf-pd-ex-qty-btn {
  width: 36px; height: 36px; border: none; background: var(--bg-alt);
  font-size: 18px; font-weight: 700; color: var(--text); cursor: pointer;
  transition: background .15s; display: flex; align-items: center; justify-content: center;
}
.bf-pd-ex-qty-btn:hover { background: var(--border); }
.bf-pd-ex-qty-input {
  width: 48px; height: 36px; border: none; border-left: 1px solid var(--border);
  border-right: 1px solid var(--border); text-align: center;
  font-size: 14px; font-weight: 700; font-family: inherit; -moz-appearance: textfield;
}
.bf-pd-ex-qty-input::-webkit-inner-spin-button,
.bf-pd-ex-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bf-pd-ex-summary {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 14px 16px;
}
.bf-pd-ex-s-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-light); margin-bottom: 6px;
}
.bf-pd-ex-s-divider { height: 1px; background: var(--border); margin: 8px 0; }
.bf-pd-ex-s-total { font-size: 15px; font-weight: 800; color: var(--heading); }
.bf-pd-ex-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border: none; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, #925a1d 100%);
  color: #fff; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: all .25s;
}
.bf-pd-ex-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(160,95,35,0.3);
}
.bf-pd-ex-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.bf-pd-ex-note {
  text-align: center; font-size: 12px; color: var(--text-lighter);
  margin: 0;
}

/* ─── Info Cards Section ─── */
.bf-pd-section { margin-bottom: 20px; }
.bf-pd-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 768px) { .bf-pd-info-grid { grid-template-columns: 1fr; } }
.bf-pd-info-card {
  background: var(--card); border: 1px solid var(--border);
  border-top: 3px solid var(--primary); border-radius: var(--radius-lg);
  padding: 20px;
}
.bf-pd-info-icon { font-size: 32px; margin-bottom: 12px; }
.bf-pd-info-card h3 { font-size: 18px; font-weight: 800; margin: 0 0 14px; }
.bf-pd-info-card p { font-size: 14px; line-height: 1.8; color: var(--text-light); margin: 0; }
.bf-pd-info-body { font-size: 14px; line-height: 1.8; color: var(--text-light); }
.bf-pd-info-body p { margin-bottom: 12px; }
.bf-pd-info-body p:last-child { margin-bottom: 0; }
.bf-pd-info-list { list-style: none; margin: 0; padding: 0; }
.bf-pd-info-list li {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text-light); line-height: 1.6;
}
.bf-pd-info-list li:last-child { border-bottom: none; }
.bf-pd-info-list li::before { content: "✓"; color: var(--primary); font-weight: 700; margin-left: 8px; }

/* ─── Related Products ─── */
.bf-pd-related { margin-bottom: 24px; }
.bf-pd-related h2 { font-size: 18px; font-weight: 800; margin: 0 0 14px; }
.bf-pd-related-track {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.bf-pd-related-track::-webkit-scrollbar { height: 6px; }
.bf-pd-related-track::-webkit-scrollbar-track { background: var(--bg-alt); border-radius: 3px; }
.bf-pd-related-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.bf-pd-related-track::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

.bf-pd-related-card {
  flex: 0 0 180px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: 0.2s;
}
.bf-pd-related-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.bf-pd-rel-thumb {
  display: block; aspect-ratio: 3/4; overflow: hidden;
}
.bf-pd-rel-thumb img { width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s; }
.bf-pd-related-card:hover .bf-pd-rel-thumb img { transform: scale(1.05); }
.bf-pd-rel-info { padding: 12px 14px; }
.bf-pd-rel-title { font-size: 13px; font-weight: 700; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bf-pd-rel-title a { color: var(--text); text-decoration: none; }
.bf-pd-rel-title a:hover { color: var(--primary); }
.bf-pd-rel-author { font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.bf-pd-rel-price { font-size: 14px; font-weight: 800; color: var(--primary-dark); }


/* ═══════════════════════════════════════════════
   LIVE SEARCH
   ═══════════════════════════════════════════════ */
.bf-search-wrap { position: relative; }
.bf-live-search {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 999;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); display: none;
  max-height: 360px; overflow-y: auto;
}
.bf-live-search.active { display: block; }
.bf-ls-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s; text-decoration: none;
}
.bf-ls-item:last-child { border-bottom: none; }
.bf-ls-item:hover { background: #f9fafb; }
.bf-ls-img { flex: 0 0 44px; width: 44px; height: 58px; overflow: hidden; border-radius: 4px; }
.bf-ls-img img { width: 100%; height: 100%; object-fit: cover; }
.bf-ls-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bf-ls-title { font-size: 13px; font-weight: 700; color: #1f2937; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bf-ls-price { font-size: 13px; font-weight: 800; color: #92400e; }
.bf-ls-empty { padding: 20px; text-align: center; color: #9ca3af; font-size: 14px; }

/* ═══════════════════════════════════════════════
   CART PAGE — bf-cart-* classes
   ═══════════════════════════════════════════════ */
.bf-cart-wrap { max-width: 900px; margin: 0 auto; }
.bf-cart-title { font-size: 22px; font-weight: 800; margin: 0 0 20px; }
.bf-cart-empty { text-align: center; padding: 60px 20px; }
.bf-cart-empty svg { margin-bottom: 16px; opacity: 0.4; }
.bf-cart-empty h2 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.bf-cart-empty p { font-size: 14px; color: var(--text-light); margin: 0 0 24px; }
.bf-cart-empty .btn { display: inline-block; padding: 12px 28px; background: var(--primary);
  color: #fff; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.bf-cart-empty .btn:hover { background: var(--primary-dark); }
.bf-cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.bf-cart-table th { text-align: right; padding: 12px 10px; font-size: 13px; font-weight: 700;
  color: var(--text-light); border-bottom: 2px solid var(--border);
  text-transform: uppercase; letter-spacing: 0.5px; }
.bf-cart-table td { padding: 16px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.bf-cart-item-thumb { width: 60px; }
.bf-cart-item-thumb img { width: 50px; height: 65px; object-fit: cover; border-radius: 6px; }
.bf-cart-item-name { font-size: 15px; font-weight: 700; color: var(--text); }
.bf-cart-item-name a { color: inherit; text-decoration: none; }
.bf-cart-item-name a:hover { color: var(--primary); }
.bf-cart-item-price { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }
.bf-cart-item-qty { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; }
.bf-cart-item-qty button { width: 32px; height: 32px; border: none; background: var(--bg-alt);
  cursor: pointer; font-size: 16px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; justify-content: center; transition: 0.1s; }
.bf-cart-item-qty button:hover { background: var(--primary-bg); color: var(--primary); }
.bf-cart-item-qty input { width: 36px; height: 32px; text-align: center; font-size: 14px;
  border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  font-weight: 600; font-family: var(--font); }
.bf-cart-item-subtotal { font-size: 15px; font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.bf-cart-item-remove { color: #ef4444; cursor: pointer; opacity: 0.5; transition: 0.15s;
  display: inline-flex; align-items: center; }
.bf-cart-item-remove:hover { opacity: 1; }
.bf-cart-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.bf-cart-coupon { display: flex; gap: 8px; flex: 1; }
.bf-cart-coupon input { flex: 1; max-width: 200px; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: var(--font); }
.bf-cart-coupon input:focus { outline: none; border-color: var(--primary); }
.bf-cart-coupon button, .bf-cart-update { padding: 10px 20px; border: none;
  border-radius: var(--radius); font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: var(--font); transition: 0.15s; }
.bf-cart-coupon button { background: var(--primary); color: #fff; }
.bf-cart-coupon button:hover { background: var(--primary-dark); }
.bf-cart-coupon button:disabled, .bf-cart-update:disabled { opacity: 0.6; cursor: not-allowed; }
.bf-cart-update { background: var(--bg-alt); color: var(--text); }
.bf-cart-update:hover { background: var(--border); }
.bf-cart-totals { background: var(--bg-alt); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 20px; }
.bf-cart-totals-table { width: 100%; }
.bf-cart-totals-table td { padding: 10px 0; font-size: 14px; }
.bf-cart-totals-table td:last-child { text-align: left; font-weight: 700; }
.bf-cart-totals-table .bf-cart-total-row td { font-size: 18px; font-weight: 900;
  border-top: 2px solid var(--border); padding-top: 16px; color: var(--primary-dark); }
.bf-cart-checkout-btn { display: block; width: 100%; padding: 16px; border: none;
  border-radius: var(--radius); background: var(--primary); color: #fff;
  font-size: 16px; font-weight: 800; cursor: pointer; text-align: center;
  font-family: var(--font); transition: 0.15s; text-decoration: none; }
.bf-cart-checkout-btn:hover { background: var(--primary-dark); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(146,64,14,0.3); }
@media (max-width: 600px) {
  .bf-cart-table th { display: none; }
  .bf-cart-table td { display: block; padding: 10px 8px; text-align: left; }
  .bf-cart-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--border); }
  .bf-cart-item-thumb { width: auto; padding: 0 8px 8px; }
  .bf-cart-actions { flex-direction: column; }
  .bf-cart-coupon { max-width: 100%; }
  .bf-cart-coupon input { max-width: none; }
}

/* ═══════════════════════════════════════════════
   CHECKOUT PAGE — bf-co-* classes
   ═══════════════════════════════════════════════ */
.bf-co-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 28px;
  align-items: start; max-width: 1100px; margin: 0 auto; }
@media (max-width: 768px) { .bf-co-wrap { grid-template-columns: 1fr; } }
.bf-co-form-card { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; }
.bf-co-form-card h2 { font-size: 18px; font-weight: 800; margin: 0 0 20px;
  padding-bottom: 12px; border-bottom: 2px solid var(--primary-bg); }
.bf-co-form-row { margin-bottom: 14px; }
.bf-co-form-row label { display: block; font-size: 13px; font-weight: 700; color: var(--text-light);
  margin-bottom: 4px; }
.bf-co-form-row label .required { color: #ef4444; }
.bf-co-form-row input, .bf-co-form-row select, .bf-co-form-row textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px; font-family: var(--font);
  background: #fff; transition: 0.15s; box-sizing: border-box;
}
.bf-co-form-row input:focus, .bf-co-form-row select:focus, .bf-co-form-row textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(146,64,14,0.1);
}
.bf-co-form-row input.error, .bf-co-form-row select.error { border-color: #ef4444; }
.bf-co-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .bf-co-name-row { grid-template-columns: 1fr; } }
.bf-co-phone-row { display: flex; gap: 12px; align-items: flex-start; }
.bf-co-phone-row input { flex: 1; }
.bf-co-phone-row .bf-co-save-link { padding: 10px 16px; background: var(--bg-alt);
  border-radius: var(--radius); font-size: 13px; font-weight: 700; color: var(--primary);
  cursor: pointer; white-space: nowrap; border: 1px solid var(--border);
  transition: 0.15s; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.bf-co-phone-row .bf-co-save-link:hover { background: var(--primary-bg); }
.bf-co-delivery { margin: 20px 0; }
.bf-co-delivery h3 { font-size: 15px; font-weight: 700; margin: 0 0 12px;
  color: var(--text-light); }
.bf-co-delivery-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bf-co-delivery-opt { position: relative; }
.bf-co-delivery-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bf-co-delivery-opt label { display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 16px 12px; border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: 0.15s; font-size: 13px; font-weight: 600;
  background: var(--card); }
.bf-co-delivery-opt label:hover { border-color: var(--primary); }
.bf-co-delivery-opt input:checked + label { border-color: var(--primary);
  background: var(--primary-bg); color: var(--primary); }
.bf-co-delivery-opt .deliv-rate { font-size: 12px; font-weight: 500; color: var(--text-light); }
.bf-co-delivery-opt input:checked + label .deliv-rate { color: var(--primary); }
.bf-co-commune-search { position: relative; }
.bf-co-commune-dropdown { position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: #fff; border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius); max-height: 200px; overflow-y: auto;
  display: none; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.bf-co-commune-dropdown.active { display: block; }
.bf-co-commune-item { padding: 10px 14px; font-size: 14px; cursor: pointer; transition: 0.1s;
  border-bottom: 1px solid #f9fafb; }
.bf-co-commune-item:hover { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.bf-co-commune-item:last-child { border-bottom: none; }
.bf-co-commune-nores { padding: 14px; text-align: center; color: var(--text-light); font-size: 13px; }

/* Checkout sidebar (summary) */
.bf-co-sidebar { position: sticky; top: 100px; }
.bf-co-summary-card { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.bf-co-summary-card h3 { font-size: 16px; font-weight: 800; margin: 0 0 16px; }
.bf-co-summary-items { list-style: none; margin: 0; padding: 0; }
.bf-co-summary-item { display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border); }
.bf-co-summary-item:last-child { border-bottom: none; }
.bf-co-summary-item-img { flex: 0 0 42px; width: 42px; height: 55px; border-radius: 4px;
  overflow: hidden; }
.bf-co-summary-item-img img { width: 100%; height: 100%; object-fit: cover; }
.bf-co-summary-item-info { flex: 1; min-width: 0; }
.bf-co-summary-item-name { font-size: 13px; font-weight: 600; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.bf-co-summary-item-qty { font-size: 12px; color: var(--text-light); }
.bf-co-summary-item-total { font-size: 14px; font-weight: 800; color: var(--primary-dark);
  white-space: nowrap; }
.bf-co-summary-totals { list-style: none; margin: 0; padding: 12px 0 0;
  border-top: 2px solid var(--border); }
.bf-co-summary-totals li { display: flex; justify-content: space-between;
  padding: 6px 0; font-size: 14px; }
.bf-co-summary-totals li:last-child { font-size: 18px; font-weight: 900;
  color: var(--primary-dark); border-top: 1px solid var(--border);
  padding-top: 10px; margin-top: 4px; }
.bf-co-summary-totals .bf-co-shipping-fee { text-align: left; font-weight: 700; }

/* COD payment card */
.bf-co-cod-card { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; }
.bf-co-cod-card h3 { font-size: 15px; font-weight: 800; margin: 0 0 8px; }
.bf-co-cod-card p { font-size: 13px; color: var(--text-light); margin: 0; }

/* Place order button */
.bf-co-place-order { width: 100%; margin-top: 16px; padding: 16px;
  border: none; border-radius: var(--radius); background: var(--primary);
  color: #fff; font-size: 17px; font-weight: 800; cursor: pointer;
  font-family: var(--font); transition: 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.bf-co-place-order:hover { background: var(--primary-dark); transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(146,64,14,0.35); }
.bf-co-place-order:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.bf-co-place-order .spinner { display: none; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: bf-spin 0.6s linear infinite; }
.bf-co-place-order.loading .spinner { display: inline-block; }
@keyframes bf-spin { to { transform: rotate(360deg); } }

/* Mobile sticky checkout button */
.bf-co-mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 100; background: #fff; border-top: 1px solid var(--border);
  padding: 12px 16px; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); }
.bf-co-mobile-bar .bf-co-place-order { margin: 0; }
@media (max-width: 768px) {
  .bf-co-mobile-bar { display: block; }
  .bf-co-wrap { padding-bottom: 80px; }
  .bf-co-form-card { padding: 20px 16px; }
}

/* ═══════════════════════════════════════════════
   THANKYOU PAGE — bf-ty-* classes
   ═══════════════════════════════════════════════ */
.bf-ty-wrap { max-width: 700px; margin: 0 auto; }
.bf-ty-header { text-align: center; padding: 40px 20px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 24px; }
.bf-ty-header svg { margin-bottom: 12px; }
.bf-ty-header h1 { font-size: 24px; font-weight: 900; margin: 0 0 8px; color: var(--primary-dark); }
.bf-ty-header p { font-size: 14px; color: var(--text-light); margin: 0; }
.bf-ty-order-num { font-size: 15px; font-weight: 700; color: var(--primary); margin-top: 8px; }
.bf-ty-section { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.bf-ty-section h3 { font-size: 16px; font-weight: 800; margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--primary-bg); }
.bf-ty-product-table { width: 100%; border-collapse: collapse; }
.bf-ty-product-table td { padding: 10px 8px; border-bottom: 1px solid var(--border);
  vertical-align: middle; font-size: 14px; }
.bf-ty-product-table tr:last-child td { border-bottom: none; }
.bf-ty-prod-thumb { width: 44px; }
.bf-ty-prod-thumb img { width: 40px; height: 52px; object-fit: cover; border-radius: 4px; }
.bf-ty-prod-name { font-weight: 700; color: var(--text); }
.bf-ty-prod-meta { font-size: 12px; color: var(--text-light); }
.bf-ty-prod-total { font-weight: 800; color: var(--primary-dark); text-align: left; }
.bf-ty-totals-table { width: 100%; }
.bf-ty-totals-table td { padding: 8px 0; font-size: 14px; }
.bf-ty-totals-table td:last-child { text-align: left; font-weight: 700; }
.bf-ty-totals-table .bf-ty-grand-total td { font-size: 18px; font-weight: 900;
  border-top: 2px solid var(--border); padding-top: 12px; color: var(--primary-dark); }
.bf-ty-delivery-info { font-size: 14px; line-height: 1.8; color: var(--text-light); }
.bf-ty-delivery-info strong { color: var(--text); }
.bf-ty-related { margin-top: 24px; }
.bf-ty-related h2 { font-size: 18px; font-weight: 800; margin: 0 0 16px; }

/* ═══════════════════════════════════════════════
   SITE CONTENT CONTAINER
   ═══════════════════════════════════════════════ */
#fib-wrapper { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; width: 100%; max-width: 100vw; }
#fibMain { flex: 1; width: 100%; }
.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  width: 100%;
}

/* ═══════════════════════════════════════════════
   SINGLE PRODUCT MAIN LAYOUT — Simple
   ═══════════════════════════════════════════════ */
.bf-pd-main {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .bf-pd-main { grid-template-columns: 1fr; }
}
.bf-pd-details-col { display: flex; flex-direction: column; gap: 10px; }
.bf-pd-image-col { display: flex; flex-direction: column; gap: 12px; }
.bf-pd-image-col .bf-pd-img-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3/4; max-width: 280px;
}
.bf-pd-image-col .bf-pd-img-box img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 768px) {
  .bf-pd-image-col { order: -1; }
  .bf-pd-image-col .bf-pd-img-box { max-width: 200px; margin: 0 auto; }
}

/* ─── Breadcrumb ─── */
.bf-pd-breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 4px; }
.bf-pd-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.bf-pd-breadcrumb a:hover { color: var(--primary); }
.bf-pd-breadcrumb .sep { color: var(--border); margin: 0 2px; }
.bf-pd-breadcrumb span:last-child { color: var(--text); font-weight: 600; }

/* ─── Category label ─── */
.bf-pd-cat { display: inline-flex; align-self: flex-start; font-size: 11px; font-weight: 700; color: #fff; background: var(--primary); padding: 3px 12px; border-radius: 20px; }

/* ─── Title ─── */
.bf-pd-title { font-size: 22px; font-weight: 900; margin: 0; line-height: 1.3; }

/* ─── Price row + wishlist ─── */
.bf-pd-price-row { display: flex; align-items: center; gap: 10px; }
.bf-pd-price-box { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.bf-pd-price-val { font-size: 24px; font-weight: 900; color: var(--primary); }
.bf-pd-price-old { font-size: 14px; color: #595959; text-decoration: line-through; }
.bf-pd-wish-btn { background: none; border: 1px solid var(--border); border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-light); transition: all 0.2s; flex-shrink: 0; }
.bf-pd-wish-btn:hover { border-color: var(--danger); color: var(--danger); background: #fef2f2; }
.bf-pd-wish-btn.active { border-color: var(--danger); color: var(--danger); background: #fef2f2; }

/* ─── Rating ─── */
.bf-pd-rating { display: flex; align-items: center; gap: 6px; }
.bf-pd-stars { display: flex; gap: 1px; }
.bf-pd-rating-num { font-weight: 700; font-size: 14px; color: #f59e0b; }
.bf-pd-rating-count { font-size: 13px; color: var(--text-muted); }

/* ─── Stock ─── */
.bf-pd-stock { font-size: 14px; font-weight: 600; }

/* ─── Short desc ─── */
.bf-pd-desc { font-size: 14px; line-height: 1.7; color: var(--text-light); }

/* ─── Add to cart form ─── */
.bf-pd-atc-form { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.bf-pd-qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.bf-pd-qty-btn { width: 34px; height: 36px; border: none; background: var(--bg-section); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.bf-pd-qty-btn:hover { background: var(--border); }
.bf-pd-qty input { width: 44px; height: 36px; border: none; text-align: center; font-size: 14px; font-weight: 700; padding: 0; }
.bf-pd-atc-btn { flex: 1; padding: 11px 20px; border: none; border-radius: 10px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; transition: background 0.2s; font-family: var(--font); }
.bf-pd-atc-btn:hover { background: var(--primary-dark); }

/* ─── Express form simplified ─── */
.bf-pd-express-section { margin-top: 4px; border: 1px solid #e6ddd5; border-radius: 14px; overflow: hidden; background: #fefaf5; }
.bf-pd-ex-toggle { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--primary-dark); cursor: pointer; background: #fef3c7; border-bottom: 1px solid #e6ddd5; }
.bf-pd-express-form { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.bf-pd-express-form input,
.bf-pd-express-form select { width: 100%; padding: 9px 12px; border: 1px solid #d9d0c8; border-radius: 8px; font-size: 13px; font-family: var(--font); background: #fff; box-sizing: border-box; }
.bf-pd-express-form input:focus,
.bf-pd-express-form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(194,65,12,0.1); }
.bf-pd-ex-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
@media (max-width: 480px) { .bf-pd-ex-footer { grid-template-columns: 1fr; } }
.bf-pd-ex-qty-wrap { display: inline-flex; align-items: center; border: 1px solid #d9d0c8; border-radius: 8px; overflow: hidden; background: #fff; }
.bf-pd-ex-qty-btn { width: 32px; height: 34px; border: none; background: transparent; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.bf-pd-ex-qty-btn:hover { background: #f0e9e2; }
.bf-pd-ex-qty-wrap input { width: 40px; height: 34px; border: none; text-align: center; font-size: 14px; font-weight: 700; }
.bf-pd-ex-total { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; }
.bf-pd-ex-submit { padding: 10px 16px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; font-family: var(--font); white-space: nowrap; }
.bf-pd-ex-submit:hover { background: var(--primary-dark); }
.bf-pd-ex-note { font-size: 11px; color: var(--text-muted); text-align: center; }

/* ─── Trust badges ─── */
.bf-pd-trust { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.bf-pd-trust span { font-size: 13px; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* ─── Features grid below image ─── */
.bf-pd-features { display: flex; flex-direction: column; gap: 8px; }
.bf-pd-feat { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--bg-section); border-radius: 8px; font-size: 13px; }
.bf-pd-feat span:first-child { color: var(--text-muted); font-weight: 600; }
.bf-pd-feat span:last-child { font-weight: 700; color: var(--text); }

/* ─── Full description section ─── */
.bf-pd-section { margin-top: 28px; }
.bf-pd-section h2 { font-size: 20px; margin: 0 0 12px; }
.bf-pd-desc-full { font-size: 14px; line-height: 1.8; color: var(--text-light); }

/* ─── Reviews ─── */
.bf-pd-rv-item { padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.bf-pd-rv-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.bf-pd-rv-author { font-weight: 700; font-size: 14px; }
.bf-pd-rv-stars { display: flex; gap: 1px; }
.bf-pd-rv-text { font-size: 14px; color: var(--text-light); margin: 0; line-height: 1.6; }
.bf-pd-rv-empty { font-size: 14px; color: var(--text-muted); }
.bf-pd-rv-form { margin-top: 16px; padding: 16px; background: var(--bg-section); border-radius: var(--radius-lg); }
.bf-pd-rv-form h3 { font-size: 16px; margin: 0 0 12px; }
.bf-pd-rv-form input,
.bf-pd-rv-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; box-sizing: border-box; margin-bottom: 8px; font-family: var(--font); }
.bf-pd-rv-form textarea { resize: vertical; }
.bf-pd-rv-form button { padding: 10px 20px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; font-size: 14px; }
.bf-pd-rv-form button:hover { background: var(--primary-dark); }
.bf-pd-rv-stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin-bottom: 8px; }
.bf-pd-rv-stars-input input { display: none; }
.bf-pd-rv-stars-input label { cursor: pointer; display: flex; }
.bf-pd-rv-stars-input input:checked ~ label svg,
.bf-pd-rv-stars-input label:hover svg,
.bf-pd-rv-stars-input label:hover ~ label svg { fill: #f59e0b; stroke: #f59e0b; }

/* ─── Related products grid ─── */
.bf-pd-rel-wrap { margin-top: 32px; }
.bf-pd-rel-wrap h2 { font-size: 20px; margin: 0 0 16px; }
.bf-pd-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bf-pd-rel-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-light); transition: transform 0.2s; }
.bf-pd-rel-card:hover { transform: translateY(-2px); }
.bf-pd-rel-card > a { display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-section); }
.bf-pd-rel-card > a img { width: 100%; height: 100%; object-fit: contain; }
.bf-pd-rel-info { padding: 10px; text-align: right; }
.bf-pd-rel-info h3 { font-size: 13px; font-weight: 700; margin: 0 0 4px; }
.bf-pd-rel-info h3 a { color: var(--text); text-decoration: none; }
.bf-pd-rel-info h3 a:hover { color: var(--primary); }
.bf-pd-rel-info span { font-size: 14px; font-weight: 800; color: var(--primary); }


/* ─── Out of stock ─── */
.bf-pd-oos { font-size: 14px; color: var(--danger); font-weight: 700; }


/* ─── Express Form (Compact) ─── */
.bf-pd-express-section {
  margin-top: 4px;
  border: 1px solid #e6ddd5;
  border-radius: 14px;
  overflow: hidden;
  background: #fefaf5;
}
.bf-pd-ex-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  background: #fef3c7;
  border-bottom: 1px solid #e6ddd5;
  user-select: none;
}
.bf-pd-ex-toggle svg {
  color: var(--primary);
  flex-shrink: 0;
}
.bf-pd-express-form {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bf-pd-ex-row-2col,
.bf-pd-ex-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 500px) {
  .bf-pd-ex-row-2col,
  .bf-pd-ex-grid {
    grid-template-columns: 1fr;
  }
}
.bf-pd-ex-field input,
.bf-pd-ex-field select,
.bf-pd-ex-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d9d0c8;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font);
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.bf-pd-ex-field input:focus,
.bf-pd-ex-field select:focus,
.bf-pd-ex-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(194,65,12,0.1);
}
.bf-pd-ex-commune-wrap,
.bf-pd-ex-cm-wrap {
  position: relative;
}
.bf-pd-ex-commune-dd,
.bf-pd-ex-cm-dd {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid #d9d0c8;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  max-height: 180px;
  overflow-y: auto;
  display: none;
}
.bf-pd-ex-cd-item {
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid #f0e9e2;
  transition: background 0.1s;
}
.bf-pd-ex-cd-item:last-child {
  border-bottom: none;
}
.bf-pd-ex-cd-item:hover {
  background: #fef3c7;
}
.bf-pd-ex-delivery {
  display: flex;
  gap: 6px;
}
.bf-pd-ex-radio {
  flex: 1;
  cursor: pointer;
}
.bf-pd-ex-radio input {
  display: none;
}
.bf-pd-ex-radio-label {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid #d9d0c8;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #78716c;
  transition: all 0.15s;
  justify-content: center;
}
.bf-pd-ex-radio input:checked + .bf-pd-ex-radio-label {
  border-color: var(--primary);
  background: #fef3c7;
  color: var(--primary-dark);
}
.bf-pd-ex-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}
@media (max-width: 480px) {
  .bf-pd-ex-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.bf-pd-ex-qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9d0c8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.bf-pd-ex-qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #ede7df;
  font-size: 16px;
  font-weight: 700;
  color: #2c1810;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
}
.bf-pd-ex-qty-btn:hover {
  background: #d9d0c8;
}
.bf-pd-ex-qty-input {
  width: 40px;
  height: 32px;
  border: none;
  border-left: 1px solid #d9d0c8;
  border-right: 1px solid #d9d0c8;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  -moz-appearance: textfield;
}
.bf-pd-ex-qty-input::-webkit-inner-spin-button,
.bf-pd-ex-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bf-pd-ex-total-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #78716c;
}
.bf-pd-ex-total-val {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary-dark);
}
.bf-pd-ex-submit {
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  font-family: var(--font);
  white-space: nowrap;
}
.bf-pd-ex-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.bf-pd-ex-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.bf-pd-ex-note {
  text-align: center;
  font-size: 11px;
  color: #a8a29e;
  margin: 0;
}
.bf-pd-ex-summary {
  background: #f5f0eb;
  border-radius: 8px;
  padding: 10px 12px;
  display: none;
}
.bf-pd-ex-summary.visible {
  display: block;
}
.bf-pd-ex-s-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #78716c;
  margin-bottom: 4px;
}
.bf-pd-ex-s-divider {
  height: 1px;
  background: #e6ddd5;
  margin: 6px 0;
}
.bf-pd-ex-s-total {
  font-size: 14px;
  font-weight: 800;
  color: #2c1810;
}

/* ─── Qty Group (cart form) ─── */
.bf-pd-qty-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Actions row ─── */
.bf-pd-actions-row {
  margin-top: 2px;
}

/* ─── Related Slider (center-zoom) ─── */
.bf-pd-rel-wrap {
  margin-top: 28px;
  overflow: hidden;
}
.bf-pd-rel-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 50px;
}
.bf-pd-rel-inner h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 16px;
}
.bf-pd-rel-slider {
  overflow: hidden;
  position: relative;
}
.bf-pd-rel-track {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  cursor: grab;
}
.bf-pd-rel-track:active {
  cursor: grabbing;
}
.bf-pd-rel-card {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 0;
  transition: all 0.4s ease;
  transform: scale(0.85);
  opacity: 0.6;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.bf-pd-rel-card.center {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
.bf-pd-rel-thumb {
  display: block;
  position: relative;
  padding-top: 133%;
  overflow: hidden;
  background: #ede7df;
}
.bf-pd-rel-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.bf-pd-rel-card.center .bf-pd-rel-thumb img {
  transform: scale(1.05);
}
.bf-pd-rel-info {
  padding: 12px 14px 14px;
}
.bf-pd-rel-title {
  font-size: 14px;
  font-weight: 800;
  color: #2c1810;
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bf-pd-rel-title a {
  color: inherit;
}
.bf-pd-rel-title a:hover {
  color: var(--primary);
}
.bf-pd-rel-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
}
.bf-pd-rel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 1.5px solid #e6ddd5;
  color: #2c1810;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.bf-pd-rel-nav:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.bf-pd-rel-prev {
  right: 0;
}
.bf-pd-rel-next {
  left: 0;
}
@media (max-width: 768px) {
  .bf-pd-rel-inner {
    padding: 0 40px;
  }
  .bf-pd-rel-card {
    flex: 0 0 calc(50% - 8px);
  }
  .bf-pd-rel-nav {
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 480px) {
  .bf-pd-rel-card {
    flex: 0 0 calc(70% - 8px);
  }
  .bf-pd-rel-inner {
    padding: 0 30px;
  }
}

/* ─── Sticky mobile bar (see consolidated block at bottom of file) ─── */

/* ─── Product info section ─── */
.bf-pd-section {
  margin-bottom: 20px;
}

/* ─── Right column: full description ─── */
.bf-pd-right-desc {
  margin-top: 16px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--primary);
}
.bf-pd-right-desc h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 10px;
}
.bf-pd-right-desc-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-light);
}
.bf-pd-right-desc-body p {
  margin-bottom: 10px;
}
.bf-pd-right-desc-body p:last-child {
  margin-bottom: 0;
}

/* ─── Right column: reviews ─── */
.bf-pd-right-reviews {
  margin-top: 16px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.bf-pd-right-reviews h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
}
.bf-pd-rv-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.bf-pd-rv-item {
  padding: 12px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.bf-pd-rv-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.bf-pd-rv-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.bf-pd-rv-stars {
  display: flex;
  gap: 1px;
}
.bf-pd-rv-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}
.bf-pd-rv-empty {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 0 12px;
  text-align: center;
}
.bf-pd-rv-add-btn {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.15s;
}
.bf-pd-rv-add-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ─── Review Form ─── */
.bf-pd-review-form {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: var(--card-bg, #fff);
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
}
.bf-pd-review-form.open { display: block; }
.bf-rv-field { margin-bottom: 14px; }
.bf-rv-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text, #374151); }
.bf-rv-field label .required { color: #dc2626; }
.bf-rv-field input[type="text"],
.bf-rv-field input[type="email"],
.bf-rv-field textarea {
  width: 100%; padding: 10px 12px; border: 2px solid var(--border, #e5e7eb); border-radius: 8px;
  font-size: 14px; background: var(--input-bg, #fff); color: var(--text, #1f2937);
  transition: border-color .2s; box-sizing: border-box;
}
.bf-rv-field input:focus,
.bf-rv-field textarea:focus { border-color: var(--primary, #b45309); outline: none; }
.bf-rv-stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.bf-rv-star-input { display: none; }
.bf-rv-star-label { cursor: pointer; }
.bf-rv-star-label svg { transition: fill .2s; }
.bf-rv-star-input:checked ~ .bf-rv-star-label svg,
.bf-rv-star-label:hover svg,
.bf-rv-star-label:hover ~ .bf-rv-star-label svg { fill: #f59e0b; }
.bf-rv-submit-btn {
  background: var(--primary, #b45309); color: #fff; border: none;
  padding: 10px 28px; border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.bf-rv-submit-btn:hover { background: var(--primary-dark, #92400e); }
.bf-rv-form-submit { margin: 0; }
.bf-rv-closed { color: var(--text-muted, #9ca3af); font-size: 14px; }

/* ─── Sticky bar: prevent overlap on mobile ─── */
@media (max-width: 768px) {
  .bf-co-sticky { bottom: 0; }
  .bf-pd-sticky-bar { bottom: 60px; }
}

/* ─── Commune dropdown styling ─── */
.bf-commune-wrap { position: relative; }
.bf-commune-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  z-index: 100;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
}
.bf-co-cm-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text, #1f2937);
  transition: background .15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bf-co-cm-item:hover,
.bf-co-cm-item.hover { background: var(--hover-bg, #fef3c7); }
.bf-cm-ascii { color: var(--text-muted, #9ca3af); font-size: 12px; }

/* ═══════════════════════════════════════════════
   CART PAGE — RTL clean
   ═══════════════════════════════════════════════ */
.bf-cart-wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
.bf-cart-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.bf-cart-header h1 { font-size: 24px; margin: 0; }
.bf-cart-count { font-size: 14px; color: var(--text-muted); }
.bf-cart-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 768px) { .bf-cart-grid { grid-template-columns: 1fr; } }

.bf-cart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bf-cart-table thead th { padding: 12px 8px; border-bottom: 2px solid var(--border); font-size: 12px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; text-align: right; }
.bf-cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.bf-cart-table .product-thumbnail { width: 70px; }
.bf-cart-table .product-thumbnail img { width: 60px; height: 80px; object-fit: contain; border-radius: 6px; }
.bf-cart-table .product-name a { font-weight: 700; color: var(--text); text-decoration: none; }
.bf-cart-table .product-name a:hover { color: var(--primary); }
.bf-cart-table .product-remove { width: 30px; }
.bf-cart-table .product-remove .remove { color: var(--text-light); text-decoration: none; font-size: 22px; }
.bf-cart-table .product-remove .remove:hover { color: var(--danger); }
.bf-cart-table .quantity { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.bf-cart-table .quantity input { width: 50px; padding: 6px; border: none; text-align: center; font-size: 13px; }
.bf-cart-table .quantity .qty-btn { padding: 6px 10px; background: var(--bg-section); border: none; cursor: pointer; font-size: 14px; }
.bf-cart-table .quantity .qty-btn:hover { background: var(--border); }
.bf-cart-table .actions { padding-top: 16px; }
.bf-cart-table .coupon { display: flex; gap: 6px; }
.bf-cart-table .coupon input[type="text"] { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; width: 150px; }
.bf-cart-table .coupon button,
.bf-cart-table .actions > button { padding: 8px 16px; border: none; border-radius: 6px; background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; font-size: 13px; }
.bf-cart-table .coupon button:hover,
.bf-cart-table .actions > button:hover { background: var(--primary-dark); }

.bf-cart-sidebar .cart-collaterals .cart_totals { background: var(--bg-section); border-radius: var(--radius-lg); padding: 20px; }
.bf-cart-sidebar .cart-collaterals .cart_totals h2 { font-size: 18px; margin: 0 0 16px; }
.bf-cart-sidebar .cart-collaterals .cart_totals table { width: 100%; font-size: 14px; }
.bf-cart-sidebar .cart-collaterals .cart_totals th,
.bf-cart-sidebar .cart-collaterals .cart_totals td { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.bf-cart-sidebar .cart-collaterals .cart_totals .order-total th,
.bf-cart-sidebar .cart-collaterals .cart_totals .order-total td { font-size: 18px; font-weight: 800; color: var(--primary); }
.bf-cart-sidebar .wc-proceed-to-checkout { margin-top: 16px; }
.bf-cart-sidebar .wc-proceed-to-checkout .checkout-button { display: block; text-align: center; padding: 14px; background: var(--primary); color: #fff; border-radius: 10px; font-weight: 800; text-decoration: none; }

@media (max-width: 768px) {
  .bf-cart-table thead { display: none; }
  .bf-cart-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
  .bf-cart-table td { display: flex; align-items: center; gap: 8px; padding: 6px 0; border: none; }
  .bf-cart-table td::before { content: attr(data-label) ': '; font-weight: 600; font-size: 12px; color: var(--text-muted); min-width: 60px; }
  .bf-cart-table .product-thumbnail { width: 50px; }
  .bf-cart-table .product-thumbnail img { width: 50px; height: 65px; }
  .bf-cart-table .product-thumbnail::before { display: none; }
  .bf-cart-table .actions { flex-direction: column; gap: 8px; }
  .bf-cart-table .coupon input[type="text"] { width: 100%; }
}

/* ═══════════════════════════════════════════════
   CHECKOUT PAGE — RTL clean
   ═══════════════════════════════════════════════ */
.bf-checkout-wrap { max-width: 800px; margin: 0 auto; padding: 20px 16px 40px; }
.bf-checkout-header h1 { font-size: 24px; margin: 0 0 24px; }
.bf-checkout-form .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .bf-checkout-form .col2-set { grid-template-columns: 1fr; } }
.bf-checkout-form .form-row { margin-bottom: 14px; }
.bf-checkout-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.bf-checkout-form input[type="text"],
.bf-checkout-form input[type="tel"],
.bf-checkout-form input[type="email"],
.bf-checkout-form select,
.bf-checkout-form textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.bf-checkout-form input:focus,
.bf-checkout-form select:focus,
.bf-checkout-form textarea:focus { outline: none; border-color: var(--primary); }
.bf-checkout-form .woocommerce-additional-fields { margin-top: 20px; }
#order_review_heading { font-size: 20px; margin: 28px 0 12px; }
.woocommerce-checkout-review-order .shop_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce-checkout-review-order .shop_table thead th { padding: 10px 8px; border-bottom: 2px solid var(--border); font-size: 12px; text-transform: uppercase; color: var(--text-muted); text-align: right; }
.woocommerce-checkout-review-order .shop_table td { padding: 12px 8px; border-bottom: 1px solid var(--border-light); }
.woocommerce-checkout-review-order .shop_table .product-total { text-align: left; }
.woocommerce-checkout-review-order .shop_table tfoot th { text-align: right; font-weight: 600; }
.woocommerce-checkout-review-order .shop_table .order-total th,
.woocommerce-checkout-review-order .shop_table .order-total td { font-size: 18px; font-weight: 800; color: var(--primary); }
#payment { background: var(--bg-section); border-radius: var(--radius-lg); padding: 20px; margin-top: 20px; }
#payment .payment_methods { list-style: none; padding: 0; margin: 0; }
#payment .payment_methods li { padding: 10px 0; border-bottom: 1px solid var(--border-light); }
#payment .payment_methods label { font-weight: 700; cursor: pointer; }
#payment .payment_box { margin-top: 8px; padding: 12px; background: #fff; border-radius: 8px; font-size: 13px; }
#place_order { display: block; width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 800; cursor: pointer; margin-top: 16px; }
#place_order:hover { background: var(--primary-dark); }

/* ═══════════════════════════════════════════════
   DRAWER QTY CONTROLS (styles now in cart drawer section above)
   ═══════════════════════════════════════════════ */
.drawer-attr-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; background: var(--bg-section); border: 1px solid var(--border-light);
  border-radius: 20px; font-size: 11px; cursor: pointer; transition: var(--transition);
}
.drawer-attr-chip:hover { border-color: var(--primary); color: var(--primary); }

/* ═══════════════════════════════════════════════
   LOADING OVERLAY
   ═══════════════════════════════════════════════ */
/* Loading overlay removed for performance */

/* ═══════════════════════════════════════════════
   CART DRAWER
   ═══════════════════════════════════════════════ */
.drawer-qty-error { font-size: 11px; color: var(--danger); margin-top: 4px; }
.drawer-coupon-row { display: flex; gap: 8px; padding: 12px 16px; }
.drawer-coupon-row input { flex: 1; padding: 8px 12px; border: 1px solid var(--border-light); border-radius: 8px; font-size: 13px; background: var(--bg-section); }
.drawer-coupon-row button { padding: 8px 16px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.drawer-coupon-row button:hover { background: var(--primary-dark); }
.drawer-coupon-success { font-size: 12px; color: var(--success, #16a34a); padding: 4px 16px; }
.drawer-coupon-error { font-size: 12px; color: var(--danger); padding: 4px 16px; }

/* ═══════════════════════════════════════════════
   VARIABLE PRODUCT MODAL
   ═══════════════════════════════════════════════ */
.fib-var-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.fib-var-overlay.active { opacity: 1; visibility: visible; }
.fib-var-modal {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 28px; width: 90%; max-width: 400px; max-height: 80vh; overflow-y: auto;
  transform: scale(0.95); transition: var(--transition);
}
.fib-var-overlay.active .fib-var-modal { transform: scale(1); }
.fib-var-modal h3 { font-size: 18px; margin-bottom: 8px; }
.fib-var-price { font-size: 22px; font-weight: 900; color: var(--primary); margin-bottom: 16px; }
.fib-var-label { font-size: 13px; font-weight: 700; margin-bottom: 8px; display: block; }
.fib-var-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fib-var-chip {
  padding: 6px 16px; border: 2px solid var(--border-light); border-radius: 20px;
  font-size: 13px; cursor: pointer; transition: var(--transition); background: transparent;
}
.fib-var-chip:hover { border-color: var(--primary); }
.fib-var-chip.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.fib-var-chip.disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.fib-var-add-cart {
  width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: 10px;
  font-size: 16px; font-weight: 800; cursor: pointer; transition: var(--transition);
}
.fib-var-add-cart:hover { background: var(--primary-dark); }
.fib-var-close {
  position: absolute; top: 12px; left: 12px; background: none; border: none; font-size: 22px;
  cursor: pointer; color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   WISHLIST SIDEBAR
   ═══════════════════════════════════════════════ */
.wishlist-item-remove {
  background: none; border: none; font-size: 18px; cursor: pointer;
  color: var(--text-muted); padding: 4px; line-height: 1;
  position: absolute; top: 4px; left: 4px; transition: var(--transition);
}
.wishlist-item-remove:hover { color: var(--danger); }
.wishlist-item-atc {
  padding: 4px 14px; background: var(--primary); color: #fff; border: none;
  border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.wishlist-item-atc:hover { background: var(--primary-dark); }
.wishlist-item-author {
  display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 2px;
}
.wishlist-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 14px;
}

/* ═══════════════════════════════════════════════
   MOBILE BOTTOM BAR
   ═══════════════════════════════════════════════ */
#mbbBar {
  display: none;
}
@media (max-width: 768px) {
  #mbbBar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 990;
    background: var(--bg-card); border-top: 1px solid var(--border-light);
    padding: 8px 0; justify-content: space-around; align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  }
  #mbbBar .mbb-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: none; border: none; cursor: pointer; padding: 4px 8px;
    font-size: 10px; color: var(--text-muted); position: relative; text-decoration: none;
  }
  #mbbBar .mbb-item svg { width: 20px; height: 20px; }
  #mbbBar .mbb-item.active { color: var(--primary); }
  #mbbBar .mbb-badge, .books-mbb-badge {
    position: absolute; top: -2px; right: 2px;
    background: var(--primary); color: #fff; border-radius: 50%;
    width: 16px; height: 16px; font-size: 9px; display: flex;
    align-items: center; justify-content: center; font-weight: 800;
  }
  #mbbBar .mbb-total {
    font-size: 10px; color: var(--primary); font-weight: 700;
    line-height: 1; margin-top: 1px;
  }
  body { padding-bottom: 60px; }
}

/* Hide MBB on product & checkout pages (avoid clash with sticky order bars) */
body.single-product #mbbBar,
body.woocommerce-checkout #mbbBar {
  display: none !important;
}
body.single-product,
body.woocommerce-checkout {
  padding-bottom: 0;
}

/* MBB cart wiggle when items in cart (excluded on product/checkout pages) */
@keyframes mbbWiggle {
  0% { transform: rotate(0deg); }
  5% { transform: rotate(-6deg); }
  10% { transform: rotate(6deg); }
  15% { transform: rotate(-4deg); }
  20% { transform: rotate(4deg); }
  25%, 100% { transform: rotate(0deg); }
}
#mbbCartBtn.mbb-wiggle {
  will-change: transform;
  animation: mbbWiggle 5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════
   CHECKOUT FORM
   ═══════════════════════════════════════════════ */
.fib-wrapper-full { min-height: 100vh; display: flex; flex-direction: column; }
.fib-checkout-row { display: flex; gap: 32px; max-width: 1000px; margin: 0 auto; padding: 24px 16px; width: 100%; }
.fib-checkout-col { flex: 1; min-width: 0; }
.fib-checkout-col.side { max-width: 380px; }
@media (max-width: 768px) {
  .fib-checkout-row { flex-direction: column; padding: 16px; }
  .fib-checkout-col.side { max-width: 100%; }
}
.fib-section { background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.fib-section-title { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.fib-field-row { display: flex; gap: 12px; }
@media (max-width: 480px) { .fib-field-row { flex-direction: column; gap: 0; } }
.fib-field { flex: 1; margin-bottom: 12px; }
.fib-field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; color: var(--text-muted); }
.fib-field input, .fib-field select, .fib-field textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border-light);
  border-radius: 10px; font-size: 14px; background: var(--bg); transition: var(--transition); color: inherit;
}
.fib-field input:focus, .fib-field select:focus { outline: none; border-color: var(--primary); }
.fib-submit-btn {
  width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none;
  border-radius: 10px; font-size: 16px; font-weight: 800; cursor: pointer; transition: var(--transition);
}
.fib-submit-btn:hover { background: var(--primary-dark); }
.fib-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.fib-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.fib-success { font-size: 13px; color: var(--success, #16a34a); text-align: center; padding: 12px; }

/* ═══════════════════════════════════════════════
   COUPON
   ═══════════════════════════════════════════════ */
.fib-coupon-area { display: flex; gap: 8px; }
.fib-coupon-area input { flex: 1; padding: 8px 12px; border: 1.5px solid var(--border-light); border-radius: 8px; font-size: 13px; background: var(--bg); }
.fib-coupon-area button { padding: 8px 16px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.fib-coupon-area button:hover { background: var(--primary-dark); }
.fib-coupon-msg { font-size: 12px; margin-top: 4px; }

/* ═══════════════════════════════════════════════
   SEARCH OVERLAY
   ═══════════════════════════════════════════════ */
.search-overlay {
  position: fixed; inset: 0; z-index: 1001; background: rgba(0,0,0,0.6);
  display: none; align-items: flex-start; justify-content: center; padding-top: 80px;
}
.search-overlay.open { display: flex; }
.search-overlay-inner {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 20px;
  width: 92%; max-width: 520px; max-height: 75vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.search-form { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.search-input {
  flex: 1; padding: 12px 16px; border: 2px solid var(--border-light);
  border-radius: 10px; font-size: 15px; background: var(--bg); color: var(--text);
  font-family: var(--font); transition: var(--transition);
}
.search-input:focus { outline: none; border-color: var(--primary); }
.search-close {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  padding: 4px; display: flex; align-items: center; justify-content: center;
}
.search-close:hover { color: var(--primary); }
.search-results { display: flex; flex-direction: column; gap: 4px; }
.search-result-item {
  display: flex; gap: 12px; padding: 10px; border-radius: 8px;
  text-decoration: none; color: var(--text); transition: background 0.15s;
}
.search-result-item:hover { background: var(--bg-section); }
.search-result-img { width: 40px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.search-result-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search-result-title { font-size: 14px; font-weight: 700; line-height: 1.4; }
.search-result-price { font-size: 13px; font-weight: 800; color: var(--primary); }
.search-empty { text-align: center; padding: 24px; color: var(--text-muted); font-size: 14px; }
@media (max-width: 600px) {
  .search-overlay { padding-top: 20px; }
}

/* ═══════════════════════════════════════════════
   PRODUCT CARDS — Global Standard Grid
   ═══════════════════════════════════════════════ */


/* ── Custom book grid (front-page) ── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ── Product Card ── */
.bf-product-card {
  list-style: none;
  width: 100% !important;
  margin: 0 !important;
  clear: none !important;
  float: none !important;
}
.bf-product-card-inner {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.bf-product-card-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.bf-product-card-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-section);
}
.bf-product-card-image .bf-product-card-img,
.bf-product-card-image .bf-card-hover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  transition: opacity 0.35s ease;
}
.bf-product-card-image .bf-card-hover-img { opacity: 0; }
.bf-product-card-image:hover .bf-card-hover-img { opacity: 1; }
.bf-product-card-image:hover .bf-product-card-img { opacity: 0; }
.bf-product-card-link { display: block; width: 100%; height: 100%; }

/* Badges */
.bf-product-badge {
  position: absolute;
  top: 8px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  z-index: 2;
  pointer-events: none;
}
.bf-product-badge-featured { right: 8px; background: #10b981; color: #fff; }
.bf-product-badge-sale { left: 8px; background: var(--primary); color: #fff; }
.bf-product-badge-oos { left: 8px; right: 8px; text-align: center; background: rgba(0,0,0,0.6); color: #fff; }

/* Wishlist heart button */
.bf-product-wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3;
  opacity: 0;
}
.bf-product-card-inner:hover .bf-product-wishlist { opacity: 1; }
.bf-product-wishlist:hover { transform: scale(1.15); background: #fff; }
.bf-product-wishlist.active { opacity: 1; color: var(--primary); }

/* ATC button (overlay on image) */
.bf-product-atc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(100%);
  opacity: 0;
  z-index: 3;
  text-decoration: none;
}
.bf-product-card-inner:hover .bf-product-atc {
  transform: translateY(0);
  opacity: 1;
}
.bf-product-atc:hover { background: var(--primary-dark); color: #fff; }

/* Card body */
.bf-product-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bf-product-author {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bf-product-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
.bf-product-title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bf-product-title a:hover { color: var(--primary); }
.bf-product-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}
.bf-product-reviews { font-size: 11px; color: var(--text-muted); margin-right: 4px; }
.bf-product-price {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
}
.bf-product-old-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.bf-product-current-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary);
}

/* ── Responsive: 2 cols on mobile ── */
@media (max-width: 480px) {
  ul.products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bf-product-card-body { padding: 8px; }
  .bf-product-title { font-size: 13px; }
  .bf-product-author { font-size: 10px; }
  .bf-product-current-price { font-size: 14px; }
  .bf-product-old-price { font-size: 11px; }
  .bf-product-atc { transform: translateY(0); opacity: 1; padding: 8px; font-size: 12px; }
  .bf-product-wishlist { opacity: 1; }
  .bf-product-card-image { aspect-ratio: 2/3; }
}

/* ── Responsive: tablet 3 cols ── */
@media (min-width: 481px) and (max-width: 768px) {
  ul.products { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .book-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .bf-product-atc { transform: translateY(0); opacity: 1; }
  .bf-product-wishlist { opacity: 1; }
}

/* ── Responsive: small desktop — 4 cols ── */
@media (min-width: 769px) and (max-width: 1024px) {
  ul.products { grid-template-columns: repeat(4, 1fr); }
  .book-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Responsive: large desktop — 4 cols ── */
@media (min-width: 1400px) {
  ul.products { grid-template-columns: repeat(4, 1fr); }
  .book-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── WooCommerce columns override — always 4 on desktop ── */
ul.products.columns-1 { grid-template-columns: repeat(4, 1fr); }
ul.products.columns-2 { grid-template-columns: repeat(4, 1fr); }
ul.products.columns-3 { grid-template-columns: repeat(4, 1fr); }
ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
ul.products.columns-5 { grid-template-columns: repeat(4, 1fr); }
ul.products.columns-6 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 480px) {
  ul.products.columns-1 { grid-template-columns: repeat(2, 1fr); }
  ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }
  ul.products.columns-3 { grid-template-columns: repeat(2, 1fr); }
  ul.products.columns-4 { grid-template-columns: repeat(2, 1fr); }
  ul.products.columns-5 { grid-template-columns: repeat(2, 1fr); }
  ul.products.columns-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════
   EDITORIAL SINGLE PRODUCT — bf-ed-* classes
   WARM CREAM EDITORIAL DESIGN
   ═══════════════════════════════════════════════ */

/* ─── Breadcrumb ─── */
.bf-ed-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); margin-top: 16px; margin-bottom: 24px;
  padding: 10px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.04);
  position: relative; z-index: 1;
}
.bf-ed-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.bf-ed-breadcrumb a:hover { color: var(--primary); }
.bf-ed-breadcrumb svg { color: var(--border); width: 14px; height: 14px; flex-shrink: 0; }
.bf-ed-breadcrumb > span:last-child { color: var(--text); font-weight: 700; }

/* ─── Two-Column Grid ─── */
.bf-ed-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 48px;
  margin-bottom: 56px; align-items: start;
}
@media (max-width: 900px) { .bf-ed-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ─── Left Column: Cover ─── */
.bf-ed-cover-col { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .bf-ed-cover-col { max-width: 300px; margin: 0 auto; } }

/* 3D Book Cover Scene */
.bf-ed-cover-scene {
  perspective: 1200px;
  display: flex; justify-content: center;
}
.bf-ed-cover-3d {
  position: relative; width: 100%; max-width: 280px;
  transform-style: preserve-3d; transform: rotateY(-8deg);
  transition: transform 0.4s ease;
}
.bf-ed-cover-3d:hover { transform: rotateY(-12deg) scale(1.02); }
.bf-ed-cover-face {
  background: var(--card); border-radius: 6px; overflow: hidden;
  box-shadow:
    2px 4px 12px rgba(0,0,0,0.08),
    4px 8px 24px rgba(0,0,0,0.06);
  aspect-ratio: 2/3; position: relative; z-index: 2;
}
.bf-ed-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-ed-no-img {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; height: 100%; color: var(--text-light); font-size: 14px;
}
.bf-ed-cover-spine {
  position: absolute; top: 0; right: -16px; width: 16px; height: 100%;
  background: linear-gradient(to left, rgba(0,0,0,0.12), transparent);
  transform: rotateY(90deg); transform-origin: right center;
  border-radius: 0 4px 4px 0; z-index: 1;
}
.bf-ed-cover-shadow {
  position: absolute; top: 20px; left: 20px; right: -10px; bottom: -10px;
  background: rgba(0,0,0,0.06); border-radius: 6px;
  filter: blur(24px); z-index: 0;
}

/* Sample Button */
.bf-ed-sample-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 20px; border: 2px solid var(--border);
  border-radius: var(--radius); background: var(--card); cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--text); transition: 0.2s;
}
.bf-ed-sample-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }

/* Sample Modal */
.bf-ed-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: 0.3s;
}
.bf-ed-modal.open { opacity: 1; visibility: visible; }
.bf-ed-modal-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.7);
}
.bf-ed-modal-content {
  position: relative; max-width: 90vw; max-height: 90vh;
  background: var(--card); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3); transform: scale(0.9); transition: 0.3s;
}
.bf-ed-modal.open .bf-ed-modal-content { transform: scale(1); }
.bf-ed-modal-close {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  background: rgba(0,0,0,0.5); border: none; border-radius: 50%;
  width: 40px; height: 40px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; color: #fff; transition: 0.2s;
}
.bf-ed-modal-close:hover { background: rgba(0,0,0,0.7); }
.bf-ed-modal-img-wrap { max-height: 85vh; overflow: auto; }
.bf-ed-modal-img { width: 100%; height: auto; display: block; }

/* Trust Badges */
.bf-ed-trust-badges {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.bf-ed-badge {
  display: flex; align-items: center; gap: 12px;
}
.bf-ed-badge svg { flex-shrink: 0; width: 20px; height: 20px; }
.bf-ed-badge-text { display: flex; flex-direction: column; }
.bf-ed-badge-text strong { font-size: 13px; font-weight: 700; color: var(--text); }
.bf-ed-badge-text span { font-size: 12px; color: var(--text-light); }

/* Publisher Box */
.bf-ed-publisher-box {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.bf-ed-publisher-label { font-size: 12px; color: var(--text-light); font-weight: 600; }
.bf-ed-publisher-name { font-size: 13px; color: var(--text); font-weight: 700; }

/* ─── Right Column: Details ─── */
.bf-ed-details-col { display: flex; flex-direction: column; gap: 20px; }

/* ─── Category Tags ─── */
.bf-ed-cat-tags {
  display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start;
}

.bf-ed-cat-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--primary);
  background: linear-gradient(135deg, rgba(217,119,6,0.08), rgba(217,119,6,0.04));
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid rgba(217,119,6,0.2);
  text-decoration: none; letter-spacing: 0.3px;
  transition: all 0.25s ease;
  position: relative; overflow: hidden;
}
.bf-ed-cat-tag::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(217,119,6,0.15), rgba(217,119,6,0.05));
  opacity: 0; transition: opacity 0.25s ease;
}
.bf-ed-cat-tag:hover {
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(217,119,6,0.25);
  border-color: var(--primary); color: var(--primary);
}
.bf-ed-cat-tag:hover::before { opacity: 1; }
.bf-ed-cat-tag svg { position: relative; z-index: 1; flex-shrink: 0; opacity: 0.7; }
.bf-ed-cat-tag span { position: relative; z-index: 1; }

.bf-ed-cat-tag[data-idx="1"] {
  background: linear-gradient(135deg, rgba(217,119,6,0.1), rgba(217,119,6,0.03));
  border-color: rgba(217,119,6,0.25);
}
.bf-ed-cat-tag[data-idx="2"] {
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(37,99,235,0.03));
  border-color: rgba(37,99,235,0.2); color: #2563eb;
}
.bf-ed-cat-tag[data-idx="2"]::before {
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(37,99,235,0.05));
}
.bf-ed-cat-tag[data-idx="2"]:hover {
  border-color: #2563eb; color: #2563eb;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.bf-ed-cat-tag[data-idx="3"] {
  background: linear-gradient(135deg, rgba(22,163,74,0.08), rgba(22,163,74,0.03));
  border-color: rgba(22,163,74,0.2); color: #16a34a;
}
.bf-ed-cat-tag[data-idx="3"]::before {
  background: linear-gradient(135deg, rgba(22,163,74,0.15), rgba(22,163,74,0.05));
}
.bf-ed-cat-tag[data-idx="3"]:hover {
  border-color: #16a34a; color: #16a34a;
  box-shadow: 0 4px 12px rgba(22,163,74,0.25);
}
.bf-ed-cat-tag[data-idx="4"] {
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(168,85,247,0.03));
  border-color: rgba(168,85,247,0.2); color: #a855f7;
}
.bf-ed-cat-tag[data-idx="4"]::before {
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(168,85,247,0.05));
}
.bf-ed-cat-tag[data-idx="4"]:hover {
  border-color: #a855f7; color: #a855f7;
  box-shadow: 0 4px 12px rgba(168,85,247,0.25);
}

.bf-ed-cat-more {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  background: rgba(128,128,128,0.06); padding: 6px 12px;
  border-radius: 20px; border: 1px dashed var(--border);
}

/* Dark mode */
[data-theme="dark"] .bf-ed-cat-tag {
  background: linear-gradient(135deg, rgba(251,146,60,0.12), rgba(251,146,60,0.04));
  border-color: rgba(251,146,60,0.25); color: #fb923c;
}
[data-theme="dark"] .bf-ed-cat-tag:hover {
  border-color: #fb923c; box-shadow: 0 4px 12px rgba(251,146,60,0.3);
}
[data-theme="dark"] .bf-ed-cat-tag[data-idx="2"] {
  background: linear-gradient(135deg, rgba(96,165,250,0.12), rgba(96,165,250,0.04));
  border-color: rgba(96,165,250,0.25); color: #60a5fa;
}
[data-theme="dark"] .bf-ed-cat-tag[data-idx="2"]:hover {
  border-color: #60a5fa; box-shadow: 0 4px 12px rgba(96,165,250,0.3);
}
[data-theme="dark"] .bf-ed-cat-tag[data-idx="3"] {
  background: linear-gradient(135deg, rgba(74,222,128,0.12), rgba(74,222,128,0.04));
  border-color: rgba(74,222,128,0.25); color: #4ade80;
}
[data-theme="dark"] .bf-ed-cat-tag[data-idx="3"]:hover {
  border-color: #4ade80; box-shadow: 0 4px 12px rgba(74,222,128,0.3);
}
[data-theme="dark"] .bf-ed-cat-tag[data-idx="4"] {
  background: linear-gradient(135deg, rgba(192,132,252,0.12), rgba(192,132,252,0.04));
  border-color: rgba(192,132,252,0.25); color: #c084fc;
}
[data-theme="dark"] .bf-ed-cat-tag[data-idx="4"]:hover {
  border-color: #c084fc; box-shadow: 0 4px 12px rgba(192,132,252,0.3);
}
[data-theme="dark"] .bf-ed-cat-more {
  background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08);
  color: var(--text-muted);
}

.bf-ed-title-row {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.bf-ed-title {
  font-family: 'Playfair Display', 'Noto Naskh Arabic', 'Traditional Arabic', serif;
  font-size: clamp(22px, 3vw, 32px); font-weight: 900;
  color: var(--heading, var(--text)); line-height: 1.25; margin: 0;
  flex: 1; min-width: 0;
}

.bf-ed-byline {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 15px; color: var(--text-light);
}
.bf-ed-byline-item {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--text);
}
.bf-ed-byline-item svg { color: var(--text-light); flex-shrink: 0; }

/* Metadata Pills */
.bf-ed-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.bf-ed-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; font-size: 12px; color: var(--text-light); font-weight: 600;
}
.bf-ed-pill svg { color: var(--primary); flex-shrink: 0; width: 14px; height: 14px; }

/* Rating Summary */
.bf-ed-rating-summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 8px 12px; background: var(--bg-section);
  border-radius: 10px; border: 1px solid var(--border-light);
}
.bf-ed-rating-left { display: flex; align-items: center; gap: 6px; }
.bf-ed-stars-display { display: flex; gap: 1px; }
.bf-ed-star { flex-shrink: 0; }
.bf-ed-rating-score { font-size: 15px; font-weight: 800; color: #92400e; }
.bf-ed-rating-count { font-size: 12px; color: var(--text-light); font-weight: 500; }

.bf-ed-write-review {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--primary);
  text-decoration: none; padding: 5px 10px; border-radius: 16px;
  background: rgba(217,119,6,0.06); border: 1px solid rgba(217,119,6,0.12);
  transition: all 0.2s ease; white-space: nowrap; cursor: pointer;
  line-height: 1;
}
.bf-ed-write-review:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
  transform: translateY(-1px); box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}
.bf-ed-write-review svg { flex-shrink: 0; }

/* Main category label next to ratings */
.bf-ed-rating-sep { color: var(--text-light); font-weight: 700; }
.bf-ed-main-cat {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--primary);
  text-decoration: none; padding: 4px 10px; border-radius: 16px;
  background: rgba(217,119,6,0.08); border: 1px solid rgba(217,119,6,0.14);
  transition: all 0.2s ease; white-space: nowrap; line-height: 1;
}
.bf-ed-main-cat:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
  transform: translateY(-1px);
}
.bf-ed-main-cat svg { flex-shrink: 0; }

[data-theme="dark"] .bf-ed-rating-summary {
  background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .bf-ed-rating-score { color: #fbbf24; }
[data-theme="dark"] .bf-ed-rating-sep { color: #706858; }
[data-theme="dark"] .bf-ed-main-cat {
  background: rgba(251,146,60,0.1); border-color: rgba(251,146,60,0.18); color: #fb923c;
}
[data-theme="dark"] .bf-ed-main-cat:hover {
  background: #fb923c; color: #1a1714; border-color: #fb923c;
}
[data-theme="dark"] .bf-ed-write-review {
  background: rgba(251,146,60,0.08); border-color: rgba(251,146,60,0.15); color: #fb923c;
}
[data-theme="dark"] .bf-ed-write-review:hover {
  background: #fb923c; color: #1a1714; border-color: #fb923c;
}

/* Price Section */
.bf-ed-price-section {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0;
}
.bf-ed-price-main { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; }
.bf-ed-price-label { font-size: 14px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.bf-ed-price-old { font-size: 14px; color: #595959; text-decoration: line-through; }
.bf-ed-price-current { font-size: clamp(20px, 2.5vw, 28px); font-weight: 900; color: var(--primary-dark); }
.bf-ed-price-current .woocommerce-Price-currencySymbol { font-size: 14px; }

.bf-ed-wishlist-btn {
  width: 44px; height: 44px; border: 2px solid var(--border); border-radius: 50%;
  background: var(--card); cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: 0.2s; color: var(--text-light); flex-shrink: 0;
}
.bf-ed-wishlist-btn:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
.bf-ed-wishlist-btn.active { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

/* Short Description */
.bf-ed-short-desc {
  font-size: 14px; line-height: 1.8; color: var(--text-light);
  padding: 12px 0;
}

/* Stock & Delivery */
.bf-ed-stock-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.bf-ed-stock-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; padding: 6px 14px;
  border-radius: var(--radius);
}
.bf-ed-stock-badge.in-stock { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.bf-ed-stock-badge.out-of-stock { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.bf-ed-stock-badge svg { width: 16px; height: 16px; }
.bf-ed-delivery-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #595959; font-weight: 600;
}
.bf-ed-delivery-badge svg { color: var(--primary); width: 16px; height: 16px; }

/* ─── Action Section (ATC + Express) ─── */
.bf-ed-action-section {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  position: relative;
}
.bf-ed-action-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ATC Form */
.bf-ed-atc-form {
  display: flex; align-items: stretch; gap: 10px;
}
.bf-ed-qty-controls {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  flex-shrink: 0;
}
.bf-ed-qty-btn {
  width: 40px; height: 44px; border: none; background: var(--bg);
  cursor: pointer; font-size: 18px; display: flex; align-items: center;
  justify-content: center; color: var(--text); transition: 0.15s;
}
.bf-ed-qty-btn:hover { background: var(--border); }
.bf-ed-qty-input {
  width: 48px; height: 44px; border: none; border-left: 1px solid var(--border);
  border-right: 1px solid var(--border); text-align: center; font-size: 15px;
  font-weight: 700; background: var(--card); color: var(--text);
  -moz-appearance: textfield;
}
.bf-ed-qty-input::-webkit-outer-spin-button,
.bf-ed-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.bf-ed-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 24px; border-radius: var(--radius); font-size: 15px;
  font-weight: 700; cursor: pointer; transition: 0.2s; text-decoration: none;
  border: none; line-height: 1; height: 44px;
}
.bf-ed-btn-cart {
  background: var(--primary-bg); color: var(--primary);
  border: 2px solid var(--primary); flex: 1;
}
.bf-ed-btn-cart:hover { background: var(--primary); color: #fff; }
.bf-ed-btn-buy {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; flex: 1;
}
.bf-ed-btn-buy:hover { opacity: 0.9; transform: translateY(-1px); }
.bf-ed-btn-sm { padding: 10px 16px; font-size: 13px; }

/* Divider */
.bf-ed-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-light);
}
.bf-ed-divider::before,
.bf-ed-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ─── Express Form ─── */
.bf-ed-express-form { display: flex; flex-direction: column; gap: 12px; }

.bf-ed-ex-row { display: flex; gap: 12px; }
.bf-ed-ex-row > * { flex: 1; min-width: 0; }
@media (max-width: 500px) { .bf-ed-ex-row { flex-direction: column; } }

.bf-ed-ex-field { display: flex; flex-direction: column; gap: 4px; }
.bf-ed-ex-field label {
  font-size: 13px; font-weight: 700; color: var(--text);
}
.bf-ed-ex-field .required { color: #dc2626; }

.bf-ed-ex-input-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--bg-card);
  transition: 0.2s;
}
.bf-ed-ex-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,87,26,0.1);
  background: var(--bg-card);
}
.bf-ed-ex-input-wrap svg { flex-shrink: 0; width: 16px; height: 16px; }
.bf-ed-ex-input-wrap input,
.bf-ed-ex-input-wrap select,
.bf-ed-ex-field textarea {
  flex: 1; border: none; background: transparent; padding: 10px 0;
  font-size: 14px; color: var(--text); font-family: inherit; outline: none;
  min-width: 0;
  transition: background-color 999999s 0s !important;
}
.bf-ed-ex-field > select {
  cursor: pointer;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.bf-ed-ex-field textarea {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); font-size: 14px; color: var(--text); font-family: inherit;
  resize: vertical; transition: 0.2s;
}
.bf-ed-ex-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); outline: none; }

/* Delivery Radio */
.bf-ed-ex-delivery {
  display: flex; gap: 10px;
}
.bf-ed-ex-radio {
  flex: 1; cursor: pointer;
}
.bf-ed-ex-radio input { display: none; }
.bf-ed-ex-radio-label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 13px; font-weight: 600; color: var(--text); transition: 0.2s;
  text-align: center; background: var(--bg-card);
}
.bf-ed-ex-radio-label:hover {
  border-color: var(--primary); background: rgba(196,87,26,0.03);
}
.bf-ed-ex-radio svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--text-light); }
.bf-ed-ex-radio input:checked + .bf-ed-ex-radio-label {
  border-color: var(--primary); background: var(--primary-bg);
  color: var(--primary); box-shadow: 0 0 0 1px var(--primary);
}
.bf-ed-ex-radio input:checked + .bf-ed-ex-radio-label svg { color: var(--primary); }

/* Commune Dropdown */
.bf-ed-ex-commune-wrap { position: relative; z-index: 60; }
.bf-ed-ex-commune-dd {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 61;
  max-height: 220px; overflow-y: auto; background: var(--card);
  border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  display: none; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.bf-ed-ex-cd-item {
  padding: 10px 14px; font-size: 13px; cursor: pointer; transition: 0.1s;
  color: var(--text); display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border-light);
}
.bf-ed-ex-cd-item:last-child { border-bottom: none; }
.bf-ed-ex-cd-item:hover { background: var(--bg-alt); }
.bf-ed-ex-cd-ascii {
  color: var(--text-light, #9ca3af); font-size: 11px; font-weight: 500;
}
.bf-ed-ex-cd-empty {
  color: var(--text-light); font-style: italic; pointer-events: none;
}

/* Order Summary */
.bf-ed-ex-summary {
  background: var(--bg-section); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}
.bf-ed-ex-summary-header {
  padding: 12px 16px; font-size: 14px; font-weight: 800; color: var(--text);
  background: var(--card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: right; cursor: pointer;
  border-top: none; border-left: none; border-right: none;
  font-family: inherit;
}
.bf-ed-ex-summary-header:hover { background: var(--bg-section); }
.bf-ed-ex-head { display: inline-flex; align-items: center; gap: 8px; }
.bf-ed-ex-cart-ic-wrap { position: relative; display: inline-flex; }
.bf-ed-ex-cart-ic-wrap svg { color: var(--primary); }
.bf-ed-ex-cart-badge {
  position: absolute; top: -7px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.bf-ed-ex-chevron { margin-right: auto; color: var(--text-light); transition: transform 0.25s ease; flex-shrink: 0; }
.bf-ed-ex-summary.collapsed .bf-ed-ex-chevron { transform: rotate(-180deg); }
.bf-ed-ex-summary.collapsed .bf-ed-ex-summary-body { display: none; }
.bf-ed-ex-s-product {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.bf-ed-ex-s-thumb {
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 8px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border);
}
.bf-ed-ex-s-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-ed-ex-s-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bf-ed-ex-s-name {
  font-size: 13.5px; font-weight: 800; color: var(--text); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bf-ed-ex-s-unit { font-size: 12px; color: var(--text-muted); }
.bf-ed-ex-s-unit b { color: var(--primary-dark); font-weight: 800; }
.bf-ed-ex-summary-body { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.bf-ed-ex-s-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
}
.bf-ed-ex-s-label { color: var(--text-light); }
.bf-ed-ex-s-value { font-weight: 700; color: var(--text); }

.bf-ed-ex-qty-inline {
  display: inline-flex; align-items: center; border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden; direction: ltr;
}
.bf-ed-ex-qty-btn {
  width: 28px; height: 28px; border: none; background: var(--bg);
  cursor: pointer; font-size: 16px; display: flex; align-items: center;
  justify-content: center; color: var(--text); transition: 0.15s; padding: 0;
}
.bf-ed-ex-qty-btn:hover { background: var(--border); }
.bf-ed-ex-qty-input {
  width: 36px; height: 28px; border: none; border-left: 1px solid var(--border);
  border-right: 1px solid var(--border); text-align: center; font-size: 13px;
  font-weight: 700; background: var(--card); color: var(--text);
  -moz-appearance: textfield;
}
.bf-ed-ex-qty-input::-webkit-outer-spin-button,
.bf-ed-ex-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.bf-ed-ex-price { color: var(--primary-dark); }
.bf-ed-ex-del-fee { color: var(--text-light); }

.bf-ed-ex-summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-top: 2px solid var(--border);
  background: var(--card);
}
.bf-ed-ex-summary-total .bf-ed-ex-s-label { font-size: 15px; font-weight: 800; color: var(--text); }
.bf-ed-ex-total { font-size: 18px; font-weight: 900; color: var(--primary-dark); }

/* Submit Button */
.bf-ed-ex-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #f59e0b);
  background-size: 200% 200%;
  color: #fff; font-size: 14px; font-weight: 800; cursor: pointer;
  transition: 0.2s; box-shadow: 0 4px 14px rgba(196,87,26,0.25);
  font-family: var(--font); position: relative; overflow: hidden;
  width: 100%; max-width: 340px; margin: 0 auto; flex-shrink: 0;
}
.bf-ed-ex-submit::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: bkBtnShine 2.5s ease-in-out infinite;
}
.bf-ed-ex-submit:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(196,87,26,0.4);
}
.bf-ed-ex-submit:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(196,87,26,0.3);
}
.bf-ed-ex-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; animation: none; }
.bf-ed-ex-submit:disabled::before { animation: none; }

@keyframes bkBtnShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes bkBtnShine {
  0% { transform: translateX(-200%); }
  50%, 100% { transform: translateX(250%); }
}
@keyframes bkBtnPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(196,87,26,0.25); }
  50% { box-shadow: 0 4px 24px rgba(196,87,26,0.45), 0 0 0 4px rgba(196,87,26,0.08); }
}

/* Actions row: COD + WhatsApp */
.bf-ed-ex-actions {
  display: flex; gap: 10px;
}
.bf-ed-ex-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border: none; border-radius: 12px;
  background: #25d366; color: #fff; font-size: 14px; font-weight: 800;
  cursor: pointer; transition: 0.2s; font-family: var(--font);
  box-shadow: 0 4px 14px rgba(37,211,102,0.25);
  width: 100%; max-width: 340px; margin: 0 auto; flex-shrink: 0;
}
.bf-ed-ex-whatsapp:hover { background: #20bd5a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.3); }
@media (max-width: 480px) {
  .bf-ed-ex-actions { flex-direction: column; }
}
.bf-ed-ex-note {
  text-align: center; font-size: 12px; color: var(--text-light); margin: 0;
}

/* Out of Stock */
.bf-ed-oos {
  display: flex; align-items: center; gap: 16px;
  padding: 24px; background: #fef2f2; border: 1px solid #fecaca;
  border-radius: var(--radius-lg);
}
.bf-ed-oos svg { color: #dc2626; flex-shrink: 0; }
.bf-ed-oos-text { display: flex; flex-direction: column; gap: 4px; }
.bf-ed-oos-text strong { font-size: 16px; color: #991b1b; }
.bf-ed-oos-text span { font-size: 13px; color: var(--text-light); }

/* ─── Tabs ─── */
.bf-ed-tabs {
  margin-bottom: 56px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.bf-ed-tabs-nav {
  display: flex; border-bottom: 1px solid var(--border);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.bf-ed-tab-btn {
  flex: 1; padding: 16px 20px; border: none; background: transparent;
  font-size: 14px; font-weight: 700; color: var(--text-light); cursor: pointer;
  transition: 0.2s; white-space: nowrap; font-family: inherit;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.bf-ed-tab-btn:hover { color: var(--text); }
.bf-ed-tab-btn.active {
  color: var(--primary); border-bottom-color: var(--primary);
}
.bf-ed-tabs-content { padding: 24px; }
.bf-ed-tab-panel { display: none; }
.bf-ed-tab-panel.active { display: block; animation: bfFadeIn 0.3s ease; }

@keyframes bfFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Synopsis */
.bf-ed-synopsis {
  font-size: 15px; line-height: 1.9; color: var(--text);
}
.bf-ed-synopsis p { margin: 0 0 16px; }

/* Author Bio */
.bf-ed-author-bio {
  display: flex; gap: 20px; align-items: flex-start;
}
.bf-ed-author-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bf-ed-author-info h3 { font-size: 18px; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.bf-ed-author-meta { font-size: 13px; color: var(--text-light); margin: 0 0 4px; }
.bf-ed-author-desc { font-size: 14px; line-height: 1.7; color: var(--text); margin-top: 8px; }

/* Reviews */
.bf-ed-reviews-summary {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: var(--bg); border-radius: var(--radius);
  margin-bottom: 20px;
}
.bf-ed-reviews-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bf-ed-reviews-score-num { font-size: 36px; font-weight: 900; color: #92400e; line-height: 1; }
.bf-ed-reviews-score-stars { display: flex; gap: 2px; }
.bf-ed-reviews-score-count { font-size: 12px; color: var(--text-light); }

.bf-ed-reviews-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.bf-ed-review-item {
  padding: 16px; background: var(--bg); border-radius: var(--radius);
}
.bf-ed-review-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.bf-ed-review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.bf-ed-review-meta strong { font-size: 14px; color: var(--text); display: block; }
.bf-ed-review-stars { display: flex; gap: 1px; margin-top: 2px; }
.bf-ed-review-text { font-size: 14px; line-height: 1.7; color: var(--text-light); margin: 0; }

.bf-ed-reviews-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 40px; text-align: center; color: var(--text-light); font-size: 14px;
}

/* Review Form */
.bf-ed-review-form {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px; background: var(--bg); border-radius: var(--radius);
  margin-top: 20px;
}
.bf-ed-review-form-title { font-size: 16px; font-weight: 800; color: var(--text); margin: 0; }
.bf-ed-review-form-stars {
  display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end;
}
.bf-ed-star-label { cursor: pointer; line-height: 0; }
.bf-ed-star-label svg { width: 22px; height: 22px; transition: 0.1s; }
.bf-ed-star-label:hover svg,
.bf-ed-star-label:hover ~ .bf-ed-star-label svg { fill: #f59e0b; stroke: #f59e0b; }
.bf-ed-review-input {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; color: var(--text); background: var(--card);
  transition: 0.2s;
}
.bf-ed-review-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); outline: none; }
.bf-ed-review-submit {
  padding: 14px 24px; border: none; border-radius: var(--radius);
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: 0.2s;
}
.bf-ed-review-submit:hover { background: var(--primary-dark); }
.bf-ed-review-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Review Upload */
.bf-ed-review-upload {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.bf-ed-review-upload-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1.5px dashed var(--border); border-radius: var(--radius);
  font-size: 13px; font-weight: 600; color: var(--text-muted); background: var(--card);
  cursor: pointer; transition: 0.2s; font-family: inherit;
}
.bf-ed-review-upload-btn:hover { border-color: var(--primary); color: var(--primary); }
.bf-ed-review-upload-name {
  font-size: 12px; color: var(--text-muted); max-width: 180px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bf-ed-review-upload-remove {
  background: none; border: none; font-size: 18px; color: var(--danger);
  cursor: pointer; padding: 0 4px; line-height: 1;
}
.bf-ed-review-upload-hint {
  font-size: 11px; color: var(--text-light); margin: -4px 0 0;
}

/* Review Status */
.bf-ed-review-status {
  padding: 10px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 600;
}
.bf-ed-review-success { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }
.bf-ed-review-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.bf-ed-review-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Review Image */
.bf-ed-review-image { margin-top: 10px; }
.bf-ed-review-image img {
  max-width: 200px; max-height: 200px; border-radius: 8px;
  object-fit: cover; border: 1px solid var(--border); cursor: pointer;
  transition: transform 0.2s;
}
.bf-ed-review-image img:hover { transform: scale(1.03); }

/* ═══════════════════════════════════════════════════════════
   BK DESIGN SYSTEM — Product Card, Cart, Checkout, Shop
   ═══════════════════════════════════════════════════════════ */

/* ─── Page Containers ─── */
.bk-page-container {
  max-width: 1200px; margin: 0 auto;
  padding: 48px 24px 60px;
}
@media (max-width: 1024px) {
  .bk-page-container { padding: 40px 24px 48px; }
}
@media (max-width: 768px) {
  .bk-page-container { padding: 32px 16px 48px; }
}
@media (max-width: 480px) {
  .bk-page-container { padding: 24px 14px 40px; }
}
.bk-page-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.bk-page-title {
  font-size: 24px; font-weight: 900; color: var(--text); margin: 0;
}
.bk-page-count {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: var(--bg-alt); padding: 4px 10px; border-radius: 20px;
}

/* ─── Shared Buttons ─── */
.bk-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: none; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all 0.2s; font-family: inherit;
}
.bk-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.bk-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: 2px solid var(--border); border-radius: var(--radius);
  background: transparent; color: var(--text); font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: all 0.2s; font-family: inherit;
}
.bk-btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.bk-btn-full { width: 100%; max-width: 420px; margin: 0 auto; }

/* ─── Breadcrumb (shop pages) ─── */
.bk-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted); margin-top: 16px; margin-bottom: 20px;
  padding: 10px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.04);
  position: relative; z-index: 1;
}
.bk-breadcrumb a {
  color: var(--text-muted); text-decoration: none; transition: 0.2s;
}
.bk-breadcrumb a:hover { color: var(--primary); }
.bk-breadcrumb span { color: var(--text); font-weight: 600; }
.bk-breadcrumb .bk-bc-sep { color: var(--border); margin: 0 2px; }

/* ═══════════════════════════════════════════════
   PRODUCT CARD
   ═══════════════════════════════════════════════ */
.bk-card {
  display: flex; flex-direction: column;
  background: var(--bg-card, #fff); border-radius: 12px;
  overflow: hidden; position: relative;
  border: 1px solid var(--border-light, #eee);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s, border-color 0.3s;
  list-style: none; margin: 0;
  contain: layout style;
}
.bk-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transform: translateY(-3px); border-color: transparent;
}
.bk-card-inner { display: flex; flex-direction: column; height: 100%; }

/* ─── Image ─── */
.bk-card-img {
  position: relative; overflow: hidden;
  background: #f8f7f5;
}
.bk-card-link {
  display: block; position: relative;
  aspect-ratio: 2/3;
}
.bk-card-link img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 10px;
  transition: transform 0.4s ease;
}
.bk-card:hover .bk-card-link img { transform: scale(1.04); }
.bk-card-hover-img {
  display: none; position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain; padding: 10px;
}
.bk-card:hover .bk-card-hover-img { display: block; }

/* ─── Stock badge on image ─── */
.bk-card-stock-badge {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; letter-spacing: 0.3px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.bk-sb-in {
  background: rgba(22,163,74,0.88); color: #fff;
}
.bk-sb-out {
  background: rgba(220,38,38,0.88); color: #fff;
}

/* ─── Badges ─── */
.bk-badge-discount {
  position: absolute; bottom: 40px; right: 8px; z-index: 3;
  font-size: 10px; font-weight: 800; padding: 2px 7px;
  border-radius: 6px; background: #DC2626;
  color: #fff; box-shadow: 0 2px 6px rgba(220,38,38,0.3);
}
.bk-badge-new {
  position: absolute; bottom: 40px; left: 8px; z-index: 3;
  font-size: 10px; font-weight: 800; padding: 2px 7px;
  border-radius: 6px; background: var(--primary);
  color: #fff;
}
.bk-badge-discount ~ .bk-badge-new { left: 8px; right: auto; }

/* ─── Wishlist on image ─── */
.bk-card-wish {
  position: absolute; top: 8px; left: 8px; z-index: 4;
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.88);
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all 0.2s;
  color: #999; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.bk-card-wish:hover { color: #ef4444; background: #fef2f2; transform: scale(1.1); }
.bk-card-wish.active { color: #ef4444; background: #fef2f2; }

/* ─── Category on image bottom center ─── */
.bk-card-cat {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  z-index: 3; font-size: 10px; font-weight: 700;
  padding: 3px 12px; border-radius: 10px 10px 0 0;
  background: rgba(0,0,0,0.6); color: #fff;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  white-space: nowrap; max-width: 80%;
  overflow: hidden; text-overflow: ellipsis;
}

/* ─── Card Body ─── */
.bk-card-body {
  padding: 10px 12px 12px; flex: 1;
  display: flex; flex-direction: column; gap: 4px;
}
.bk-card-cat-label {
  font-size: 10px; font-weight: 700; color: var(--primary);
  background: var(--primary-bg, rgba(180,83,9,0.08));
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  width: fit-content; margin-bottom: 2px;
}

/* Title + Price in one row */
.bk-card-titleprice {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 6px;
}
.bk-card-name-author {
  display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0;
}
.bk-card-title {
  font-size: 13px; font-weight: 700; margin: 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; color: var(--text, #2C2C2C);
}
.bk-card-title a { color: inherit; text-decoration: none; transition: 0.2s; }
.bk-card-title a:hover { color: var(--primary); }
.bk-card-price {
  display: flex; flex-direction: column; align-items: flex-end;
  flex-shrink: 0; gap: 0;
}
.bk-price-old {
  font-size: 9px; color: #767676; text-decoration: line-through; font-weight: 500;
  line-height: 1; margin-bottom: 1px;
}
.bk-price-current {
  font-size: 13px; font-weight: 800; color: var(--primary-dark, #B45309);
  white-space: nowrap; line-height: 1.1;
}
.bk-card-price:has(.bk-price-old) .bk-price-current {
  color: #DC2626;
}

/* ─── Hand-drawn circle on sale price ─── */
.bk-has-sale { position: relative; display: inline-block; }
.bk-circle-svg {
  position: absolute;
  top: 50%; left: 50%;
  width: 130%; height: 180%;
  transform: translate(-50%, -50%) rotate(-2deg);
  pointer-events: none;
  z-index: 1;
}
.bk-circle-svg ellipse {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}
.bk-circle-animate ellipse {
  animation: bkDrawCircle 0.6s ease forwards, bkEraseCircle 0.4s ease 3s forwards;
}
@keyframes bkDrawCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes bkEraseCircle {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 300; }
}
.bk-circle-lg {
  width: 120%; height: 200%;
}
.bk-circle-lg ellipse {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
.bk-circle-lg.bk-circle-animate ellipse {
  animation: bkDrawCircleLg 0.6s ease forwards, bkEraseCircleLg 0.4s ease 3s forwards;
}
@keyframes bkDrawCircleLg {
  to { stroke-dashoffset: 0; }
}
@keyframes bkEraseCircleLg {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 400; }
}

/* Author */
.bk-card-author {
  font-size: 11px; color: var(--text-muted, #595959); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Stars + review count */
.bk-card-rating {
  display: flex; align-items: center; gap: 4px;
}
.bk-stars { display: flex; gap: 1px; }
.bk-star { color: #ddd; flex-shrink: 0; }
.bk-star-fill { color: #f59e0b; }
.bk-review-count {
  font-size: 10px; color: var(--text-light, #888); font-weight: 600;
}

/* Add to cart button */
.bk-card-actions { margin-top: auto; padding-top: 4px; }
.bk-btn-add {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  width: 100%; padding: 6px 8px; border: none; border-radius: 7px;
  background: #B45309;
  color: #fff; font-size: 11px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all 0.2s; font-family: var(--font);
}
.bk-btn-add:hover { background: #92400E; transform: scale(1.02); }
.bk-btn-add:active { transform: scale(0.97); }
.bk-btn-add:hover {
  background: #92400E;
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
  color: #fff;
}
.bk-btn-add:active { transform: translateY(0); }

/* ═══════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════ */
.bk-empty-cart {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 80px 20px; text-align: center;
}
.bk-empty-cart h2 { font-size: 22px; font-weight: 900; color: var(--text); margin: 0; }
.bk-empty-cart p { font-size: 15px; color: var(--text-muted); margin: 0; max-width: 400px; }

.bk-cart-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start;
}
@media (max-width: 900px) { .bk-cart-layout { grid-template-columns: 1fr; } }

/* Cart Items */
.bk-cart-items {
  display: flex; flex-direction: column; gap: 12px;
}
.bk-cart-item {
  display: flex; gap: 16px; padding: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: 0.2s;
}
.bk-cart-item:hover { border-color: var(--primary); }
.bk-cart-item-img {
  flex: 0 0 80px; width: 80px; height: 100px;
  border-radius: 10px; overflow: hidden; background: var(--bg-section);
}
.bk-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.bk-cart-item-img a { display: block; }
.bk-cart-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bk-cart-item-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.bk-cart-item-name {
  font-size: 15px; font-weight: 700; color: var(--text);
  text-decoration: none; transition: 0.2s; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bk-cart-item-name:hover { color: var(--primary); }
.bk-cart-item-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto;
}
.bk-qty-control { position: relative; display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 0; white-space: nowrap; }
.bk-qty-control .quantity { display: inline-flex; align-items: center; gap: 0; }
.bk-qty-control .quantity .minus,
.bk-qty-control .quantity .plus,
.bk-qty-control .bk-qty-btn {
  width: 32px; height: 36px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: 0.15s;
  font-family: inherit; padding: 0; line-height: 1; flex-shrink: 0;
}
.bk-qty-control .bk-qty-minus { border-radius: 8px 0 0 8px; border-right: none; }
.bk-qty-control .bk-qty-plus { border-radius: 0 8px 8px 0; border-left: none; }
.bk-qty-control .bk-qty-btn:hover { background: var(--primary-bg); color: var(--primary); }
.bk-qty-control .bk-qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.bk-qty-control .quantity .minus { border-radius: 8px 0 0 8px; border-right: none; }
.bk-qty-control .quantity .plus { border-radius: 0 8px 8px 0; border-left: none; }
.bk-qty-control .quantity .minus:hover,
.bk-qty-control .quantity .plus:hover { background: var(--primary-bg); color: var(--primary); }
.bk-qty-control input.qty,
.bk-qty-control .bk-qty-input {
  width: 50px; height: 36px; text-align: center;
  border: 1px solid var(--border); border-radius: 0;
  font-size: 14px; font-weight: 700; background: var(--bg);
  color: var(--text); font-family: inherit;
  -moz-appearance: textfield; flex-shrink: 0;
}
.bk-qty-control input.qty::-webkit-outer-spin-button,
.bk-qty-control input.qty::-webkit-inner-spin-button,
.bk-qty-control .bk-qty-input::-webkit-outer-spin-button,
.bk-qty-control .bk-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bk-qty-control input.qty:focus,
.bk-qty-control .bk-qty-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-bg); }
.bk-cart-item-subtotal {
  font-size: 15px; font-weight: 800; color: var(--primary-dark);
  white-space: nowrap;
}
.bk-cart-remove {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: transparent; color: var(--text-muted);
  cursor: pointer; transition: 0.2s; flex-shrink: 0;
}
.bk-cart-remove:hover { background: #fef2f2; color: #ef4444; }

/* Cart Sidebar */
.bk-cart-sidebar { position: sticky; top: 100px; }
.bk-cart-totals {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.bk-cart-totals h3 {
  font-size: 16px; font-weight: 800; color: var(--text); margin: 0 0 16px;
}
/* Override WooCommerce cart totals table */
.bk-cart-totals table.shop_table {
  border: none; margin: 0;
}
.bk-cart-totals table.shop_table th,
.bk-cart-totals table.shop_table td {
  padding: 8px 0; border: none; font-size: 14px;
}
.bk-cart-totals table.shop_table th { font-weight: 600; color: var(--text-muted); }
.bk-cart-totals table.shop_table td { text-align: left; font-weight: 700; color: var(--text); }
.bk-cart-totals .cart-subtotal,
.bk-cart-totals .cart-subtotal td,
.bk-cart-totals .cart-subtotal th { border-bottom: 1px solid var(--border); }
.bk-cart-totals .order-total td { font-size: 18px; font-weight: 900; color: var(--primary-dark); }
.bk-coupon-row {
  display: flex; gap: 8px; margin: 16px 0;
}
.bk-coupon-input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; font-family: inherit;
  background: var(--bg); color: var(--text);
}
.bk-coupon-input:focus { border-color: var(--primary); outline: none; }
.bk-coupon-btn {
  padding: 10px 18px; border: 2px solid var(--border); border-radius: var(--radius);
  background: transparent; color: var(--text); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: 0.2s; font-family: inherit; white-space: nowrap;
}
.bk-coupon-btn:hover { border-color: var(--primary); color: var(--primary); }
.bk-cart-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .bk-cart-item { flex-direction: row; }
  .bk-cart-item-img { flex: 0 0 70px; width: 70px; height: 90px; }
}
@media (max-width: 600px) {
  .bk-cart-item {
    flex-direction: column; gap: 12px; padding: 14px;
  }
  .bk-cart-item-img {
    flex: 0 0 auto; width: 100%; height: 180px;
  }
  .bk-cart-item-top { flex-direction: column; gap: 4px; }
  .bk-cart-item-bottom { flex-wrap: wrap; gap: 8px; }
}

/* ═══════════════════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════════════════ */
.bk-checkout-grid {
  display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: 24px; align-items: start;
  max-width: 900px; margin: 0 auto;
}
@media (max-width: 900px) { .bk-checkout-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* Checkout Cards */
.bk-co-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px;
}
.bk-co-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; font-size: 15px; font-weight: 800; color: var(--text);
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.bk-co-head svg { flex-shrink: 0; color: var(--primary); }
.bk-co-body { padding: 16px 20px; }

.bk-co-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 600px) { .bk-co-row { grid-template-columns: 1fr; } }

.bk-co-field { display: flex; flex-direction: column; gap: 6px; }
.bk-co-field label {
  font-size: 13px; font-weight: 700; color: var(--text);
}
.bk-co-field label span { color: #ef4444; }
.bk-co-field input,
.bk-co-field select,
.bk-co-field textarea {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; color: var(--text);
  background: var(--card); transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease; width: 100%;
}
.bk-co-field input:focus,
.bk-co-field select:focus,
.bk-co-field textarea:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 3px var(--primary-bg);
}
.bk-co-field textarea { resize: vertical; }
.bk-co-textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; font-family: inherit;
  color: var(--text); background: var(--card); resize: vertical; transition: 0.2s;
}
.bk-co-textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-bg); }

/* Commune Autocomplete */
.bk-co-commune-wrap { position: relative; z-index: 60; }
.bk-co-commune-dd {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 61;
  max-height: 200px; overflow-y: auto; background: var(--card);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  display: none; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.bk-co-commune-dd .bk-co-commune-option {
  padding: 10px 14px; font-size: 13px; cursor: pointer; transition: 0.1s;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.bk-co-commune-dd .bk-co-commune-option:last-child { border-bottom: none; }
.bk-co-commune-dd .bk-co-commune-option:hover,
.bk-co-commune-dd .bk-co-commune-option.active { background: var(--primary-bg); color: var(--primary); }

/* Delivery Options */
.bk-co-delivery-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
@media (max-width: 500px) { .bk-co-delivery-options { grid-template-columns: 1fr; } }
.bk-co-delivery-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 2px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: 0.2s;
}
.bk-co-delivery-opt:hover { border-color: var(--primary); }
.bk-co-delivery-opt.active { border-color: var(--primary); background: var(--primary-bg); }
.bk-co-delivery-opt input[type="radio"] { display: none; }
.bk-co-delivery-info { display: flex; flex-direction: column; gap: 2px; }
.bk-co-delivery-info strong { font-size: 14px; color: var(--text); }
.bk-co-delivery-info small { font-size: 12px; color: var(--text-muted); }

/* COD Info */
.bk-co-cod-info {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--bg-alt);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.bk-co-cod-info svg { flex-shrink: 0; }
.bk-co-cod-info strong { font-size: 14px; color: var(--text); display: block; }
.bk-co-cod-info small { font-size: 12px; color: var(--text-muted); }

/* Submit */
.bk-co-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 420px; padding: 14px 24px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; font-size: 16px; font-weight: 800; cursor: pointer;
  transition: 0.2s; font-family: inherit; margin: 16px auto 0;
}
.bk-co-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.bk-co-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Order Summary */
.bk-co-summary {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 100px;
}
.bk-co-summary-header {
  width: 100%; text-align: right; cursor: pointer; border: none; font-family: inherit;
  font-size: 16px; font-weight: 800; color: var(--text);
  padding: 14px 20px; margin: 0; background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.bk-co-summary-header:hover { background: var(--border); }
.bk-co-head { display: inline-flex; align-items: center; gap: 8px; }
.bk-co-cart-ic-wrap { position: relative; display: inline-flex; }
.bk-co-cart-ic-wrap svg { color: var(--primary); }
.bk-co-cart-badge {
  position: absolute; top: -7px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.bk-co-chevron { margin-right: auto; color: var(--text-light); transition: transform 0.25s ease; flex-shrink: 0; }
.bk-co-summary.collapsed .bk-co-chevron { transform: rotate(-180deg); }
.bk-co-summary.collapsed .bk-co-summary-body { display: none; }
.bk-co-sum-prod { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bk-co-sum-thumb {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 6px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border);
}
.bk-co-sum-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-co-sum-title {
  font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Override WooCommerce order review table */
.bk-co-summary #order_review { padding: 16px 20px; }
.bk-co-summary table.shop_table {
  border: none; margin: 0;
}
.bk-co-summary table.shop_table th,
.bk-co-summary table.shop_table td {
  padding: 8px 0; border: none; font-size: 14px;
}
.bk-co-summary table.shop_table th { font-weight: 600; color: var(--text-muted); }
.bk-co-summary table.shop_table td { text-align: left; font-weight: 700; color: var(--text); }
.bk-co-summary .order-total td { font-size: 18px; font-weight: 900; color: var(--primary-dark); }

/* Custom summary table */
.bk-co-summary-table { width: 100%; border-collapse: collapse; margin: 0; }
.bk-co-summary-table th { font-size: 11px; font-weight: 600; color: var(--text-muted); padding: 6px 0; text-align: right; }
.bk-co-summary-table td { font-size: 12px; padding: 8px 0; border-top: 1px solid var(--border); text-align: right; }
.bk-co-sum-name { font-size: 12px; font-weight: 600; color: var(--text); min-width: 0; }
.bk-co-sum-qty { text-align: center; color: var(--text-muted); font-weight: 600; width: 40px; }
.bk-co-sum-price { font-weight: 700; color: var(--text); white-space: nowrap; }
.bk-co-summary-totals { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }
.bk-co-sum-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.bk-co-sum-row span:first-child { color: var(--text-muted); }
.bk-co-sum-row span:last-child { font-weight: 700; color: var(--text); }
.bk-co-sum-shipping { background: var(--bg-alt); margin: 4px -20px; padding: 8px 20px !important; border-radius: 6px; }
.bk-co-sum-shipping small { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.bk-co-sum-total { font-size: 18px; font-weight: 900; border-top: 2px solid var(--primary); padding-top: 10px !important; margin-top: 4px; }
.bk-co-sum-total span:last-child { color: var(--primary-dark); font-size: 20px; }

.bk-co-coupon {
  display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border);
}
.bk-co-coupon input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; font-family: inherit;
  background: var(--bg); color: var(--text);
}
.bk-co-coupon input:focus { border-color: var(--primary); outline: none; }
.bk-co-coupon button {
  padding: 10px 18px; border: 2px solid var(--border); border-radius: var(--radius);
  background: transparent; color: var(--text); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: 0.2s; font-family: inherit; white-space: nowrap;
}
.bk-co-coupon button:hover { border-color: var(--primary); color: var(--primary); }
.bk-co-coupon-msg {
  padding: 0 20px 12px; font-size: 13px;
}
.bk-co-coupon-msg.success { color: #22c55e; }
.bk-co-coupon-msg.error { color: #ef4444; }

/* Mobile Sticky */
.bk-co-sticky {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--card); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  transform: translateY(100%); transition: transform 0.3s;
}
@media (min-width: 769px) { .bk-co-sticky { display: none; } }
.bk-co-sticky-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; max-width: 1200px; margin: 0 auto; padding: 12px 16px;
}
.bk-co-sticky-total {
  font-size: 18px; font-weight: 900; color: var(--primary-dark);
}
.bk-co-sticky-btn {
  padding: 11px 22px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: 0.2s; font-family: inherit; white-space: nowrap;
}
.bk-co-sticky-btn:hover { opacity: 0.9; }

/* ═══════════════════════════════════════════════
   SHOP / CATEGORY PAGE
   ═══════════════════════════════════════════════ */

/* Shop Hero */
.bk-shop-hero {
  background: linear-gradient(135deg, #0f0d0a 0%, #292524 40%, #44403c 70%, #292524 100%);
  padding: 120px 20px 40px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  position: relative;
  border-bottom: 3px solid var(--primary, #b45309);
}
.bk-shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(180, 83, 9, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 80% 30%, rgba(217, 119, 6, 0.08) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.bk-shop-hero > * { position: relative; z-index: 1; }
.bk-hero-deco {
  position: absolute;
  color: #fff;
  pointer-events: none;
  animation: bk-float 8s ease-in-out infinite;
  will-change: transform;
}
.bk-hero-deco-1 { top: 15%; right: 8%; animation-delay: 0s; }
.bk-hero-deco-2 { bottom: 20%; left: 5%; animation-delay: -3s; }
.bk-hero-deco-3 { top: 30%; left: 15%; animation-delay: -5s; }
@keyframes bk-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
.bk-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(180, 83, 9, 0.25);
  border: 1px solid rgba(180, 83, 9, 0.4);
  color: #fbbf24;
  margin-bottom: 16px;
}
.bk-shop-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  margin: 0 0 12px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.bk-shop-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.8;
}
@media (max-width: 480px) {
  .bk-shop-hero { padding: 100px 16px 28px; }
  .bk-shop-hero h1 { font-size: 24px; }
  .bk-shop-hero p { font-size: 14px; }
  .bk-hero-deco { display: none; }
  .bk-hero-badge { font-size: 11px; padding: 5px 12px; }
  .page-hero-sm { padding: 100px 16px 30px; }
  .page-hero-sm h1 { font-size: 24px; }
  .contact-hero { padding: 100px 16px 40px; }
  .contact-hero h1 { font-size: 26px; }
}

/* Category Filter Buttons */
.bk-cat-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.bk-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
}
.bk-cat-pill:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.bk-cat-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(var(--primary-rgb), 0.4);
}
.bk-cat-pill svg {
  width: 14px; height: 14px;
}

/* Shop Content Area */
.bk-shop-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  overflow-x: hidden;
}
@media (max-width: 480px) {
  .bk-shop-content { padding: 16px 14px 48px; }
}

/* Inline Category Pills (below breadcrumbs on category pages) */
.bk-cat-pills-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.bk-cat-pill-inline {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
}
.bk-cat-pill-inline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}
.bk-cat-pill-inline.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
@media (max-width: 480px) {
  .bk-cat-pills-inline {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 16px;
  }
  .bk-cat-pill-inline { flex-shrink: 0; }
}

/* Shop Layout */
.bk-shop-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start;
  overflow-x: hidden;
}
@media (max-width: 900px) {
  .bk-shop-layout { grid-template-columns: 1fr; }
  .bk-shop-hero { padding-top: 90px; }
  .bk-cat-pills { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .bk-cat-pill { flex-shrink: 0; }
}

/* Sidebar Filters */
.bk-filters {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  position: sticky; top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.bk-filters::-webkit-scrollbar { width: 4px; }
.bk-filters::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.bk-filters-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light);
}
.bk-filters-header .bk-filters-heading {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; margin: 0;
}
.bk-filters-close {
  display: none; background: none; border: none; font-size: 24px;
  cursor: pointer; color: var(--text-muted); padding: 4px;
}
@media (max-width: 900px) {
  .bk-filters-close { display: block; }
}
.bk-filter-group {
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.bk-filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.bk-filter-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; margin: 0 0 10px; cursor: pointer;
  color: var(--text); user-select: none;
}
.bk-filter-title svg:first-child { color: var(--primary); flex-shrink: 0; }
.bk-filter-chevron {
  margin-right: auto; transition: transform 0.2s ease;
}
.bk-filter-title.collapsed .bk-filter-chevron { transform: rotate(-90deg); }
.bk-filter-body {
  display: flex; flex-direction: column; gap: 2px;
}
.bk-filter-body.collapsed { display: none; }
.bk-filter-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; border-radius: 8px; font-size: 13px;
  color: var(--text-muted); text-decoration: none; transition: all 0.15s ease;
}
.bk-filter-link:hover { background: rgba(var(--primary-rgb), 0.06); color: var(--text); }
.bk-filter-link.active {
  background: rgba(var(--primary-rgb), 0.1); color: var(--primary); font-weight: 700;
}
.bk-filter-count {
  font-size: 11px; background: var(--bg-section); padding: 2px 8px;
  border-radius: 10px; font-weight: 600;
}
.bk-filter-link.active .bk-filter-count {
  background: var(--primary); color: #fff;
}

/* Hierarchical category filter */
.bk-filter-cat-parent { }
.bk-filter-link-parent {
  font-weight: 700 !important;
  position: relative;
}
.bk-filter-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  margin-left: 2px;
  opacity: 0.5;
}
.bk-filter-arrow.open { transform: rotate(90deg); opacity: 1; }
.bk-filter-children {
  display: none;
  flex-direction: column;
  gap: 0;
  border-right: 2px solid var(--border-light);
  margin-right: 8px;
}
.bk-filter-children.open { display: flex; }
.bk-filter-children .bk-filter-link {
  font-weight: 400;
  font-size: 12px;
  padding: 5px 10px;
  color: var(--text-muted);
}
.bk-filter-children .bk-filter-link.active {
  font-weight: 700;
  color: var(--primary);
}

.bk-price-range {
  display: flex; align-items: center; gap: 8px;
}
.bk-price-input {
  flex: 1; padding: 8px 10px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 13px; background: var(--bg);
  font-family: var(--font); color: var(--text); min-width: 0;
}
.bk-price-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.bk-price-sep { color: var(--text-light); font-size: 13px; }
.bk-price-apply {
  width: 100%; margin-top: 10px; padding: 8px; background: var(--primary);
  color: #fff; border: none; border-radius: 8px; font-size: 13px;
  font-weight: 700; cursor: pointer; transition: background 0.2s;
  font-family: var(--font);
}
.bk-price-apply:hover { background: var(--primary-dark); }

/* Sidebar Filters Mobile Overlay */
@media (max-width: 900px) {
  .bk-filters {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200;
    border-radius: 0; transform: translateX(100%);
    transition: transform 0.3s ease; padding: 0;
    display: flex; flex-direction: column;
    background: var(--bg-card);
    max-height: 100vh; max-height: 100dvh;
    overflow: hidden;
  }
  .bk-filters.open { transform: translateX(0); }
  .bk-filters-header {
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .bk-filters-body-scroll {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 20px;
  }
  .bk-filters-body-scroll::-webkit-scrollbar { width: 3px; }
  .bk-filters-body-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  .bk-filter-group {
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
  }
  .bk-filter-body { padding-bottom: 14px; }
}

/* Shop Main */
.bk-shop-main {
  min-width: 0;
  overflow-x: hidden;
}
.bk-shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 16px; flex-wrap: wrap;
  max-width: 100%; overflow: hidden;
}
.bk-shop-toolbar-right {
  display: flex; align-items: center; gap: 8px;
}
.bk-shop-result {
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.bk-result-num { font-weight: 800; color: var(--text); }
.bk-filters-toggle {
  display: none; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--text); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: 0.2s; font-family: inherit;
}
.bk-filters-toggle:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 900px) { .bk-filters-toggle { display: inline-flex; } }

/* Pagination */
.bk-pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 24px; padding: 16px 0;
}
.bk-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; transition: 0.2s; background: var(--card);
}
.bk-pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.bk-pagination .page-numbers.current {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* Empty State */
.bk-empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 80px 20px; text-align: center;
}
.bk-empty-state h3 { font-size: 20px; font-weight: 800; color: var(--text); margin: 0; }
.bk-empty-state p { font-size: 14px; color: var(--text-muted); margin: 0; max-width: 400px; }
.bk-empty-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; background: var(--primary); color: #fff;
  border-radius: var(--radius); font-size: 14px; font-weight: 700;
  text-decoration: none; transition: background 0.2s;
}
.bk-empty-link:hover { background: var(--primary-dark); color: #fff; }


/* ═══════════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  top: var(--bk-header-h, 56px);
  left: 0; right: 0;
  width: 100%;
  z-index: 9999;
  background: var(--bg-card);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.3s ease, visibility 0.35s;
  display: flex; flex-direction: column;
  max-height: calc(100vh - var(--bk-header-h, 56px));
  overflow-y: auto;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border-bottom: 1px solid var(--border);
}
.mobile-menu-title {
  font-size: 16px; font-weight: 800; color: var(--text);
}
.mobile-menu-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--bg-alt); color: var(--text);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.mobile-menu-close:hover { background: var(--border); }
.mobile-menu-body { flex: 1; padding: 8px 0; }
.mobile-nav-list {
  list-style: none; margin: 0; padding: 0;
}
.mobile-nav-list li { border-bottom: 1px solid var(--border); }
.mobile-nav-list li:last-child { border-bottom: none; }
.mobile-nav-list li a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; font-size: 15px; font-weight: 600;
  color: var(--text); text-decoration: none; transition: 0.2s;
}
.mobile-nav-list li a:hover {
  background: var(--primary-bg); color: var(--primary);
  padding-right: 24px;
}
.mobile-menu-footer {
  border-top: 1px solid var(--border); padding: 8px 0; margin-top: auto;
}
.mobile-menu-action {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 14px 20px; font-size: 14px; font-weight: 600;
  color: var(--text); background: none; border: none; cursor: pointer;
  font-family: var(--font); transition: 0.2s; text-align: right;
}
.mobile-menu-action:hover { background: var(--primary-bg); color: var(--primary); }
.mobile-menu-action svg { flex-shrink: 0; color: var(--text-light); }
.mobile-menu-action:hover svg { color: var(--primary); }

/* Mobile Category Section */
.mobile-nav-section {
  border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px;
}
.mobile-nav-section-title {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px 6px; font-size: 12px; font-weight: 800;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em;
}
.mobile-nav-section-title svg { color: var(--primary); }
.mobile-cat-list {
  display: flex; flex-direction: column;
}
.mobile-cat-parent { }
.mobile-cat-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 20px; font-size: 14px; font-weight: 600;
  color: var(--text); text-decoration: none; transition: 0.2s;
  border-bottom: 1px solid var(--border-light);
}
.mobile-cat-link span small { font-weight: 400; color: var(--text-light); font-size: 12px; }
.mobile-cat-link:hover { background: var(--primary-bg); color: var(--primary); }
.mobile-cat-parent-btn { display: flex; align-items: center; justify-content: space-between; padding: 11px 20px; font-size: 14px; font-weight: 600; color: var(--text); background: none; border: none; width: 100%; text-align: right; cursor: pointer; font-family: inherit; border-bottom: 1px solid var(--border-light); transition: 0.2s; }
.mobile-cat-parent-btn:hover { background: var(--primary-bg); color: var(--primary); }
.mobile-cat-arrow {
  flex-shrink: 0; transition: transform 0.2s ease; color: var(--text-light);
}
.mobile-cat-arrow.open { transform: rotate(90deg); }
.mobile-cat-children {
  display: none; flex-direction: column; background: var(--bg-section);
}
.mobile-cat-children.open { display: flex; }
.mobile-cat-children .mobile-cat-link {
  font-size: 13px; font-weight: 500; padding-right: 36px;
  border-bottom-color: var(--border-light);
}

/* Mobile overlay for filters + menu */
.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }

/* Hide fixed bottom bars while the mobile menu is open */
body.menu-open .bf-ed-sticky,
body.menu-open .co-sticky,
body.menu-open .bk-co-sticky { display: none !important; }

/* ═══════════════════════════════════════════════
   DARK MODE — BK Overrides
   ═══════════════════════════════════════════════ */
[data-theme="dark"] .bk-card { border-color: rgba(255,255,255,0.06); background: #1a1714; }
[data-theme="dark"] .bk-card:hover { border-color: transparent; }
[data-theme="dark"] .bk-card-wish { background: rgba(30,30,30,0.9); }
[data-theme="dark"] .bk-card-img { background: #222; }
[data-theme="dark"] .bk-card-cat { background: rgba(255,255,255,0.15); }
[data-theme="dark"] .bk-badge-discount { box-shadow: 0 2px 6px rgba(220,38,38,0.4); }
[data-theme="dark"] .bk-cart-item { border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .bk-cart-item:hover { border-color: var(--primary); }
[data-theme="dark"] .bk-co-card { border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .bk-co-cod-info { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .bk-co-sticky { background: var(--card); }
[data-theme="dark"] .bk-co-field input,
[data-theme="dark"] .bk-co-field select,
[data-theme="dark"] .bk-co-field textarea {
  background: #26211e !important;
  color: #e8e0d8 !important;
  border-color: #332d28 !important;
}
[data-theme="dark"] .bk-co-field input:focus,
[data-theme="dark"] .bk-co-field select:focus,
[data-theme="dark"] .bk-co-field textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(217,119,6,0.15) !important;
}
[data-theme="dark"] .bk-co-textarea {
  background: #26211e !important;
  color: #e8e0d8 !important;
  border-color: #332d28 !important;
}
[data-theme="dark"] .bk-co-coupon input {
  background: #26211e !important;
  color: #e8e0d8 !important;
  border-color: #332d28 !important;
}
[data-theme="dark"] .bk-co-field input:-webkit-autofill,
[data-theme="dark"] .bk-co-field input:-webkit-autofill:hover,
[data-theme="dark"] .bk-co-field input:-webkit-autofill:focus,
[data-theme="dark"] .bk-co-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #26211e inset !important;
  -webkit-text-fill-color: #e8e0d8 !important;
}
[data-theme="dark"] .co-field input,
[data-theme="dark"] .co-field textarea,
[data-theme="dark"] .co-field select {
  background: #26211e !important;
  color: #e8e0d8 !important;
  border-color: #332d28 !important;
}
[data-theme="dark"] .co-field input:focus,
[data-theme="dark"] .co-field textarea:focus,
[data-theme="dark"] .co-field select:focus {
  border-color: var(--primary) !important;
}
[data-theme="dark"] .co-field input:-webkit-autofill,
[data-theme="dark"] .co-field input:-webkit-autofill:hover,
[data-theme="dark"] .co-field input:-webkit-autofill:focus,
[data-theme="dark"] .co-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #26211e inset !important;
  -webkit-text-fill-color: #e8e0d8 !important;
}
[data-theme="dark"] .co-totals { border-color: #332d28; }
[data-theme="dark"] .co-total-row { border-color: #332d28; }
[data-theme="dark"] .co-total-label { color: #a09080; }
[data-theme="dark"] .co-total-value { color: #e8e0d8; }
[data-theme="dark"] .co-total-final .co-total-value { color: var(--primary); }
[data-theme="dark"] .co-total-ship .co-total-value { color: var(--primary); }
[data-theme="dark"] .co-items { border-color: #332d28; }
[data-theme="dark"] .co-item { border-color: #332d28; }
[data-theme="dark"] .co-item-name a { color: #e8e0d8; }
[data-theme="dark"] .co-item-name a:hover { color: var(--primary); }
[data-theme="dark"] .bk-testi-image { background: #222; }

/* ─── Address Popup Dark Mode ─── */
[data-theme="dark"] .addr-popup-overlay { background: rgba(0,0,0,0.6); }
[data-theme="dark"] .addr-popup {
  background: #1a1714; border-color: rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
}
[data-theme="dark"] .addr-popup-header {
  background: #1a1714; border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .addr-popup-header h3 { color: #e8e0d8; }
[data-theme="dark"] .addr-popup-close { background: #26211e; color: #a09080; }
[data-theme="dark"] .addr-popup-close:hover { background: #332d28; color: #e8e0d8; }
[data-theme="dark"] .addr-popup-form { background: #1a1714; }
[data-theme="dark"] .addr-field label { color: #a09080; }
[data-theme="dark"] .addr-field input,
[data-theme="dark"] .addr-field select {
  background-color: #26211e !important;
  color: #e8e0d8 !important;
  border-color: #332d28 !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}
[data-theme="dark"] .addr-field select {
  background-color: #26211e !important;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23a09080' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 12px center !important;
  padding-left: 32px !important;
}
[data-theme="dark"] .addr-field select option,
[data-theme="dark"] .addr-field select option:hover,
[data-theme="dark"] .addr-field select option:checked,
[data-theme="dark"] .addr-field select option:active {
  background-color: #26211e !important;
  color: #e8e0d8 !important;
  background: #26211e !important;
}
[data-theme="dark"] .addr-field select:focus {
  border-color: #fb923c !important;
  box-shadow: 0 0 0 3px rgba(251,146,60,0.15) !important;
}
[data-theme="dark"] .addr-field input::placeholder { color: #706858 !important; }
[data-theme="dark"] .addr-field input:focus,
[data-theme="dark"] .addr-field select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(251,146,60,0.15) !important;
}
[data-theme="dark"] .addr-field.error input,
[data-theme="dark"] .addr-field.error select {
  border-color: #ef4444 !important;
  background-color: rgba(239,68,68,0.08) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12) !important;
}
[data-theme="dark"] .addr-field.success input,
[data-theme="dark"] .addr-field.success select {
  border-color: #22c55e !important;
  background-color: rgba(34,197,94,0.08) !important;
}
[data-theme="dark"] .addr-field.error label { color: #fca5a5; }
[data-theme="dark"] .addr-field .field-error {
  color: #fca5a5; background: rgba(239,68,68,0.1);
  border-right-color: #ef4444;
}
[data-theme="dark"] .addr-commune-dd {
  background: #1a1714; border-color: #332d28;
}
[data-theme="dark"] .addr-cm-item {
  color: #e8e0d8; border-bottom-color: rgba(255,255,255,0.03);
}
[data-theme="dark"] .addr-cm-item:hover { background: rgba(251,146,60,0.1); }
[data-theme="dark"] .addr-cm-fr { color: #706858; }
[data-theme="dark"] .addr-btn-skip {
  background: #26211e; color: #a09080; border-color: #332d28;
}
[data-theme="dark"] .addr-btn-skip:hover { background: #332d28; color: #e8e0d8; }
[data-theme="dark"] .addr-btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 2px 8px rgba(251,146,60,0.3);
}
[data-theme="dark"] .addr-delivery-option {
  border-color: #332d28; background: #26211e; color: #e8e0d8;
}
[data-theme="dark"] .addr-delivery-option:has(input:checked) {
  border-color: #fb923c; background: rgba(251,146,60,0.1);
  box-shadow: 0 0 0 3px rgba(251,146,60,0.15);
}
[data-theme="dark"] .addr-ship-info {
  background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06);
  color: #a09080;
}
[data-theme="dark"] .addr-ship-rate { color: #fb923c; }
[data-theme="dark"] .addr-shipping-unavailable {
  background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.25);
  color: #fca5a5;
}
[data-theme="dark"] .addr-hub-empty {
  background: rgba(255,255,255,0.03); color: #706858;
}
[data-theme="dark"] .addr-delivery-option:has(input:checked) { border-color: var(--primary); background: rgba(251,146,60,0.08); }
[data-theme="dark"] .addr-delivery-label { color: #e8e0d8; }
[data-theme="dark"] .addr-ship-info { background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.12); }
[data-theme="dark"] .addr-ship-rate { color: #4ade80; }
[data-theme="dark"] .addr-shipping-unavailable { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.12); color: #fca5a5; }
[data-theme="dark"] .addr-hub-empty { background: #26211e; color: #a09080; }

/* ─── Related Books ─── */
.bf-ed-related { margin-bottom: 56px; }
.bf-ed-related-heading {
  font-size: 20px; font-weight: 900; color: var(--text); margin: 0 0 16px;
}
.bf-ed-related-track {
  display: flex; gap: 12px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 8px;
}
.bf-ed-related-track::-webkit-scrollbar { display: none; }

.bf-ed-related-card {
  flex: 0 0 170px; min-width: 170px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: 0.2s;
}
.bf-ed-related-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.bf-ed-rel-thumb {
  display: block; aspect-ratio: 2/3; overflow: hidden; background: var(--bg);
}
.bf-ed-rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bf-ed-rel-body { padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.bf-ed-rel-title { font-size: 13px; font-weight: 800; margin: 0; }
.bf-ed-rel-title a { color: var(--text); text-decoration: none; }
.bf-ed-rel-title a:hover { color: var(--primary); }
.bf-ed-rel-author { font-size: 11px; color: var(--text-light); }
.bf-ed-rel-price { font-size: 13px; font-weight: 800; color: var(--primary-dark); }
.bf-ed-rel-actions {
  display: flex; gap: 6px; margin-top: 6px; align-items: center;
}
.bf-ed-rel-atc {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 6px 8px; border-radius: 6px; border: none;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
  cursor: pointer; transition: 0.2s; white-space: nowrap;
}
.bf-ed-rel-atc:hover { background: var(--primary-dark); color: #fff; }
.bf-ed-rel-wl {
  width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--card); color: var(--text-light); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: 0.2s;
  flex-shrink: 0;
}
.bf-ed-rel-wl:hover, .bf-ed-rel-wl.active { color: #ef4444; border-color: #ef4444; }
@media (max-width: 500px) {
  .bf-ed-related-card { flex: 0 0 150px; min-width: 150px; }
}

/* ─── Mobile Sticky ─── */
.bf-ed-sticky {
  position: fixed; left: 0; right: 0; z-index: 9999;
  background: var(--bg-card); border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  transform: translateY(100%); transition: transform 0.3s;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 768px) { .bf-ed-sticky { transform: translateY(0); } }
.bf-ed-sticky-spacer { display: none; }
@media (max-width: 768px) { .bf-ed-sticky-spacer { display: block; } }
.bf-ed-sticky-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; max-width: 1200px; margin: 0 auto;
  padding: 12px 16px;
}
.bf-ed-sticky-info { display: flex; flex-direction: column; gap: 2px; }
.bf-ed-sticky-label { font-size: 11px; color: var(--text-light); font-weight: 500; }
.bf-ed-sticky-price { font-size: 17px; font-weight: 900; color: var(--primary-dark); }
.bf-ed-sticky-actions { display: flex; gap: 8px; flex-shrink: 0; }
.bf-ed-sticky-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border: none; border-radius: 12px;
  white-space: nowrap; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #f59e0b);
  background-size: 200% 200%;
  color: #fff; font-size: 14px; font-weight: 800; cursor: pointer;
  font-family: var(--font); position: relative; overflow: hidden;
  box-shadow: 0 4px 16px rgba(196,87,26,0.3);
  transition: transform 0.2s;
}
.bf-ed-sticky-btn::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: stkBtnShine 2.5s ease-in-out infinite;
}
.bf-ed-sticky-btn:active { transform: scale(0.95); }
.bf-ed-sticky-btn .bf-stk-check { display: inline-flex; align-items: center; }
.bf-ed-sticky-btn .bf-stk-spinner {
  display: none; width: 15px; height: 15px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 50%; animation: bf-spin 0.6s linear infinite;
}
.bf-ed-sticky-btn.loading { opacity: 0.9; cursor: wait; }
.bf-ed-sticky-btn.loading .bf-stk-check { display: none; }
.bf-ed-sticky-btn.loading .bf-stk-spinner { display: inline-block; }
.bf-ed-sticky-btn:disabled { cursor: wait; }

@keyframes stkBtnShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes stkBtnShine {
  0% { transform: translateX(-200%); }
  50%, 100% { transform: translateX(250%); }
}
@keyframes stkBtnShake {
  0%, 85%, 100% { transform: translateX(0); }
  88% { transform: translateX(-3px); }
  91% { transform: translateX(3px); }
  94% { transform: translateX(-2px); }
  97% { transform: translateX(2px); }
}

/* Field shake on validation error */
.bf-ed-field-shake { animation: fieldShake 0.4s ease; }
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-3px); }
}
.bf-ed-btn-sm {
  padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px; transition: 0.2s;
  font-family: var(--font);
}

/* ─── Dark Mode Overrides for Editorial ─── */
[data-theme="dark"] .bf-ed-cover-face { box-shadow: 2px 4px 16px rgba(0,0,0,0.3); }
[data-theme="dark"] .bf-ed-cover-shadow { background: rgba(0,0,0,0.2); }
[data-theme="dark"] .bf-ed-stock-badge.in-stock { background: #052e16; color: #86efac; border-color: #166534; }
[data-theme="dark"] .bf-ed-stock-badge.out-of-stock { background: #450a0a; color: #fca5a5; border-color: #991b1b; }
[data-theme="dark"] .bf-ed-oos { background: #450a0a; border-color: #991b1b; }
[data-theme="dark"] .bf-ed-oos-text strong { color: #fca5a5; }
[data-theme="dark"] .bf-ed-ex-submit { background: linear-gradient(135deg, #fb923c, #f97316); }
[data-theme="dark"] .bf-ed-btn-buy { background: linear-gradient(135deg, #fb923c, #f97316); }
[data-theme="dark"] .bf-ed-badge svg { color: #fb923c; }
[data-theme="dark"] .bf-ed-pill svg { color: #fb923c; }
[data-theme="dark"] .bf-ed-ex-input-wrap {
  background: #26211e !important;
  border-color: #332d28 !important;
}
[data-theme="dark"] .bf-ed-ex-field > select,
[data-theme="dark"] .bf-ed-ex-field > input,
[data-theme="dark"] .bf-ed-ex-field textarea {
  background: #26211e !important;
  color: #e8e0d8 !important;
  border-color: #332d28 !important;
}
[data-theme="dark"] .bf-ed-ex-field > select {
  border: 1.5px solid #332d28;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
[data-theme="dark"] .bf-ed-ex-input-wrap input,
[data-theme="dark"] .bf-ed-ex-input-wrap select,
[data-theme="dark"] .bf-ed-ex-field textarea {
  color: #e8e0d8;
  background: #26211e !important;
  transition: background-color 0s 999999s, color 0s 999999s !important;
}
[data-theme="dark"] .bf-ed-ex-input-wrap input:-webkit-autofill,
[data-theme="dark"] .bf-ed-ex-input-wrap input:-webkit-autofill:hover,
[data-theme="dark"] .bf-ed-ex-input-wrap input:-webkit-autofill:focus,
[data-theme="dark"] .bf-ed-ex-input-wrap input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #26211e inset !important;
  -webkit-text-fill-color: #e8e0d8 !important;
  color: #e8e0d8 !important;
}
[data-theme="dark"] .bf-ed-ex-radio-label { background: #26211e !important; border-color: #332d28 !important; }
[data-theme="dark"] .bf-ed-ex-qty-input {
  background: #26211e !important;
  color: #e8e0d8 !important;
}
[data-theme="dark"] .bf-ed-qty-controls { border-color: #332d28 !important; }
[data-theme="dark"] .bf-ed-qty-btn { background: #1a1715 !important; color: #e8e0d8 !important; }
[data-theme="dark"] .bf-ed-qty-btn:hover { background: #26211e !important; }
[data-theme="dark"] .bf-ed-qty-input {
  background: #26211e !important;
  color: #e8e0d8 !important;
  border-color: #332d28 !important;
}
[data-theme="dark"] .bf-ed-qty-input:-webkit-autofill,
[data-theme="dark"] .bf-ed-qty-input:-webkit-autofill:hover,
[data-theme="dark"] .bf-ed-qty-input:-webkit-autofill:focus,
[data-theme="dark"] .bf-ed-qty-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #26211e inset !important;
  -webkit-text-fill-color: #e8e0d8 !important;
}


/* ═══════════════════════════════════════════════
   CONSOLIDATED RESPONSIVE — overrides all duplicates above
   ═══════════════════════════════════════════════ */

/* Site-wide container for WooCommerce pages */
.bk-site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  overflow-x: hidden;
}
@media (max-width: 768px) {
  .bk-site-container { padding: 0 16px 48px; }
}
@media (max-width: 480px) {
  .bk-site-container { padding: 0 14px 40px; }
}

/* Product grid — single source of truth */
.products.bk-shop-page ul.products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  width: 100% !important;
}
ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
@media (max-width: 900px) {
  ul.products { grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; }
}
@media (max-width: 600px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
}

/* Sticky mobile buy bar — single definition */
.bf-pd-sticky { display: none !important; }
@media (max-width: 768px) {
  .bf-pd-sticky {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: var(--bg-card, #fff);
    border-top: 1px solid var(--border);
    padding: 10px 14px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    align-items: center;
  }
  .bf-pd-sticky-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
  }
  .bf-pd-sticky-info { display: flex; flex-direction: column; }
  .bf-pd-sticky-label { font-size: 11px; color: var(--text-muted, #a8a29e); font-weight: 500; }
  .bf-pd-sticky-price { font-size: 17px; font-weight: 900; color: var(--primary-dark); }
  .bf-pd-sticky-btn {
    flex: 1; margin: 0;
    padding: 10px 20px; border: none; border-radius: 10px;
    background: var(--primary); color: #fff;
    font-size: 14px; font-weight: 800; cursor: pointer;
    text-decoration: none; text-align: center;
  }
  .bf-pd-sticky-btn:hover { background: var(--primary-dark); color: #fff; }
}

/* Mobile responsive — all breakpoints consolidated */
@media (max-width: 1024px) {
  ul.products { grid-template-columns: repeat(3, 1fr) !important; gap: 14px !important; }
  .single-book-wrapper { grid-template-columns: 300px 1fr !important; gap: 28px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 768px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .bk-card-link { aspect-ratio: 3/4; }
  .single-book-wrapper { grid-template-columns: 1fr !important; }
  .bf-pd-hero { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .bk-shop-layout { grid-template-columns: 1fr !important; }
  .co-stack { max-width: 100% !important; padding: 16px 12px !important; }
  .co-field-row { flex-direction: column !important; }
  .bf-pd-actions { flex-direction: column !important; }
  .bf-pd-ex-row-2col { grid-template-columns: 1fr !important; }
  .bk-cart-layout { grid-template-columns: 1fr !important; }
  .bk-checkout-grid { grid-template-columns: 1fr !important; max-width: 520px !important; }
  .bk-co-row { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .product-card, .book-card, .bf-product-card { min-width: 0 !important; }
  .bk-card-link { aspect-ratio: 3/4; }
  .bk-card-body { padding: 8px 10px 10px; gap: 3px; }
  .bk-card-title { font-size: 12px; -webkit-line-clamp: 2; }
  .bk-price-old { font-size: 8px; }
  .bk-price-current { font-size: 12px; }
  .bk-card-author { font-size: 10px; }
  .bk-card-rating { gap: 3px; }
  .bk-stars svg { width: 11px; height: 11px; }
  .bk-review-count { font-size: 9px; }
  .bk-btn-add { padding: 5px 6px; font-size: 10px; gap: 3px; }
  .bk-btn-add svg { width: 13px; height: 13px; }
}
@media (max-width: 380px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
  .bk-card-link { aspect-ratio: 3/4; }
  .bk-card-body { padding: 6px 8px 8px; gap: 2px; }
  .bk-card-title { font-size: 11px; }
  .bk-price-old { font-size: 7px; }
  .bk-price-current { font-size: 11px; }
  .bk-card-author { font-size: 9px; }
  .bk-btn-add { padding: 4px 6px; font-size: 9px; }
}
@media (max-width: 320px) {
  ul.products { grid-template-columns: 1fr !important; gap: 10px !important; max-width: 240px; margin: 0 auto !important; }
  .bk-card-link { aspect-ratio: 2/3; }
  .bk-card-body { padding: 10px 12px 12px; gap: 4px; }
  .bk-card-title { font-size: 13px; }
  .bk-price-current { font-size: 13px; }
  .bk-card-author { font-size: 11px; }
  .bk-btn-add { padding: 6px 8px; font-size: 11px; }
}
@media (max-width: 480px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .book-card { border-radius: 8px !important; }
  .book-card-thumb { border-radius: 8px 8px 0 0 !important; }
  .bf-pd-gallery { max-width: 260px !important; }
  .bk-page-header h1 { font-size: 22px !important; }
}
@media (min-width: 1400px) {
  ul.products { grid-template-columns: repeat(4, 1fr) !important; }
}

/* ═══════════════════════════════════════════════
   COMMUNE AUTOCOMPLETE DROPDOWN
   ═══════════════════════════════════════════════ */
.bk-commune-wrap { position: relative; z-index: 60; }
.bk-commune-input-wrap { position: relative; }
.bk-commune-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 61;
  max-height: 220px; overflow-y: auto; background: var(--card);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  display: none; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.bk-commune-dd-item {
  padding: 10px 14px; font-size: 13px; cursor: pointer;
  color: var(--text); display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}
.bk-commune-dd-item:last-child { border-bottom: none; }
.bk-commune-dd-item:hover { background: var(--bg-alt); }
.bk-commune-dd-name { font-weight: 600; }
.bk-commune-dd-ascii { color: var(--text-light); font-size: 11px; font-weight: 500; }
.bk-commune-dd-empty { color: var(--text-light); font-style: italic; pointer-events: none; }

/* ═══════════════════════════════════════════════
   SAVE ADDRESS POPUP
   ═══════════════════════════════════════════════ */
.bk-save-popup-overlay {
  position: fixed; inset: 0; z-index: 99998;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity 0.3s;
}
.bk-save-popup-overlay.open { opacity: 1; }
.bk-save-popup {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 28px 24px; max-width: 380px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  text-align: center; border: 1px solid var(--border-light);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}
.bk-save-popup-overlay.open .bk-save-popup {
  transform: translateY(0) scale(1);
}
.bk-save-popup-icon {
  margin-bottom: 12px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.bk-save-popup-title {
  font-size: 17px; font-weight: 800; margin: 0 0 8px;
  color: var(--text);
}
.bk-save-popup-desc {
  font-size: 13px; color: var(--text-muted);
  margin: 0 0 20px; line-height: 1.6;
}
.bk-save-popup-actions {
  display: flex; gap: 10px;
}
.bk-save-popup-btn {
  flex: 1; padding: 10px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: var(--font); border: none; transition: 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.bk-save-popup-save {
  background: var(--primary); color: #fff;
}
.bk-save-popup-save:hover { background: var(--primary-dark); transform: translateY(-1px); }
.bk-save-popup-skip {
  background: var(--bg-section); color: var(--text-muted); border: 1px solid var(--border);
}
.bk-save-popup-skip:hover { background: var(--border); color: var(--text); }

/* ═══════════════════════════════════════════════
   SAVED ADDRESS NOTICE (checkout)
   ═══════════════════════════════════════════════ */
.fib-saved-address-wrap { margin-bottom: 16px; }
.fib-saved-address-notice {
  background: var(--primary-bg);
  border: 1.5px solid var(--primary-light, var(--border));
  border-radius: var(--radius);
  padding: 12px 14px;
}
.fib-saved-address-notice p { margin: 0 0 6px; font-size: 13px; color: var(--text); }
.fib-saved-address-notice .fib-saved-address-summary {
  color: var(--text-muted); font-size: 12.5px; line-height: 1.6;
}
.fib-saved-address-actions { display: flex; gap: 8px; margin-top: 10px; }
.fib-btn-sm {
  padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--border);
  background: #fff; color: var(--text); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--font); transition: 0.2s;
}
.fib-btn-sm:hover { background: var(--bg-section); }
.fib-btn-use { background: var(--primary); color: #fff; border-color: var(--primary); }
.fib-btn-use:hover { background: var(--primary-dark); color: #fff; }

/* ═══════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════ */
.bk-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  padding: 12px 20px; border-radius: var(--radius); font-size: 13px;
  font-weight: 600; z-index: 99999; opacity: 0;
  transition: all 0.3s ease; pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  max-width: 90vw; text-align: center;
}
.bk-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.bk-toast-error { background: #DC2626; color: #fff; }
.bk-toast-success { background: #16a34a; color: #fff; }

/* ═══════════════════════════════════════
   DESKTOP CATEGORY NAV
   ═══════════════════════════════════════ */
.bk-cat-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 64px; z-index: 999;
}
.bk-cat-nav-inner {
  display: flex; align-items: center; gap: 0;
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bk-cat-nav-inner::-webkit-scrollbar { display: none; }
.bk-cat-nav-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  white-space: nowrap; transition: 0.2s;
  border-bottom: 2px solid transparent;
}
.bk-cat-nav-item:hover { color: var(--text); }
.bk-cat-nav-item.active {
  color: var(--primary); border-bottom-color: var(--primary); font-weight: 700;
}
.bk-cat-nav-item svg { flex-shrink: 0; }
.bk-cat-nav-item-wrap { position: relative; }
.bk-cat-nav-arrow {
  transition: transform 0.2s; opacity: 0.5;
}
.bk-cat-nav-item-wrap:hover .bk-cat-nav-arrow { transform: rotate(180deg); opacity: 1; }
.bk-cat-dropdown {
  display: none; position: absolute; top: 100%; right: 0;
  min-width: 200px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 100;
  padding: 6px 0;
}
.bk-cat-nav-item-wrap:hover .bk-cat-dropdown { display: block; }
.bk-cat-dropdown-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  color: var(--text); text-decoration: none; transition: 0.15s;
}
.bk-cat-dropdown-item:hover { background: var(--primary-bg); color: var(--primary); }
.bk-cat-dropdown-item.active { color: var(--primary); font-weight: 700; }
.bk-cat-dropdown-count {
  font-size: 11px; color: var(--text-light); background: var(--bg-section);
  padding: 1px 7px; border-radius: 10px;
}
@media (max-width: 768px) {
  .bk-cat-nav { display: none; }
}
@media (min-width: 769px) {
  .bk-mobile-toggle { display: none !important; }
}

/* ═══════════════════════════════════════════════
   HOMEPAGE — NEW DESIGN
   ═══════════════════════════════════════════════ */

/* ─── Shared ─── */
.bk-home-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.bk-home-section { padding: 20px 0; }
.bk-home-alt { background: var(--bg-section); padding: 20px 0; }
.bk-home-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px;
}
.bk-home-header-center {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.bk-home-header h2 { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.bk-home-header p { font-size: 14px; color: var(--text-muted); margin: 0; }
.bk-home-view-all {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 700; color: var(--primary);
  text-decoration: none; transition: 0.2s; white-space: nowrap;
}
.bk-home-view-all:hover { gap: 8px; }

/* ═══ HERO SLIDER — 3D Circular Carousel ═══ */
.bk-hero-slider {
  position: relative; overflow: hidden;
  padding: 60px 0 40px;
  min-height: 540px; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  background: linear-gradient(135deg, #0f0d0a 0%, #292524 40%, #44403c 70%, #292524 100%);
}
.bk-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(180,83,9,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 80% 30%, rgba(217,119,6,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.bk-hero-content {
  position: relative; z-index: 2; text-align: center;
  margin-bottom: 36px; padding: 0 20px;
}
.bk-hero-content h1 {
  font-size: clamp(28px, 5vw, 42px); font-weight: 900;
  color: #fff; margin: 0 0 10px; line-height: 1.2;
}
.bk-hero-content p {
  font-size: 16px; color: rgba(255,255,255,0.55);
  max-width: 500px; margin: 0 auto; line-height: 1.7;
}
.bk-hero-carousel {
  position: relative; width: 100%; max-width: 1200px;
  margin: 0 auto; z-index: 2;
  perspective: 900px;
  overflow: hidden;
  cursor: grab; user-select: none;
  -webkit-user-select: none;
}
.bk-hero-carousel:active { cursor: grabbing; }
.bk-hero-track {
  position: relative; width: 100%;
  height: 400px;
}
.bk-hero-card {
  position: absolute;
  left: 50%; top: 0;
  width: 200px; margin-left: -100px;
  opacity: 0;
  transition: transform 0.6s cubic-bezier(.25,.1,.25,1),
              opacity 0.5s ease,
              filter 0.5s ease;
  will-change: transform, opacity;
}
.bk-hero-card-inner {
  background: var(--bg-card, #fff);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  transition: box-shadow 0.4s ease;
  width: 100%;
}
.bk-hero-card[data-active="true"] .bk-hero-card-inner {
  box-shadow: 0 12px 48px rgba(180,83,9,0.3), 0 8px 32px rgba(0,0,0,0.35);
}
.bk-hero-card-img {
  position: relative; padding-top: 130%; overflow: hidden;
  background: var(--bg-section, #f5f5f4);
}
.bk-hero-card-img a { display: block; }
.bk-hero-card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.bk-hero-card-info { padding: 10px 12px 12px; }
.bk-hero-card-title {
  display: block; font-size: 13px; font-weight: 800;
  color: var(--text, #1c1917); margin-bottom: 2px; text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  direction: rtl;
}
.bk-hero-card-title:hover { color: var(--primary, #B45309); }
.bk-hero-card-author {
  font-size: 10px; color: var(--text-muted, #78716c); margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  direction: rtl;
}
.bk-hero-card-price { font-size: 13px; font-weight: 800; color: var(--primary, #B45309); direction: rtl; }
.bk-hero-card-actions { margin-top: 6px; }
.bk-hero-card-actions .bk-btn-add {
  font-size: 11px; padding: 5px 8px; width: 100%;
  justify-content: center;
}
@media (min-width: 1200px) {
  .bk-hero-card { width: 210px; margin-left: -105px; }
}
@media (max-width: 1024px) {
  .bk-hero-track { height: 360px; }
  .bk-hero-card { width: 175px; margin-left: -87px; }
  .bk-hero-card-info { padding: 8px 10px 10px; }
  .bk-hero-card-title { font-size: 12px; }
  .bk-hero-card-price { font-size: 12px; }
}
@media (max-width: 768px) {
  .bk-hero-slider { padding: 50px 0 28px; min-height: 460px; }
  .bk-hero-content { margin-bottom: 24px; }
  .bk-hero-content h1 { font-size: 24px; }
  .bk-hero-content p { font-size: 13px; }
  .bk-hero-track { height: 340px; }
  .bk-hero-card { width: 155px; margin-left: -77px; }
  .bk-hero-card-inner { border-radius: var(--radius); }
  .bk-hero-card-img { padding-top: 125%; }
  .bk-hero-card-info { padding: 7px 8px 9px; }
  .bk-hero-card-title { font-size: 11px; }
  .bk-hero-card-price { font-size: 11px; }
  .bk-hero-card-actions .bk-btn-add { font-size: 10px; padding: 4px 6px; }
}
@media (max-width: 480px) {
  .bk-hero-track { height: 300px; }
  .bk-hero-card { width: 140px; margin-left: -70px; }
  .bk-hero-card-img { padding-top: 120%; }
}

/* ═══ CATEGORIES ═══ */
.bk-home-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}
.bk-home-cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; background: var(--card);
  border-radius: var(--radius-lg); text-decoration: none;
  border: 1px solid var(--border-light);
  transition: 0.25s ease; cursor: pointer;
}
.bk-home-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.bk-home-cat-thumb {
  width: 56px; height: 56px; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 2px solid var(--border);
}
.bk-home-cat-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.bk-home-cat-name {
  font-size: 12px; font-weight: 700; color: var(--text);
  text-align: center; line-height: 1.3;
}
.bk-home-cat-count {
  font-size: 10px; color: var(--text-muted); font-weight: 500;
}
@media (max-width: 480px) {
  .bk-home-cats { grid-template-columns: repeat(4, minmax(64px, 1fr)); gap: 8px; }
}

/* ═══ PRODUCT SLIDER ═══ */
.bk-best-slider {
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bk-best-slider::-webkit-scrollbar { display: none; }
.bk-best-track {
  display: flex;
  flex-wrap: nowrap;
  direction: ltr;
  gap: 12px;
  padding: 8px 4px 12px;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  width: max-content;
}
.bk-best-track > * {
  flex: 0 0 200px;
  width: 200px;
  direction: rtl;
  text-align: right;
}
@media (max-width: 1024px) {
  .bk-best-track > * { flex: 0 0 170px; width: 170px; }
  .bk-best-track { gap: 10px; }
}
@media (max-width: 640px) {
  .bk-best-track { gap: 8px; padding: 8px 4px 10px; }
  .bk-best-track > * { flex: 0 0 160px; width: 160px; }
}
.bk-best-nav { display: none; }
.bk-best-arrow { display: none; }
.bk-best-dots { display: none; }

/* ═══ HOME GRID ═══ */
.bk-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .bk-home-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .bk-home-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 480px) { .bk-home-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ═══ FEATURES ═══ */
.bk-home-features {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; max-width: 900px; margin: 0 auto;
}
.bk-home-feat { text-align: center; }
.bk-home-feat-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.bk-home-feat h3 { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.bk-home-feat p { font-size: 13px; color: var(--text-muted); margin: 0; }
@media (max-width: 768px) {
  .bk-home-features { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}
@media (max-width: 480px) {
  .bk-home-features { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
}

/* ═══ FAQ ═══ */
.bk-home-faq { max-width: 700px; margin: 0 auto; }
.bk-home-faq-item {
  border-bottom: 1px solid var(--border);
}
.bk-home-faq-q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 0; background: none; border: none;
  font-size: 15px; font-weight: 700; color: var(--text);
  cursor: pointer; font-family: inherit; text-align: right;
}
.bk-home-faq-q svg { color: var(--text-muted); transition: transform 0.3s; flex-shrink: 0; }
.bk-home-faq-item.open .bk-home-faq-q svg { transform: rotate(180deg); }
.bk-home-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
}
.bk-home-faq-item.open .bk-home-faq-a {
  max-height: 200px; padding-bottom: 16px;
}

/* ═══ HERO RESPONSIVE — now inlined in hero section above ═══ */

/* ═══ TESTIMONIALS ═══ */
.bk-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bk-testi-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bk-testi-card.has-image {
  flex-direction: row;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.bk-testi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.bk-testi-image {
  width: 160px;
  min-height: 140px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f5f0eb;
}
.bk-testi-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bk-testi-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bk-testi-stars { display: flex; gap: 2px; }
.bk-testi-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bk-testi-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.bk-testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.bk-testi-meta { display: flex; flex-direction: column; gap: 1px; }
.bk-testi-meta strong { font-size: 13px; color: var(--text); }
.bk-testi-product { font-size: 11px; color: var(--text-muted); }
@media (max-width: 1024px) {
  .bk-testi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .bk-testi-card.has-image {
    flex-direction: column;
  }
  .bk-testi-image {
    width: 100%;
    min-height: 180px;
    max-height: 220px;
  }
}
@media (max-width: 600px) {
  .bk-testi-grid { grid-template-columns: 1fr; }
  .bk-testi-text { -webkit-line-clamp: 3; }
}

/* ═══════════════════════════════════════════════
   RELATED BOOKS (Product Page)
   ═══════════════════════════════════════════════ */
.bk-related-section {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border-light, #eee);
}
.bk-related-title {
  font-size: 20px; font-weight: 800; color: var(--text, #2C2C2C);
  margin: 0 0 20px; text-align: right;
}
.bk-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bk-book-card {
  display: flex; flex-direction: column;
  background: var(--bg-card, #fff); border-radius: 12px;
  overflow: hidden; text-decoration: none;
  border: 1px solid var(--border-light, #eee);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bk-book-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transform: translateY(-3px); border-color: transparent;
}
.bk-book-card-img {
  position: relative; overflow: hidden; background: #f8f7f5;
}
.bk-book-card-img img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.bk-book-card:hover .bk-book-card-img img { transform: scale(1.04); }
.bk-book-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.bk-book-card-title {
  font-size: 13px; font-weight: 700; color: var(--text, #2C2C2C);
  margin: 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bk-book-card-price { font-size: 14px; font-weight: 800; color: var(--primary, #D97706); margin-top: auto; }
.bk-book-card-atc {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  width: 100%; padding: 6px 8px; margin-top: 8px;
  border: none; border-radius: 7px;
  background: var(--primary, #D97706);
  color: #fff; font-size: 11px; font-weight: 700; cursor: pointer;
  transition: all 0.2s; font-family: var(--font);
}
.bk-book-card-atc:hover { background: var(--primary-dark, #B45309); transform: translateY(-1px); }
.bk-book-card-atc:active { transform: translateY(0); }

@media (max-width: 1024px) {
  .bk-related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .bk-related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bk-related-title { font-size: 18px; }
}
@media (max-width: 480px) {
  .bk-related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bk-book-card-body { padding: 8px 10px 10px; gap: 2px; }
  .bk-book-card-title { font-size: 11px; }
  .bk-book-card-price { font-size: 13px; }
}
[data-theme="dark"] .bk-related-section { border-top-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .bk-related-title { color: #f0ece6; }
[data-theme="dark"] .bk-book-card { border-color: rgba(255,255,255,0.06); background: #1a1714; }
[data-theme="dark"] .bk-book-card-img { background: #222; }

/* ─── Front-page promo bar ─── */
.bk-promo-bar {
  background: linear-gradient(135deg, var(--primary) 0%, #B45309 100%);
  color: #fff;
  padding: 0;
  margin: 0;
}
.is-front-page .bk-search-results {
  z-index: 10000 !important;
}
.bk-promo-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.bk-promo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.bk-promo-item:first-child {
  border-left: none;
}
.bk-promo-item .promo-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.bk-promo-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(10);
}
.bk-promo-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .bk-promo-inner { gap: 0; }
  .bk-promo-item { padding: 10px 14px; font-size: 11px; gap: 5px; }
  .bk-promo-item img { width: 18px; height: 18px; }
  .bk-promo-divider { display: none; }
  .bk-promo-item { border-left: none; }
}
@media (max-width: 480px) {
  .bk-promo-inner { flex-wrap: wrap; justify-content: center; }
  .bk-promo-item { padding: 8px 12px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .bk-hero-track { perspective: none; }
  .bk-hero-card { transition: none !important; filter: none !important; }
}

/* ─── Newsletter in footer ─── */
.footer-newsletter { padding: 20px 0; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.footer-newsletter label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.newsletter-input-row { display: flex; gap: 6px; max-width: 400px; }
.newsletter-input-row input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.newsletter-input-row button { padding: 8px 16px; background: var(--primary); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }
.newsletter-input-row button:hover { opacity: 0.9; }
#newsletterStatus { margin-top: 6px; font-size: 13px; }
#newsletterStatus.success { color: var(--success); }
#newsletterStatus.error { color: var(--accent); }
.bk-footer-logo { margin-bottom: 14px; }
.bk-footer-logo img { display: block; }
.bk-footer-logo a { display: inline-flex; align-items: center; }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   ─── PRODUCT PAGE — MOBILE REDESIGN (compact & modern) ───
   ============================================================ */
.bf-ed-price-section { align-self: center; }

@media (max-width: 900px) {
  .bf-ed-single-page .bf-ed-grid { gap: 22px; }

  /* Cover column → cohesive card */
  .bf-ed-cover-col {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    gap: 16px;
  }
  .bf-ed-cover-scene { width: 100%; }
  .bf-ed-cover-3d { max-width: 230px; }
  .bf-ed-cover-face { border-radius: 10px; }

  /* Sample → full-width CTA row inside the features card */
  .bf-ed-sample-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 13px;
  }
  .bf-ed-sample-btn:hover { background: var(--primary); color: #fff; }

  /* Trust badges → features card: 3-across grid */
  .bf-ed-trust-badges {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
    justify-content: center;
    border-radius: var(--radius-lg);
  }
  .bf-ed-badge {
    flex-direction: column;
    gap: 5px;
    text-align: center;
    flex: 1 1 30%;
    min-width: 90px;
  }
  .bf-ed-badge svg { width: 22px; height: 22px; }
  .bf-ed-badge-text { align-items: center; }
  .bf-ed-badge-text span { display: none; }
  .bf-ed-badge-text strong { font-size: 12px; line-height: 1.35; }

  /* Publisher → slim inline line */
  .bf-ed-publisher-box {
    justify-content: center;
    padding: 10px 14px;
    background: transparent;
    border: none;
  }
}

@media (max-width: 768px) {
  .bf-ed-breadcrumb { font-size: 12px; margin-bottom: 12px; }
  .bf-ed-cat-tags { gap: 6px; }
  .bf-ed-cat-tag { padding: 5px 10px; font-size: 11px; gap: 4px; }
  .bf-ed-cat-more { padding: 5px 10px; font-size: 10px; }

  /* Title row → title on its own line, price + heart below */
  .bf-ed-title-row { flex-wrap: wrap; gap: 6px 10px; align-items: center; }
  .bf-ed-title { flex: 1 1 100%; font-size: 22px; line-height: 1.3; }
  .bf-ed-price-main { order: 1; }
  .bf-ed-price-section { order: 2; margin-inline-start: auto; }
  .bf-ed-price-current { font-size: 24px; }
  .bf-ed-price-old { font-size: 13px; }

  /* Tighter right column */
  .bf-ed-details-col { gap: 14px; }
  .bf-ed-rating-summary {
    flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px;
  }
  .bf-ed-rating-left { gap: 6px; }
  .bf-ed-write-review {
    justify-content: center; padding: 8px 16px; font-size: 13px;
  }
  .bf-ed-short-desc { font-size: 13.5px; line-height: 1.75; padding: 8px 0; }

  /* Action section → tighter */
  .bf-ed-action-section { padding: 18px 14px; }
  .bf-ed-atc-form { gap: 8px; }
  .bf-ed-qty-btn { width: 36px; height: 42px; }
  .bf-ed-qty-input { width: 42px; height: 42px; }
  .bf-ed-btn { height: 42px; font-size: 14px; }

  .bf-ed-tabs-content { padding: 16px; }
}

@media (max-width: 480px) {
  .bf-ed-cover-col { max-width: 400px; }
  .bf-ed-cover-3d { max-width: 210px; }
  .bf-ed-trust-badges { padding: 12px 6px; gap: 4px; }
  .bf-ed-badge svg { width: 20px; height: 20px; }
  .bf-ed-badge-text strong { font-size: 11.5px; }
  .bf-ed-pills { gap: 6px; }
}
