/* =====================================================================
   BOOKSFINITY — Final Authoritative Redesign
   Brand: Deep Emerald / Ivory / Gold
   Typography: Playfair Display (headings) + Inter (body)
   ===================================================================== */

/* ========================= Design Tokens ========================= */
:root {
  --bf-green: #003f35;
  --bf-green-dark: #002f28;
  --bf-emerald: #1B4332;
  --bf-emerald-dark: #0A3622;
  --bf-emerald-light: #2D6A4F;
  --bf-ivory: #FAF6EF;
  --bf-cream: #F5EEE3;
  --bf-white: #ffffff;
  --bf-gold: #B98C35;
  --bf-gold-light: #D6B260;
  --bf-gold-dark: #9A7428;
  --bf-sale-red: #C0392B;
  --bf-text: #0D3029;
  --bf-text-dark: #161C19;
  --bf-muted: #74716B;
  --bf-border: #DDD2C1;
  --bf-radius-sm: 4px;
  --bf-radius-md: 8px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
}

/* ========================= Global Base ========================= */
body {
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.6;
  background-color: var(--bf-ivory);
  color: var(--bf-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Wide container — matches mockup's broad layout */
.container, .custom--container {
  width: min(100% - 48px, 1760px) !important;
  max-width: 1760px !important;
  margin-inline: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

h1, h2, h3, h4, h5, h6,
.section-heading__title {
  font-family: var(--heading-font);
  color: var(--bf-emerald-dark);
  font-weight: 600;
}

a { color: var(--bf-emerald); transition: color 0.2s; }
a:hover { color: var(--bf-emerald-light); }

/* ========================= Cart Sidebar ========================= */
.cart__header { align-items: center; }
.cart__header .cart__page__link { color: #f7f7f7; text-decoration: underline; font-size: 14px; }
.cart__item .product-short-info,
.cart-item-bottom__content .product-short-info { font-size: 0.875rem; font-weight: 500; }
.cart__discount__area .discount-title,
.cart__discount__area .discount-price { font-size: 12px; }
.cart__sidebar .cart-bottom .subtotal-title,
.cart__sidebar .cart-bottom .subtotal-price { font-size: 1rem; }
.cart__sidebar .cart-bottom { align-items: center; }

/* ========================= 1. ANNOUNCEMENT BAR ========================= */
.bf-announcement-bar {
  background: var(--bf-emerald-dark);
  color: #fff;
  font-family: var(--body-font);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 8px 0;
}
.bf-announcement-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bf-announcement-bar__message {
  flex: 1;
  text-align: center;
}
.bf-announcement-bar__message i {
  color: var(--bf-gold);
  margin-right: 6px;
}
.bf-announcement-bar__links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.bf-announcement-bar__links a,
.bf-announcement-bar__links span {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.bf-announcement-bar__links a:hover { color: var(--bf-gold-light); }
.bf-announcement-bar__links .separator { opacity: 0.4; }

/* ========================= 2. MAIN HEADER ========================= */
.bf-header {
  background: var(--bf-ivory);
  padding: 14px 0;
  border-bottom: 1px solid rgba(27,67,50,0.06);
}
.bf-header .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo — controlled size, never stretched */
.bf-header__logo {
  flex-shrink: 0;
  display: block;
  width: min(28vw, 380px);
}
.bf-header__logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  object-position: left center;
}

/* =====================================
   GLOBAL RESPONSIVE SAFEGUARDS
   ===================================== */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
}

.container, .custom--container, .container-fluid {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Fix product cards breaking out on small screens */
.product-card {
    min-width: 0;
    max-width: 100%;
}

/* Ensure no long titles break the layout */
.product-card .title, .product-card__title {
    word-break: break-word;
    white-space: normal;
}

/* Search */
.bf-header__search {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  max-width: 560px;
}
.bf-header__search-input {
  width: 100%;
  height: 44px;
  padding: 0 48px 0 20px;
  border: 1.5px solid var(--bf-emerald);
  border-radius: var(--bf-radius-sm);
  font-family: var(--body-font);
  font-size: 0.85rem;
  color: var(--bf-text);
  background: var(--bf-white);
}
.bf-header__search-input::placeholder {
  color: var(--bf-muted);
  font-size: 0.82rem;
}
.bf-header__search-input:focus {
  outline: none;
  border-color: var(--bf-emerald-dark);
  box-shadow: 0 0 0 2px rgba(27,67,50,0.08);
}
.bf-header__search-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  background: var(--bf-emerald);
  border: none;
  border-radius: 0 var(--bf-radius-sm) var(--bf-radius-sm) 0;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bf-header__search-btn:hover { background: var(--bf-emerald-dark); }

/* Header Actions */
.bf-header__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}
.bf-header__action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--bf-emerald-dark);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  position: relative;
}
.bf-header__action-item:hover { color: var(--bf-emerald-light); }
.bf-header__action-icon {
  font-size: 1.3rem;
  line-height: 1;
  position: relative;
}
.bf-header__cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--bf-emerald);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================= 3. CATEGORY NAVIGATION ========================= */
.bf-category-nav {
  background: var(--bf-ivory);
  border-top: 1px solid var(--bf-border);
  border-bottom: 1px solid var(--bf-border);
  padding: 0;
}
.bf-category-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  justify-content: flex-start;
}
.bf-category-nav__item { flex-shrink: 0; }
.bf-category-nav__link {
  display: block;
  padding: 12px 16px;
  font-family: var(--body-font);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bf-emerald-dark);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.bf-category-nav__link:hover {
  color: var(--bf-emerald-light);
  border-bottom-color: var(--bf-emerald-light);
}
.bf-category-nav__link--shop-all {
  background: var(--bf-emerald-dark);
  color: #fff !important;
  border-radius: var(--bf-radius-sm);
  padding: 7px 18px;
  margin: 6px 0;
  border-bottom: none;
}
.bf-category-nav__link--shop-all i { margin-right: 6px; }
.bf-category-nav__link--shop-all:hover {
  background: var(--bf-emerald);
  border-bottom: none;
}
.bf-category-nav__link--sale {
  color: var(--bf-sale-red) !important;
  font-weight: 700;
}
.bf-category-nav__link--sale:hover {
  border-bottom-color: var(--bf-sale-red);
}

