/* Typography note: Playfair Display and Inter are loaded via Google Fonts in functions.php
   and referenced here via CSS custom properties:
   --bb-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
   --bb-font-sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
   These are injected into :root via bb_inject_design_tokens() in functions.php
*//*
 * BAJRABARAHI BOOKS - Design System for G5Plus Auteur Child
 * assets/css/bajrabarahi.css
 * Part 1: Global Reset, Typography, Utilities, Header
 */

/* === 1. GLOBAL RESET & BASE TYPOGRAPHY === */

html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Prevent media blowout on mobile and tablet viewports */
img, canvas, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

table, pre {
  max-width: 100% !important;
  overflow-x: auto !important;
}

.bb-redesign body, .bb-redesign {
  font-family: var(--bb-font-sans);
  color: var(--bb-text);
  background-color: var(--bb-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings — scoped to avoid breaking page builder typography */
.bb-redesign .entry-title,
.bb-redesign .product_title,
.bb-redesign .woocommerce-loop-product__title,
.bb-redesign .page-title,
.bb-redesign .bb-archive-title,
.bb-redesign article.post .entry-title,
.bb-redesign .single .entry-title,
.bb-redesign .woocommerce-loop-product__title {
  font-family: var(--bb-font-serif);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--bb-text);
}
/* Font sizes only on content headings (not page builder elements) */
.bb-redesign .entry-title { font-size: clamp(2rem, 4vw, 3.5rem); }
.bb-redesign .bb-archive-title { font-size: clamp(2.5rem, 6vw, 5rem); }

.bb-redesign p, .bb-redesign li, .bb-redesign td, .bb-redesign th {
  font-family: var(--bb-font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--bb-text);
}
.bb-redesign a { color: var(--bb-crimson); text-decoration: none; transition: color var(--bb-transition); }
.bb-redesign a:hover { color: var(--bb-accent); }
.bb-redesign ::selection { background: var(--bb-crimson); color: var(--bb-ivory); }

/* === 2. UTILITY CLASSES === */

.bb-redesign .bb-eyebrow, .bb-redesign .bb-product-eyebrow {
  display: block;
  font-family: var(--bb-font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bb-crimson);
  margin-bottom: 0.75rem;
}
.bb-redesign .bb-eyebrow--gold { color: var(--bb-gold); }
.bb-redesign .bb-label {
  font-family: var(--bb-font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bb-muted);
}
.bb-redesign .bb-container {
  max-width: var(--bb-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* === 3. HEADER & NAVIGATION === */

/* Header — Solid, aesthetic and sticky across Desktop, Tablet and Mobile */
#masthead,
.bb-redesign #masthead,
.bb-redesign .site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: #FFF8F0 !important;
  border-bottom: 1px solid var(--bb-border);
  box-shadow: 0 2px 10px rgba(43,36,37,0.05);
  transition: background 0.3s cubic-bezier(0.4,0,0.2,1),
              border-color 0.3s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
  font-family: var(--bb-font-sans);
}
.bb-redesign.bb-scrolled #masthead,
.bb-redesign.bb-scrolled .site-header {
  background: #FFF8F0 !important;
  border-bottom-color: var(--bb-border-strong);
  box-shadow: 0 4px 20px rgba(43,36,37,0.12) !important;
}

.bb-redesign .gf-header .nav-link,
.bb-redesign .gf-header .menu-item a,
.bb-redesign .main-navigation a,
.bb-redesign #site-navigation a {
  font-family: var(--bb-font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bb-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--bb-transition);
}
.bb-redesign .gf-header .menu-item a::after,
.bb-redesign .main-navigation a::after,
.bb-redesign #site-navigation a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--bb-crimson);
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.bb-redesign .gf-header .menu-item a:hover,
.bb-redesign .main-navigation a:hover,
.bb-redesign #site-navigation a:hover,
.bb-redesign .gf-header .menu-item.current-menu-item > a,
.bb-redesign .main-navigation .current-menu-item > a { color: var(--bb-crimson); }
.bb-redesign .gf-header .menu-item a:hover::after,
.bb-redesign .main-navigation a:hover::after,
.bb-redesign .current-menu-item > a::after { width: 100%; }

.bb-redesign .gf-header .sub-menu, .bb-redesign .main-navigation .sub-menu {
  background: var(--bb-ivory);
  border: 1px solid var(--bb-border);
  border-top: 2px solid var(--bb-crimson);
  border-radius: 0 0 var(--bb-radius-lg) var(--bb-radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  padding: 8px 0; min-width: 200px;
}
.bb-redesign .gf-header .sub-menu a, .bb-redesign .main-navigation .sub-menu a {
  font-size: 11px; letter-spacing: 0.12em; padding: 10px 20px; display: block;
}

.bb-redesign .gf-header .cart-contents .count,
.bb-redesign .gf-header .header-cart .cart-contents-count {
  background: var(--bb-crimson); color: var(--bb-ivory);
  font-family: var(--bb-font-sans); font-size: 9px; font-weight: 800;
  border-radius: 50%; min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}

/* === 4. LOGO TREATMENT === */

.bb-redesign .site-branding, .bb-redesign .gf-header .site-logo, .bb-redesign .header-logo {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: all 0.5s ease;
}
.bb-redesign .site-title, .bb-redesign .gf-header .site-title a {
  font-family: var(--bb-font-serif); font-weight: 900; font-size: 22px;
  letter-spacing: -0.04em; text-transform: uppercase;
  color: var(--bb-text); line-height: 1; text-decoration: none;
  transition: color var(--bb-transition);
}
.bb-redesign .site-title:hover, .bb-redesign .gf-header .site-title a:hover { color: var(--bb-crimson); }
.bb-redesign .site-branding::after, .bb-redesign .gf-header .site-logo::after {
  content: '\25C7'; display: block; font-size: 8px;
  color: var(--bb-muted); margin: 3px 0; letter-spacing: 4px;
}
.bb-redesign .site-description, .bb-redesign .gf-header .tagline {
  font-family: var(--bb-font-serif); font-size: 9px; letter-spacing: 0.4em;
  font-weight: 700; text-transform: uppercase; color: rgba(113,113,122,0.7); margin-top: 2px;
}

/* === 5. HOMEPAGE HERO === */

.bb-redesign .bb-hero, .bb-redesign .hero-section, .bb-redesign .home-hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; overflow: hidden; background: var(--bb-dark);
}
.bb-redesign .bb-hero__bg { position: absolute; inset: 0; z-index: 0; }
.bb-redesign .bb-hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(70%) brightness(0.35); transform: scale(1.04);
  transition: transform 8s ease-out;
}
.bb-redesign .bb-hero:hover .bb-hero__bg img { transform: scale(1); }
.bb-redesign .bb-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(9,9,11,0.9) 0%, rgba(9,9,11,0.4) 60%, transparent 100%);
  z-index: 1;
}
.bb-redesign .bb-hero__content {
  position: relative; z-index: 2; max-width: var(--bb-max-width);
  margin: 0 auto; padding: 0 24px; width: 100%;
}
.bb-redesign .bb-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid rgba(139,38,53,0.3);
  background: rgba(139,38,53,0.08); border-radius: 100px;
  font-family: var(--bb-font-sans); font-size: 10px; font-weight: 800;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--bb-crimson); margin-bottom: 2rem;
}
.bb-redesign .bb-hero__title {
  font-family: var(--bb-font-serif);
  font-size: clamp(3.5rem, 9vw, 8rem); font-weight: 900;
  color: #ffffff; line-height: 0.88; letter-spacing: -0.04em;
  margin-bottom: 2rem; max-width: 700px;
}
.bb-redesign .bb-hero__subtitle {
  font-family: var(--bb-font-sans); font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(253,252,247,0.65); line-height: 1.7; max-width: 480px;
  border-left: 2px solid rgba(255,255,255,0.15); padding-left: 1.5rem;
  margin-bottom: 3rem; font-style: italic;
}
.bb-redesign .bb-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* === 6. PRODUCT / BOOK CARDS (SHOP LOOP) === */

.bb-redesign ul.products li.product,
.woocommerce ul.products li.product,
article.product {
  background: transparent;
  border: none;
  padding: 0;
  overflow: visible;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
}

.bb-book-card,
article.bb-book-card,
.bb-redesign .bb-book-card {
  max-width: 220px !important;
  width: 100% !important;
  margin: 0 auto !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.bb-book-card .product-inner,
.bb-redesign .bb-book-card .product-inner,
.bb-redesign ul.products li.product .product-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: 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) {
  .bb-book-card,
  article.bb-book-card,
  .bb-redesign .bb-book-card,
  .woocommerce ul.products li.product {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .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;
  }
}

/* Product Info - full height flex column with centered layout */
.bb-book-card .product-info,
.bb-redesign .bb-book-card .product-info,
.bb-redesign ul.products li.product .product-info {
  padding: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  text-align: center !important;
}

/* Eyebrow / Category */
.bb-book-card .bb-product-eyebrow,
.bb-redesign .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-book-card .woocommerce-loop-product__title,
.bb-redesign .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-book-card .woocommerce-loop-product__title a,
.bb-redesign .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-book-card .woocommerce-loop-product__title a:hover,
.bb-redesign .bb-book-card .woocommerce-loop-product__title a:hover {
  color: var(--bb-gold, #C8963E) !important;
}

/* Author byline - uniform height */
.bb-book-card .bb-product-author,
.bb-redesign .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-book-card .bb-product-author a,
.bb-redesign .bb-product-author a {
  color: inherit !important;
  text-decoration: none !important;
}

.bb-book-card .bb-product-author a:hover,
.bb-redesign .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-family: var(--bb-font-sans, "Inter", sans-serif) !important;
}

.bb-rating-spacer {
  display: block !important;
  visibility: hidden !important;
  line-height: 1 !important;
}

/* Card footer container - pushes price and buttons to identical bottom baseline across row */
.bb-book-card .bb-card-footer,
.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;
}

/* Price */
.bb-book-card .price,
.bb-book-card .bb-card-footer .price,
.bb-redesign .bb-book-card .price,
.bb-redesign ul.products li.product .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-book-card .price del,
.bb-redesign ul.products li.product .price del {
  color: var(--bb-muted, #6B5E5F) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  margin-right: 6px !important;
}

.bb-book-card .price ins,
.bb-redesign ul.products li.product .price ins {
  color: var(--bb-gold, #C8963E) !important;
  text-decoration: none !important;
}

/* Add To Cart Container & Button */
.bb-book-card .bb-static-cart-btn,
.bb-redesign .bb-book-card .bb-static-cart-btn {
  margin: 0 !important;
  width: 100% !important;
  display: block !important;
}

.bb-book-card .bb-static-cart-btn .button,
.bb-redesign .bb-book-card .bb-static-cart-btn .button,
.bb-book-card .add_to_cart_button,
.bb-redesign .bb-book-card .add_to_cart_button,
.bb-redesign ul.products li.product .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-book-card .bb-static-cart-btn .button:hover,
.bb-redesign .bb-book-card .bb-static-cart-btn .button:hover,
.bb-book-card .add_to_cart_button:hover,
.bb-redesign .bb-book-card .add_to_cart_button:hover {
  background: #7a1a2c !important;
  color: #FFFFFF !important;
}

.bb-redesign .star-rating::before, .bb-redesign .star-rating span::before { color: var(--bb-gold); }

/* Sale badge */
.bb-redesign ul.products li.product .onsale, .bb-redesign .bb-book-card .onsale {
  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); padding: 4px 8px;
  top: 12px; right: 12px; left: auto; min-height: auto; line-height: 1;
}

/* === 7. PRODUCT GRID — Auteur uses Bootstrap col classes; we only style the list container === */

/* Remove WooCommerce default border/shadow from the list wrapper only */
.bb-redesign ul.products {
  list-style: none;
}
/* Ensure product items inside Auteur grid inherit properly */
.bb-redesign ul.products li.product {
  margin-bottom: 2rem;
}

/* === 8. SHOP / ARCHIVE PAGES === */

.bb-redesign .bb-archive-header {
  text-align: center; padding: 80px 24px 60px;
  max-width: 640px; margin: 0 auto;
}
.bb-redesign .bb-archive-title {
  font-family: var(--bb-font-serif); font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900; letter-spacing: -0.04em; color: var(--bb-text);
  line-height: 1; margin: 0.5rem 0 1rem;
}
.bb-redesign .bb-archive-subtitle {
  font-family: var(--bb-font-sans); font-size: 1rem; color: var(--bb-muted);
  line-height: 1.7; max-width: 400px; margin: 0 auto; font-style: italic;
}

.bb-redesign .woocommerce-ordering select {
  font-family: var(--bb-font-sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--bb-border-strong); border-radius: var(--bb-radius);
  padding: 8px 16px; background: var(--bb-ivory); color: var(--bb-text);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  transition: border-color var(--bb-transition);
}
.bb-redesign .woocommerce-ordering select:focus { border-color: var(--bb-crimson); outline: none; }
.bb-redesign .woocommerce-result-count {
  font-family: var(--bb-font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--bb-muted); text-transform: uppercase;
}
.bb-redesign .woocommerce-breadcrumb, .bb-redesign .gf-breadcrumbs {
  font-family: var(--bb-font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--bb-muted);
}
.bb-redesign .woocommerce-breadcrumb a:hover { color: var(--bb-crimson); }

.bb-redesign .sidebar ul li a, .bb-redesign .product-categories li a {
  display: inline-block; padding: 6px 14px;
  border: 1px solid var(--bb-border-strong); border-radius: 100px;
  font-family: var(--bb-font-sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--bb-muted);
  transition: all 0.3s ease; background: transparent;
}
.bb-redesign .sidebar ul li a:hover,
.bb-redesign .sidebar ul li.current-cat a {
  background: var(--bb-crimson); color: var(--bb-ivory); border-color: var(--bb-crimson);
}

/* === 9. SINGLE PRODUCT PAGE === */

.bb-redesign .single-product .product {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start; padding: 60px 0;
}
.bb-redesign .single-product .woocommerce-product-gallery {
  position: sticky; top: calc(var(--bb-header-h-sm) + 24px);
}
.bb-redesign .single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  border-radius: var(--bb-radius-lg); overflow: hidden;
  box-shadow: var(--bb-shadow-book); aspect-ratio: 3/4;
}
.bb-redesign .single-product .woocommerce-product-gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.bb-redesign .single-product .summary.entry-summary { padding: 0; }

