/**
 * Bajrabarahi Books — WooCommerce Shop & Single Product Styles
 * assets/css/bb-woocommerce.css
 *
 * Loaded on all WooCommerce pages (is_woocommerce()).
 * Uses the same design tokens injected by bb_inject_design_tokens() in functions.php.
 * Scoped under .bb-redesign where specificity is needed.
 */

/* ============================================================
   SHOP / ARCHIVE HERO BANNER
   ============================================================ */

.bb-shop-hero {
  background: linear-gradient(135deg, var(--bb-crimson) 0%, #3a0b12 100%);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.bb-shop-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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.03'%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");
  pointer-events: none;
}

.bb-shop-hero__breadcrumb {
  margin-bottom: 14px;
}

.bb-shop-hero__breadcrumb .woocommerce-breadcrumb,
.bb-shop-hero__breadcrumb .woocommerce-breadcrumb a {
  color: rgba(255, 248, 240, 0.55) !important;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.bb-shop-hero__breadcrumb .woocommerce-breadcrumb a:hover {
  color: var(--bb-gold) !important;
}

/* After the chip strip the Auteur wrapper starts — remove double top spacing */
.bb-full-width-cats + * .bb-shop-main,
.woocommerce .bb-shop-main,
.woocommerce-page .bb-shop-main {
  padding-top: 24px;
}

/* Remove WooCommerce's own page-title injected above the loop */
.woocommerce .woocommerce-products-header,
.woocommerce-page .woocommerce-products-header {
  display: none !important;
}

.bb-redesign .bb-shop-hero .woocommerce-breadcrumb {
  color: rgba(255, 248, 240, 0.55);
  margin-bottom: 16px;
  font-size: 11px;
}

.bb-redesign .bb-shop-hero .woocommerce-breadcrumb a {
  color: rgba(255, 248, 240, 0.55);
}

.bb-redesign .bb-shop-hero .woocommerce-breadcrumb a:hover {
  color: var(--bb-gold);
}

.bb-shop-hero .bb-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.bb-shop-hero__title,
.bb-redesign .bb-shop-hero__title {
  font-family: var(--bb-font-serif, "Playfair Display", Georgia, serif) !important;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  color: #2B2425 !important;
  line-height: 1.15 !important;
  margin: 0 auto 12px auto !important;
  text-align: center !important;
  text-shadow: none !important;
}

.bb-shop-hero__subtitle,
.bb-redesign .bb-shop-hero__subtitle,
.bb-shop-hero p.bb-shop-hero__subtitle,
#primary-content .bb-shop-hero__subtitle {
  font-family: var(--bb-font-sans, "Inter", sans-serif) !important;
  font-size: clamp(15px, 1.3vw, 18px) !important;
  color: #6B5E5F !important;
  line-height: 1.6 !important;
  margin: 0 auto !important;
  max-width: 680px !important;
  text-align: center !important;
  font-style: italic !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

.bb-shop-hero__search {
  max-width: 480px;
}

.bb-shop-hero__search .search-form {
  display: flex;
  gap: 0;
  border-radius: var(--bb-radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.bb-shop-hero__search .search-field {
  flex: 1;
  padding: 13px 18px;
  border: none;
  font-family: var(--bb-font-sans);
  font-size: 14px;
  color: var(--bb-text);
  background: #fff;
  outline: none;
}

.bb-shop-hero__search .search-submit {
  padding: 13px 22px;
  background: var(--bb-gold);
  color: #fff;
  border: none;
  font-family: var(--bb-font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--bb-transition);
  border-radius: 0;
}

.bb-shop-hero__search .search-submit:hover {
  background: var(--bb-crimson);
}


/* ============================================================
   SHOP HERO BANNER & CATEGORY CHIPS — CLEAN FLOW POSITIONING
   (Removes negative margins & prevents overlap with catalog controls)
   ============================================================ */

.bb-shop-hero {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 20px 0 !important;
  clear: both !important;
  float: none !important;
  box-sizing: border-box !important;
  border-radius: var(--bb-radius, 8px);
  z-index: 2 !important;
}

.bb-shop-cats {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 28px 0 !important;
  clear: both !important;
  float: none !important;
  box-sizing: border-box !important;
  border-radius: var(--bb-radius, 8px);
  z-index: 3 !important;
}

/* Clear separation above catalog toolbar and filter */
.gsf-catalog-filter,
.woocommerce-ordering,
.woocommerce-result-count,
.catalog-filter-wrap {
  clear: both !important;
  position: relative !important;
  z-index: 4 !important;
}

/* ============================================================
   CATEGORY CHIP STRIP  — single-row horizontal scroll
   ============================================================ */

.bb-shop-cats,
.bb-full-width-cats {
  background: #fff;
  border-bottom: 1px solid var(--bb-border);
  padding: 0;
  /* scroll container */
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge */
}

.bb-shop-cats::-webkit-scrollbar,
.bb-full-width-cats::-webkit-scrollbar {
  display: none;               /* Chrome/Safari */
}

/* Inner scroll track — single row, never wrap */
.bb-cats-scroll-track,
.bb-shop-cats .bb-container {
  display: flex !important;
  flex-wrap: nowrap !important;        /* ← KEY: chips NEVER wrap */
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 24px !important;
  width: max-content !important;       /* grows to fit all chips */
  min-width: 100%;
}

/* Individual chip */
.bb-shop-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  font-family: var(--bb-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--bb-muted);
  background: transparent;
  border: 1.5px solid var(--bb-border);
  text-decoration: none;
  white-space: nowrap !important;      /* ← chips never line-break */
  flex-shrink: 0 !important;           /* ← chips never shrink */
  transition: all var(--bb-transition);
}

.bb-shop-cat-chip:hover {
  border-color: var(--bb-crimson);
  color: var(--bb-crimson);
  background: rgba(96, 19, 32, 0.04);
}

.bb-shop-cat-chip.is-active {
  background: var(--bb-crimson);
  border-color: var(--bb-crimson);
  color: var(--bb-ivory);
}

.bb-shop-cat-chip.is-active:hover {
  background: var(--bb-accent);
  border-color: var(--bb-accent);
  color: var(--bb-ivory);
}

.bb-shop-cat-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(107, 94, 95, 0.12);
  color: inherit;
}

.bb-shop-cat-chip.is-active .bb-shop-cat-chip__count {
  background: rgba(255, 255, 255, 0.22);
}

/* ============================================================
   SORT / RESULTS TOOLBAR
   ============================================================ */

.bb-shop-toolbar {
  background: var(--bb-ivory);
  border-bottom: 1px solid var(--bb-border);
  padding: 10px 0;
}

.bb-shop-toolbar .bb-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ============================================================
   SHOP MAIN — book grid layout
   ============================================================ */

.bb-shop-main {
  padding-top: 40px;
  padding-bottom: 64px;
}

.bb-redesign .bb-shop-grid,
.bb-redesign .bb-book-grid,
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  gap: clamp(16px, 2.5vw, 28px);
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}

@media (min-width: 1560px) {
  .bb-redesign .bb-shop-grid,
  .bb-redesign .bb-book-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 24px 16px !important;
  }
}