/* ========================= 4. HERO SECTION ========================= */
.bf-hero {
  background: var(--bf-ivory);
  padding: 0;
  overflow: hidden;
}
.bf-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: 48px;
}
.bf-hero__content {
  padding: 20px 0;
}
.bf-hero__title {
  font-family: var(--heading-font);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(40px, 4.5vw, 68px);
  line-height: 1.1;
  color: var(--bf-emerald-dark);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

@media (max-width: 576px) {
  .bf-hero__title {
    font-size: clamp(35px, 10vw, 46px);
    line-height: 1.05;
  }
}
.bf-hero__accent-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.bf-hero__accent {
  display: block;
  width: 50px;
  height: 1px;
  background: var(--bf-gold);
}
.bf-hero__description {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--bf-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 340px;
}
.bf-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.bf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--body-font);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--bf-radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  border: 1.5px solid transparent;
}
.bf-btn--primary {
  background: var(--bf-emerald-dark);
  color: #fff;
  border-color: var(--bf-emerald-dark);
}
.bf-btn--primary:hover {
  background: var(--bf-emerald);
  border-color: var(--bf-emerald);
  color: #fff;
}
.bf-btn--outline {
  background: transparent;
  color: var(--bf-emerald-dark);
  border-color: var(--bf-emerald-dark);
}
.bf-btn--outline:hover {
  background: var(--bf-emerald-dark);
  color: #fff;
}

/* Hero Image */
.bf-hero__visual {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.bf-hero__image {
  display: block;
  width: 100%;
  height: clamp(300px, 38vw, 420px);
  object-fit: cover;
  border-radius: var(--bf-radius-md) var(--bf-radius-md) 0 0;
}

/* ========================= 5. DISCOVERY STRIP ========================= */
.bf-discovery-strip {
  background: var(--bf-cream);
  border-top: 1px solid var(--bf-border);
  border-bottom: 1px solid var(--bf-border);
}
.bf-discovery-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.bf-discovery-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 28px;
  text-decoration: none;
  color: var(--bf-text);
  border-right: 1px solid var(--bf-border);
  transition: background 0.2s;
}
.bf-discovery-strip__item:last-child { border-right: none; }
.bf-discovery-strip__item:hover { background: rgba(185,140,53,0.04); }
.bf-discovery-strip__icon {
  font-size: 1.6rem;
  color: var(--bf-gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.bf-discovery-strip__title {
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bf-emerald-dark);
  margin-bottom: 4px;
}
.bf-discovery-strip__desc {
  font-size: 0.78rem;
  color: var(--bf-muted);
  line-height: 1.45;
}

/* ========================= 6. SECTION HEADINGS ========================= */
.bf-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.bf-section-heading__title {
  font-family: var(--heading-font);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--bf-emerald-dark);
  margin: 0;
}
.bf-section-heading__link {
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bf-emerald);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bf-section-heading__link:hover { gap: 10px; color: var(--bf-emerald-light); }

/* ========================= 7. CURATED SECTION + NEWSLETTER ========================= */
.bf-curated-section {
  padding: var(--space-6) 0;
  background: var(--bf-ivory);
}
.bf-curated-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
  gap: 36px;
  align-items: start;
}
.bf-curated-products { min-width: 0; overflow: hidden; }

/* Newsletter Card */
.bf-newsletter-card {
  background: var(--bf-cream);
  border-radius: var(--bf-radius-md);
  padding: 32px 24px;
  border: 1px solid rgba(185,140,53,0.15);
}
.bf-newsletter-card__title {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--bf-emerald-dark);
  margin-bottom: 10px;
  line-height: 1.25;
}
.bf-newsletter-card__desc {
  font-size: 0.82rem;
  color: var(--bf-muted);
  margin-bottom: 20px;
  line-height: 1.55;
}
.bf-newsletter-card__form {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
}
.bf-newsletter-card__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--bf-border);
  border-right: none;
  border-radius: var(--bf-radius-sm) 0 0 var(--bf-radius-sm);
  font-family: var(--body-font);
  font-size: 0.82rem;
  background: var(--bf-white);
}
.bf-newsletter-card__input:focus {
  outline: none;
  border-color: var(--bf-emerald);
}
.bf-newsletter-card__btn {
  padding: 10px 18px;
  background: var(--bf-emerald-dark);
  color: #fff;
  border: 1px solid var(--bf-emerald-dark);
  border-radius: 0 var(--bf-radius-sm) var(--bf-radius-sm) 0;
  font-family: var(--body-font);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
}
.bf-newsletter-card__btn:hover { background: var(--bf-emerald); }
.bf-newsletter-card__privacy {
  font-size: 0.72rem;
  color: var(--bf-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.bf-newsletter-card__privacy i { color: var(--bf-emerald); font-size: 0.8rem; }

/* ========================= 8. PRODUCT CARDS ========================= */
.product-item {
  background: var(--bf-white);
  border: 1px solid rgba(40, 60, 50, 0.06);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.product-item__thumb {
  width: 100%;
  aspect-ratio: 0.68;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bf-cream);
  padding: 8px !important;
  overflow: hidden;
}
.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-item__content {
  padding: 14px 12px 12px !important;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-item__content__top {
  flex: 1;
}

@media (max-width: 576px) {
  .product-item__content {
    padding: 10px 8px !important;
  }
}

.product-item__title {
  font-family: var(--heading-font);
  font-weight: 500;
  margin-bottom: 4px;
}
.product-item__title a {
  color: var(--bf-text-dark);
  text-decoration: none;
  font-size: clamp(13px, 1vw, 15px);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.4;
  min-height: calc(1.4em * 2);
}
.product-item__title a:hover {
  color: var(--bf-emerald);
}

.writing-by, .writing-by a {
  font-size: 0.75rem !important;
  color: var(--bf-muted) !important;
  line-height: 1.3;
  text-decoration: none;
}
.writing-by a:hover {
  color: var(--bf-emerald) !important;
}

.product-item__content__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  margin-bottom: 12px;
}

.product-item__price {
  font-family: var(--body-font);
  font-weight: 600;
  color: var(--bf-text-dark);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.2;
}
.product-item__price .amount-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

/* Old/Sale Price */
.price-group .old-price {
  font-size: 11px !important;
  text-decoration: line-through;
  opacity: 0.6;
  font-weight: 500;
}

/* Product Badges */
.bf-product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--body-font);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 3;
}
.bf-product-badge--editor { background: var(--bf-emerald-dark); color: var(--bf-gold-light); }
.bf-product-badge--new { background: var(--bf-gold); color: #fff; }
.bf-product-badge--sale { background: var(--bf-sale-red); color: #fff; }

/* Full Width Add to Cart on Card */
.bf-add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--bf-emerald-dark);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: var(--bf-radius-sm);
  font-family: var(--body-font);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  cursor: pointer;
}
.bf-add-to-cart-btn:hover {
  background: var(--bf-emerald-light);
  color: #fff;
}
.bf-add-to-cart-btn i {
  font-size: 0.85rem;
}