.bb-redesign .single-product .posted_in a {
  font-family: var(--bb-font-sans); font-size: 10px; font-weight: 800;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--bb-crimson); text-decoration: none;
}
.bb-redesign .single-product .product_title {
  font-size: clamp(2rem,4vw,3rem); letter-spacing: -0.03em;
  margin: 0.75rem 0 0.5rem; line-height: 1.1;
}
.bb-redesign .single-product .price {
  font-family: var(--bb-font-serif); font-size: 2rem; font-weight: 800;
  color: var(--bb-text); letter-spacing: -0.04em; display: block; margin: 1rem 0;
}
.bb-redesign .single-product .price del { font-size: 1.2rem; color: var(--bb-muted); font-weight: 400; }
.bb-redesign .single-product .price ins { color: var(--bb-crimson); text-decoration: none; }
.bb-redesign .single-product .woocommerce-product-details__short-description {
  font-family: var(--bb-font-sans); font-size: 1rem; line-height: 1.8; color: var(--bb-muted);
  border-left: 2px solid var(--bb-border-strong); padding-left: 1.25rem;
  margin: 1.5rem 0; font-style: italic;
}

/* Book metadata table */
.bb-redesign .bb-book-meta-table {
  margin: 1.5rem 0; border-top: 1px solid var(--bb-border);
  border-bottom: 1px solid var(--bb-border); padding: 1rem 0;
}
.bb-redesign .bb-book-meta-table table { width: 100%; border-collapse: collapse; }
.bb-redesign .bb-book-meta-table th {
  font-family: var(--bb-font-sans); font-size: 10px; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--bb-muted);
  text-align: left; padding: 6px 0; width: 110px; vertical-align: top;
}
.bb-redesign .bb-book-meta-table td {
  font-family: var(--bb-font-sans); font-size: 13px; font-weight: 500; color: var(--bb-text);
  padding: 6px 0 6px 12px; border-left: 2px solid var(--bb-crimson);
}

.bb-redesign .single-product .cart { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }
.bb-redesign .single-product .cart .qty {
  width: 80px; padding: 12px 16px; border: 1px solid var(--bb-border-strong);
  border-radius: var(--bb-radius); font-family: var(--bb-font-sans);
  font-size: 14px; font-weight: 600; color: var(--bb-text); background: var(--bb-ivory);
}
.bb-redesign .single-product .cart .qty:focus { border-color: var(--bb-crimson); outline: none; }

.bb-redesign .author-page .author-header,
.bb-redesign .taxonomy-product_author .archive-header {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 3rem; align-items: center; padding: 60px 0 48px;
  border-bottom: 1px solid var(--bb-border); margin-bottom: 3rem;
}
.bb-redesign .author-page .author-avatar img {
  width: 200px; height: 200px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bb-border-strong);
}
.bb-redesign .author-page .author-name {
  font-family: var(--bb-font-serif); font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.5rem;
}
.bb-redesign .button,
.bb-redesign button[type="submit"],
.bb-redesign input[type="submit"],
.bb-redesign .woocommerce a.button,
.bb-redesign .woocommerce button.button,
.bb-redesign .woocommerce .checkout-button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 24px; background: var(--bb-crimson);
  color: var(--bb-ivory) !important; border: 1px solid var(--bb-crimson);
  border-radius: var(--bb-radius); font-family: var(--bb-font-sans);
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: all var(--bb-transition);
  line-height: 1; white-space: nowrap;
}

.bb-redesign .bb-buy-now-btn {
  display: block; width: 100%; padding: 14px 24px; background: transparent;
  color: var(--bb-text) !important; border: 1px solid var(--bb-border-strong);
  border-radius: var(--bb-radius); font-family: var(--bb-font-sans);
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  text-align: center; cursor: pointer; transition: all var(--bb-transition); text-decoration: none;
}
.bb-redesign .bb-buy-now-btn:hover { background: var(--bb-text); color: var(--bb-ivory) !important; border-color: var(--bb-text); }

.bb-redesign .woocommerce-tabs .tabs {
  border-bottom: 1px solid var(--bb-border); display: flex; gap: 0;
  list-style: none; padding: 0; margin: 0;
}
.bb-redesign .woocommerce-tabs .tabs li a {
  font-family: var(--bb-font-sans); font-size: 11px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--bb-muted);
  padding: 14px 24px; display: block; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 0.3s ease; text-decoration: none;
}
.bb-redesign .woocommerce-tabs .tabs li.active a,
.bb-redesign .woocommerce-tabs .tabs li a:hover { color: var(--bb-crimson); border-bottom-color: var(--bb-crimson); }
.bb-redesign .woocommerce-tabs .panel {
  padding: 2rem 0; font-family: var(--bb-font-sans); font-size: 1rem; line-height: 1.8; color: var(--bb-text);
}
.bb-redesign #reviews .star-rating::before { color: var(--bb-gold); }

/* === 10. BLOG / JOURNAL === */

.bb-redesign .blog .page-header, .bb-redesign .archive .page-header {
  text-align: center; padding: 60px 24px 48px;
  border-bottom: 1px solid var(--bb-border); margin-bottom: 3rem;
}
.bb-redesign article.post {
  border: 1px solid var(--bb-border); border-radius: var(--bb-radius-lg);
  overflow: hidden; background: var(--bb-ivory);
  transition: box-shadow var(--bb-transition), transform var(--bb-transition);
}
.bb-redesign article.post:hover { box-shadow: var(--bb-shadow-hover); transform: translateY(-4px); }
.bb-redesign article.post .post-thumbnail img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  filter: grayscale(15%); transition: filter 0.5s ease, transform 0.5s ease;
}
.bb-redesign article.post:hover .post-thumbnail img { filter: grayscale(0%); transform: scale(1.03); }
.bb-redesign article.post .entry-header { padding: 1.5rem 1.5rem 0; }
.bb-redesign article.post .entry-title { font-size: 1.4rem; margin: 0.5rem 0; }
.bb-redesign article.post .entry-title a { color: var(--bb-text); text-decoration: none; transition: color var(--bb-transition); }
.bb-redesign article.post .entry-title a:hover { color: var(--bb-crimson); }
.bb-redesign article.post .entry-meta {
  font-family: var(--bb-font-sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--bb-muted);
}
.bb-redesign article.post .cat-links a { color: var(--bb-crimson); }
.bb-redesign article.post .entry-content { padding: 0.75rem 1.5rem 1.5rem; font-size: 0.95rem; color: var(--bb-muted); line-height: 1.75; }
.bb-redesign article.post .entry-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--bb-border); }
.bb-redesign article.post .entry-footer a {
  font-family: var(--bb-font-sans); font-size: 10px; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--bb-crimson);
}
.bb-redesign .single .entry-header { text-align: center; padding: 60px 0 40px; max-width: 760px; margin: 0 auto; }
.bb-redesign .single .entry-content { max-width: 720px; margin: 0 auto; font-size: 1.125rem; line-height: 1.85; }
.bb-redesign .single .entry-content p { margin-bottom: 1.75rem; }
.bb-redesign .single .entry-content h2, .bb-redesign .single .entry-content h3 { margin-top: 2.5rem; margin-bottom: 1rem; }
.bb-redesign .single .entry-content blockquote {
  border-left: 3px solid var(--bb-crimson); padding: 1.5rem 2rem; margin: 2rem 0;
  background: var(--bb-beige); border-radius: 0 var(--bb-radius-lg) var(--bb-radius-lg) 0;
  font-family: var(--bb-font-serif); font-size: 1.25rem; font-style: italic;
  color: var(--bb-text); line-height: 1.6;
}

/* === 13. BUTTON HOVERS & SECONDARY === */
.bb-redesign .button:hover, .bb-redesign button[type="submit"]:hover,
.bb-redesign input[type="submit"]:hover, .bb-redesign .woocommerce a.button:hover,
.bb-redesign .woocommerce button.button:hover {
  background: var(--bb-dark); border-color: var(--bb-dark);
  color: var(--bb-ivory) !important; transform: translateY(-1px);
}
.bb-redesign .button.button-secondary, .bb-redesign .woocommerce a.button.alt {
  background: transparent; color: var(--bb-text) !important; border: 1px solid var(--bb-border-strong);
}
.bb-redesign .button.button-secondary:hover {
  background: var(--bb-crimson); border-color: var(--bb-crimson); color: var(--bb-ivory) !important;
}
.bb-redesign .single-product .single_add_to_cart_button {
  width: 100%; padding: 16px 24px; font-size: 11px; letter-spacing: 0.25em;
}

/* === 14. FORMS & INPUTS === */

.bb-redesign input[type="text"],
.bb-redesign input[type="email"],
.bb-redesign input[type="password"],
.bb-redesign input[type="tel"],
.bb-redesign input[type="number"],
.bb-redesign textarea,
.bb-redesign select {
  font-family: var(--bb-font-sans); font-size: 14px; color: var(--bb-text);
  background: var(--bb-ivory); border: 1px solid var(--bb-border-strong);
  border-radius: var(--bb-radius); padding: 12px 16px; width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.bb-redesign input[type="text"]:focus,
.bb-redesign input[type="email"]:focus,
.bb-redesign input[type="password"]:focus,
.bb-redesign textarea:focus,
.bb-redesign select:focus {
  border-color: var(--bb-crimson); box-shadow: 0 0 0 3px rgba(139,38,53,0.08); outline: none;
}
.bb-redesign label {
  font-family: var(--bb-font-sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--bb-text);
  display: block; margin-bottom: 6px;
}

/* === 15. WOOCOMMERCE GENERAL === */

.bb-redesign .woocommerce-message, .bb-redesign .woocommerce-info {
  border-top-color: var(--bb-crimson); background: var(--bb-beige); font-family: var(--bb-font-sans);
}
.bb-redesign .woocommerce-message::before { color: var(--bb-crimson); }

.bb-redesign .woocommerce-pagination .page-numbers {
  display: flex; align-items: center; gap: 0.5rem;
  justify-content: center; margin-top: 3rem; list-style: none; padding: 0;
}
.bb-redesign .woocommerce-pagination .page-numbers li a,
.bb-redesign .woocommerce-pagination .page-numbers li span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--bb-border-strong);
  border-radius: var(--bb-radius); font-family: var(--bb-font-sans);
  font-size: 12px; font-weight: 700; color: var(--bb-text); text-decoration: none; transition: all 0.3s ease;
}
.bb-redesign .woocommerce-pagination .page-numbers li a:hover,
.bb-redesign .woocommerce-pagination .page-numbers li span.current {
  background: var(--bb-crimson); border-color: var(--bb-crimson); color: var(--bb-ivory);
}