@media (min-width: 1280px) and (max-width: 1559px) {
  .bb-redesign .bb-shop-grid,
  .bb-redesign .bb-book-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 22px 14px !important;
  }
}

@media (min-width: 1025px) and (max-width: 1279px) {
  .bb-redesign .bb-shop-grid,
  .bb-redesign .bb-book-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px 14px !important;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .bb-redesign .bb-shop-grid,
  .bb-redesign .bb-book-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px 12px !important;
  }
}

@media (max-width: 600px) {
  .bb-redesign .bb-shop-grid,
  .bb-redesign .bb-book-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
  }
}

/* li.product and article.product wrappers inside our grid */
.bb-redesign .bb-shop-grid li.product,
.bb-redesign .bb-book-grid li.product,
.woocommerce ul.products li.product,
.woocommerce ul.products article.product,
article.product {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  clear: none !important;
  align-self: stretch !important;
}

.bb-redesign .bb-book-card,
article.bb-book-card,
.bb-book-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 220px !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.bb-redesign .bb-book-card .product-inner,
.bb-book-card .product-inner {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  background: transparent !important;
  border: none !important;
}

/* Book cover display area - EXACT same size across all books */
.book-cover-wrapper,
.bb-book-card .product-thumb,
.bb-redesign .bb-book-card .product-thumb,
.bb-redesign ul.products li.product .product-thumb,
.woocommerce ul.products li.product .product-thumb {
  position: relative !important;
  width: 175px !important;
  max-width: 100% !important;
  height: 255px !important;
  max-height: 255px !important;
  display: block !important;
  margin: 0 auto 12px auto !important;
  border-radius: 4px 10px 10px 4px !important;
  box-shadow: 0 10px 24px rgba(43, 36, 37, 0.16), 0 3px 8px rgba(43, 36, 37, 0.08) !important;
  background: #f7f2ec !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease !important;
}

/* Subtle book spine overlay on left edge */
.book-cover-wrapper::before,
.bb-book-card .product-thumb::before,
.bb-redesign .bb-book-card .product-thumb::before,
.bb-redesign ul.products li.product .product-thumb::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 8px !important;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.05) 70%, transparent 100%) !important;
  z-index: 2 !important;
  pointer-events: none !important;
  border-radius: 4px 0 0 4px !important;
  display: block !important;
}