/* ========================= 9. BENEFITS / SERVICE BAR ========================= */
.bf-service-bar {
  background: var(--bf-cream);
  border-top: 1px solid var(--bf-border);
  border-bottom: 1px solid var(--bf-border);
  padding: 20px 0;
}
.bf-service-bar__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.bf-service-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 0 12px;
  border-right: 1px solid var(--bf-border);
}
.bf-service-bar__item:last-child { border-right: none; }
.bf-service-bar__icon {
  color: var(--bf-gold);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.bf-service-bar__title {
  font-family: var(--body-font);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bf-emerald-dark);
}
.bf-service-bar__desc {
  font-size: 0.68rem;
  color: var(--bf-muted);
  line-height: 1.3;
}

/* ========================= 10. FOOTER ========================= */
.footer-area {
  background: var(--bf-emerald-dark);
  color: rgba(255,255,255,0.85);
}
.footer-area .py-70 { padding: 48px 0; }
.footer-item__logo img {
  max-height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1) brightness(1.1);
}
.footer-item__desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  line-height: 1.7;
  margin-top: 14px;
}
.footer-item__title {
  font-family: var(--heading-font);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-item__title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--bf-gold);
}
.footer-menu__link {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  text-decoration: none;
  display: block;
  padding: 3px 0;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-menu__link:hover { color: var(--bf-gold-light); padding-left: 3px; }
.footer-contact-menu__item-icon { color: var(--bf-gold); }
.footer-contact-menu__item-content p,
.footer-contact-menu__item-content a {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
}
.footer-contact-menu__item-content a:hover { color: var(--bf-gold-light); }
.social-list__link {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  transition: all 0.2s;
}
.social-list__link:hover { background: var(--bf-gold); color: #fff; }
.footer-bottom {
  background: rgba(0,0,0,0.15);
  padding: 16px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ========================= 11. MOBILE HEADER ========================= */
.bf-mobile-header {
  background: var(--bf-ivory);
  padding: 12px 0;
  border-bottom: 1px solid var(--bf-border);
  position: sticky;
  top: 0;
  z-index: 999;
}
.bf-mobile-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bf-mobile-hamburger {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--bf-emerald-dark);
  cursor: pointer;
  padding: 4px;
}
.bf-mobile-header__logo {
  flex: 1;
  text-align: center;
}
.bf-mobile-header__logo img {
  width: 140px;
  max-height: 50px;
  object-fit: contain;
}
.bf-mobile-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.bf-mobile-header__icon {
  color: var(--bf-emerald-dark);
  font-size: 1.15rem;
  position: relative;
  text-decoration: none;
}

/* ========================= 12. MOBILE MENU (Sidebar) ========================= */
.sidebar-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(86vw, 360px) !important;
  height: 100dvh;
  z-index: 99999;
  background: var(--bf-white) !important;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, visibility 0.3s ease;
}
.sidebar-menu.show {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  z-index: 99998;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

.sidebar-menu__header {
  background: var(--bf-emerald-dark) !important;
}
.sidebar-menu .sidebar-menu-list__item a {
  color: var(--bf-text) !important;
  font-size: 0.88rem;
}
.sidebar-menu .sidebar-menu-list__item a:hover {
  color: var(--bf-emerald) !important;
}

/* ========================= 13. PRODUCT LISTING PAGES ========================= */
.product-filter-area { margin-bottom: var(--space-5); }

/* Product grid on listing pages */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* ========================= 14. PRODUCT DETAIL ========================= */
.product-details-area, .product-details {
  padding: var(--space-5) 0;
  background: var(--bf-ivory);
}

/* ---- Master layout: Force grid, override main.css flex ---- */
.product-details__wrapper {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1350px;
  margin: 0 auto;
}

/* Override the width: 78%/22% from main.css that starves the sidebar */
.product-details__left,
.product-details__right {
  width: 100% !important;
  min-width: 0;
}
.product-details__left {
  overflow: hidden;
}

/* Desktop: two-column layout with a comfortable sidebar */
@media (min-width: 1200px) {
  .product-details__wrapper {
    grid-template-columns: 1fr 320px;
    gap: 28px;
  }
}
@media (min-width: 1400px) {
  .product-details__wrapper {
    grid-template-columns: 1fr 340px;
    gap: 32px;
  }
}

/* Product detail card styling */
.product-details__card {
  background: var(--bf-white);
  border-radius: var(--bf-radius-md);
  border: 1px solid var(--bf-border);
  padding: 28px;
  margin-bottom: 24px;
}

.product-details__content {
  display: flex;
  gap: 32px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

@media (min-width: 992px) {
  .product-details__content {
    align-items: flex-start;
  }
}

/* Gallery Thumb Container */
.product-details__thumb {
  width: 38%;
  max-width: 380px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bf-cream);
  padding: 16px;
  border-radius: var(--bf-radius-md);
  text-align: center;
}

.product-details__info {
  flex-grow: 1;
  min-width: 0;
}

.product-details__thumb img,
.productMainImg {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Main slider image — constrained properly */
.product-details-slider__slide img {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: contain !important;
  border-radius: 6px;
  max-height: 420px;
}

/* Preview thumbnails — vertical strip */
.product-details-preview-slider .slick-slide img {
  width: 100% !important;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.product-details-preview-slider .slick-slide.slick-current img {
  border-color: var(--bf-emerald);
}

.product-details__title {
  font-family: var(--heading-font);
  font-size: clamp(22px, 2.5vw, 32px);
  color: var(--bf-emerald-dark);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 6px;
}

.product-details__description {
  font-size: 0.92rem;
  color: var(--bf-muted);
  line-height: 1.7;
  margin-top: 14px;
  margin-bottom: 14px;
}

/* Product detail pricing */
.product-details__price .current-price {
  font-size: clamp(1.2rem, 2vw, 1.6rem) !important;
  font-weight: 700;
}

.cart-item-bottom {
  border-top: 1px solid var(--bf-border);
  border-bottom: 1px solid var(--bf-border);
  padding: 14px 0;
}

/* Add to Cart button on product detail page */
.product-details .btn--base,
.product-details .qtyAddCartBtn {
  min-height: 46px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--bf-radius-sm);
  padding: 11px 24px;
}

/* Product detail tabs */
.product-details__card .custom--tab .nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
}

/* Summary description overflow */
.product-details__summary-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--bf-text);
  word-break: break-word;
  overflow-wrap: break-word;
}
.product-details__summary-desc p {
  margin-bottom: 12px;
}

