/* ── Brand Palette ───────────────────────────────── */
:root {
  --blue:       #1565C0;
  --blue-dark:  #0D47A1;
  --blue-light: #1976D2;
  --gold:       #F0A500;
  --gold-dark:  #C88A00;
  --navy:       #0D1B2A;
  --surface:    #F4F6FA;
  --header-bg:  #02201e;
}

/* ── Bootstrap overrides ─────────────────────────── */
.bg-primary          { background-color: var(--blue) !important; }
.btn-primary         { background-color: var(--blue); border-color: var(--blue); }
.btn-primary:hover,
.btn-primary:focus   { background-color: var(--blue-dark); border-color: var(--blue-dark); }
.text-primary        { color: var(--blue) !important; }
.border-primary      { border-color: var(--blue) !important; }
.btn-outline-primary { color: var(--blue); border-color: var(--blue); }
.btn-outline-primary:hover { background-color: var(--blue); color: #fff; }
.page-link           { color: var(--blue); }
.page-item.active .page-link { background-color: var(--blue); border-color: var(--blue); }

/* ── Typography ──────────────────────────────────── */
body {
  font-family: 'Noto Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  background: #fff;
}

/* ── Site Header (two-row) ───────────────────────── */
.site-header {
  background: var(--header-bg);
  box-shadow: 0 2px 18px rgba(0,0,0,.45);
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* ── Header top row ──────────────────────────────── */
.header-top { padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }

.brand-link { text-decoration: none; display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand-link img { height: 44px; width: auto; }
.brand-name, .brand-tamil {
  background: linear-gradient(90deg, #FFE566 0%, #F0A500 45%, #FFD050 75%, #C88A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-name  { display: block; font-size: 1.1rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.brand-tamil { display: block; font-size: .7rem; opacity: .9; font-family: 'Noto Sans Tamil', sans-serif; }

/* Header search */
.header-search {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  transition: border-color .2s;
}
.header-search:focus-within { border-color: var(--gold); }
.header-search input {
  flex: 1; background: transparent; border: none;
  color: #fff; padding: .52rem 1rem; font-size: .9rem; outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,.38); }
.header-search .search-btn {
  background: var(--gold); border: none; color: #000;
  padding: 0 1.25rem; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.header-search .search-btn:hover { background: var(--gold-dark); }

/* Header icon links (wishlist / cart / account) */
.header-icon {
  display: flex; align-items: center; gap: .35rem;
  color: rgba(255,255,255,.82); text-decoration: none;
  font-size: .82rem; font-weight: 500; white-space: nowrap;
  position: relative; transition: color .15s;
}
.header-icon:hover { color: var(--gold); }
.header-icon > i  { font-size: 1.3rem; }
.hdr-icon-wrap    { position: relative; display: inline-flex; }
.hdr-badge {
  position: absolute; top: -5px; right: -8px;
  background: var(--gold); color: #000;
  font-size: .58rem; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.header-icon.dropdown-toggle::after { display: none; }

/* Mobile hamburger */
.hdr-hamburger { background: none; border: none; padding: .3rem; line-height: 1; color: #fff; font-size: 1.8rem; }

/* ── Header nav row (desktop) ────────────────────── */
.header-nav { border-top: 1px solid rgba(255,255,255,.06); }
.header-nav-inner { display: flex; align-items: stretch; }

.all-cats-btn {
  display: flex; align-items: center; gap: .5rem;
  color: var(--gold); text-decoration: none;
  border: 1.5px solid var(--gold); border-radius: 4px;
  padding: .45rem 1rem; font-size: .88rem; font-weight: 600;
  white-space: nowrap; flex-shrink: 0; margin: .35rem 0;
  transition: background .15s, color .15s;
}
.all-cats-btn:hover { background: var(--gold); color: #000; }
.all-cats-btn i { font-size: 1.1rem; }

.hdr-nav-link {
  display: flex; align-items: center;
  color: rgba(255,255,255,.78); text-decoration: none;
  padding: .6rem .9rem; font-size: .88rem; font-weight: 500;
  white-space: nowrap; border-bottom: 2.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.hdr-nav-link:hover  { color: var(--gold); border-bottom-color: var(--gold); }
.hdr-nav-link.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }

/* Legacy compat — kept for any stray references */
.btn-cart  { color: rgba(255,255,255,.88) !important; font-size: 1.35rem; line-height: 1; }
.btn-cart:hover { color: var(--gold) !important; }
.navbar .badge { font-size: .58rem; min-width: 16px; }
.btn-nav-login {
  color: var(--gold) !important; border: 1.5px solid var(--gold) !important;
  border-radius: 20px !important; padding: .28rem 1rem !important;
  font-size: .85rem; font-weight: 600;
}
.btn-nav-login:hover { background: var(--gold) !important; color: #000 !important; }
/* old search-bar still used in offcanvas */
.search-bar { border-radius: 24px; overflow: hidden; border: 1.5px solid rgba(255,255,255,.25); display: flex; }
.search-bar:focus-within { border-color: var(--gold); }
.search-bar .form-control { border: none; background: rgba(255,255,255,.12); color: #fff; padding-left: 1rem; font-size: .9rem; }
.search-bar .form-control::placeholder { color: rgba(255,255,255,.5); }
.search-bar .form-control:focus { box-shadow: none; background: rgba(255,255,255,.18); color: #fff; }
.search-bar .btn-search { background: rgba(255,255,255,.15); border: none; color: rgba(255,255,255,.9); padding: 0 1rem; }
.search-bar .btn-search:hover { background: var(--gold); color: #000; }

/* ── Featured Books Slider ───────────────────────── */
.book-slider-section {
  background-color: var(--header-bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}
.book-slider-section.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 32, 30, .78);
  z-index: 0;
}
.book-slider-section .carousel { position: relative; z-index: 1; }
.book-slider .carousel-item { padding: 3.5rem 0 4rem; }
.bs-title-row { padding-bottom: .75rem; }
.bs-row { min-height: 200px; align-items: center; }

.bs-label {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .6rem;
}
.bs-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #c4c0c0;
  line-height: 1.18;
  margin-bottom: .5rem;
}
.bs-author {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .9rem;
}
.bs-desc {
  color: rgba(255,255,255,.72);
  font-size: .93rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  /* max-width: 440px; */
}
.bs-btn {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: .9rem;
  padding: .65rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.bs-btn:hover { background: var(--gold-dark); color: #000; transform: translateY(-2px); }

.bs-cover-col { padding: 1rem 0; }
.bs-cover {
  max-height: 360px;
  /* max-width: 100%; */
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,.7));
  transform: perspective(900px) rotateY(-8deg);
  transition: transform .4s ease;
}
.carousel-item.active .bs-cover { transform: perspective(900px) rotateY(-5deg); }

@media (max-width: 991.98px) {
  .bs-cover { /*max-height: 180px;*/ transform: none !important; }
}

/* Controls */
.book-slider .carousel-control-prev,
.book-slider .carousel-control-next {
  width: 52px;
  opacity: 1;
}
.bs-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: border-color .2s, color .2s;
}
.book-slider .carousel-control-prev:hover .bs-ctrl,
.book-slider .carousel-control-next:hover .bs-ctrl {
  border-color: var(--gold);
  color: var(--gold);
}

/* Indicator dots */
.book-slider .carousel-indicators {
  margin-bottom: .75rem;
}
.book-slider .carousel-indicators [data-bs-target] {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.25);
  border: none;
  margin: 0 3px;
  transition: background .25s, width .25s;
}
.book-slider .carousel-indicators .active {
  background: var(--gold);
  width: 36px;
}

/* ── Book Detail Page Dark Theme ────────────────── */
.bkd-page {
  background: #061a18;
  min-height: 70vh;
}
.bkd-breadcrumb-link { color: rgba(255,255,255,.45); text-decoration: none; }
.bkd-breadcrumb-link:hover { color: var(--gold); }
.bkd-breadcrumb-active { color: rgba(255,255,255,.25) !important; }
.bkd-cover-img { border-radius: 10px !important; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.bkd-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, #FFE566 0%, #F0A500 50%, #C88A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.25;
}
.bkd-subtitle { color: rgba(255,255,255,.45); font-size: .95rem; }
.bkd-meta { color: rgba(255,255,255,.5); font-size: .93rem; }
.bkd-author-link { color: var(--gold); text-decoration: none; font-weight: 600; }
.bkd-author-link:hover { color: var(--gold-dark); }
.bkd-cat-pill {
  background: rgba(240,165,0,.1);
  color: var(--gold);
  border: 1px solid rgba(240,165,0,.3);
  border-radius: 20px;
  padding: .2rem .75rem;
  font-size: .78rem; font-weight: 600;
}
.bkd-cat-pill:hover { background: rgba(240,165,0,.2); color: var(--gold); }
.bkd-divider { border-color: rgba(255,255,255,.1); }
.bkd-price {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, #FFE566 0%, #F0A500 50%, #C88A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bkd-price-strike { color: rgba(255,255,255,.3); text-decoration: line-through; font-size: 1.15rem; }
.bkd-qty-stepper .qty-btn { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.15); }
.bkd-qty-stepper .qty-input { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.15); }
.bkd-cart-btn {
  display: inline-flex; align-items: center;
  background: var(--header-bg);
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 24px;
  padding: .65rem 1.75rem;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.bkd-cart-btn:hover { background: rgba(240,165,0,.1); }
.bkd-oos-badge {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.4);
  border: 1.5px dashed rgba(255,255,255,.18);
  border-radius: 24px;
  padding: .65rem 1.5rem;
  font-size: .95rem;
}
.bkd-notify-btn {
  background: var(--header-bg);
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 24px;
  padding: .65rem 1.5rem;
  font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.bkd-notify-btn:hover { background: rgba(240,165,0,.1); }
.bkd-meta-grid {
  display: flex;
  flex-direction: column;
  /* border: 1px solid rgba(240,165,0,.15); */
  border-radius: 8px;
  overflow: hidden;
  max-width: 400px;
}
.bkd-meta-item {
  display: flex;
  align-items: center;
  padding: .5rem .85rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  gap: .75rem;
}
.bkd-meta-item:last-child { border-bottom: none; }
.bkd-meta-label {
  /* color: var(--gold); */
  color: #cbcac8;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  min-width: 80px;
  flex-shrink: 0;
}
.bkd-meta-value {
  color: #e8e4dd;
  font-size: .88rem;
  font-weight: 500;
}
.bkd-desc-box {
  background: #0d2725;
  border: 1px solid rgba(240,165,0,.15);
  border-radius: 10px;
  padding: 1.5rem;
}
.bkd-desc-heading {
  font-size: 1rem; font-weight: 700;
  /* color: var(--gold); */
  color: #9d9b97;
  margin-bottom: 1rem;
}
.bkd-desc-text { color: rgba(255,255,255,.65); line-height: 1.85; font-size: .93rem; }
.bkd-section-heading {
  font-size: 1.1rem; font-weight: 700;
  background: linear-gradient(135deg, #FFE566 0%, #F0A500 50%, #C88A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bkd-page .book-card {
  background: #0d2725 !important;
  border: 1px solid rgba(255,255,255,.07) !important;
}
.bkd-page .book-title { color: #ddd9d9; }
.bkd-page .book-author { color: rgba(255,255,255,.45); }
.bkd-page .book-price-normal,
.bkd-page .book-price-offer { color: var(--gold); }
.bkd-page .book-price-strike { color: rgba(255,255,255,.3); }

/* ── Books Page Dark Theme ───────────────────────── */
.bks-page {
  background: #061a18;
  min-height: 70vh;
}
.bks-page-hdr {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(240,165,0,.18);
  padding: 1.25rem 0;
}
.bks-page-title {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
  background: linear-gradient(135deg, #FFE566 0%, #F0A500 50%, #C88A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.bks-page-count { color: rgba(255,255,255,.38); font-size: .8rem; margin-top: .15rem; }
.bks-cat-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--header-bg);
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  padding: .35rem 1rem;
  font-size: .84rem; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.bks-cat-toggle:hover { background: rgba(240,165,0,.1); }
.bks-cat-toggle-badge {
  background: var(--gold); color: #000;
  font-size: .62rem; font-weight: 700;
  padding: .1rem .45rem; border-radius: 20px;
}

/* Sidebar */
.bks-sidebar {
  background: var(--header-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(240,165,0,.15);
}
.bks-sidebar-head {
  background: rgba(240,165,0,.08);
  color: var(--gold);
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(240,165,0,.15);
}
.bks-sidebar-link {
  display: flex; align-items: center;
  padding: .55rem 1rem;
  font-size: .88rem;
  text-decoration: none;
  color: rgba(255,255,255,.6);
  border-bottom: 1px solid rgba(255,255,255,.05);
  gap: .6rem;
  transition: background .15s, color .15s;
}
.bks-sidebar-link:hover { background: rgba(255,255,255,.04); color: rgba(255,255,255,.9); }
.bks-sidebar-link--active { color: var(--gold) !important; background: rgba(240,165,0,.07); font-weight: 600; }
.bks-sidebar-icon { font-size: .95rem; flex-shrink: 0; }
.bks-sidebar-tamil { font-size: .72rem; opacity: .55; }
.bks-sidebar-count {
  background: rgba(240,165,0,.15);
  color: var(--gold);
  font-size: .68rem; font-weight: 700;
  padding: .1rem .45rem; border-radius: 20px; flex-shrink: 0;
}

/* Book cards on dark background */
.bks-page .book-card {
  background: #0d2725 !important;
  border: 1px solid rgba(255,255,255,.07) !important;
}
.bks-page .book-title { color: #ddd9d9; }
.bks-page .book-author { color: rgba(255,255,255,.45); }
.bks-page .book-price-normal { color: var(--gold); }
.bks-page .book-price-offer  { color: var(--gold); }
.bks-page .book-price-strike { color: rgba(255,255,255,.3); }
.bks-page .pagination .page-link { background: #0d2725; border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }
.bks-page .pagination .page-item.active .page-link { background: var(--gold); border-color: var(--gold); color: #000; }
.bks-page .pagination .page-link:hover { background: rgba(240,165,0,.1); color: var(--gold); }

/* ── Hero ────────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-light) 100%);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-banner .hero-content { position: relative; z-index: 1; }
.hero-banner .btn-gold {
  background: var(--gold);
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  padding: .65rem 2rem;
  font-size: .95rem;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.hero-banner .btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,165,0,.4);
}
.hero-banner .btn-outline-white {
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 24px;
  padding: .65rem 2rem;
  font-size: .95rem;
  font-weight: 600;
  transition: border-color .2s, background .2s;
}
.hero-banner .btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.hero-logo-bg {
  font-size: 11rem;
  opacity: .08;
  color: #fff;
  line-height: 1;
  user-select: none;
}

/* ── Popular Categories Strip ────────────────────── */
.pop-cats-strip {
  background: var(--header-bg);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 1.25rem 0;
}
.pop-cats-row {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.pop-cat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  padding: .6rem .5rem;
  min-width: 0;
  transition: transform .15s;
  border-right: 1px solid rgba(255,255,255,.07);
}
.pop-cat-item:last-child { border-right: none; }
@media (max-width: 767px) {
  .pop-cats-row {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .pop-cats-row::-webkit-scrollbar { display: none; }
  .pop-cat-item { flex: 0 0 auto; padding: .6rem 1.1rem; }
}
.pop-cat-item:hover { transform: translateY(-2px); }
.pop-cat-icon {
  font-size: 2.9rem;
  line-height: 1;
  display: block;
  background: linear-gradient(135deg, #FFE566 0%, #F0A500 50%, #C88A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cat-icon-gold {
  background: linear-gradient(135deg, #FFE566 0%, #F0A500 50%, #C88A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pop-cat-name {
  font-size: .78rem;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
  font-weight: 500;
}
.pop-cat-viewall .pop-cat-name {
  color: var(--gold);
  font-weight: 700;
}

/* ── Popular Authors Strip ───────────────────────── */
.pop-authors-strip {
  background: var(--header-bg);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 1.5rem 0 2rem;
}
.pop-authors-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #afafaf;
  margin: 0;
  margin-left: 50px;
}
.pop-authors-viewall {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: opacity .15s;
  margin-right: 50px;
}
.pop-authors-viewall:hover { opacity: .75; }
.pop-authors-row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}
@media (max-width: 767px) {
  .pop-authors-row {
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .pop-authors-row::-webkit-scrollbar { display: none; }
}
.pop-author-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  transition: transform .15s;
}
@media (max-width: 767px) { .pop-author-item { flex: 0 0 auto; width: 88px; } }
.pop-author-item:hover { transform: translateY(-3px); }
.pop-author-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid transparent;
  background:
    linear-gradient(var(--header-bg), var(--header-bg)) padding-box,
    linear-gradient(135deg, #FFE566 0%, #F0A500 50%, #C88A00 100%) border-box;
  flex-shrink: 0;
}
.pop-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pop-author-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  background: linear-gradient(135deg, #FFE566 0%, #F0A500 50%, #C88A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pop-author-name {
  font-size: .78rem;
  color: rgba(255,255,255,.85);
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ── Special Offers Section ──────────────────────── */
.so-section {
  background: var(--header-bg);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.so-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c5bebe;
  margin: 0 0 0 50px;
}
.so-heading i {
  background: linear-gradient(135deg, #FFE566 0%, #F0A500 50%, #C88A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.so-viewall {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: opacity .15s;
  margin-right: 50px;
}
.so-viewall:hover { opacity: .75; }
.so-scroll-wrap { position: relative; }
.so-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  margin: 0 1rem;
}
.so-row::-webkit-scrollbar { display: none; }
.so-card {
  flex: 0 0 calc((100% - 5rem) / 6);
  min-width: 145px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  transition: transform .18s;
  display: flex;
  flex-direction: column;
}
.so-card:hover { transform: translateY(-4px); }
.so-cover-link { display: block; text-decoration: none; }
.so-cover-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  position: relative;
}
.so-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.so-cover-placeholder {
  width: 100%; height: 100%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: rgba(255,255,255,.3);
}
.so-stock-badge {
  position: absolute; bottom: .5rem; left: .5rem;
  font-size: .65rem; font-weight: 700;
  padding: .15rem .45rem; border-radius: 4px;
  line-height: 1.4;
}
.so-low-stock  { background: #ff9800; color: #000; }
.so-sold-out   { background: #e53935; color: #fff; }
.so-card-body {
  padding: .65rem .7rem .8rem;
  display: flex; flex-direction: column; flex: 1;
}
.so-title-link { text-decoration: none; }
.so-title {
  font-size: .85rem;
  font-weight: 700;
  color: #bdbbbb;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .2rem;
}
.so-author {
  font-size: .73rem;
  color: rgba(255,255,255,.45);
  margin-bottom: .4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.so-price-row { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .55rem; }
.so-price  { font-size: .88rem; font-weight: 700; color: #fff; }
.so-strike { font-size: .73rem; color: rgba(255,255,255,.35); text-decoration: line-through; }
.so-badge  {
  font-size: .66rem; font-weight: 700;
  background: var(--gold); color: #000;
  padding: .1rem .42rem; border-radius: 4px;
}
.so-cart-form { margin: 0; }
.so-add-cart {
  width: 100%;
  background: var(--header-bg);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: .42rem .5rem;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  display: flex; align-items: center; justify-content: center; gap: .35rem;
}
.so-add-cart:hover { background: #03302c; border-color: rgba(255,255,255,.28); }
.so-add-cart--oos {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.35);
  cursor: not-allowed;
}
.so-add-cart--oos:hover { background: rgba(255,255,255,.1); }
@media (max-width: 991px) {
  .so-card { flex: 0 0 calc((100% - 2rem) / 3); }
}
@media (max-width: 575px) {
  .so-card { flex: 0 0 calc((100% - 1rem) / 2); min-width: 130px; }
  .so-next-btn { right: -6px; }
}

/* ── Features Strip ──────────────────────────────── */
.feat-strip {
  background: var(--header-bg);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
}
.feat-row {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 1rem;
}
.feat-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex: 1;
  min-width: 180px;
  padding: .5rem .75rem;
  border-right: 1px solid rgba(255,255,255,.07);
}
.feat-item:last-child { border-right: none; }
@media (max-width: 575px) {
  .feat-item { border-right: none; min-width: 140px; }
}
.feat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(135deg, #FFE566 0%, #F0A500 50%, #C88A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.feat-icon-wrap i {
  background: linear-gradient(135deg, #FFE566 0%, #F0A500 50%, #C88A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.6rem;
}
.feat-text { min-width: 0; }
.feat-label {
  font-size: .88rem;
  font-weight: 700;
  color: #cfc8c8;
  line-height: 1.2;
}
.feat-sub {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  margin-top: .1rem;
}

/* ── Category strip ──────────────────────────────── */
.category-strip { background: #fff; border-bottom: 1px solid #e4e8f0; }
.btn-cat {
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--blue);
  border: 1px solid #c8d8f4;
  background: #f0f4ff;
  white-space: nowrap;
  transition: all .15s;
  padding: .3rem .85rem;
}
.btn-cat:hover, .btn-cat.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ── Section titles ──────────────────────────────── */
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 0;
}
.section-title .accent-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── Book Cards ──────────────────────────────────── */
.book-card {
  border-radius: 10px !important;
  overflow: hidden;
  border: 1px solid #e4eaf4 !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  background: #fff;
}
.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(21,101,192,.13) !important;
  border-color: #b0c8f0 !important;
}
.book-cover {
  width: 100%;
  height: 200px;
  object-fit: contain;
  display: block;
}
.book-cover-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8f0fe 0%, #c5d8f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #90aad4;
  font-size: 3rem;
}
.book-card .card-body { padding: .7rem; }
.book-title {
  font-size: .82rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-author {
  font-size: .72rem;
  color: #7a8699;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-price-offer  { color: var(--gold-dark); font-weight: 700; font-size: .85rem; }
.book-price-normal { color: var(--blue);      font-weight: 700; font-size: .85rem; }
.book-price-strike { font-size: .72rem; color: #b0b8c8; text-decoration: line-through; }
.btn-add-cart {
  /* background: var(--blue); */
  background: #121212;
  color: #b8b1b1;
  border: none;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  padding: .32rem .5rem;
  width: 100%;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
}
.btn-add-cart:hover { 
  /* background: var(--blue-dark);  */
  color: #fff; 
}
.btn-out-of-stock {
  background: #4f4f4f;
  color: #aaa;
  border: 1.5px dashed #d0d0d0;
  border-radius: 6px;
  font-size: .78rem;
  padding: .32rem .5rem;
  width: 100%;
  cursor: not-allowed;
  letter-spacing: .02em;
}
.badge-offer    { background: var(--gold); color: #000; font-weight: 700; font-size: .63rem; border-radius: 4px; padding: .2em .45em; }
.badge-sold-out { background: #6c757d; color: #fff; font-size: .63rem; border-radius: 4px; padding: .2em .45em; }
.badge-low      { background: #fd7e14; color: #fff; font-size: .63rem; border-radius: 4px; padding: .2em .45em; }

/* ── Features strip ──────────────────────────────── */
.feature-box { padding: 1.25rem .5rem; }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem;
  font-size: 1.4rem;
}
.feature-icon-blue { background: #e8f0fe; color: var(--blue); }
.feature-icon-green { background: #e6f9ee; color: #1a7c3e; }
.feature-icon-gold  { background: #fff8e1; color: var(--gold-dark); }
.feature-icon-teal  { background: #e0f7fa; color: #00796b; }

/* ── Pagination ──────────────────────────────────── */
.pagination { gap: 3px; }
.pagination .page-link { border-radius: 6px !important; color: var(--blue); padding: .38rem .72rem; }
.pagination .page-item.active .page-link { background: var(--blue); border-color: var(--blue); }

/* ── Footer ──────────────────────────────────────── */
.site-footer { background: var(--header-bg); color: rgba(255,255,255,.65); }
.footer-main {
  padding: 3rem 0 2rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, #F0A500 30%, #FFE566 50%, #F0A500 70%, transparent) 1;
}
.footer-logo img { height: 52px; }
.footer-brand-name {
  font-size: 1.15rem; font-weight: 700;
  background: linear-gradient(90deg, #FFE566 0%, #F0A500 45%, #FFD050 75%, #C88A00 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-tagline { font-size: .82rem; line-height: 1.7; color: rgba(255,255,255,.45); margin-bottom: 0; }
.footer-heading {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .85rem;
  background: linear-gradient(90deg, #FFE566 0%, #F0A500 60%, #C88A00 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-links {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-links li { margin-bottom: .1rem; }
.footer-links a {
  display: flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.52);
  text-decoration: none;
  font-size: .83rem;
  line-height: 2;
  transition: color .15s, gap .15s;
}
.footer-links a i { font-size: .65rem; opacity: .5; transition: opacity .15s; }
.footer-links a:hover { color: var(--gold); gap: .6rem; }
.footer-links a:hover i { opacity: 1; }
.footer-whatsapp { color: #4ade80 !important; }
.footer-whatsapp:hover { color: #4ade80 !important; }
.footer-payment li {
  display: flex; align-items: center; gap: .6rem;
  font-size: .83rem; line-height: 2.1;
  color: rgba(255,255,255,.52);
}
.footer-payment li i {
  font-size: 1rem;
  background: linear-gradient(135deg, #FFE566 0%, #F0A500 50%, #C88A00 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
  font-size: 1rem; text-decoration: none;
  transition: background .15s, color .15s, transform .15s, border-color .15s;
}
.footer-social-btn:hover {
  background: var(--gold); border-color: var(--gold);
  color: #000; transform: translateY(-2px);
}
.footer-bottom {
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: .9rem 0;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  text-align: center;
}

/* ── Mobile Bottom Nav Bar ───────────────────────── */
.mob-nav-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--header-bg);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: stretch;
  z-index: 1040;
  padding-bottom: env(safe-area-inset-bottom);
}
.mob-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .5rem .25rem .45rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  font-size: .62rem;
  font-weight: 500;
  gap: .18rem;
  transition: color .15s;
  letter-spacing: .01em;
}
.mob-nav-item i { font-size: 1.4rem; line-height: 1; }
.mob-nav-item.active { color: var(--gold); }
.mob-nav-item:not(.active):hover { color: rgba(255,255,255,.75); }
.mob-nav-icon-wrap { position: relative; display: inline-flex; }
.mob-nav-badge {
  position: absolute;
  top: -4px; right: -8px;
  background: var(--gold);
  color: #000;
  font-size: .52rem;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 991.98px) {
  main { padding-bottom: 68px; }
}

/* ── Mobile Book Action Bar (book detail page) ───── */
body:has(.mob-book-bar) .mob-nav-bar { display: none !important; }
.mob-book-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--header-bg);
  border-top: 1px solid rgba(240,165,0,.25);
  display: flex;
  align-items: stretch;
  gap: .6rem;
  padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom)) .75rem;
  z-index: 1041;
}
.mob-book-bar__action { flex: 2; display: flex; }
.mob-book-bar__btn {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1rem;
  font-size: .88rem;
  font-weight: 700;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
  background: var(--header-bg);
  color: var(--gold);
  letter-spacing: .02em;
}
.mob-book-bar__btn i { font-size: 1.2rem; line-height: 1; }
.mob-book-bar__btn--cart   { background: var(--header-bg); color: var(--gold); border-color: var(--gold); }
.mob-book-bar__btn--notify { background: var(--header-bg); color: var(--gold); border-color: var(--gold); }
.mob-book-bar__btn--wa     { background: var(--header-bg); color: #25d366; border-color: #25d366; flex: 1; }
.mob-book-bar__btn:hover   { opacity: .82; }

/* ── Mobile Offcanvas Nav ────────────────────────── */
#mobileNav .offcanvas-body { overflow-y: auto; }
#mobileNav a:hover { color: var(--blue) !important; }

/* ── Mobile Book Carousel ────────────────────────── */
.carousel-ctrl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  color: var(--blue);
  font-size: 1rem;
}
#newArrivalsCarousel .carousel-control-prev,
#newArrivalsCarousel .carousel-control-next,
#relatedCarousel .carousel-control-prev,
#relatedCarousel .carousel-control-next {
  width: 40px;
  top: 50%;
  transform: translateY(-60%);
  opacity: 1;
}
#newArrivalsCarousel .carousel-control-prev,
#relatedCarousel .carousel-control-prev { left: -14px; }
#newArrivalsCarousel .carousel-control-next,
#relatedCarousel .carousel-control-next { right: -14px; }

/* ── Qty Stepper ─────────────────────────────────── */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--blue);
  border-radius: 30px;
  overflow: hidden;
  height: 44px;
}
.qty-btn {
  background: none;
  border: none;
  width: 44px;
  height: 100%;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  transition: background .15s, color .15s;
  line-height: 1;
}
.qty-btn:hover { background: var(--blue); color: #fff; }
.qty-input {
  width: 52px;
  border: none;
  border-left: 1.5px solid #c8d8f4;
  border-right: 1.5px solid #c8d8f4;
  text-align: center;
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
  height: 100%;
  padding: 0;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Breadcrumb ──────────────────────────────────── */
.breadcrumb-item a { color: var(--blue); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: #6c757d; }

/* ── Misc ────────────────────────────────────────── */
main { min-height: 60vh; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lh-sm { line-height: 1.25; }
a.fw-bold.text-primary { text-decoration: underline; }
@media (max-width: 991px) { .sticky-top { position: static !important; } }

.book-img {
    background-color: beige;
}