/* Book Cover Image: strictly 100% width and height so every single cover is exactly identical in size */
.book-cover-wrapper img,
.bb-book-card .product-thumb img,
.bb-redesign .bb-book-card .product-thumb img,
.bb-redesign ul.products li.product .product-thumb img,
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product a img,
.woocommerce-loop-product__link img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
.bb-book-card img.woocommerce-placeholder,
.attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  border-radius: inherit !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  filter: none !important;
}

.bb-book-card:hover .product-thumb,
.bb-redesign .bb-book-card:hover .product-thumb,
.book-cover-wrapper:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 28px rgba(43, 36, 37, 0.24), 0 5px 12px rgba(43, 36, 37, 0.12) !important;
}

@media (max-width: 1100px) {
  .book-cover-wrapper,
  .bb-book-card .product-thumb,
  .bb-redesign .bb-book-card .product-thumb,
  .bb-redesign ul.products li.product .product-thumb,
  .woocommerce ul.products li.product .product-thumb {
    width: 155px !important;
    height: 226px !important;
    max-height: 226px !important;
  }
}

@media (max-width: 1024px) {
  .book-cover-wrapper,
  .bb-book-card .product-thumb,
  .bb-redesign .bb-book-card .product-thumb,
  .bb-redesign ul.products li.product .product-thumb,
  .woocommerce ul.products li.product .product-thumb {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 2/3 !important;
    margin-bottom: 10px !important;
  }
  .bb-book-card,
  .bb-redesign .bb-book-card,
  .woocommerce ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 480px) {
  .book-cover-wrapper,
  .bb-book-card .product-thumb,
  .bb-redesign .bb-book-card .product-thumb,
  .bb-redesign ul.products li.product .product-thumb,
  .woocommerce ul.products li.product .product-thumb {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 2/3 !important;
    margin-bottom: 8px !important;
  }
}

.bb-redesign .bb-book-card .product-info,
.bb-book-card .product-info {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  padding: 0 !important;
  text-align: center !important;
}