/* ============================== */
/* Related/Upsell Sidebar         */
/* ============================== */
.product-details__sidebar {
  background: var(--bf-white);
  border-radius: var(--bf-radius-md);
  border: 1px solid var(--bf-border);
  padding: 24px;
  position: sticky;
  top: 20px;
}

.product-sidebar__title {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bf-emerald-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bf-border);
}

/* Each related-book card */
.product-sidebar-item {
  display: flex;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  gap: 14px;
}
.product-sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Sidebar book thumbnail */
.product-sidebar-item__img {
  width: 70px;
  flex-shrink: 0;
}
.product-sidebar-item__img img {
  width: 70px;
  height: 95px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Content area — must flex-grow and clip overflow */
.product-sidebar-item__content {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

/* Title: allow up to 2 lines then clip */
.product-sidebar-item__title {
  margin-bottom: 4px;
}
.product-sidebar-item__title a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bf-text-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.product-sidebar-item__title a:hover {
  color: var(--bf-emerald);
}

/* Rating row */
.product-sidebar-item__rating-price {
  margin-bottom: 4px;
}

/* Price + Author area */
.product-sidebar-item .cart-item-bottom {
  border: none;
  padding: 4px 0 0;
}
.product-sidebar-item .cart-item-bottom__content {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.product-sidebar-item__price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bf-emerald-dark);
  white-space: nowrap;
}
.product-sidebar-item__price .current-price {
  font-size: 0.88rem !important;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
}
.product-sidebar-item__price .current-price del {
  font-size: 0.78rem !important;
  color: var(--bf-muted);
}
.product-sidebar-item .writing-by {
  font-size: 0.8rem;
  margin: 0;
  color: var(--bf-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ======== MOBILE PRODUCT PAGE ======== */
@media (max-width: 767px) {
  .product-details__card {
    padding: 16px;
    margin-bottom: 16px;
  }

  .product-details__content {
    flex-direction: column;
    gap: 16px;
  }

  .product-details__thumb {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    gap: 12px;
    max-height: 380px;
    overflow: hidden;
  }

  /* Main image slider — contained height */
  .product-details-slider {
    width: 100% !important;
    order: 1;
  }
  .product-details-slider,
  .product-details-slider .slick-list,
  .product-details-slider .slick-track {
    height: auto !important;
  }
  .product-details-slider__slide {
    height: auto !important;
  }
  .product-details-slider__slide img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 300px !important;
    height: auto !important;
    margin: 0 auto;
    display: block;
    object-fit: contain !important;
    object-position: center;
  }

  /* Preview thumbnails — horizontal strip below image */
  .product-details-preview-slider {
    width: 100% !important;
    order: 2;
    display: flex !important;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .product-details-preview-slider .slick-list {
    height: auto !important;
    max-height: none !important;
  }
  .product-details-preview-slider .slick-track {
    display: flex !important;
    gap: 6px;
    height: auto !important;
  }
  .product-details-preview-slider .slick-slide {
    width: 50px !important;
    height: auto !important;
    flex-shrink: 0;
  }
  .product-details-preview-slider .slick-slide img {
    width: 50px !important;
    height: 70px !important;
    object-fit: cover;
    border-radius: 3px;
  }
  .product-details-preview-slider .slick-arrow {
    display: none !important;
  }

  .product-details__title {
    font-size: clamp(18px, 5vw, 22px);
    word-break: break-word;
    margin-bottom: 6px;
  }

  .product-details .btn--base,
  .product-details .qtyAddCartBtn {
    width: 100%;
    min-height: 44px;
    font-size: 0.85rem;
  }

  .product-details .btn--group {
    flex-direction: column;
    gap: 8px !important;
  }

  /* Sidebar becomes full-width on mobile */
  .product-details__sidebar {
    position: static;
  }
}

/* When sidebar stacks (below desktop), show related books in a multi-column grid */
@media (max-width: 1199px) {
  .product-details__sidebar {
    position: static;
  }
  .product-sidebar-items-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0 24px;
  }
}

/* ======== TABLET PRODUCT PAGE ======== */
@media (min-width: 768px) and (max-width: 991px) {
  .product-details__card {
    padding: 24px;
  }
  .product-details__content {
    flex-direction: column;
    gap: 24px;
  }
  .product-details__thumb {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    max-height: 450px;
    overflow: hidden;
  }
  .product-details-slider__slide img {
    max-height: 380px !important;
  }
}

/* ======== SMALL DESKTOP (992-1199) ======== */
@media (min-width: 992px) and (max-width: 1199px) {
  .product-details__thumb {
    width: 35%;
  }
  .product-details-slider__slide img {
    max-height: 380px;
  }
}

/* Breadcrumb refinement */
.breadcrumb-section .breadcrumb {
  font-size: clamp(12px, 1.5vw, 14px);
  padding: 0;
  margin: 0;
}

/* ========================= 16. CART & CHECKOUT ========================= */
.cart-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .cart-wrapper {
    grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr);
    align-items: flex-start;
  }
}