.bb-redesign .woocommerce-cart table.cart th {
  font-family: var(--bb-font-sans); font-size: 10px; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--bb-muted);
  border-bottom: 1px solid var(--bb-border); padding: 12px;
}
.bb-redesign .woocommerce-cart table.cart td.product-name a {
  font-family: var(--bb-font-serif); font-size: 1.1rem; font-weight: 700; color: var(--bb-text);
}
.bb-redesign .woocommerce-checkout .woocommerce-billing-fields h3,
.bb-redesign .woocommerce-checkout .woocommerce-shipping-fields h3 {
  font-family: var(--bb-font-sans); font-size: 11px; font-weight: 800;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--bb-crimson);
  border-bottom: 1px solid var(--bb-border); padding-bottom: 12px; margin-bottom: 1.5rem;
}

/* === 16. SIDEBAR & WIDGETS === */

.bb-redesign .widget { margin-bottom: 2.5rem; }
.bb-redesign .widget-title {
  font-family: var(--bb-font-sans); font-size: 10px; font-weight: 800;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--bb-text);
  padding-bottom: 10px; border-bottom: 1px solid var(--bb-border-strong); margin-bottom: 1.25rem;
}
.bb-redesign .widget ul { list-style: none; padding: 0; margin: 0; }
.bb-redesign .widget ul li { padding: 8px 0; border-bottom: 1px solid var(--bb-border); font-size: 13px; }
.bb-redesign .widget ul li a { color: var(--bb-muted); text-decoration: none; transition: color var(--bb-transition); }
.bb-redesign .widget ul li a:hover { color: var(--bb-crimson); }
.bb-redesign .tagcloud a {
  display: inline-block; padding: 4px 12px; border: 1px solid var(--bb-border-strong);
  border-radius: 100px; font-family: var(--bb-font-sans); font-size: 11px !important;
  font-weight: 600; color: var(--bb-muted); text-decoration: none; margin: 3px; transition: all 0.3s ease;
}
.bb-redesign .tagcloud a:hover { background: var(--bb-crimson); border-color: var(--bb-crimson); color: var(--bb-ivory); }

/* === 17. DARK MODE === */