.bb-redesign .bb-book-card .bb-product-eyebrow,
.bb-book-card .bb-product-eyebrow {
  display: block !important;
  font-family: var(--bb-font-sans, "Inter", -apple-system, sans-serif) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: var(--bb-crimson, #601320) !important;
  line-height: 1.3 !important;
  min-height: 1.3em !important;
  margin: 0 0 4px 0 !important;
  text-align: center !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Book Title - uniform font-size, centered, 2-line clamp with locked height */
.bb-redesign .bb-book-card .woocommerce-loop-product__title,
.bb-book-card .woocommerce-loop-product__title,
.bb-redesign ul.products li.product .woocommerce-loop-product__title,
.bb-redesign ul.products li.product h2.product-title {
  font-family: var(--bb-font-serif, "Playfair Display", Georgia, serif) !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  min-height: 2.6em !important;
  max-height: 2.6em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--bb-crimson, #601320) !important;
  margin: 0 0 4px 0 !important;
  text-align: center !important;
  flex-shrink: 0 !important;
}

.bb-redesign .bb-book-card .woocommerce-loop-product__title a,
.bb-book-card .woocommerce-loop-product__title a,
.bb-redesign ul.products li.product .woocommerce-loop-product__title a {
  font-family: var(--bb-font-serif, "Playfair Display", Georgia, serif) !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: var(--bb-crimson, #601320) !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
  text-align: center !important;
  width: 100% !important;
  transition: color 0.2s ease !important;
}

.bb-redesign .bb-book-card .woocommerce-loop-product__title a:hover,
.bb-book-card .woocommerce-loop-product__title a:hover {
  color: var(--bb-gold, #C8963E) !important;
}

.bb-redesign .bb-book-card .bb-product-author,
.bb-book-card .bb-product-author {
  display: block !important;
  font-family: var(--bb-font-sans, "Inter", -apple-system, sans-serif) !important;
  font-size: 11.5px !important;
  font-style: italic !important;
  color: var(--bb-muted, #6B5E5F) !important;
  line-height: 1.4 !important;
  min-height: 1.4em !important;
  text-align: center !important;
  margin: 0 0 6px 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex-shrink: 0 !important;
}

.bb-redesign .bb-book-card .bb-product-author a,
.bb-book-card .bb-product-author a {
  color: inherit !important;
  text-decoration: none !important;
}

.bb-redesign .bb-book-card .bb-product-author a:hover,
.bb-book-card .bb-product-author a:hover {
  color: var(--bb-crimson, #601320) !important;
}

/* Standardized Rating Slot - preserves identical vertical space across all cards */
.bb-card-rating-slot {
  min-height: 20px !important;
  max-height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0 8px 0 !important;
  flex-shrink: 0 !important;
}

.bb-stars-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

.bb-stars-track {
  position: relative !important;
  display: inline-block !important;
  letter-spacing: 2px !important;
  line-height: 1 !important;
}

.bb-stars-bg {
  color: #e0d7ce !important;
}

.bb-stars-fill {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  color: var(--bb-gold, #C8963E) !important;
}

.bb-review-count {
  font-size: 11px !important;
  color: var(--bb-muted, #6B5E5F) !important;
  font-weight: 500 !important;
}

.bb-rating-spacer {
  display: block !important;
  height: 16px !important;
  visibility: hidden !important;
}

.bb-redesign .bb-card-footer,
.bb-card-footer {
  margin-top: auto !important;
  width: 100% !important;
  border-top: 1px solid #EADFD5 !important;
  padding-top: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.bb-redesign .bb-book-card .price,
.bb-book-card .price {
  font-family: var(--bb-font-serif, "Playfair Display", Georgia, serif) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--bb-gold, #C8963E) !important;
  text-align: center !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  border: none !important;
  display: block !important;
  width: 100% !important;
}

.bb-redesign .bb-book-card .bb-static-cart-btn,
.bb-book-card .bb-static-cart-btn {
  margin: 0 !important;
  width: 100% !important;
  display: block !important;
}

.bb-redesign .bb-book-card .bb-static-cart-btn .button,
.bb-book-card .bb-static-cart-btn .button,
.bb-book-card .add_to_cart_button {
  display: block !important;
  width: 100% !important;
  background: var(--bb-crimson, #601320) !important;
  color: #FFFFFF !important;
  font-family: var(--bb-font-sans, "Inter", -apple-system, sans-serif) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  border-radius: 3px !important;
  padding: 10px 14px !important;
  line-height: 1.4 !important;
  border: none !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.15s ease !important;
  cursor: pointer !important;
}

.bb-redesign .bb-book-card .bb-static-cart-btn .button:hover,
.bb-book-card .bb-static-cart-btn .button:hover,
.bb-book-card .add_to_cart_button:hover {
  background: #7a1a2c !important;
  color: #FFFFFF !important;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.bb-redesign .woocommerce-pagination,
.woocommerce-pagination {
  display: none !important;
}

/* ============================================================
   SINGLE PRODUCT — layout wrappers
   ============================================================ */

.bb-single-product {
  padding-top: 32px;
  padding-bottom: 80px;
}

.bb-single-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--bb-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bb-muted);
  margin-bottom: 32px;
}

.bb-single-breadcrumb a {
  color: var(--bb-muted);
  text-decoration: none;
  transition: color var(--bb-transition);
}

.bb-single-breadcrumb a:hover { color: var(--bb-crimson); }

.bb-single-breadcrumb__current { color: var(--bb-crimson); }

.bb-single-cat { font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }

.bb-single-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: 64px;
}

/* ── Left column: gallery ── */

.bb-single-gallery__main {
  position: relative;
  border-radius: var(--bb-radius-lg);
  overflow: hidden;
  box-shadow: var(--bb-shadow-book);
  background: var(--bb-beige);
  aspect-ratio: 3 / 4;
}

.bb-single-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bb-single-sale-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 12px;
  background: var(--bb-crimson);
  color: var(--bb-ivory);
  font-family: var(--bb-font-sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--bb-radius);
}

.bb-single-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.bb-single-gallery__thumb {
  flex: 1;
  border-radius: var(--bb-radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--bb-transition);
  aspect-ratio: 3 / 4;
}

.bb-single-gallery__thumb:hover { border-color: var(--bb-crimson); }

.bb-single-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Right column: details ── */

.bb-single-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bb-single-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bb-single-category {
  font-family: var(--bb-font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bb-gold);
}

.bb-single-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--bb-font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.bb-single-stock.in-stock {
  background: rgba(46, 125, 50, 0.09);
  color: #2E7D32;
}

.bb-single-stock.out-of-stock {
  background: rgba(198, 40, 40, 0.09);
  color: #C62828;
}

.bb-single-stock__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.bb-single-title {
  font-family: var(--bb-font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--bb-text);
  margin: 0;
}

.bb-single-author {
  font-family: var(--bb-font-sans);
  font-size: 14px;
  color: var(--bb-muted);
  margin: 0;
  font-style: italic;
}

.bb-single-author strong {
  color: var(--bb-crimson);
  font-style: normal;
}

.bb-single-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bb-single-rating__num {
  font-family: var(--bb-font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--bb-text);
}

.bb-single-price-block {
  padding: 16px 20px;
  background: rgba(96, 19, 32, 0.04);
  border: 1px solid rgba(96, 19, 32, 0.1);
  border-radius: var(--bb-radius);
}

.bb-single-price-block .price {
  font-family: var(--bb-font-serif) !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  color: var(--bb-crimson) !important;
  letter-spacing: -0.04em !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.bb-single-price-block .price del {
  font-size: 1.15rem !important;
  color: var(--bb-muted) !important;
  font-weight: 400 !important;
}

.bb-single-price-block .price ins {
  color: var(--bb-crimson) !important;
  text-decoration: none !important;
}

.bb-single-savings {
  display: block;
  font-family: var(--bb-font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #2E7D32;
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.bb-single-short-desc {
  font-family: var(--bb-font-sans);
  font-size: 15px;
  line-height: 1.8;
  color: var(--bb-muted);
  border-left: 2px solid var(--bb-border-strong);
  padding-left: 16px;
  font-style: italic;
}

/* ── Add to cart ── */

.bb-redesign .bb-single-atc-wrap .cart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.bb-redesign .bb-single-atc-wrap .quantity {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--bb-border);
  border-radius: var(--bb-radius);
  overflow: hidden;
  width: fit-content;
}

.bb-redesign .bb-single-atc-wrap input.qty {
  width: 52px;
  text-align: center;
  border: none;
  padding: 12px 8px;
  font-family: var(--bb-font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--bb-text);
  background: #fff;
  -moz-appearance: textfield;
}

.bb-redesign .bb-single-atc-wrap input.qty::-webkit-outer-spin-button,
.bb-redesign .bb-single-atc-wrap input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.bb-redesign .bb-single-atc-wrap button[name="add-to-cart"],
.bb-redesign .bb-single-atc-wrap .single_add_to_cart_button {
  width: 100%;
  padding: 15px 24px;
  background: var(--bb-crimson) !important;
  color: var(--bb-ivory) !important;
  border: none !important;
  border-radius: var(--bb-radius) !important;
  font-family: var(--bb-font-sans) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: background var(--bb-transition) !important;
}

.bb-redesign .bb-single-atc-wrap button[name="add-to-cart"]:hover,
.bb-redesign .bb-single-atc-wrap .single_add_to_cart_button:hover {
  background: var(--bb-accent) !important;
}

.bb-redesign .bb-single-atc-wrap button.loading {
  opacity: 0.65;
}

/* ── Format selector ── */

.bb-format-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bb-format-selector__label {
  font-family: var(--bb-font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bb-muted);
  margin: 0;
}

.bb-format-selector__options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bb-format-btn {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  background: #fff;
  border: 2px solid var(--bb-border);
  border-radius: var(--bb-radius);
  cursor: pointer;
  transition: all var(--bb-transition);
  text-align: center;
}

.bb-format-btn:hover {
  border-color: var(--bb-crimson);
}

.bb-format-btn.is-active {
  border-color: var(--bb-crimson);
  background: rgba(96, 19, 32, 0.04);
}

.bb-format-btn__name {
  font-family: var(--bb-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--bb-text);
}

.bb-format-btn.is-active .bb-format-btn__name {
  color: var(--bb-crimson);
}

.bb-format-btn__price {
  font-family: var(--bb-font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--bb-crimson);
  letter-spacing: -0.02em;
}

/* Price row — shown above format selector */

.bb-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.bb-price-current {
  font-family: var(--bb-font-serif);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--bb-crimson);
  letter-spacing: -0.04em;
  line-height: 1;
}

.bb-price-original {
  font-family: var(--bb-font-sans);
  font-size: 1rem;
  color: var(--bb-muted);
  text-decoration: line-through;
  font-weight: 400;
}

.bb-price-save {
  font-family: var(--bb-font-sans);
  font-size: 11px;
  font-weight: 800;
  color: #2E7D32;
  background: rgba(46, 125, 50, 0.09);
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* Eyebrow label */

.bb-single-eyebrow {
  font-family: var(--bb-font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bb-gold);
}

/* ── Wishlist button ── */

.bb-wishlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: transparent;
  border: 1.5px solid var(--bb-border);
  border-radius: var(--bb-radius);
  font-family: var(--bb-font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--bb-muted);
  cursor: pointer;
  transition: all var(--bb-transition);
  width: 100%;
  justify-content: center;
}

.bb-wishlist-btn:hover {
  border-color: var(--bb-crimson);
  color: var(--bb-crimson);
}

.bb-wishlist-btn[aria-pressed="true"] {
  border-color: var(--bb-crimson);
  color: var(--bb-crimson);
  background: rgba(96, 19, 32, 0.05);
}

.bb-wishlist-btn[aria-pressed="true"] svg {
  fill: var(--bb-crimson);
  stroke: var(--bb-crimson);
}

/* ── Single product rating count ── */

.bb-single-rating__count {
  font-family: var(--bb-font-sans);
  font-size: 12px;
  color: var(--bb-muted);
}

/* ── Book meta table ── (already in bajrabarahi.css; ensure colors here too) */

.bb-redesign .bb-book-meta-table {
  border-radius: var(--bb-radius);
  overflow: hidden;
  border: 1px solid var(--bb-border);
}

.bb-redesign .bb-book-meta-table table {
  width: 100%;
  border-collapse: collapse;
}

.bb-redesign .bb-book-meta-table th,
.bb-redesign .bb-book-meta-table td {
  padding: 10px 14px;
  font-size: 13px;
  text-align: left;
}

.bb-redesign .bb-book-meta-table tr:nth-child(even) th,
.bb-redesign .bb-book-meta-table tr:nth-child(even) td {
  background: var(--bb-ivory);
}

.bb-redesign .bb-book-meta-table tr:nth-child(odd) th,
.bb-redesign .bb-book-meta-table tr:nth-child(odd) td {
  background: #fff;
}

.bb-redesign .bb-book-meta-table th {
  font-family: var(--bb-font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bb-muted);
  width: 120px;
}

.bb-redesign .bb-book-meta-table td {
  font-family: var(--bb-font-sans);
  font-weight: 500;
  color: var(--bb-text);
  border-left: 2px solid var(--bb-crimson);
}

.bb-redesign .bb-book-meta-table a {
  color: var(--bb-crimson);
}

/* ── Social share ── */

.bb-single-share {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bb-single-share__label {
  font-family: var(--bb-font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bb-muted);
}

.bb-single-share__btn {
  padding: 6px 12px;
  border-radius: var(--bb-radius);
  border: 1.5px solid var(--bb-border);
  font-family: var(--bb-font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bb-muted);
  text-decoration: none;
  transition: all var(--bb-transition);
}

.bb-single-share__btn:hover {
  border-color: var(--bb-crimson);
  color: var(--bb-crimson);
}

/* ── Tabs ── */

.bb-single-tabs {
  margin-bottom: 64px;
  border-radius: var(--bb-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bb-border);
  background: #fff;
}

.bb-redesign .bb-single-tabs .woocommerce-tabs ul.tabs {
  background: var(--bb-ivory);
  border-bottom: 1px solid var(--bb-border);
  margin: 0;
  padding: 0 24px;
}

.bb-redesign .bb-single-tabs .woocommerce-tabs .panel {
  padding: 2rem 2rem;
}

/* ── Related products ── */

.bb-single-related h2 {
  font-family: var(--bb-font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bb-text);
  margin: 0 0 28px;
}

.bb-redesign .bb-single-related ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.bb-redesign .bb-single-related ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1023px) {
  .bb-single-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bb-single-gallery__main {
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .bb-shop-hero { padding: 40px 0 36px; }

  .bb-redesign .bb-shop-grid,
  .bb-redesign .bb-book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .bb-redesign .bb-single-related ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .bb-single-tabs .woocommerce-tabs .panel { padding: 1.5rem; }

  /* Chip strip already single-row globally — no override needed */
}

@media (max-width: 479px) {
  .bb-shop-hero__title { font-size: 1.75rem; }
}

/* ============================================================
   ZERO-RESULT EXPERIENCE & "REQUEST A BOOK"
   ============================================================ */

.bb-no-products-container {
  width: 100%;
  max-width: 820px;
  margin: 40px auto 60px;
  padding: 0 16px;
  box-sizing: border-box;
}

.bb-no-products-card {
  background: #ffffff;
  border: 1.5px solid var(--bb-border, #EADFD5);
  border-radius: 16px;
  padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 40px);
  text-align: center;
  box-shadow: 0 10px 40px rgba(43, 36, 37, 0.06);
}

.bb-no-products-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.bb-no-products-headline {
  font-family: var(--bb-font-serif, "Playfair Display", Georgia, serif) !important;
  font-size: clamp(22px, 3vw, 30px) !important;
  font-weight: 800 !important;
  color: var(--bb-crimson, #601320) !important;
  margin: 0 0 12px 0 !important;
  line-height: 1.25 !important;
}

.bb-no-products-lead {
  font-family: var(--bb-font-sans, "Inter", sans-serif) !important;
  font-size: 15.5px !important;
  color: var(--bb-muted, #6B5E5F) !important;
  line-height: 1.65 !important;
  max-width: 580px;
  margin: 0 auto 28px auto !important;
}

.bb-no-products-search {
  max-width: 520px;
  margin: 0 auto 32px auto;
}

.bb-no-products-search .search-form {
  display: flex;
  align-items: stretch;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(43, 36, 37, 0.08);
  border: 1.5px solid var(--bb-border, #EADFD5);
}

.bb-no-products-search input[type="search"],
.bb-no-products-search .search-field {
  flex: 1;
  padding: 13px 18px;
  border: none;
  font-family: var(--bb-font-sans, "Inter", sans-serif);
  font-size: 14px;
  color: var(--bb-dark, #2B2425);
  background: #ffffff;
  outline: none;
}

.bb-no-products-search button[type="submit"],
.bb-no-products-search .search-submit {
  background: var(--bb-crimson, #601320);
  color: #ffffff;
  border: none;
  padding: 0 24px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bb-no-products-search button[type="submit"]:hover,
.bb-no-products-search .search-submit:hover {
  background: #7a1627;
}

.bb-no-products-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 28px auto;
  max-width: 320px;
}

.bb-divider-line {
  flex: 1;
  height: 1px;
  background: var(--bb-border, #EADFD5);
}

.bb-divider-text {
  font-family: var(--bb-font-sans, "Inter", sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #a89a94;
}

/* Request a Book Section */
.bb-book-request-section {
  background: var(--bb-ivory, #FFF8F0);
  border: 1.5px dashed rgba(200, 150, 62, 0.45);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 36px) clamp(16px, 3vw, 28px);
  margin-bottom: 36px;
  text-align: center;
}

.bb-book-request-title {
  font-family: var(--bb-font-serif, "Playfair Display", Georgia, serif) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--bb-dark, #2B2425) !important;
  margin: 0 0 8px 0 !important;
}

.bb-book-request-subtitle {
  font-family: var(--bb-font-sans, "Inter", sans-serif) !important;
  font-size: 13.5px !important;
  color: var(--bb-muted, #6B5E5F) !important;
  line-height: 1.6 !important;
  max-width: 560px;
  margin: 0 auto 20px auto !important;
}

.bb-btn-request-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bb-crimson, #601320);
  color: #ffffff !important;
  border: 1px solid rgba(200, 150, 62, 0.4);
  padding: 13px 30px;
  border-radius: 8px;
  font-family: var(--bb-font-sans, "Inter", sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(96, 19, 32, 0.25);
  transition: all 0.25s ease;
}

.bb-btn-request-book:hover {
  background: #7a1627;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(96, 19, 32, 0.35);
  color: #ffffff !important;
}

.bb-btn-login-req {
  background: #2B2425;
  border-color: #4a3e40;
}

.bb-btn-login-req:hover {
  background: var(--bb-crimson, #601320);
}

.bb-login-required-notice {
  font-family: var(--bb-font-sans, "Inter", sans-serif) !important;
  font-size: 12px !important;
  color: #8c7d77 !important;
  margin: 12px auto 0 auto !important;
  max-width: 480px;
  line-height: 1.5 !important;
}

/* Collapsible Request Form */
.bb-book-request-form-wrap {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(200, 150, 62, 0.25);
  text-align: left;
}

.bb-request-form {
  max-width: 480px;
  margin: 0 auto;
}

.bb-form-group {
  margin-bottom: 16px;
}

.bb-form-group label {
  display: block;
  font-family: var(--bb-font-sans, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--bb-dark, #2B2425);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bb-form-group input,
.bb-form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 6px;
  border: 1.5px solid var(--bb-border, #EADFD5);
  background: #ffffff;
  font-family: var(--bb-font-sans, "Inter", sans-serif);
  font-size: 13.5px;
  color: var(--bb-dark, #2B2425);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}

.bb-form-group input:focus,
.bb-form-group textarea:focus {
  border-color: var(--bb-crimson, #601320);
}

.bb-form-submit-row {
  margin-top: 20px;
  text-align: center;
}

.bb-btn-submit-request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bb-crimson, #601320);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--bb-font-sans, "Inter", sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bb-btn-submit-request:hover {
  background: #7a1627;
  transform: translateY(-2px);
}

.bb-request-msg {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: var(--bb-font-sans, "Inter", sans-serif);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.bb-request-msg--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.bb-request-msg--error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* Suggested Categories Row */
.bb-suggested-explore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bb-suggested-label {
  font-family: var(--bb-font-sans, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--bb-muted, #6B5E5F);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bb-suggested-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.bb-suggested-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: #fdfaf6;
  border: 1px solid var(--bb-border, #EADFD5);
  border-radius: 20px;
  font-family: var(--bb-font-sans, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: var(--bb-dark, #2B2425);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.bb-suggested-chip:hover {
  background: var(--bb-crimson, #601320);
  border-color: var(--bb-crimson, #601320);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ============================================================
   USER PROFILE & MY ACCOUNT DASHBOARD REDESIGN
   ============================================================ */

.woocommerce-account .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 16px 60px;
}

/* Account Navigation Sidebar / Bar */
.woocommerce-MyAccount-navigation.bb-account-nav {
  margin-bottom: 32px;
}

.bb-account-nav__list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.bb-account-nav__link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  background: #ffffff !important;
  border: 1.5px solid var(--bb-border, #EADFD5) !important;
  border-radius: 30px !important;
  color: var(--bb-dark, #2B2425) !important;
  font-family: var(--bb-font-sans, "Inter", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

.bb-account-nav__link i {
  color: var(--bb-gold, #C8963E) !important;
  font-size: 14px !important;
}

.bb-account-nav__link:hover {
  border-color: var(--bb-crimson, #601320) !important;
  color: var(--bb-crimson, #601320) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(96, 19, 32, 0.08) !important;
}

.bb-account-nav__link.is-active,
.woocommerce-MyAccount-navigation li.is-active a {
  background: var(--bb-crimson, #601320) !important;
  border-color: var(--bb-crimson, #601320) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(96, 19, 32, 0.2) !important;
}

.bb-account-nav__link.is-active i,
.woocommerce-MyAccount-navigation li.is-active a i {
  color: var(--bb-gold-light, #E8B96A) !important;
}

/* Welcome Hero Card */
.bb-account-hero {
  background: linear-gradient(135deg, #1c060a 0%, #3d0c14 100%);
  border: 1px solid rgba(200, 150, 62, 0.35);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 36px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.bb-account-hero::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(200, 150, 62, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bb-account-hero__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.bb-account-hero__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.bb-account-avatar {
  width: 88px !important;
  height: 88px !important;
  border-radius: 50% !important;
  border: 3px solid #C8963E !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  object-fit: cover !important;
  display: block !important;
}

.bb-account-hero__badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: #C8963E;
  color: #1c060a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 2px solid #1c060a;
}

.bb-account-hero__info {
  flex: 1 1 280px;
}

.bb-account-hero__greeting {
  font-family: var(--bb-font-sans, "Inter", sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #E8B96A;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 4px 0;
}

.bb-account-hero__name {
  font-family: var(--bb-font-serif, "Playfair Display", Georgia, serif) !important;
  font-size: clamp(22px, 3.5vw, 30px) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.2 !important;
}

.bb-account-hero__tagline {
  font-family: var(--bb-font-sans, "Inter", sans-serif);
  font-size: 13px;
  color: rgba(255, 248, 240, 0.7);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bb-account-hero__dot {
  color: #C8963E;
}

.bb-account-hero__stats {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.bb-account-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 150, 62, 0.25);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  text-align: center;
}

.bb-account-stat__value {
  font-family: var(--bb-font-serif, "Playfair Display", Georgia, serif);
  font-size: 24px;
  font-weight: 800;
  color: #E8B96A;
  line-height: 1.1;
}

.bb-account-stat__label {
  font-family: var(--bb-font-sans, "Inter", sans-serif);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 248, 240, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Quick Action Cards Navigation Grid */
.bb-account-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.bb-account-card {
  background: #ffffff;
  border: 1.5px solid var(--bb-border, #EADFD5);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none !important;
  color: var(--bb-dark, #2B2425) !important;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(43, 36, 37, 0.04);
}

.bb-account-card:hover {
  border-color: var(--bb-gold, #C8963E);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(43, 36, 37, 0.1);
  color: var(--bb-dark, #2B2425) !important;
}

.bb-account-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: #fbf8f4;
  border: 1px solid var(--bb-border, #EADFD5);
  color: var(--bb-crimson, #601320);
  transition: all 0.25s ease;
}

.bb-account-card:hover .bb-account-card__icon {
  background: var(--bb-crimson, #601320);
  border-color: var(--bb-crimson, #601320);
  color: #ffffff;
}

.bb-account-card--featured {
  background: #fdfaf6;
  border-color: rgba(200, 150, 62, 0.4);
}

.bb-account-card--featured .bb-account-card__icon {
  background: #f6ebd9;
  border-color: #C8963E;
  color: #8B5E14;
}

.bb-account-card--logout:hover {
  border-color: #c62828;
}

.bb-account-card--logout:hover .bb-account-card__icon {
  background: #c62828;
  border-color: #c62828;
  color: #ffffff;
}

.bb-account-card__content {
  flex: 1;
}

.bb-account-card__title {
  font-family: var(--bb-font-sans, "Inter", sans-serif) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--bb-dark, #2B2425) !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.3 !important;
  transition: color 0.2s ease;
}

.bb-account-card:hover .bb-account-card__title {
  color: var(--bb-crimson, #601320) !important;
}

.bb-account-card__desc {
  font-family: var(--bb-font-sans, "Inter", sans-serif);
  font-size: 13px;
  color: var(--bb-muted, #6B5E5F);
  line-height: 1.5;
  margin: 0;
}

.bb-account-card__arrow {
  font-size: 18px;
  color: var(--bb-border-strong, #D4C5BA);
  transition: all 0.25s ease;
  line-height: 1;
  margin-top: 4px;
}

.bb-account-card:hover .bb-account-card__arrow {
  color: var(--bb-gold, #C8963E);
  transform: translateX(4px);
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .bb-account-hero {
    padding: 24px 20px;
  }
  .bb-account-hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .bb-account-hero__tagline {
    justify-content: center;
  }
  .bb-account-hero__stats {
    width: 100%;
    justify-content: center;
  }
  .bb-account-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bb-account-card {
    padding: 18px 16px;
  }
}