.cart-list-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--bf-white);
  border: 1px solid var(--bf-border);
  border-radius: var(--bf-radius-md);
  margin-bottom: 24px;
}

.cart-header__title {
  font-family: var(--heading-font);
  color: var(--bf-emerald-dark);
  font-size: 2rem;
  margin-bottom: 8px;
}

.checkout-information {
  background: var(--bf-ivory);
  padding: 32px;
  border-radius: var(--bf-radius-md);
  border: 1px solid var(--bf-border);
}

.checkout-information .title {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--bf-emerald-dark);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--bf-border);
  padding-bottom: 16px;
}

/* ========================= 16. AUTH PAGES ========================= */
.account-page { min-height: 70vh; }
.account-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-6) 0;
}
.account-form {
  background: var(--bf-white);
  border-radius: var(--bf-radius-md);
  padding: 40px 36px;
  border: 1px solid var(--bf-border);
}
.account-form__title {
  font-family: var(--heading-font);
  color: var(--bf-emerald-dark);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.account-form__subtitle {
  color: var(--bf-gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ========================= 16. CAROUSEL & SLIDERS ========================= */
.bf-curated-slider {
  position: relative;
  padding: 0 30px; /* room for arrows */
}

/* Let slick-list clip the cards */
.bf-curated-slider .slick-list {
  overflow: hidden !important;
  margin: 0 -10px;
}

.bf-curated-slider .slick-slide {
  padding: 0 10px;
}
/* Each slide's card must not overflow */
.bf-curated-slider .slick-slide > div {
  overflow: hidden;
}

/* Navigation Arrows */
.bf-curated-slider .slick-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 20;
  width: 40px !important;
  height: 40px !important;
  background: var(--bf-white) !important;
  border: 1px solid rgba(40, 60, 50, 0.15) !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--bf-emerald) !important;
  font-size: 14px;
  cursor: pointer;
  transition: var(--bf-transition);
}

.bf-curated-slider .slick-arrow:hover {
  background: var(--bf-emerald-dark) !important;
  color: var(--bf-white) !important;
  border-color: var(--bf-emerald-dark) !important;
}

.bf-curated-slider .slick-prev {
  left: -5px !important;
}

.bf-curated-slider .slick-next {
  right: -5px !important;
}

/* Hide text in slick buttons if they use it */
.bf-curated-slider .slick-arrow.slick-hidden {
  display: none !important;
}

@media (max-width: 576px) {
  .bf-curated-slider .slick-arrow {
    width: 32px !important;
    height: 32px !important;
  }
  .bf-curated-slider .slick-prev { left: -5px !important; }
  .bf-curated-slider .slick-next { right: -5px !important; }
}

.social-login-btn {
  border: 1px solid var(--bf-border);
  color: var(--bf-text);
  border-radius: var(--bf-radius-sm);
  transition: all 0.2s;
}
.social-login-btn:hover { background: var(--bf-cream); border-color: var(--bf-emerald); }
.have-account__link { color: var(--bf-emerald); font-weight: 600; text-decoration: underline; }
.have-account__link:hover { color: var(--bf-emerald-light); }

/* ========================= 17. FORM CONTROLS ========================= */
.form--control {
  border: 1px solid var(--bf-border) !important;
  border-radius: var(--bf-radius-sm) !important;
  font-family: var(--body-font) !important;
  font-size: 0.88rem !important;
  padding: 10px 16px !important;
  background: var(--bf-white) !important;
  color: var(--bf-text) !important;
}
.form--control:focus {
  border-color: var(--bf-emerald) !important;
  box-shadow: 0 0 0 2px rgba(27,67,50,0.06) !important;
}

/* ========================= 18. BUTTONS GLOBAL ========================= */
.btn--base {
  background: var(--bf-emerald) !important;
  border-color: var(--bf-emerald) !important;
  color: #fff !important;
  font-family: var(--body-font);
  font-weight: 600;
  border-radius: var(--bf-radius-sm);
}
.btn--base:hover {
  background: var(--bf-emerald-dark) !important;
  border-color: var(--bf-emerald-dark) !important;
}

/* ========================= 19. READING ROOM / BLOG ========================= */
.blog-card {
  border-radius: var(--bf-radius-md);
  overflow: hidden;
  border: 1px solid var(--bf-border);
  background: var(--bf-white);
  transition: box-shadow 0.3s;
}
.blog-card:hover { box-shadow: 0 6px 24px rgba(27,67,50,0.08); }
.blog-card .blog-card__title a {
  font-family: var(--heading-font);
  color: var(--bf-emerald-dark);
  font-weight: 600;
}
.blog-card .blog-card__title a:hover { color: var(--bf-emerald-light); }

/* ========================= 20. PAGINATION ========================= */
.pagination .page-item .page-link {
  color: var(--bf-emerald-dark);
  border: 1px solid var(--bf-border);
  border-radius: var(--bf-radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  margin: 0 2px;
}
.pagination .page-item.active .page-link {
  background: var(--bf-emerald);
  border-color: var(--bf-emerald);
  color: #fff;
}

/* ========================= 21. GENERAL PAGE STRUCTURE ========================= */
/* Override old theme section heights and spacing */
.py-120 { padding-top: var(--space-6) !important; padding-bottom: var(--space-6) !important; }
.py-70 { padding: 48px 0 !important; }
.pt-70 { padding-top: 48px !important; }
.pb-70 { padding-bottom: 48px !important; }

@media (max-width: 576px) {
  .py-100 { padding: 28px 0 !important; }
  .py-70 { padding: 28px 0 !important; }
  .pt-70 { padding-top: 28px !important; }
  .pb-70 { padding-bottom: 28px !important; }
}

.dashboard-menu { }
.py-60 { padding-top: var(--space-5) !important; padding-bottom: var(--space-5) !important; }
.mb-60 { margin-bottom: var(--space-5) !important; }

/* Override old header/nav from main.css */
.header { display: none !important; }
.header-bottom { display: none !important; }
.mobile-menu { display: none !important; }

/* Override old newsletter section */
.cta-newsletter-section { display: none !important; }

/* ========================= 22. WISHLIST PAGE ========================= */
.wishlist-section { padding: var(--space-6) 0; }

/* ========================= 23. CART PAGE ========================= */
.cart-page-section { padding: var(--space-6) 0; }

/* ========================= 24. CHECKOUT PAGE ========================= */
.checkout-section { padding: var(--space-6) 0; }

/* ========================= 25. SCROLL TO TOP ========================= */
.scroll-top {
  background: var(--bf-emerald) !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 1rem !important;
}
.scroll-top:hover { background: var(--bf-emerald-dark) !important; }

/* ========================= RESPONSIVE — TABLET ========================= */
@media (max-width: 1199px) {
  .bf-hero .container {
    gap: 32px;
  }
  .bf-hero__title {
    font-size: clamp(28px, 3vw, 42px);
  }
  .bf-curated-layout {
    grid-template-columns: 1fr;
  }
  .bf-service-bar__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .bf-service-bar__item:nth-child(3) { border-right: none; }
}

@media (max-width: 991px) {
  .bf-hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bf-hero__content { padding: 10px 0 0; }
  .bf-hero__accent-container { justify-content: center; }
  .bf-hero__description { margin: 0 auto 24px; }
  .bf-hero__actions { justify-content: center; }
  .bf-hero__image {
    height: clamp(220px, 50vw, 340px);
    border-radius: var(--bf-radius-md);
  }
  
  .bf-discovery-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bf-discovery-strip__item:nth-child(2) { border-right: none; }

  .bf-service-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .bf-service-bar__item:nth-child(2),
  .bf-service-bar__item:nth-child(4) { border-right: none; }
}

/* ========================= RESPONSIVE — MOBILE ========================= */
@media (max-width: 767px) {
  .container, .custom--container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .bf-hero { padding: 0; }
  .bf-hero__title { font-size: 28px; }
  .bf-curated-section { padding: var(--space-5) 0; }
  
  .bf-discovery-strip__grid {
    grid-template-columns: 1fr 1fr;
  }
  .bf-discovery-strip__item { padding: 16px; }

  .bf-service-bar__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 479px) {
  .bf-discovery-strip__grid,
  .bf-service-bar__grid {
    grid-template-columns: 1fr;
  }
  .bf-discovery-strip__item,
  .bf-service-bar__item {
    border-right: none;
    border-bottom: 1px solid var(--bf-border);
    padding: 14px 16px;
  }
  .bf-discovery-strip__item:last-child,
  .bf-service-bar__item:last-child { border-bottom: none; }
  .bf-hero__image { height: 220px; }
}

/* ===========================================================================
   MAX 5-COLUMN PRODUCT GRID — GLOBAL OVERRIDE
   =========================================================================== */

/* Override Bootstrap col-xxl-2 which creates 6 columns */
.row > .col-xxl-2 {
  flex: 0 0 20% !important;
  max-width: 20% !important;
}

/* Responsive grid breakpoints for product grids */
@media (max-width: 1199px) {
  .row > .col-xxl-2 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
}
@media (max-width: 991px) {
  .row > .col-xxl-2 {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
  }
}
@media (max-width: 767px) {
  .row > .col-xxl-2 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

/* Products listing page — same override */
#grid-view > .col-xxl-2 {
  flex: 0 0 20% !important;
  max-width: 20% !important;
}
@media (max-width: 1199px) {
  #grid-view > .col-xxl-2 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
}
@media (max-width: 991px) {
  #grid-view > .col-xxl-2 {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
  }
}
@media (max-width: 767px) {
  #grid-view > .col-xxl-2 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

/* Ensure grids don't stretch last row items */
.row.gy-4 {
  row-gap: clamp(16px, 2vw, 24px) !important;
}

/* ===========================================================================
   CONTAINER WIDTH REFINEMENT
   =========================================================================== */
.custom--container {
  width: min(calc(100% - 48px), 1500px) !important;
  margin-inline: auto !important;
}
@media (max-width: 767px) {
  .custom--container {
    width: calc(100% - 32px) !important;
  }
}

/* ===========================================================================
   SECTION SPACING REFINEMENT
   =========================================================================== */
.bf-curated-section {
  padding: clamp(32px, 4vw, 56px) 0 !important;
}

.bf-section-heading {
  margin-bottom: clamp(16px, 2vw, 28px) !important;
}

.bf-section-heading__title {
  font-size: clamp(22px, 2.5vw, 32px) !important;
}

/* ===========================================================================
   PREMIUM FOOTER REDESIGN
   =========================================================================== */
.bf-footer {
  background: linear-gradient(175deg, #0f3d2b 0%, #0a2e1f 100%);
  color: var(--bf-ivory);
  font-family: var(--body-font);
}

.bf-footer a {
  color: var(--bf-ivory);
  text-decoration: none;
  transition: color 0.2s ease;
}
.bf-footer a:hover {
  color: var(--bf-gold-light);
}

/* Footer Top — Brand + Columns */
.bf-footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(40px, 5vw, 72px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 991px) {
  .bf-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 575px) {
  .bf-footer__top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Brand Column */
.bf-footer__brand-logo {
  max-width: 200px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: brightness(0) invert(1) brightness(1.15);
}
.bf-footer__brand-tagline {
  font-family: var(--heading-font);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  color: var(--bf-gold-light);
  line-height: 1.3;
  margin-bottom: 12px;
}
.bf-footer__brand-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 300px;
}

/* Footer Nav Columns */
.bf-footer__col-title {
  font-family: var(--body-font);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bf-gold-light);
  margin-bottom: 18px;
}
.bf-footer__col-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bf-footer__col-links li {
  margin-bottom: 10px;
}
.bf-footer__col-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}
.bf-footer__col-links a:hover {
  color: var(--bf-gold-light);
  padding-left: 3px;
}

/* Footer Newsletter Row */
.bf-footer__newsletter {
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.bf-footer__newsletter-text h4 {
  font-family: var(--heading-font);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--bf-ivory);
  margin-bottom: 4px;
}
.bf-footer__newsletter-text p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.bf-footer__newsletter-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  width: 100%;
}
.bf-footer__newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--bf-radius-sm) 0 0 var(--bf-radius-sm);
  padding: 12px 16px;
  color: var(--bf-ivory);
  font-size: 0.88rem;
  font-family: var(--body-font);
  outline: none;
}
.bf-footer__newsletter-input::placeholder {
  color: rgba(255,255,255,0.4);
}
.bf-footer__newsletter-input:focus {
  border-color: var(--bf-gold);
}
.bf-footer__newsletter-btn {
  background: var(--bf-gold);
  color: var(--bf-emerald-dark);
  border: none;
  border-radius: 0 var(--bf-radius-sm) var(--bf-radius-sm) 0;
  padding: 12px 22px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--body-font);
}
.bf-footer__newsletter-btn:hover {
  background: var(--bf-gold-light);
}