.bb-redesign.bb-dark, .bb-redesign[data-bb-theme="dark"] { background-color: #161112 !important; color: #FFF8F0 !important; }
.bb-redesign.bb-dark .gf-header, .bb-redesign.bb-dark .site-header, .bb-redesign.bb-dark #masthead {
  background: #191213 !important; border-bottom-color: rgba(255,255,255,0.08) !important;
}
.bb-redesign.bb-dark.bb-scrolled .gf-header { background: #140E0F !important; }

/* Bajrabarahi Brand Logo in Dark Mode - Luminous Ivory & Warm Gold */
.bb-redesign.bb-dark .bb-brand-wordmark__main,
.bb-redesign[data-bb-theme="dark"] .bb-brand-wordmark__main {
  color: #FFF8F0 !important;
  text-shadow: 0 1px 10px rgba(232, 185, 106, 0.28) !important;
}
.bb-redesign.bb-dark .bb-brand-wordmark__text,
.bb-redesign[data-bb-theme="dark"] .bb-brand-wordmark__text {
  color: #E8B96A !important;
}
.bb-redesign.bb-dark .bb-brand-wordmark__rule,
.bb-redesign[data-bb-theme="dark"] .bb-brand-wordmark__rule {
  background-color: #E8B96A !important;
}

/* Bookstore Nav Sub-Bar in Dark Mode */
.bb-redesign.bb-dark .bb-bookstore-menu-strip,
.bb-redesign[data-bb-theme="dark"] .bb-bookstore-menu-strip {
  background: #1F1718 !important;
  border-top-color: #2D2224 !important;
  border-bottom-color: #2D2224 !important;
}
.bb-redesign.bb-dark .bb-shelf-link,
.bb-redesign[data-bb-theme="dark"] .bb-shelf-link {
  color: #DCD0C5 !important;
}
.bb-redesign.bb-dark .bb-shelf-link:hover,
.bb-redesign[data-bb-theme="dark"] .bb-shelf-link:hover {
  color: #FFF8F0 !important;
  background: rgba(232, 185, 106, 0.12) !important;
}
.bb-redesign.bb-dark .bb-shelf-link.is-active,
.bb-redesign[data-bb-theme="dark"] .bb-shelf-link.is-active {
  color: #FFF8F0 !important;
  background: rgba(96, 19, 32, 0.45) !important;
  box-shadow: inset 0 -2px 0 #E8B96A !important;
}
.bb-redesign.bb-dark .bb-nav-divider,
.bb-redesign[data-bb-theme="dark"] .bb-nav-divider {
  background: #3B2E30 !important;
}

/* Shop Hero & Background in Dark Mode */
.bb-redesign.bb-dark #bb-shop-page,
.bb-redesign[data-bb-theme="dark"] #bb-shop-page {
  background: #161112 !important;
}
.bb-redesign.bb-dark .bb-shop-hero,
.bb-redesign[data-bb-theme="dark"] .bb-shop-hero {
  background: linear-gradient(180deg, #1E1617 0%, #171112 100%) !important;
  border-bottom-color: #2D2224 !important;
}
.bb-redesign.bb-dark .bb-shop-hero__title,
.bb-redesign[data-bb-theme="dark"] .bb-shop-hero__title {
  color: #FFF8F0 !important;
  text-shadow: none !important;
}
.bb-redesign.bb-dark .bb-shop-hero__subtitle,
.bb-redesign[data-bb-theme="dark"] .bb-shop-hero__subtitle {
  color: #C5B8AC !important;
  text-shadow: none !important;
}
.bb-redesign.bb-dark .bb-shop-sidebar,
.bb-redesign[data-bb-theme="dark"] .bb-shop-sidebar {
  background: #1C1516 !important;
  border-color: #2D2224 !important;
}
.bb-redesign.bb-dark .bb-shop-sidebar a,
.bb-redesign[data-bb-theme="dark"] .bb-shop-sidebar a {
  color: #E2D5CA !important;
  border-bottom-color: #2D2224 !important;
}

.bb-redesign.bb-dark .gf-header .menu-item a, .bb-redesign.bb-dark .main-navigation a { color: rgba(253,252,247,0.85); }
.bb-redesign.bb-dark .gf-header .menu-item a:hover { color: #E8B96A; }
.bb-redesign.bb-dark .site-title, .bb-redesign.bb-dark .gf-header .site-title a { color: var(--bb-ivory); }
.bb-redesign.bb-dark article.post { background: #201819; border-color: rgba(255,255,255,0.08); }
.bb-redesign.bb-dark .single-product .price, .bb-redesign.bb-dark .bb-book-card .price { color: var(--bb-gold); }
.bb-dark-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--bb-border-strong);
  border-radius: var(--bb-radius-lg); background: transparent; cursor: pointer;
  color: var(--bb-muted); transition: all 0.3s ease; font-size: 15px;
}
.bb-dark-toggle:hover { border-color: var(--bb-crimson); color: var(--bb-crimson); }
.bb-redesign.bb-dark .bb-dark-toggle,
.bb-redesign[data-bb-theme="dark"] .bb-dark-toggle {
  color: #E8B96A !important;
  border-color: #3C2E30 !important;
}

/* === 18. ANIMATIONS === */

@keyframes bb-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.bb-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

.bb-reveal:nth-child(2) { transition-delay: 0.1s; }
.bb-reveal:nth-child(3) { transition-delay: 0.2s; }
.bb-reveal:nth-child(4) { transition-delay: 0.3s; }
.bb-redesign ::-webkit-scrollbar { width: 5px; }
.bb-redesign ::-webkit-scrollbar-track { background: var(--bb-beige); }
.bb-redesign ::-webkit-scrollbar-thumb { background: rgba(139,38,53,0.3); border-radius: 3px; }
.bb-redesign ::-webkit-scrollbar-thumb:hover { background: var(--bb-crimson); }

/* === 19. RESPONSIVE BREAKPOINTS === */

/* === Responsive — product grid breakpoints removed (Auteur Bootstrap handles it) === */

@media (max-width: 1279px) {
  .bb-redesign .footer-widgets { grid-template-columns: 1fr 1fr 1fr; }
  .bb-redesign .single-product .product { gap: 2.5rem; }
}
@media (max-width: 1023px) {
  .bb-redesign .single-product .product { grid-template-columns: 1fr; gap: 2rem; }
  .bb-redesign .single-product .woocommerce-product-gallery { position: relative; top: auto; max-width: 460px; margin: 0 auto; }
  .bb-redesign .footer-widgets { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .bb-redesign .author-page .author-header { grid-template-columns: 140px 1fr; gap: 1.5rem; }
}
@media (max-width: 767px) {
  .bb-redesign .bb-archive-header { padding: 48px 16px 36px; }
  .bb-redesign .bb-archive-title { font-size: 2.5rem; }
  .bb-redesign .footer-widgets { grid-template-columns: 1fr; gap: 2rem; }
  .bb-redesign .site-footer .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; }
  .bb-redesign .author-page .author-header { grid-template-columns: 1fr; text-align: center; }
  .bb-redesign .bb-hero__title { font-size: clamp(2.5rem, 10vw, 4rem); }
}
@media (max-width: 479px) {
  .bb-redesign .bb-archive-title { font-size: 2rem; }
  .bb-redesign .bb-book-meta-table th { width: 80px; font-size: 9px; }
  .bb-redesign .bb-hero__subtitle { display: none; }
}

/* === END OF BAJRABARAHI DESIGN SYSTEM === */





/* Hide default Auteur page title banner on WooCommerce archives to eliminate blank space */
.bb-redesign.post-type-archive-product .gf-page-title,
.bb-redesign.tax-product_cat .gf-page-title,
.bb-redesign.tax-product_tag .gf-page-title,
.bb-redesign.woocommerce-shop .gf-page-title,
.post-type-archive-product .gf-page-title,
.tax-product_cat .gf-page-title,
.tax-product_tag .gf-page-title,
.woocommerce-shop .gf-page-title,
.bb-redesign .page-title-wrap,
.bb-redesign.post-type-archive-product .page-title-wrap,
.bb-redesign.tax-product_cat .page-title-wrap,
.bb-redesign.tax-product_tag .page-title-wrap {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Tighten primary content top spacing on Shop & Category pages */
.bb-redesign.post-type-archive-product #primary-content,
.bb-redesign.tax-product_cat #primary-content,
.bb-redesign.woocommerce-shop #primary-content,
.post-type-archive-product #primary-content,
.tax-product_cat #primary-content,
.woocommerce-shop #primary-content {
  padding-top: 24px !important;
}



/* ==========================================================================
   AUTEUR NATIVE HEADER CUSTOMIZATION (BAJRABARAHI DESIGN)
   ========================================================================== */
.site-header .header-wrap {
    background-color: #FFF8F0 !important;
    border-bottom: 1px solid #EADFD5 !important;
}
.site-header .main-menu > li > a {
    color: #2B2425 !important;
    font-family: var(--bb-font-sans, "Inter", sans-serif) !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}
.site-header .main-menu > li:hover > a,
.site-header .main-menu > li.current-menu-item > a {
    color: var(--bb-crimson, #601320) !important;
}
.bb-dark .site-header .main-menu > li > a,
[data-bb-theme="dark"] .site-header .main-menu > li > a {
    color: #EADFD5 !important;
}
.bb-dark .site-header .main-menu > li:hover > a,
[data-bb-theme="dark"] .site-header .main-menu > li:hover > a {
    color: var(--bb-gold, #C8963E) !important;
}
.site-header .site-logo img {
    /* Adjust logo if necessary */
    max-height: 50px !important;
}
.site-header .header-customize-item {
    color: #2B2425 !important;
}
.site-header .header-customize-item:hover {
    color: var(--bb-crimson, #601320) !important;
}
.bb-dark .site-header .header-customize-item {
    color: #EADFD5 !important;
}
.site-header .header-customize-item .mini-cart-icon .cart-count {
    background-color: var(--bb-crimson, #601320) !important;
    color: #fff !important;
}

/* Announcement Bar Hooked into g5plus_before_page_wrapper_content */
.bb-announcement-bar {
    background-color: #F5F5DC !important;
    color: #2B2425 !important;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #E6DFD5 !important;
    position: relative;
    z-index: 200;
}
.bb-announcement-bar p,
.bb-announcement-bar .bb-announcement-bar__text {
    color: #2B2425 !important;
    margin: 0;
    font-weight: 700;
    line-height: 1.5;
}

/* Book Card Information Always Visible */
article.bb-book-card .product-info {
    opacity: 1 !important;
    visibility: visible !important;
}



/* Static Add to Cart Button for Book Card */
.bb-redesign .bb-book-card .bb-static-cart-btn .button {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--bb-crimson, #601320);
    color: #FFFBF2 !important;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    transition: background 0.3s ease;
}
.bb-redesign .bb-book-card .bb-static-cart-btn .button:hover {
    background-color: var(--bb-gold, #C8963E);
}

/* WooCommerce Legacy Product Categories Suppression */
.bb-redesign .sidebar .widget_product_categories,
.bb-redesign .sidebar .product-categories:not(.bb-category-tree-list),
.sidebar .widget_product_categories,
.sidebar .product-categories:not(.bb-category-tree-list),
.primary-sidebar .widget_product_categories,
.primary-sidebar .product-categories:not(.bb-category-tree-list) {
    display: none !important;
}

/* Figma Single Product Design */
.bb-figma-product-modal {
    max-width: 1200px;
    margin: 40px auto;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 0;
    overflow: hidden;
}
.bb-figma-product-container {
    display: flex;
    flex-wrap: wrap;
}
.bb-figma-left {
    flex: 0 0 35%;
    padding: 60px 40px;
    background-color: #FDFCF7;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #EFEFEF;
}
.bb-figma-cover-wrap {
    width: 100%;
    max-width: 280px;
    margin-bottom: 30px;
}
.bb-figma-cover-wrap img {
    width: 100%;
    height: auto;
    border-radius: 8px 12px 12px 8px;
    box-shadow: -5px 0 10px rgba(0,0,0,0.1), 10px 15px 30px rgba(0,0,0,0.25);
}
.bb-figma-left-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 240px;
}
.bb-figma-left-actions button {
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}
.bb-figma-btn-gold {
    background: #F4E8D1;
    color: #A67323;
}
.bb-figma-btn-red {
    background: #F4DADA;
    color: #601320;
}

.bb-figma-right {
    flex: 0 0 65%;
    padding: 50px 60px;
}
.bb-figma-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.bb-figma-topbar-left {
    display: flex;
    gap: 15px;
    align-items: center;
}
.bb-figma-pill-red {
    background: #F4DADA;
    color: #601320;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 1px;
}
.bb-figma-pill-rating {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}
.bb-figma-topbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
}
.bb-figma-btn-outline-gold {
    border: 1px solid #E8D3AB;
    background: transparent;
    color: #A67323;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 15px;
    cursor: pointer;
}
.bb-figma-btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F5F5F5;
    border: none;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.bb-figma-title {
    font-family: var(--bb-font-serif, "Playfair Display", serif);
    font-size: 32px;
    line-height: 1.2;
    color: #1A1A1A;
    margin: 0 0 10px;
    font-weight: 700;
}
.bb-figma-author {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}
.bb-figma-author span {
    color: #C8963E;
    font-weight: 700;
    font-style: normal;
}

.bb-figma-section {
    margin-bottom: 35px;
}
.bb-figma-section-title {
    font-size: 10px;
    font-weight: 800;
    color: #A67323;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.bb-figma-section-title i {
    margin-right: 5px;
}
.bb-figma-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.bb-figma-grid {
    border-top: 1px solid #EFEFEF;
}
.bb-figma-grid-row {
    display: flex;
    border-bottom: 1px solid #EFEFEF;
    padding: 15px 0;
}
.bb-figma-grid-col {
    flex: 1;
    display: flex;
    justify-content: space-between;
    padding-right: 30px;
    align-items: center;
}
.bb-figma-label {
    font-size: 9px;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bb-figma-value {
    font-size: 12px;
    font-weight: 600;
    color: #111;
    text-align: right;
}

@media (max-width: 900px) {
    .bb-figma-left, .bb-figma-right { flex: 0 0 100%; }
    .bb-figma-grid-row { flex-direction: column; gap: 10px; }
    .bb-figma-grid-col { padding-right: 0; justify-content: space-between; }
}

/* Force 2 columns on mobile for Shop page */
@media (max-width: 767px) {
    .bb-redesign .woocommerce ul.products,
    .bb-redesign ul.products {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -5px !important;
        margin-right: -5px !important;
    }
    .bb-redesign .woocommerce ul.products li.product,
    .bb-redesign ul.products li.product {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-bottom: 20px !important;
        clear: none !important;
    }
    
    /* Ensure the book card scales down well */
    .bb-redesign .bb-book-card .product-info {
        padding: 10px 5px !important;
    }
    .bb-redesign .bb-book-card .woocommerce-loop-product__title a {
        font-size: 13px !important;
    }
    .bb-redesign .bb-book-card .price {
        font-size: 13px !important;
    }
    .bb-redesign .bb-static-cart-btn .button {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
}


/* === NEW RESPONSIVE GRID ENFORCEMENT === */
/* Desktop (1025px and up): 4 columns */
@media (min-width: 1025px) {
    .bb-redesign .woocommerce ul.products, .bb-redesign ul.products {
        display: flex !important; flex-wrap: wrap !important; margin-left: -15px !important; margin-right: -15px !important;
    }
    .bb-redesign .woocommerce ul.products li.product, .bb-redesign ul.products li.product {
        width: 25% !important; flex: 0 0 25% !important; max-width: 25% !important;
        padding-left: 15px !important; padding-right: 15px !important; clear: none !important;
    }
}
/* Tablet (768px - 1024px): 3 columns */
@media (min-width: 768px) and (max-width: 1024px) {
    .bb-redesign .woocommerce ul.products, .bb-redesign ul.products {
        display: flex !important; flex-wrap: wrap !important; margin-left: -10px !important; margin-right: -10px !important;
    }
    .bb-redesign .woocommerce ul.products li.product, .bb-redesign ul.products li.product {
        width: 33.333% !important; flex: 0 0 33.333% !important; max-width: 33.333% !important;
        padding-left: 10px !important; padding-right: 10px !important; clear: none !important;
    }
}

/* Hardcoded Category Sidebar */
.bb-custom-sidebar-widget {
    margin-bottom: 40px;
}
.bb-sidebar-title {
    font-size: 13px;
    font-weight: 800;
    color: #8C99A8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.bb-accordion-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bb-accordion-menu > li {
    margin-bottom: 10px;
}
.bb-accordion-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    color: #6C7A89;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.bb-accordion-menu > li.bb-expanded > a {
    background-color: #F8F4F0;
    color: var(--bb-crimson, #601320);
}
.bb-accordion-menu > li > a:hover {
    background-color: #F0EAE3;
}
.bb-accordion-menu > li > a .fa {
    transition: transform 0.3s ease;
}
.bb-accordion-menu > li.bb-expanded > a .fa {
    transform: rotate(180deg);
}

.bb-accordion-menu .children {
    list-style: none;
    padding: 15px 0 10px 30px;
    margin: 0;
}
.bb-accordion-menu .children li {
    margin-bottom: 12px;
}
.bb-accordion-menu .children li a {
    color: #8C99A8;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}
.bb-accordion-menu .children li a:hover {
    color: var(--bb-crimson, #601320);
}

/* === HOMEPAGE CATEGORIES === */
.bb-hp-categories {
    padding: 60px 0;
    background-color: var(--bb-bg);
}
.bb-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.bb-category-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}
.bb-category-chip:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.06);
    border-color: var(--bb-crimson);
}
.bb-category-chip__icon {
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    color: var(--bb-gold);
}
.bb-category-chip__icon svg {
    width: 100%;
    height: 100%;
}
.bb-category-chip__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--bb-text);
    margin-bottom: 8px;
}
.bb-category-chip__count {
    font-size: 12px;
    color: #8C99A8;
    background: #F8F4F0;
    padding: 4px 10px;
    border-radius: 20px;
}

/* === HOMEPAGE BOOK GRIDS === */
.bb-book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}
@media (min-width: 1400px) {
    .bb-book-grid { grid-template-columns: repeat(5, 1fr); gap: 28px; }
}
@media (min-width: 1680px) {
    .bb-book-grid { grid-template-columns: repeat(6, 1fr); gap: 30px; }
}
@media (max-width: 1024px) {
    .bb-book-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (max-width: 767px) and (min-width: 540px) {
    .bb-book-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
}
@media (max-width: 539px) {
    .bb-book-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; }
}

.bb-hp-section {
    padding: 80px 0;
}
.bb-hp-section:nth-child(even) {
    background-color: #FDFCFB;
}
.bb-section-header {
    text-align: center;
    margin-bottom: 40px;
}
.bb-eyebrow {
    font-size: 12px;
    font-weight: 800;
    color: var(--bb-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.bb-section-title {
    font-size: 36px;
    font-family: var(--bb-serif);
    color: var(--bb-crimson);
    margin: 0 0 15px;
}
.bb-section-subtitle {
    font-size: 16px;
    color: #6C7A89;
    max-width: 600px;
    margin: 0 auto;
}


/* === ENHANCED MOBILE HEADER & CART === */
@media (max-width: 1024px) {
    /* Make the mobile header strictly sticky */
    header.main-header,
    .mobile-header-wrapper,
    .mobile-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 99999 !important;
        background-color: #fff !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    }
    
    /* Force Cart Icon to be visible in mobile header */
    .mobile-header .mini-cart-wrapper,
    .mobile-header .cart-contents,
    .mobile-header .header-customize-item {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Ensure the hamburger menu and logo align perfectly with cart */
    .mobile-header .header-customize-nav {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
    }
    
    /* ABSOLUTE FORCE: 2 COLUMNS ON MOBILE SHOP GRID */
    body.bb-redesign .woocommerce ul.products, 
    body.bb-redesign ul.products,
    .bb-redesign .content-area ul.products {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    body.bb-redesign .woocommerce ul.products li.product, 
    body.bb-redesign ul.products li.product,
    .bb-redesign .content-area ul.products li.product {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Note: Master Footer System is located at the comprehensive footer section below */


/* ================================================================
   MOBILE SHOP GRID — ABSOLUTE FORCE 2 COLUMNS
   Must beat Auteur's inline styles and column classes
   ================================================================ */
@media (max-width: 767px) {
    body ul.products {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -8px !important;
        margin-right: -8px !important;
    }
    body ul.products li.product,
    body ul.products li.first,
    body ul.products li.last {
        width: calc(50% - 16px) !important;
        flex: 0 0 calc(50% - 16px) !important;
        max-width: calc(50% - 16px) !important;
        margin-left: 8px !important;
        margin-right: 8px !important;
        clear: none !important;
        float: none !important;
    }
    /* Smaller text and buttons in compact 2-col */
    body ul.products li.product .bb-book-card .woocommerce-loop-product__title a { font-size: 12px !important; }
    body ul.products li.product .bb-book-card .price { font-size: 12px !important; }
    body ul.products li.product .bb-static-cart-btn .button { font-size: 11px !important; padding: 8px !important; }
}

/* ================================================================
   FIX 4: STICKY MOBILE HEADER + MINI CART VISIBLE
   ================================================================ */
@media screen and (max-width: 1024px) {
    /* Transparent override — our bb-transparent-mobile-header block (below)
       takes precedence, but we neutralise the white bg here too */
    .auteur-mobile-header,
    .mobile-header-wrapper,
    #gf-header,
    header#gf-header {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }
    #masthead,
    #masthead.site-header {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        background-color: #FFF8F0 !important;
        box-shadow: 0 2px 10px rgba(43, 36, 37, 0.06) !important;
    }
    body.bb-dark #masthead,
    body[data-bb-theme="dark"] #masthead {
        background-color: #181213 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45) !important;
    }
    /* Force mini cart visible */
    .site-header-cart,
    .header-cart-icon,
    .mini-cart-link,
    .site-header .mini-cart-wrapper,
    .site-header .header-customize-item.header-cart,
    #gf-header .header-cart {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ================================================================
   FIX 5: 2-COLUMN MOBILE PRODUCT GRID — ultra-high specificity
   Uses CSS grid so float/clear cannot interfere
   ================================================================ */
@media screen and (max-width: 768px) {
    body.woocommerce ul.products,
    body.woocommerce-page ul.products,
    body.bb-redesign ul.products,
    .woocommerce ul.products.columns-1,
    .woocommerce ul.products.columns-2,
    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-4,
    .content-area ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-gap: 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    body.woocommerce ul.products li.product,
    body.woocommerce-page ul.products li.product,
    body.bb-redesign ul.products li.product,
    .content-area ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: none !important;
        margin: 0 0 12px 0 !important;
    }
    /* Compact book card text */
    ul.products li.product .bb-book-card .woocommerce-loop-product__title a { font-size: 12px !important; line-height: 1.3 !important; }
    ul.products li.product .bb-book-card .price { font-size: 12px !important; }
    ul.products li.product .bb-static-cart-btn .button { font-size: 11px !important; padding: 8px 6px !important; }
}

/* ================================================================
   FINAL COMPREHENSIVE FIXES: SLIM HEADER, COMPACT FOOTER, 2-COL MOBILE
   ================================================================ */

/* --- 1. SLIM & FLOATING / STICKY HEADER (DESKTOP & MOBILE) --- */
header.main-header,
.main-header,
.header-wrap,
#gf-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
}

/* Mobile header: transparent — overrides inherited desktop rule */
@media screen and (max-width: 1024px) {
    header.mobile-header,
    .mobile-header,
    .mobile-header-wrapper {
        background-color: transparent !important;
        box-shadow: none !important;
    }
}

/* Compact header padding */
.main-header .header-wrap,
.main-header .header-inner,
.mobile-header .mobile-header-wrap,
.mobile-header .mobile-header-inner {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    min-height: auto !important;
}

.main-header .header-logo img,
.mobile-header .header-logo img,
.header-logo img {
    max-height: 44px !important;
    width: auto !important;
}

.main-header .primary-menu ul.main-menu > li > a {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    font-size: 13px !important;
}

/* Ensure Shopping Cart & Mini Cart Icon Always Visible & Beautiful */
.header-customize-item.item-shopping-cart,
.header-customize .item-shopping-cart,
.mobile-header .header-customize .item-shopping-cart,
.header-customize-item,
.mini-cart-icon,
.cart-contents,
.header-cart {
    display: inline-flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.header-customize-item.item-shopping-cart a,
.mini-cart-icon a {
    color: var(--bb-crimson, #601320) !important;
    font-size: 18px !important;
}

/* Master footer styling is consolidated in the Luxury Bookstore Footer section below */


/* --- 3. BULLETPROOF 2-COLUMN PRODUCT GRID ON MOBILE --- */
@media screen and (max-width: 768px) {
    /* Container flex-wrap */
    .gf-shop-wrap .row,
    [data-items-container="true"],
    .woocommerce .products,
    .woocommerce-page .products,
    .products.row,
    ul.products,
    div.products {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -5px !important;
        margin-right: -5px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Force ALL product items to 50% width on mobile viewports */
    article.product-item-wrap,
    article.product-item,
    article.product,
    article.product-grid,
    .product-item-wrap,
    [data-items-container] > article,
    [data-items-container] > div,
    .gf-shop-wrap article,
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    .content-area ul.products li.product,
    .woocommerce ul.products li,
    .woocommerce-page ul.products li,
    div.products > article {
        width: 50% !important;
        max-width: 50% !important;
        min-width: 50% !important;
        flex: 0 0 50% !important;
        float: left !important;
        clear: none !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 16px !important;
        box-sizing: border-box !important;
    }

    /* Compact inner card spacing */
    article.product-item-wrap .product-item-inner,
    article.product .bb-book-card,
    .bb-book-card {
        width: 100% !important;
        margin: 0 auto !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .bb-book-card .product-inner {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        width: 100% !important;
        flex: 1 1 auto !important;
    }

    .bb-book-card .product-thumb,
    .book-cover-wrapper {
        width: 140px !important;
        max-width: 100% !important;
        height: 204px !important;
        max-height: 204px !important;
        display: block !important;
        border-radius: 4px 8px 8px 4px !important;
        background: #f7f2ec !important;
        box-shadow: 0 8px 20px rgba(43, 36, 37, 0.16), 0 2px 6px rgba(43, 36, 37, 0.08) !important;
        overflow: hidden !important;
        margin: 0 auto 8px auto !important;
        position: relative !important;
    }

    .bb-book-card .product-thumb img,
    .book-cover-wrapper img {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        max-width: 100% !important;
        display: block !important;
        object-fit: cover !important;
        object-position: center top !important;
        border-radius: inherit !important;
        box-shadow: none !important;
        background: transparent !important;
        margin: 0 auto !important;
    }

    .bb-book-card .product-info {
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        height: 100% !important;
        text-align: center !important;
    }

    .bb-book-card .bb-product-eyebrow {
        font-size: 9px !important;
        min-height: 1.2em !important;
        margin-bottom: 2px !important;
    }

    .bb-book-card .woocommerce-loop-product__title,
    .bb-book-card .woocommerce-loop-product__title a {
        font-size: 12px !important;
        line-height: 1.3 !important;
        min-height: 2.6em !important;
        max-height: 2.6em !important;
        margin-bottom: 2px !important;
    }

    .bb-book-card .bb-product-author {
        font-size: 10.5px !important;
        min-height: 1.3em !important;
        margin-bottom: 6px !important;
    }

    .bb-book-card .bb-card-footer {
        margin-top: auto !important;
        width: 100% !important;
        border-top: 1px solid #EADFD5 !important;
        padding-top: 6px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .bb-book-card .price {
        font-size: 13px !important;
        margin-bottom: 6px !important;
        line-height: 1.2 !important;
    }

    .bb-book-card .bb-static-cart-btn .button,
    .bb-book-card .add_to_cart_button {
        padding: 8px 10px !important;
        font-size: 10px !important;
        letter-spacing: 0.08em !important;
        border-radius: 3px !important;
        line-height: 1.2 !important;
    }
}

/* ================================================================
   FLOATING HEADER & CART PERSISTENCE (MOBILE & TABLET)
   Mobile header is now transparent — bottom nav handles all icons.
   ================================================================ */

@media screen and (max-width: 1024px) {
    header.mobile-header,
    .mobile-header,
    .mobile-header-wrap,
    .mobile-header-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 999999 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-bottom: none !important;
        transition: none !important;
    }

    /* Old Auteur customize items hidden — bottom nav handles navigation */
    .mobile-header-nav,
    .mobile-header .header-customize,
    .mobile-header .header-customize-mobile,
    .mobile-header .header-customize-item,
    .mobile-header .item-shopping-cart,
    .mobile-header .shopping-cart-icon,
    .mobile-header .customize-shopping-cart,
    .mobile-header .customize-my-account,
    header.mobile-header .header-customize,
    header.mobile-header .header-customize-item {
        display: none !important;
    }
}

/* Subtle Cart Pulse / Bounce Animation on Add to Cart */
@keyframes bbCartPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.35); filter: drop-shadow(0 0 6px rgba(200, 150, 62, 0.8)); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.bb-cart-bounce {
    animation: bbCartPulse 0.6s ease-in-out 2 !important;
}

.item-shopping-cart .shopping-cart-list.bb-show-temp {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* ================================================================
   UNIVERSAL FLOATING HEADER CART & LIVE BADGE
   ================================================================ */
.shopping-cart-icon .icon a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--bb-crimson, #601320) !important;
    text-decoration: none !important;
    padding: 6px 8px !important;
}

.shopping-cart-icon .icon a i,
.item-shopping-cart .icon i {
    font-size: 20px !important;
    color: var(--bb-crimson, #601320) !important;
}

/* Badge with exact book count */
.bb-cart-count,
.shopping-cart-icon .icon a span.cart-count,
.header-customize-item.item-shopping-cart span.cart-count,
span.bb-cart-count {
    position: absolute !important;
    top: -2px !important;
    right: -4px !important;
    background: var(--bb-gold, #C8963E) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    min-width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    text-align: center !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: inline-block !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
    z-index: 2 !important;
    transition: transform 0.2s ease !important;
}

/* Hide empty badge if count is 0 or show 0 cleanly */
.bb-cart-count--empty {
    opacity: 0.7 !important;
}

/* Mini cart dropdown on desktop */
.item-shopping-cart .shopping-cart-list {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    min-width: 320px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    padding: 20px !important;
    z-index: 999999 !important;
}

.item-shopping-cart .shopping-cart-list ul.cart_list li {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.item-shopping-cart .shopping-cart-list .buttons .button {
    background: var(--bb-crimson, #601320) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.item-shopping-cart .shopping-cart-list .buttons .checkout {
    background: var(--bb-gold, #C8963E) !important;
}

/* ================================================================
   SINGLE PRODUCT RELATED & UPSELLS 2-COLUMN MOBILE FIX
   ================================================================ */
@media screen and (max-width: 768px) {
    .bb-single-related,
    .single-product .related.products,
    .single-product .up-sells.products {
        margin-top: 25px !important;
        padding: 0 10px !important;
    }

    .bb-single-related h2,
    .single-product .related.products > h2,
    .single-product .up-sells.products > h2 {
        font-size: 18px !important;
        font-family: var(--bb-serif) !important;
        color: #8E1616 !important;
        margin-bottom: 14px !important;
        text-align: left !important;
    }

    .bb-single-related ul.products,
    .bb-single-related .products,
    .single-product .related ul.products,
    .single-product .related .products,
    .single-product .up-sells ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .bb-single-related ul.products li.product,
    .bb-single-related article.product-item-wrap,
    .bb-single-related article.product,
    .single-product .related ul.products li.product,
    .single-product .related article.product,
    .single-product .up-sells ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: none !important;
        margin: 0 0 10px 0 !important;
        padding: 0 !important;
    }

    .bb-single-related .bb-book-card .product-thumb,
    .single-product .related .bb-book-card .product-thumb {
        width: 140px !important;
        max-width: 100% !important;
        height: 204px !important;
        max-height: 204px !important;
        display: block !important;
        border-radius: 4px 8px 8px 4px !important;
        background: #f7f2ec !important;
        box-shadow: 0 8px 20px rgba(43, 36, 37, 0.16) !important;
        overflow: hidden !important;
        margin: 0 auto 8px auto !important;
    }

    .bb-single-related .bb-book-card .product-thumb img,
    .single-product .related .bb-book-card .product-thumb img {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        border-radius: inherit !important;
        box-shadow: none !important;
        background: transparent !important;
        margin: 0 auto !important;
    }

    .bb-single-related .bb-book-card .woocommerce-loop-product__title,
    .bb-single-related .bb-book-card .woocommerce-loop-product__title a,
    .single-product .related .bb-book-card .woocommerce-loop-product__title a {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    .bb-single-related .bb-book-card .price,
    .single-product .related .bb-book-card .price {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }

    .bb-single-related .bb-static-cart-btn .button,
    .single-product .related .bb-static-cart-btn .button {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }

    /* Hide duplicate secondary search forms on search results / 404 pages */
    .page-content > .search-form + .widget_search,
    .content-none-wrapper .search-form ~ .search-form,
    .sidebar .widget_search {
        display: none !important;
    }
}

/* ================================================================
   DESKTOP HEADER LOGO & MOBILE HEADER SUPPRESSION (Desktop > 1024px)
   ================================================================ */
@media screen and (min-width: 1025px) {
    .bb-transparent-mobile-header,
    .bb-dark-mobile-header,
    header.mobile-header,
    .mobile-header,
    .mobile-header-wrap,
    .mobile-header-wrapper {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* Responsive container for logo */
.bb-logo-header-wrap,
.logo-header {
    display: flex !important;
    align-items: center !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
}

.bb-logo-responsive-container {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
}

.bb-desktop-brand-logo {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100% !important;
    text-decoration: none !important;
    overflow: visible !important;
}
.bb-desktop-brand-logo .bb-brand-wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    max-width: 100%;
}
.bb-desktop-brand-logo .bb-brand-wordmark__main {
    font-family: var(--bb-font-serif, 'Playfair Display', Georgia, serif) !important;
    font-weight: 900 !important;
    font-size: clamp(16px, 2vw, 21px) !important;
    letter-spacing: 0.16em !important;
    color: #000000 !important;
    fill: #000000 !important;
    text-transform: uppercase !important;
    text-shadow: none !important;
    white-space: nowrap !important;
}
.bb-desktop-brand-logo .bb-brand-wordmark__sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 3px;
    width: 100%;
}
.bb-desktop-brand-logo .bb-brand-wordmark__rule {
    display: inline-block;
    height: 1px;
    width: 14px;
    background: #C8963E !important;
}
.bb-desktop-brand-logo .bb-brand-wordmark__text {
    font-family: var(--bb-font-sans, 'Inter', sans-serif) !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: 0.32em !important;
    color: #C8963E !important;
    text-transform: uppercase !important;
    padding-left: 0.32em !important;
}

/* Any SVG logo text/paths explicitly for BAJRABARAHI */
.bb-brand-wordmark svg text,
.bb-brand-wordmark svg path,
.bb-desktop-brand-logo svg text,
.bb-desktop-brand-logo svg path,
.bb-mobile-brand-logo svg text,
.bb-mobile-brand-logo svg path,
.main-logo svg text.bajrabarahi,
.main-logo svg path.bajrabarahi {
    color: #000000 !important;
    fill: #000000 !important;
}

/* ================================================================
   TRANSPARENT MOBILE HEADER — CENTERED BRAND LOGO ONLY
   All navigation moved to the sticky bottom nav bar.
   ================================================================ */
@media screen and (max-width: 1024px) {

    /* --- Wrapper: transparent, no shadow, no border --- */
    .bb-transparent-mobile-header,
    .bb-dark-mobile-header,
    header.mobile-header,
    .mobile-header-wrap {
        background: transparent !important;
        box-shadow: none !important;
        border-bottom: none !important;
        padding: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 999999 !important;
    }

    /* Inner row — single centred column */
    .bb-mobile-header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 14px 16px 10px !important;
        width: 100% !important;
    }

    /* Hide Auteur's own toggle / hamburger injected by the parent theme */
    .bb-transparent-mobile-header .toggle-menu,
    .bb-transparent-mobile-header .gf-toggle-menu,
    .bb-transparent-mobile-header .hamburger,
    .bb-transparent-mobile-header [data-toggle="canvas"],
    header.mobile-header .toggle-menu,
    header.mobile-header .gf-toggle-menu,
    .mobile-header-wrap .toggle-menu,
    .mobile-header-wrap .gf-toggle-menu {
        display: none !important;
    }

    /* Hide Auteur's own header-customize icon row on mobile */
    header.mobile-header .header-customize,
    header.mobile-header .header-customize-mobile,
    header.mobile-header .header-customize-item,
    header.mobile-header .item-shopping-cart,
    header.mobile-header .shopping-cart-icon,
    header.mobile-header .customize-shopping-cart,
    header.mobile-header .customize-my-account,
    .mobile-header-wrap .header-customize,
    .mobile-header-wrap .header-customize-mobile,
    .mobile-header-wrap .header-customize-item {
        display: none !important;
    }

    /* Body top padding: In redesign, header is in normal flow sticky, so padding-top is 0 */
    body.bb-redesign {
        padding-top: 0 !important;
    }

    /* ---- Centered brand logo in responsive wrapper ---- */
    .bb-logo-responsive-container {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .bb-mobile-brand-logo {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        text-decoration: none !important;
        max-width: 100% !important;
        gap: 0 !important;
    }

    .bb-mobile-brand-logo .bb-brand-title {
        font-family: var(--bb-font-serif, 'Playfair Display', Georgia, serif) !important;
        font-weight: 900 !important;
        font-size: clamp(15px, 4.5vw, 19px) !important;
        letter-spacing: 0.18em !important;
        color: #000000 !important;
        fill: #000000 !important;
        text-transform: uppercase !important;
        text-align: center !important;
        line-height: 1 !important;
        text-shadow: none !important;
        white-space: nowrap !important;
    }

    .bb-mobile-brand-logo .bb-brand-sub {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        margin-top: 4px !important;
        width: 100% !important;
    }

    .bb-mobile-brand-logo .bb-brand-rule {
        display: inline-block !important;
        height: 1px !important;
        width: 18px !important;
        background: #C8963E !important; /* gold */
    }

    .bb-mobile-brand-logo .bb-brand-books {
        font-family: var(--bb-font-sans, 'Inter', sans-serif) !important;
        font-size: 8px !important;
        font-weight: 800 !important;
        letter-spacing: 0.36em !important;
        color: #C8963E !important; /* gold accent */
        text-transform: uppercase !important;
        padding-left: 0.36em !important;
        text-shadow: none !important;
    }

    /* Search bar drop-down (triggered by bottom nav search button) */
    .bb-mobile-search-dropdown-bar {
        background: rgba(10, 4, 6, 0.88) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid rgba(200, 150, 62, 0.2) !important;
    }
    .bb-mobile-search-inner {
        padding: 10px 16px !important;
    }
}

/* ================================================================
   CLEAN "YOU MAY ALSO LIKE" RELATED PRODUCTS SECTION
   ================================================================ */
.bb-related-products-section {
    margin-top: 50px !important;
    padding-top: 30px !important;
    border-top: 1px solid #eef2f6 !important;
    clear: both !important;
}

.bb-related-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    margin-top: 20px !important;
}

@media screen and (max-width: 1024px) {
    .bb-related-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

@media screen and (max-width: 768px) {
    .bb-related-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .bb-related-item {
        width: 100% !important;
    }

    .bb-related-item .bb-book-card {
        width: 100% !important;
        margin: 0 !important;
    }

    .bb-related-title {
        font-size: 20px !important;
    }

    /* Force hide old squashed Auteur split title on single product */
    .single-product .related.products,
    .single-product .related.products > h2.gf-heading-title {
        display: none !important;
    }
}

/* ================================================================
   DESKTOP HEADER CART PLACEMENT: RIGHT SIDE ONLY
   ================================================================ */
.main-header .header-customize-header .item-shopping-cart,
.main-header .header-customize-left .item-shopping-cart,
.main-header .header-left .item-shopping-cart,
.header-customize-left .item-shopping-cart,
.header-customize-header .item-shopping-cart {
    display: none !important;
}

.main-header .primary-menu .header-customize-nav .item-shopping-cart,
.main-header .header-customize-right .item-shopping-cart,
.header-customize-nav .item-shopping-cart {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ================================================================
   STRICT REMOVAL OF LEFT-SIDE DESKTOP CART (KEEP RIGHT ONLY)
   ================================================================ */
.header-customize-left,
.header-customize-left .customize-shopping-cart,
.header-customize-left .item-shopping-cart,
.header-customize-left .shopping-cart-icon,
.header-wrap .header-inner > nav:first-child .item-shopping-cart,
.header-wrap .header-inner > nav:first-child .customize-shopping-cart,
.header-wrap .header-inner > nav:first-of-type .header-customize,
.header-wrap .header-inner > .primary-menu:first-of-type .header-customize,
.main-header .header-left .item-shopping-cart,
.main-header .header-customize-left {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Right-side cart strictly visible */
.header-wrap .header-inner > nav:last-child .item-shopping-cart,
.header-wrap .header-inner > .primary-menu:last-of-type .item-shopping-cart,
.header-customize-right .item-shopping-cart,
.header-customize-nav .item-shopping-cart {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ================================================================
   COMPACT, AESTHETIC, HIGH-CONTRAST LUXURY BOOKSTORE FOOTER
   - Strips all diagonal stripes & dark overlays
   - Rich warm bookstore background (#120305) with gold hairline border
   - 100% readable text (warm ivory #FFF8F0 and gold #D4AF37 / #F2C879)
   - Eliminates "fFacebook Twitter..." text mash (clean 34px icon pills)
   - Compact 2-column mobile layout (links side-by-side, no full-page sprawl)
   ================================================================ */

/* 1. Base Container & Bookstore Dark Atmosphere */
.main-footer-wrapper,
.main-footer-wrapper *::before,
.main-footer-wrapper *::after,
.site-footer,
.gf-footer,
footer {
    box-sizing: border-box;
}

.main-footer-wrapper,
footer.site-footer,
.gf-footer,
.site-footer,
footer {
    background: #120305 !important;
    background-color: #120305 !important;
    background-image: none !important;
    color: #FFF8F0 !important;
    font-family: var(--bb-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
    padding: 26px 0 14px !important;
    margin-top: 24px !important;
    position: relative !important;
    overflow: hidden !important;
}

/* WIPE OUT ALL DIAGONAL STRIPES & INNER ROW BACKGROUNDS */
.main-footer-wrapper div,
.main-footer-wrapper .vc_row,
.main-footer-wrapper .wpb_row,
.main-footer-wrapper .vc_column,
.main-footer-wrapper .wpb_column,
.main-footer-wrapper .vc_column-inner,
.main-footer-wrapper .wpb_wrapper,
.main-footer-wrapper .footer-inner,
.main-footer-wrapper .container,
.site-footer .vc_row,
.site-footer .wpb_wrapper,
.gf-footer .vc_row {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Elegant gold gradient top hairline border */
.main-footer-wrapper::before,
.site-footer::before,
.gf-footer::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, #C8963E 25%, #F2C879 50%, #C8963E 75%, transparent) !important;
    z-index: 2 !important;
}

/* Container width */
.site-footer .footer-inner,
.gf-footer .footer-inner,
.site-footer .container,
.main-footer-wrapper .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* 2. Desktop 3-4 Column Grid */
.gf-footer .footer-widgets-area,
.site-footer .footer-widgets,
.main-footer-wrapper .footer-widgets,
.footer-widgets {
    display: grid !important;
    grid-template-columns: 1.4fr 1fr 1fr !important;
    gap: 2rem !important;
    margin-bottom: 1.25rem !important;
}

@media screen and (min-width: 1200px) {
    .gf-footer .footer-widgets-area:has(> :nth-child(4)),
    .site-footer .footer-widgets:has(> :nth-child(4)),
    .main-footer-wrapper .footer-widgets:has(> :nth-child(4)) {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* 3. High-Contrast Text Legibility (Fixes Invisible Address / Email) */
.main-footer-wrapper,
.main-footer-wrapper p,
.main-footer-wrapper span,
.main-footer-wrapper a,
.main-footer-wrapper div,
.main-footer-wrapper li,
.main-footer-wrapper address,
.main-footer-wrapper .contact-info,
.main-footer-wrapper .contact-info-title,
.main-footer-wrapper .contact-info-content,
.main-footer-wrapper .textwidget,
.main-footer-wrapper .textwidget *,
.site-footer p,
.site-footer span,
.site-footer a,
.site-footer div,
.site-footer li,
.site-footer address,
.site-footer .contact-info,
.site-footer .contact-info-title,
.site-footer .contact-info-content,
.site-footer .textwidget,
.site-footer .textwidget * {
    color: #FFF8F0 !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Headings (CONNECT, EXTRA LINKS, YOUR ACCOUNT) */
.site-footer .widget-title,
.gf-footer .widget-title,
.main-footer-wrapper .widget-title,
.site-footer h3,
.site-footer h4,
.gf-footer h3,
.gf-footer h4,
.main-footer-wrapper h3,
.main-footer-wrapper h4,
.main-footer-wrapper .widget .wp-block-group__inner-container > h2 {
    font-family: var(--bb-font-sans, -apple-system, BlinkMacSystemFont, sans-serif) !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #D4AF37 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
    display: block !important;
    line-height: 1.3 !important;
}

/* Contact Details */
.main-footer-wrapper .contact-info,
.main-footer-wrapper .textwidget,
.site-footer .contact-info,
.site-footer .textwidget {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #E2D7CE !important;
}

.main-footer-wrapper .contact-info p,
.main-footer-wrapper .textwidget p,
.site-footer .contact-info p,
.site-footer .textwidget p {
    margin-bottom: 6px !important;
    color: #E2D7CE !important;
}

.main-footer-wrapper .contact-info-title,
.site-footer .contact-info-title {
    font-weight: 600 !important;
    color: #FFF8F0 !important;
    margin-bottom: 2px !important;
}

.main-footer-wrapper .contact-info-content,
.site-footer .contact-info-content {
    color: #E2D7CE !important;
    font-style: normal !important;
}

/* Email and general footer links */
.main-footer-wrapper .textwidget a,
.site-footer .textwidget a,
.main-footer-wrapper a[href^="mailto:"],
.site-footer a[href^="mailto:"] {
    color: #FFF8F0 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.main-footer-wrapper .textwidget a:hover,
.site-footer .textwidget a:hover,
.main-footer-wrapper a[href^="mailto:"]:hover,
.site-footer a[href^="mailto:"]:hover {
    color: #F2C879 !important;
    text-decoration: underline !important;
}

/* Prominent Phone Number */
.main-footer-wrapper a[href^="tel:"],
.site-footer a[href^="tel:"],
.main-footer-wrapper .phone-number,
.site-footer .phone-number,
.main-footer-wrapper strong {
    color: #F2C879 !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    letter-spacing: 0.03em !important;
    display: inline-block !important;
    margin: 4px 0 !important;
}

/* Navigation Lists & Links */
.site-footer ul,
.gf-footer ul,
.main-footer-wrapper ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.site-footer li,
.gf-footer li,
.main-footer-wrapper li {
    padding: 3px 0 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    border: none !important;
}

.site-footer .widget_nav_menu a,
.site-footer .widget_meta a,
.site-footer .widget_pages a,
.gf-footer .widget_nav_menu a,
.main-footer-wrapper .widget_nav_menu a,
.main-footer-wrapper ul:not(.gf-social-icon):not(.social-networks) a {
    color: #E0D4C8 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    padding: 2px 0 !important;
}

.site-footer .widget_nav_menu a:hover,
.gf-footer .widget_nav_menu a:hover,
.main-footer-wrapper .widget_nav_menu a:hover,
.main-footer-wrapper ul:not(.gf-social-icon):not(.social-networks) a:hover {
    color: #F2C879 !important;
    transform: translateX(3px) !important;
}

/* 4. Sleek Social Media Icon Pills (Fixes "fFacebook Twitter" Mess) */
.site-footer .social-networks,
.site-footer .gf-social-icon,
.site-footer .footer-social,
.gf-footer .social-networks,
.gf-footer .gf-social-icon,
.main-footer-wrapper .social-networks,
.main-footer-wrapper .gf-social-icon,
.main-footer-wrapper .footer-social {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 12px 0 4px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.site-footer .social-networks li,
.site-footer .gf-social-icon li,
.main-footer-wrapper .social-networks li,
.main-footer-wrapper .gf-social-icon li {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.site-footer .social-networks a,
.site-footer .gf-social-icon a,
.main-footer-wrapper .social-networks a,
.main-footer-wrapper .gf-social-icon a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    color: #FFF8F0 !important;
    font-size: 0 !important; /* Hides raw text */
    line-height: 1 !important;
    overflow: hidden !important;
    text-indent: 0 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.site-footer .social-networks a i,
.site-footer .gf-social-icon a i,
.main-footer-wrapper .social-networks a i,
.main-footer-wrapper .gf-social-icon a i {
    font-size: 14px !important;
    line-height: 1 !important;
    color: #FFF8F0 !important;
    margin: 0 !important;
    display: inline-block !important;
}

.site-footer .social-networks a:hover,
.site-footer .gf-social-icon a:hover,
.main-footer-wrapper .social-networks a:hover,
.main-footer-wrapper .gf-social-icon a:hover {
    background: #601320 !important;
    border-color: #D4AF37 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35) !important;
}

.site-footer .social-networks a:hover i,
.site-footer .gf-social-icon a:hover i,
.main-footer-wrapper .social-networks a:hover i,
.main-footer-wrapper .gf-social-icon a:hover i {
    color: #D4AF37 !important;
}

.gf-social-text,
.screen-reader-text {
    display: none !important;
}

/* Best Sellers Product List Widget in Footer */
.site-footer .product_list_widget,
.gf-footer .product_list_widget,
.main-footer-wrapper .product_list_widget {
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer .product_list_widget li,
.gf-footer .product_list_widget li,
.main-footer-wrapper .product_list_widget li {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.site-footer .product_list_widget li:last-child,
.main-footer-wrapper .product_list_widget li:last-child {
    border-bottom: none !important;
}

.site-footer .product_list_widget img,
.gf-footer .product_list_widget img,
.main-footer-wrapper .product_list_widget img {
    width: 46px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    float: none !important;
    margin: 0 !important;
}

.site-footer .product_list_widget .product-title,
.site-footer .product_list_widget a,
.main-footer-wrapper .product_list_widget a {
    color: #FFF8F0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.site-footer .product_list_widget .amount,
.site-footer .product_list_widget .price,
.site-footer .product_list_widget ins,
.main-footer-wrapper .product_list_widget ins {
    color: #D4AF37 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    margin-top: 3px !important;
    display: inline-block !important;
    text-decoration: none !important;
}

/* 5. Compact Copyright Bar */
.footer-bottom,
.copyright,
.site-info,
.gf-footer .footer-bottom,
.site-footer .footer-bottom,
.main-footer-wrapper .footer-bottom {
    padding: 14px 20px !important;
    margin-top: 18px !important;
    border-top: 1px solid rgba(212, 175, 55, 0.15) !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: rgba(255, 248, 240, 0.6) !important;
    text-align: center !important;
}

.footer-bottom a,
.copyright a,
.site-info a {
    color: #D4AF37 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.footer-bottom a:hover,
.copyright a:hover,
.site-info a:hover {
    color: #FFF8F0 !important;
    text-decoration: underline !important;
}

/* ================================================================
   6. MOBILE & TABLET COMPACT RESPONSIVENESS (< 768px)
   Prevents footer from occupying an entire page
   ================================================================ */
@media screen and (max-width: 768px) {
    .main-footer-wrapper,
    footer.site-footer,
    .gf-footer,
    .site-footer,
    footer {
        padding: 16px 0 8px !important;
        margin-top: 16px !important;
    }

    .site-footer .footer-inner,
    .gf-footer .footer-inner,
    .site-footer .container,
    .main-footer-wrapper .container {
        padding: 0 14px !important;
    }

    /* 2-Column Compact Grid for Footer Widgets */
    .gf-footer .footer-widgets-area,
    .site-footer .footer-widgets,
    .main-footer-wrapper .footer-widgets,
    .footer-widgets {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px 14px !important;
        margin-bottom: 8px !important;
    }

    .site-footer .widget,
    .gf-footer .widget,
    .main-footer-wrapper .widget {
        margin-bottom: 6px !important;
    }

    /* First column (CONNECT) spans full width at the top */
    .gf-footer .footer-widgets-area > .widget:first-child,
    .site-footer .footer-widgets > .widget:first-child,
    .main-footer-wrapper .footer-widgets > .widget:first-child,
    .footer-widgets > .widget:first-child {
        grid-column: 1 / -1 !important;
        margin-bottom: 4px !important;
    }

    /* WPBakery column layout support on mobile */
    .main-footer-wrapper .vc_row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -8px !important;
        margin-right: -8px !important;
    }

    .main-footer-wrapper .vc_row > .wpb_column:first-child {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-bottom: 10px !important;
    }

    .main-footer-wrapper .vc_row > .wpb_column:not(:first-child) {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-bottom: 10px !important;
    }

    /* Compact margins and text on mobile */
    .main-footer-wrapper .widget,
    .site-footer .widget,
    .gf-footer .widget {
        margin-bottom: 4px !important;
    }

    .site-footer .widget-title,
    .gf-footer .widget-title,
    .main-footer-wrapper .widget-title,
    .main-footer-wrapper h3,
    .main-footer-wrapper h4 {
        font-size: 11.5px !important;
        margin-bottom: 8px !important;
        padding-bottom: 4px !important;
    }

    .site-footer li,
    .gf-footer li,
    .main-footer-wrapper li {
        padding: 2px 0 !important;
    }

    .site-footer .widget_nav_menu a,
    .main-footer-wrapper .widget_nav_menu a,
    .main-footer-wrapper ul:not(.gf-social-icon):not(.social-networks) a {
        font-size: 12px !important;
    }

    .main-footer-wrapper .contact-info,
    .main-footer-wrapper .textwidget,
    .site-footer .contact-info,
    .site-footer .textwidget {
        font-size: 12.5px !important;
        line-height: 1.5 !important;
    }

    .footer-bottom,
    .copyright,
    .site-info {
        padding: 10px 14px !important;
        margin-top: 10px !important;
        font-size: 11px !important;
    }
}


/* ================================================================
   DESKTOP HEADER HORIZONTAL ALIGNMENT & CLEAN DROPDOWN SUBMENU
   Clean 1-Row Centered Baseline:
   [Left Menu: HOME, AUTHORS] | [Logo] | [Right Menu: SHOP (Dropdown), WISHLIST, SEARCH, CART, ACCOUNT]
   ================================================================ */

/* Main Header Container & Wrapping */
header.main-header,
.main-header,
.header-wrap,
.bb-main-header-wrap {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
}

/* Header Inner Flex Container */
.main-header .header-inner,
.header-wrap .header-inner,
.bb-main-header-wrap .header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    min-height: 74px !important;
    height: 74px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Left & Right Primary Menu Flex Wrappers */
.main-header .primary-menu,
.main-header .primary-menu-inner,
.main-header .left-menu,
.main-header .right-menu,
.header-wrap .primary-menu,
.header-wrap .primary-menu-inner,
.header-wrap .left-menu,
.header-wrap .right-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-header .primary-menu.primary-menu-left {
    justify-content: flex-start !important;
}

@media (max-width: 1024px) {
    .main-header .primary-menu-left,
    .header-wrap .primary-menu-left,
    .bb-main-header-wrap .primary-menu-left,
    #masthead .primary-menu-left,
    .primary-menu.primary-menu-left {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

.main-header .primary-menu.primary-menu-right {
    justify-content: flex-end !important;
    gap: 16px !important;
}

/* TOP-LEVEL Menu Lists ONLY (UL) - Left & Right */
.main-header .left-menu > ul,
.main-header .right-menu > ul,
.header-wrap .left-menu > ul,
.header-wrap .right-menu > ul,
#left-menu.main-menu,
#right-menu.main-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    height: 100% !important;
}

/* TOP-LEVEL Menu Items ONLY (LI) - SHOP, WISHLIST, HOME, AUTHORS */
.main-header .left-menu > ul > li,
.main-header .right-menu > ul > li,
.header-wrap .left-menu > ul > li,
.header-wrap .right-menu > ul > li,
#left-menu.main-menu > li,
#right-menu.main-menu > li {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    clear: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    vertical-align: middle !important;
}

/* TOP-LEVEL Menu Links (A) */
.main-header .left-menu > ul > li > a,
.main-header .right-menu > ul > li > a,
.header-wrap .left-menu > ul > li > a,
.header-wrap .right-menu > ul > li > a,
#left-menu.main-menu > li > a,
#right-menu.main-menu > li > a {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    height: auto !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    font-family: var(--bb-font-sans, -apple-system, BlinkMacSystemFont, sans-serif) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #2B2425 !important;
    white-space: nowrap !important;
    transition: color 0.2s ease !important;
}

.main-header .left-menu > ul > li > a:hover,
.main-header .right-menu > ul > li > a:hover,
#left-menu.main-menu > li > a:hover,
#right-menu.main-menu > li > a:hover {
    color: #8E1616 !important;
}

/* Dropdown Caret / Arrow for SHOP */
.main-header ul.main-menu > li.menu-item-has-children > a i,
.main-header ul.main-menu > li.menu-item-has-children > a .caret,
.main-header ul.main-menu > li.menu-item-has-children > a::after {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 6px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    transition: transform 0.2s ease !important;
}

.main-header ul.main-menu > li.menu-item-has-children:hover > a i,
.main-header ul.main-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg) !important;
}

/* ================================================================
   ELEGANT DROPDOWN SUBMENU FOR "SHOP" (AND ANY SUBMENUS)
   ================================================================ */
.main-header ul.main-menu ul.sub-menu,
.main-header .right-menu ul.sub-menu,
.main-header .left-menu ul.sub-menu,
.header-wrap ul.sub-menu,
.primary-menu ul.sub-menu,
ul.sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 250px !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-top: 3px solid #8E1616 !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    z-index: 999999 !important;
    display: none !important;
    flex-direction: column !important;
    gap: 0 !important;
    height: auto !important;
    
    /* Hidden by default with smooth slide & fade animation */
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s !important;
}

/* Submenu container bridge to prevent cursor gap drop */
.main-header ul.main-menu ul.sub-menu::before,
ul.sub-menu::before {
    content: '' !important;
    position: absolute !important;
    top: -12px !important;
    left: 0 !important;
    width: 100% !important;
    height: 12px !important;
    background: transparent !important;
}

/* Reveal Dropdown on Hover & Focus */
.main-header ul.main-menu > li.menu-item-has-children:hover > ul.sub-menu,
.main-header ul.main-menu > li.menu-item-has-children:focus-within > ul.sub-menu,
.main-header ul.main-menu > li.menu-item-has-children.is-hover > ul.sub-menu,
.main-header .right-menu > ul > li.menu-item-has-children:hover > ul.sub-menu,
.main-header .right-menu li.menu-item-has-children:hover > ul.sub-menu,
.main-header li.menu-item-has-children:hover > ul.sub-menu,
.header-wrap ul.main-menu > li.menu-item-has-children:hover > ul.sub-menu,
.header-wrap li.menu-item-has-children:hover > ul.sub-menu,
#right-menu > li.menu-item-has-children:hover > ul.sub-menu,
#left-menu > li.menu-item-has-children:hover > ul.sub-menu,
li.menu-item-has-children:hover > ul.sub-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Submenu Items (LI) */
.main-header ul.main-menu ul.sub-menu > li,
.main-header .right-menu ul.sub-menu > li,
.main-header .left-menu ul.sub-menu > li,
ul.sub-menu > li {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    text-align: left !important;
    border: none !important;
}

/* Submenu Links (A) */
.main-header ul.main-menu ul.sub-menu > li > a,
.main-header .right-menu ul.sub-menu > li > a,
.main-header .left-menu ul.sub-menu > li > a,
ul.sub-menu > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 10px 20px !important;
    color: #2B2425 !important;
    font-family: var(--bb-font-sans, -apple-system, BlinkMacSystemFont, sans-serif) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    line-height: 1.4 !important;
    border-bottom: 1px solid #f8f6f4 !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
    background: transparent !important;
}

.main-header ul.main-menu ul.sub-menu > li:last-child > a,
ul.sub-menu > li:last-child > a {
    border-bottom: none !important;
}

/* Submenu Link Hover State */
.main-header ul.main-menu ul.sub-menu > li > a:hover,
.main-header .right-menu ul.sub-menu > li > a:hover,
ul.sub-menu > li > a:hover {
    background: #fdf8f4 !important;
    color: #8E1616 !important;
    padding-left: 24px !important;
}

/* Nested 2nd-Level Submenus */
.main-header ul.main-menu ul.sub-menu > li.menu-item-has-children {
    position: relative !important;
}

.main-header ul.main-menu ul.sub-menu > li.menu-item-has-children > ul.sub-menu {
    top: 0 !important;
    left: 100% !important;
    margin-left: 4px !important;
}

/* Center Brand Logo */
.main-header .header-logo,
.main-header .header-logo-wrap,
.header-wrap .header-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    margin: 0 24px !important;
    flex-shrink: 0 !important;
}

.main-header .header-logo img,
.header-wrap .header-logo img {
    max-height: 48px !important;
    width: auto !important;
    display: block !important;
}

/* Header Customize Right Section (Search, Cart, User Account) */
.main-header .header-customize-right,
.main-header .header-customize-nav,
.header-wrap .header-customize-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    margin: 0 0 0 20px !important;
    padding: 0 !important;
    height: 100% !important;
    list-style: none !important;
}

.main-header .header-customize-right > li,
.header-wrap .header-customize-right > li {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* Smart Search in Desktop Header */
.main-header .header-customize-right .customize-search,
.main-header .header-customize-right .item-search,
.main-header .bajra-header-search-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    width: 250px !important;
    max-width: 250px !important;
    margin: 0 !important;
}

.main-header .bajra-header-search-wrapper .bajra-smart-search-form {
    width: 100% !important;
    max-width: 250px !important;
    margin: 0 !important;
}

.main-header .bajra-header-search-wrapper .bajra-search-input-wrap {
    height: 38px !important;
    padding: 2px 4px 2px 12px !important;
    border-radius: 6px !important;
}

.main-header .bajra-header-search-wrapper .bajra-search-field {
    font-size: 13px !important;
    padding: 4px 0 !important;
}

.main-header .bajra-header-search-wrapper .bajra-search-submit {
    height: 30px !important;
    line-height: 18px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
}

/* Cart & Account Icons in Header */
.main-header .header-customize-right .customize-shopping-cart a,
.main-header .header-customize-right .shopping-cart-icon a,
.main-header .header-customize-right .customize-my-account a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #601320 !important;
    font-size: 19px !important;
    padding: 6px 8px !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.main-header .header-customize-right .customize-shopping-cart a:hover,
.main-header .header-customize-right .customize-my-account a:hover {
    color: #C8963E !important;
}


/* ==========================================================================
   BOTTOM STICKY MENU (Mobile Navigation Bar)
   Visible only on screens ≤ 768px
   ========================================================================== */

.bb-bottom-nav {
    display: none; /* hidden by default; shown via media query */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1A0A0D;
    border-top: 1px solid rgba(96, 19, 32, 0.5);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bb-bottom-nav__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: 58px;
}

.bb-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--bb-font-sans, "Inter", sans-serif);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px 4px;
    transition: color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.bb-bottom-nav__item:hover,
.bb-bottom-nav__item.bb-nav-active {
    color: #C8963E;
}

.bb-bottom-nav__item.bb-nav-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #C8963E;
    border-radius: 0 0 2px 2px;
}

.bb-bottom-nav__icon {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bb-bottom-nav__badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #601320;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    border: 1.5px solid #1A0A0D;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bb-bottom-nav__badge.bb-badge-pulse {
    transform: scale(1.4);
}

.bb-bottom-nav__label {
    font-size: 9px;
    line-height: 1;
}

/* Sticky Bottom Menu: Active on all mobile and tablet/iPad devices (<= 1024px) */
@media screen and (max-width: 1024px) {
    .bb-bottom-nav {
        display: block !important;
    }
    body.bb-redesign {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

.woocommerce-checkout .bb-bottom-nav,
.wp-admin .bb-bottom-nav {
    display: none !important;
}

/* ==========================================================================
   HOMEPAGE FULL-WIDTH FIX (Eliminate right-side blank white column)
   ========================================================================== */
.home #primary-content,
.bb-is-homepage #primary-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.home #primary-content > .container,
.bb-is-homepage #primary-content > .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.home #primary-content .row,
.bb-is-homepage #primary-content .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.home #primary-content .row > div[class*="col-"],
.bb-is-homepage #primary-content .row > div[class*="col-"] {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.home .sidebar,
.home aside,
.bb-is-homepage .sidebar,
.bb-is-homepage aside {
    display: none !important;
}

/* ==========================================================================
   AUTEUR PAGINATION BRAND RE-STYLING (Single Unified Pagination)
   ========================================================================== */
.gf-paging.blog-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 40px auto 20px !important;
    padding: 10px 0 !important;
}

.gf-paging.blog-pagination .page-numbers,
.gf-paging.blog-pagination .pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.gf-paging.blog-pagination a.page-numbers,
.gf-paging.blog-pagination span.page-numbers,
.gf-paging.blog-pagination li a,
.gf-paging.blog-pagination li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-family: var(--bb-font-sans, "Inter", sans-serif) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    color: var(--bb-dark, #2B2425) !important;
    background: #ffffff !important;
    border: 1.5px solid var(--bb-border, #EADFD5) !important;
    transition: all 0.25s ease !important;
}

.gf-paging.blog-pagination a.page-numbers:hover,
.gf-paging.blog-pagination li a:hover {
    color: var(--bb-crimson, #601320) !important;
    border-color: var(--bb-crimson, #601320) !important;
    background: rgba(96, 19, 32, 0.05) !important;
    transform: translateY(-2px) !important;
}

.gf-paging.blog-pagination span.page-numbers.current,
.gf-paging.blog-pagination li span.current {
    color: #ffffff !important;
    background: var(--bb-crimson, #601320) !important;
    border-color: var(--bb-crimson, #601320) !important;
    box-shadow: 0 4px 12px rgba(96, 19, 32, 0.3) !important;
}

.gf-paging.blog-pagination .next.page-numbers,
.gf-paging.blog-pagination .prev.page-numbers {
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    padding: 0 14px !important;
}

/* ==========================================================================
   CLASSIC HARDCOVER BOOK JACKET FALLBACK (Missing Image Fallback)
   ========================================================================== */
.bb-book-cover-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    min-height: 240px;
    background: linear-gradient(135deg, #4A0E18 0%, #2A060C 100%);
    border-radius: 4px;
    box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.25), inset 4px 0 8px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px 18px 18px 24px;
    border: 1px solid rgba(200, 150, 62, 0.4);
    box-sizing: border-box;
}

.bb-book-cover-placeholder::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 14px;
    right: 8px;
    border: 1px solid rgba(200, 150, 62, 0.25);
    border-radius: 2px;
    pointer-events: none;
}

.bb-cover-spine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 10px;
    background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(255,255,255,0.1), rgba(0,0,0,0.4));
    box-shadow: 2px 0 4px rgba(0,0,0,0.4);
}

.bb-cover-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.bb-cover-author {
    font-family: var(--bb-font-sans, "Inter", sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #E8B96A;
    line-height: 1.3;
    margin-bottom: 12px;
}

.bb-cover-title {
    font-family: var(--bb-font-serif, "Playfair Display", Georgia, serif);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
    color: #FFFFFF;
    margin: 0 0 auto;
    letter-spacing: -0.01em;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bb-cover-brand {
    font-family: var(--bb-font-sans, "Inter", sans-serif);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(232, 185, 106, 0.7);
    margin-top: 14px;
    border-top: 1px solid rgba(200, 150, 62, 0.3);
    padding-top: 8px;
    text-align: center;
}

/* ==========================================================================
   FLOATING WIDGET SPACING & COLLISION PREVENTION
   ========================================================================== */
.bb-redesign .bb-hp-section,
.bb-redesign .bb-section-header {
    position: relative;
    z-index: 5;
}

.bb-redesign .bb-section-subtitle {
    margin-bottom: 24px !important;
}

.bb-container {
    padding-left: clamp(20px, 4vw, 40px) !important;
    padding-right: clamp(20px, 4vw, 40px) !important;
}

/* ============================================================
   SINGLE PRODUCT — MEET THE AUTHOR PROFILE
   ============================================================ */
.bb-author-single-profile {
    margin: 0 auto !important;
    max-width: 640px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.bb-author-single-profile .author-avatar-wrap {
    margin: 0 auto 16px auto !important;
    display: inline-block !important;
}

.bb-author-single-profile .author-name {
    font-family: var(--bb-font-serif, "Playfair Display", Georgia, serif) !important;
    font-size: 22px !important;
    color: var(--bb-crimson, #601320) !important;
}

.bb-author-single-profile .author-name a {
    color: inherit !important;
    text-decoration: none !important;
}

.bb-author-single-profile .author-name a:hover {
    color: var(--bb-gold, #C8963E) !important;
}