/* Footer Bottom Bar */
.bf-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid rgba(185, 140, 53, 0.2);
}
.bf-footer__social {
  display: flex;
  gap: 12px;
}
.bf-footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: all 0.2s;
}
.bf-footer__social a:hover {
  background: var(--bf-gold);
  color: var(--bf-emerald-dark);
  border-color: var(--bf-gold);
}
.bf-footer__copyright {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.bf-footer__legal {
  display: flex;
  gap: 20px;
}
.bf-footer__legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.bf-footer__legal a:hover {
  color: var(--bf-gold-light);
}

/* Mobile footer accordion */
@media (max-width: 575px) {
  .bf-footer__newsletter {
    flex-direction: column;
    align-items: flex-start;
  }
  .bf-footer__newsletter-form {
    max-width: 100%;
  }
  .bf-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .bf-footer__col-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .bf-footer__col-title::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--bf-gold-light);
    transition: transform 0.2s;
  }
  .bf-footer__col-title.active::after {
    content: '−';
  }
  .bf-footer__col-links {
    display: none;
    padding: 10px 0;
  }
  .bf-footer__col-links.show {
    display: block;
  }
}

/* Override old footer styles */
footer.footer-section,
.footer-section {
  display: none !important;
}

/* ===========================================================================
   RELATED PRODUCTS (product detail page)
   =========================================================================== */
.up-sell .row > [class*="col-"],
.cross-sell .row > [class*="col-"] {
  flex: 0 0 20%;
  max-width: 20%;
}
@media (max-width: 1199px) {
  .up-sell .row > [class*="col-"],
  .cross-sell .row > [class*="col-"] {
    flex: 0 0 25%;
    max-width: 25%;
  }
}
@media (max-width: 991px) {
  .up-sell .row > [class*="col-"],
  .cross-sell .row > [class*="col-"] {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}
@media (max-width: 767px) {
  .up-sell .row > [class*="col-"],
  .cross-sell .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* ===========================================================================
   SECTION POLISH — HOMEPAGE
   =========================================================================== */

/* Top Categories compact */
.bf-top-categories .product-item__thumb { aspect-ratio: 1 / 1; }

/* Top Publishers refinement */
.bf-publisher-card {
  border: 1px solid var(--bf-border);
  border-radius: var(--bf-radius-md);
  padding: 20px;
  text-align: center;
  background: var(--bf-white);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.bf-publisher-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.bf-publisher-card img {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 10px;
}
.bf-publisher-card__name {
  font-family: var(--body-font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bf-text-dark);
}

/* Weekly Best Writer */
.bf-writer-card {
  text-align: center;
  padding: 16px;
}
.bf-writer-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid var(--bf-gold-light);
}
.bf-writer-card__name {
  font-family: var(--heading-font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bf-emerald-dark);
  margin-bottom: 2px;
}

/* Testimonials refinement */
.testimonial-card {
  background: var(--bf-white);
  border: 1px solid var(--bf-border);
  border-radius: var(--bf-radius-md);
  padding: clamp(20px, 2vw, 28px);
  transition: box-shadow 0.25s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.testimonial-card .review-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--bf-muted);
}
.testimonial-card .stars {
  color: var(--bf-gold);
  font-size: 0.75rem;
  margin-bottom: 8px;
}

/* Reading Room refinement */
.blog-card {
  border-radius: var(--bf-radius-md);
  overflow: hidden;
  border: 1px solid var(--bf-border);
  background: var(--bf-white);
  transition: box-shadow 0.3s, transform 0.25s;
}
.blog-card:hover {
  box-shadow: 0 6px 24px rgba(27,67,50,0.08);
  transform: translateY(-2px);
}
.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.blog-card .blog-card__title a {
  font-family: var(--heading-font);
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--bf-emerald-dark);
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.blog-card .blog-card__title a:hover {
  color: var(--bf-emerald-light);
}
.blog-card .blog-card__meta {
  font-size: 0.72rem;
  color: var(--bf-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===========================================================================
   GLOBAL BUTTON SYSTEM
   =========================================================================== */
.bf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--body-font);
  font-weight: 600;
  border-radius: var(--bf-radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.bf-btn--primary {
  background: var(--bf-emerald-dark);
  color: #fff;
  border: 2px solid var(--bf-emerald-dark);
  padding: 10px 24px;
  font-size: 0.85rem;
}
.bf-btn--primary:hover {
  background: #0a3525;
  border-color: #0a3525;
  color: #fff;
}
.bf-btn--secondary {
  background: transparent;
  color: var(--bf-emerald-dark);
  border: 2px solid var(--bf-emerald-dark);
  padding: 10px 24px;
  font-size: 0.85rem;
}
.bf-btn--secondary:hover {
  background: var(--bf-emerald-dark);
  color: #fff;
}

/* ===========================================================================
   GLOBAL FORM INPUTS
   =========================================================================== */
input.form--control,
textarea.form--control,
select.form--control {
  min-height: 46px;
}

/* ===========================================================================
   TYPOGRAPHY GLOBAL
   =========================================================================== */
.product-details .product-details__card .product-item__writing .writing-by {
  font-size: 0.95rem !important;
  color: var(--bf-muted) !important;
}

/* Product detail tab content */
.product-details__summary-desc {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--bf-text);
}
.product-details__summary-desc p {
  margin-bottom: 12px;
}

/* Specification list */
.specification-list .specification__item {
  padding: 10px 0;
  border-bottom: 1px solid var(--bf-border);
}
.specification-list .specification__item .title span {
  font-weight: 600;
  color: var(--bf-emerald-dark);
  font-size: 0.88rem;
}
.specification-list .specification__item .value-name span {
  color: var(--bf-text);
  font-size: 0.88rem;
}

/* ===========================================================================
   MOBILE REFINEMENTS
   =========================================================================== */
@media (max-width: 767px) {
  /* Rating stars smaller */
  .product-item .product-reviews .rating { font-size: 0.65rem; }
  
  /* Mobile product grid gap */
  .row.gy-4 { row-gap: 12px !important; }
  
  /* Product card mobile tweaks */
  .product-item__title a {
    font-size: 12.5px;
    min-height: calc(1.4em * 2);
  }
  .writing-by, .writing-by a {
    font-size: 0.7rem !important;
  }
  .product-item__price {
    font-size: 13px;
  }
  .bf-product-badge {
    font-size: 0.5rem;
    padding: 2px 6px;
  }
  .product-item__cart-btn,
  .bf-cart-icon-btn {
    width: 26px;
    height: 26px;
    font-size: 0.6rem;
  }
}

/* ========================= HORIZONTAL PRODUCT CARD ========================= */
.product-item--horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  text-align: left;
}
.product-item--horizontal .product-item__thumb-wrapper {
  flex: 0 0 120px;
}
.product-item--horizontal .product-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  background: transparent;
}
.product-item--horizontal .product-item__content__bottom {
  margin-top: 10px;
}
@media (max-width: 575px) {
  .product-item--horizontal {
    flex-direction: column;
    text-align: center;
  }
  .product-item--horizontal .product-item__thumb-wrapper {
    flex: 0 0 auto;
  }
}

/* ========================= BOOKS BY MOOD PAGE ========================= */
/* Mood page styles are defined inline in books_by_mood.blade.php @push('style') */

/* ===========================================================================
   GLOBAL LOGO SAFETY — Never stretch, cut, blur or distort the logo
   =========================================================================== */
img[alt="Booksfinity"],
.bf-header__logo img,
.bf-mobile-header__logo img,
.bf-footer__brand-logo,
.sidebar-menu__header img[alt],
.logo img,
.footer-item__logo img {
  object-fit: contain !important;
  max-width: 100%;
}
 
 / *   A C C E S S I B I L I T Y   &   W C A G   2 . 2   A A   * /  
 . v i s u a l l y - h i d d e n   {   p o s i t i o n :   a b s o l u t e   ! i m p o r t a n t ;   w i d t h :   1 p x   ! i m p o r t a n t ;   h e i g h t :   1 p x   ! i m p o r t a n t ;   p a d d i n g :   0   ! i m p o r t a n t ;   m a r g i n :   - 1 p x   ! i m p o r t a n t ;   o v e r f l o w :   h i d d e n   ! i m p o r t a n t ;   c l i p :   r e c t ( 0 ,   0 ,   0 ,   0 )   ! i m p o r t a n t ;   w h i t e - s p a c e :   n o w r a p   ! i m p o r t a n t ;   b o r d e r :   0   ! i m p o r t a n t ;   }  
 * : f o c u s - v i s i b l e   {   o u t l i n e :   2 p x   s o l i d   v a r ( - - b a s e - c o l o r ,   # f f 6 b 6 b )   ! i m p o r t a n t ;   o u t l i n e - o f f s e t :   2 p x   ! i m p o r t a n t ;   }  
 @ m e d i a   ( p r e f e r s - r e d u c e d - m o t i o n :   r e d u c e )   {   * ,   : : b e f o r e ,   : : a f t e r   {   a n i m a t i o n - d e l a y :   - 1 m s   ! i m p o r t a n t ;   a n i m a t i o n - d u r a t i o n :   1 m s   ! i m p o r t a n t ;   a n i m a t i o n - i t e r a t i o n - c o u n t :   1   ! i m p o r t a n t ;   b a c k g r o u n d - a t t a c h m e n t :   i n i t i a l   ! i m p o r t a n t ;   s c r o l l - b e h a v i o r :   a u t o   ! i m p o r t a n t ;   t r a n s i t i o n - d u r a t i o n :   0 s   ! i m p o r t a n t ;   t r a n s i t i o n - d e l a y :   0 s   ! i m p o r t a n t ;   }   }  
 