/*
 * BookSaw E-Commerce CSS
 * Fixes + UI for all pages
 */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --primary:        #C5A992;
  --primary-dark:   #9e7b67;
  --primary-light:  #f0e4d7;
  --dark-color:     #2d2d2d;
  --text-muted:     #888;
  --border:         #e8e0d5;
  --bg-light:       #f9f7f4;
  --shadow:         0 4px 24px rgba(0,0,0,0.09);
  --shadow-hover:   0 8px 32px rgba(0,0,0,0.15);
  --radius:         10px;
  --success:        #22c55e;
  --danger:         #ef4444;
  --warning:        #f59e0b;
  --info:           #3b82f6;
  --transition:     all 0.3s ease;
  --header-height:  118px;
}

/* ══════════════════════════════════════════════
   GLOBAL RESET & BASE (RESPONSIVE ON ALL DEVICES)
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--dark-color);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* ══════════════════════════════════════════════
   HEADER ARCHITECTURE: FULLY PERMANENT FIXED HEADER
══════════════════════════════════════════════ */
body:not(.auth-page) {
  padding-top: var(--header-height, 120px) !important;
}

#header-wrap {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: #f3f2ec;
  border-bottom: 1px solid #E2DFC9;
  z-index: 1050 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#header-wrap.header-scrolled,
#header-wrap.sticky {
  background: rgba(243, 242, 236, 0.95) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.12), 0 2px 6px -2px rgba(0, 0, 0, 0.04) !important;
  border-bottom-color: rgba(213, 210, 197, 0.75) !important;
}

.top-content {
  background: #edebe4;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
  transition: padding 0.3s ease, background 0.3s ease;
}

#header-wrap.header-scrolled .top-content {
  padding: 5px 0;
  background: rgba(237, 235, 228, 0.9);
}

.top-content .social-links ul {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.top-content .social-links ul li a {
  color: #6d695f;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.035);
  transition: all 0.25s ease;
  text-decoration: none;
}

.top-content .social-links ul li a:hover {
  color: #fff;
  background: #74642F;
  transform: translateY(-2px);
}

.top-content .right-element {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}

/* 🌐 Currency Selector Pill */
.currency-wrapper {
  display: inline-flex;
  align-items: center;
  background: #f8f7f4;
  border: 1px solid #D5D2C5;
  border-radius: 20px;
  padding: 4px 10px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.currency-wrapper:hover,
.currency-wrapper:focus-within {
  background: #fff;
  border-color: #74642F;
  box-shadow: 0 0 0 3px rgba(116, 100, 47, 0.12);
}

.currency-wrapper .currency-icon {
  font-size: 13px;
  margin-right: 5px;
  user-select: none;
  line-height: 1;
}

#currency-selector {
  border: none !important;
  background: transparent !important;
  color: #2F2F2F;
  font-family: var(--body-font, 'Raleway', sans-serif);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  outline: none !important;
  padding: 0 14px 0 0;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.currency-wrapper .currency-arrow {
  position: absolute;
  right: 8px;
  pointer-events: none;
  font-size: 9px;
  color: #74642F;
  font-weight: bold;
  line-height: 1;
}

#currency-selector option {
  background: #fff;
  color: #2F2F2F;
  font-weight: 600;
  padding: 8px 10px;
}

/* 👤 User Account & 🛒 Cart Links */
.top-content .right-element .for-buy {
  margin-right: 0 !important;
  color: #4F4F4F;
  font-family: var(--body-font, 'Raleway', sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  background: #f8f7f4;
  border: 1px solid #D5D2C5;
}

.top-content .right-element .for-buy:hover {
  color: #74642F;
  background: #fff;
  border-color: #74642F;
  box-shadow: 0 2px 8px rgba(116, 100, 47, 0.12);
}

.top-content .right-element .for-buy i {
  font-size: 14px;
  color: #74642F;
}

.top-content .right-element .for-buy.cart {
  background: #f8f7f4;
  color: #2F2F2F;
  font-weight: 700;
  border: 1px solid #D5D2C5;
  padding: 5px 14px;
}

.top-content .right-element .for-buy.cart:hover {
  background: #74642F;
  color: #fff;
  border-color: #74642F;
  box-shadow: 0 4px 14px rgba(116, 100, 47, 0.25);
}
.top-content .right-element .for-buy.cart:hover i {
  color: #fff;
}

/* 🔍 Expanding Search Bar */
.action-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.action-menu .search-bar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: #f8f7f4;
  border: 1px solid #D5D2C5;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.25s ease, border-color 0.25s ease, border-radius 0.35s ease;
}

#header-wrap.show .action-menu .search-bar,
.action-menu .search-bar.active {
  width: 300px;
  background: #fff;
  border-color: #74642F;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-radius: 38px;
  justify-content: space-between;
  padding: 0 2px 0 0;
}

/* Default state: hide form so icon stays centered in circle */
.action-menu form.search-box {
  display: none;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Open state: show form */
#header-wrap.show .action-menu form.search-box,
.action-menu .search-bar.active form.search-box,
.action-menu.active form.search-box {
  order: 1 !important;
  flex: 1 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 14px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: auto !important;
  height: 100% !important;
  overflow: visible !important;
}

#header-wrap .search-button,
#header-wrap .action-menu .search-button,
.action-menu .search-button {
  order: 2 !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  background: transparent !important;
  color: #4F4F4F !important;
  cursor: pointer !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  transition: color 0.25s ease;
}

.action-menu .search-button:hover,
#header-wrap.show .action-menu .search-button {
  color: #74642F !important;
}

#header-wrap .search-button .icon,
#header-wrap .search-button .icon-search,
.action-menu .search-button .icon,
.action-menu .search-button .icon-search {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  font-size: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
  transform: none !important;
}

.action-menu .search-button .icon:before,
.action-menu .search-button .icon-search:before {
  display: block !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.action-menu .search-input {
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  font-family: var(--body-font, 'Raleway', sans-serif);
  font-size: 13px;
  color: #2F2F2F;
  padding: 6px 0 !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.action-menu .search-input::placeholder {
  color: #9E9E9E;
  font-weight: 400;
  font-size: 12.5px;
}

.search-clear-btn {
  border: none;
  background: transparent;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  padding: 0 8px;
}
.search-clear-btn:hover {
  color: #333;
}

/* Live Search Results Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 350px;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #D7D5CC;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  z-index: 1050;
  animation: searchDropFade 0.2s ease-out;
}

@keyframes searchDropFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
  border-bottom: 1px solid #F5F4F0;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #FAF8F5;
}

.search-result-thumb {
  width: 42px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-family: var(--heading-font, 'Prata', serif);
  font-size: 14px;
  font-weight: 500;
  color: #2F2F2F;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-author {
  font-size: 12px;
  color: #888;
  margin: 0;
}

.search-result-price {
  font-size: 13.5px;
  font-weight: 700;
  color: #74642F;
  margin-top: 2px;
}

.search-dropdown-footer {
  display: block;
  text-align: center;
  padding: 10px 16px;
  background: #FAF9F5;
  font-size: 12.5px;
  font-weight: 600;
  color: #74642F;
  text-decoration: none;
  border-top: 1px solid #EBE7DD;
  transition: all 0.2s ease;
}
.search-dropdown-footer:hover {
  background: #EDEBE4;
  color: #111;
}

.search-dropdown-empty {
  padding: 24px 16px;
  text-align: center;
  color: #888;
  font-size: 13px;
}

/* Main Header inside #header-wrap */
#header {
  padding: 14px 0;
  border-bottom: none;
  background-color: transparent;
  position: relative;
  width: 100%;
  z-index: 1030;
  transition: padding 0.3s ease;
}

#header-wrap.header-scrolled #header {
  padding: 8px 0;
}

#header .main-logo img {
  max-height: 44px;
  width: auto;
  transition: max-height 0.3s ease, transform 0.25s ease;
}

#header-wrap.header-scrolled #header .main-logo img {
  max-height: 38px;
}

#header .main-logo a:hover img {
  transform: scale(1.02);
}

/* Navigation Menu List */
#header .menu-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .mobile-drawer-header,
  .mobile-drawer-profile,
  .mobile-drawer-footer,
  .drawer-only,
  .menu-arrow,
  .menu-icon {
    display: none !important;
  }
}

#header .menu-list .menu-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

#header .menu-list .menu-item a {
  font-family: var(--body-font, 'Raleway', sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2F2F2F;
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  display: inline-block;
  transition: color 0.2s ease;
  line-height: 1.4;
}

#header .menu-list .menu-item a:hover,
#header .menu-list .menu-item.active > a,
#header .menu-list .menu-item > a.active {
  color: #74642F !important;
}

/* Responsive, Perfectly-Centered Underline right below text */
#header .menu-list .menu-item a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: #74642F;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
  pointer-events: none;
}

#header .menu-list .menu-item.active > a::after,
#header .menu-list .menu-item > a.active::after,
#header .menu-list .menu-item:hover > a::after,
#header .menu-list .menu-item > a:hover::after {
  transform: scaleX(1) !important;
}

/* ═══ Hamburger Button & Mobile Navigation ═══ */
#navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  position: relative;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  background: #FAF8F5;
  border: 1.5px solid #dcd6cc;
  border-radius: 9px;
  cursor: pointer;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  z-index: 1050;
}

.hamburger:hover {
  background: #f2ede4;
  border-color: #c5baa8;
  transform: translateY(-1px);
}

.hamburger:focus-visible {
  outline: 2px solid #74642F;
  outline-offset: 2px;
}

.hamburger .bar {
  display: block;
  width: 22px;
  height: 2.2px;
  background: #2F2F2F;
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              background 0.25s ease;
  transform-origin: center;
  pointer-events: none;
}

/* Active Hamburger transforms into clean "X" */
.hamburger.active {
  background: #74642F !important;
  border-color: #74642F !important;
  box-shadow: 0 4px 12px rgba(116, 100, 47, 0.3);
}

.hamburger.active .bar {
  background: #FFFFFF !important;
}

.hamburger.active .bar-1 {
  transform: translateY(7.2px) rotate(45deg);
}

.hamburger.active .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .bar-3 {
  transform: translateY(-7.2px) rotate(-45deg);
}

/* Mobile Nav Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 11, 8, 0.72) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 10040 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mobile-nav-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (max-width: 991px) {
  .top-content .social-links { display: none; }
  .top-content .row > div:first-child { display: none; }
  .top-content .row > div:last-child { width: 100%; flex: 0 0 100%; max-width: 100%; }
  .top-content .right-element {
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }
  .currency-wrapper { padding: 3px 8px; }
  #currency-selector { font-size: 12px; max-width: 110px; }
  .top-content .right-element .for-buy { font-size: 12px; padding: 4px 8px; }

  #header-wrap.show .action-menu .search-bar,
  .action-menu .search-bar.active {
    width: 220px;
  }
  .search-results-dropdown {
    width: 280px;
    right: -20px;
  }

  /* Header row alignment on mobile */
  #header {
    position: relative;
    padding: 12px 0;
  }

  .hamburger {
    display: flex !important;
  }

  .stellarnav .menu-toggle, .stellarnav .close-menu { display: none !important; }
  .stellarnav > ul { display: none; }
  .main-menu.stellarnav { width: 100%; }

  /* ══════════════════════════════════════════════════════════════════════════
     ULTRA-ATTRACTIVE LUXURY MOBILE OFF-CANVAS SIDEBAR DRAWER
     ══════════════════════════════════════════════════════════════════════════ */
  .menu-list {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(340px, 86vw) !important;
    max-width: 360px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: linear-gradient(180deg, #1c1712 0%, #120e0a 100%) !important;
    border: none !important;
    border-left: 1px solid rgba(212, 175, 55, 0.25) !important;
    border-radius: 0 !important;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.7) !important;
    z-index: 10050 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translateX(105%) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                visibility 0.35s ease !important;
  }

  .menu-list.responsive {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Sleek custom scrollbar for mobile drawer */
  .menu-list::-webkit-scrollbar {
    width: 4px;
  }
  .menu-list::-webkit-scrollbar-thumb {
    background: rgba(197, 168, 128, 0.3);
    border-radius: 4px;
  }

  /* Drawer Top Header */
  .mobile-drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 20px 16px !important;
    background: rgba(0, 0, 0, 0.32) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
  }
  .mobile-drawer-header .drawer-logo-img {
    height: 30px !important;
    width: auto !important;
    filter: brightness(0) invert(1) !important;
    display: block !important;
  }
  .drawer-close-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    color: #edebe4 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1 !important;
  }
  .drawer-close-btn:hover,
  .drawer-close-btn:active {
    background: #c5a880 !important;
    color: #120e0a !important;
    border-color: #c5a880 !important;
    transform: rotate(90deg) !important;
  }

  /* Drawer Profile Card */
  .mobile-drawer-profile {
    display: block !important;
    padding: 16px 20px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .drawer-user-profile {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }
  .drawer-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #c5a880 0%, #74642F 100%) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(116, 100, 47, 0.35) !important;
  }
  .drawer-avatar.guest {
    background: rgba(255, 255, 255, 0.08) !important;
    font-size: 20px !important;
  }
  .drawer-user-info {
    overflow: hidden !important;
    flex: 1 !important;
  }
  .drawer-user-name {
    color: #ffffff !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
  }
  .drawer-user-email {
    color: #9f9689 !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 2px !important;
  }
  .drawer-user-pill {
    display: inline-block !important;
    background: rgba(212, 175, 55, 0.18) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    color: #d4af37 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 10px !important;
    margin-top: 5px !important;
  }

  /* Drawer Quick Auth Buttons */
  .drawer-auth-actions {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .drawer-auth-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 8px 12px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }
  .drawer-auth-btn.sign-in,
  .drawer-auth-btn.view-profile {
    background: linear-gradient(135deg, #c5a880 0%, #74642F 100%) !important;
    color: #ffffff !important;
    border: none !important;
  }
  .drawer-auth-btn.sign-in:hover,
  .drawer-auth-btn.view-profile:hover {
    filter: brightness(1.1) !important;
    transform: translateY(-1px) !important;
  }
  .drawer-auth-btn.register,
  .drawer-auth-btn.logout {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #edebe4 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
  .drawer-auth-btn.register:hover,
  .drawer-auth-btn.logout:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
    color: #ffffff !important;
  }

  /* Drawer Navigation Links */
  .menu-list .menu-item {
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    list-style: none !important;
  }
  .menu-list .menu-item:last-child {
    border-bottom: none !important;
  }
  .menu-list .menu-item > a {
    border-radius: 0 !important;
    padding: 13px 20px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #edebe4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: all 0.22s ease !important;
    text-decoration: none !important;
    width: 100% !important;
    background: transparent !important;
  }
  .menu-item-left {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .menu-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
  }
  .menu-arrow {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.3) !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
  }
  .drawer-count-badge {
    background: #c5a880 !important;
    color: #14110d !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    min-width: 22px !important;
    text-align: center !important;
    line-height: 1.4 !important;
  }

  .menu-list .menu-item > a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    padding-left: 24px !important;
  }
  .menu-list .menu-item > a:hover .menu-arrow {
    color: #c5a880 !important;
    transform: translateX(3px) !important;
  }

  #header .menu-list .menu-item.active > a,
  .menu-list .menu-item.active > a {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(197, 168, 128, 0.22) 0%, rgba(197, 168, 128, 0.03) 100%) !important;
    border-left: 4px solid #c5a880 !important;
    font-weight: 700 !important;
    padding-left: 20px !important;
  }
  .menu-list .menu-item.active > a .menu-icon {
    background: rgba(197, 168, 128, 0.3) !important;
    border-color: rgba(197, 168, 128, 0.5) !important;
  }
  .menu-list .menu-item.active > a .menu-arrow {
    color: #c5a880 !important;
    transform: translateX(3px) !important;
  }

  #header .menu-list .menu-item a::after,
  .menu-list .menu-item a::after,
  .menu-list li a::after {
    display: none !important;
    content: none !important;
  }

  /* Drawer Footer */
  .mobile-drawer-footer {
    margin-top: auto !important;
    padding: 20px !important;
    background: rgba(0, 0, 0, 0.35) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    list-style: none !important;
  }
  .drawer-footer-heading {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #8c8477 !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
  }
  .drawer-social-icons {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }
  .drawer-social-icons a {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #edebe4 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    font-size: 13px !important;
  }
  .drawer-social-icons a:hover {
    background: #c5a880 !important;
    color: #120e0a !important;
    border-color: #c5a880 !important;
    transform: translateY(-2px) !important;
  }
  .drawer-badge-guarantee {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 11px !important;
    color: #9f9689 !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 576px) {
  .currency-wrapper .currency-icon { display: none; }
  #currency-selector { max-width: 90px; font-size: 11px; }
  .top-content .right-element .for-buy span { display: none; }
  .top-content .right-element .for-buy.cart span { display: inline; font-size: 11px; }
  #header-wrap.show .action-menu .search-bar,
  .action-menu .search-bar.active {
    width: 180px;
  }
  .search-results-dropdown {
    width: 250px;
    right: -10px;
  }
}

/* ══════════════════════════════════════════════
   PAGE HERO / BREADCRUMB
══════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--dark-color) 0%, #4a3728 100%);
  padding: 60px 0 40px;
  color: #fff;
  text-align: center;
}
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 16px; margin-bottom: 16px; }
.breadcrumb { background: none; padding: 0; margin: 0; justify-content: center; }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active, .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ══════════════════════════════════════════════
   SECTION COMMONS
══════════════════════════════════════════════ */
.section-header {
  position: relative;
  text-align: center;
  margin-bottom: 55px;
}
.section-header .title span {
  font-family: var(--body-font, 'Raleway', sans-serif);
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #a39f93;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}
.section-header .section-title {
  font-family: var(--heading-font, 'Prata', Georgia, serif);
  font-size: 2.85rem;
  font-weight: 500;
  line-height: 1.2;
  color: #2f2f2f;
  position: relative;
  display: inline-block;
  padding: 0 45px;
  margin: 0;
}
.section-header .section-title::before,
.section-header .section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 180px;
  border-bottom: 1px solid #dcd7cb;
}
.section-header .section-title::before {
  right: 100%;
}
.section-header .section-title::after {
  left: 100%;
}
.section-title.divider::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
}
.section-header.align-center { text-align: center; }

@media screen and (max-width: 991px) {
  .section-header {
    margin-bottom: 40px;
  }
  .section-header .section-title {
    font-size: 2.25rem;
    padding: 0 25px;
  }
  .section-header .section-title::before,
  .section-header .section-title::after {
    width: 90px;
  }
}
@media screen and (max-width: 768px) {
  .section-header {
    margin-bottom: 30px;
  }
  .section-header .title span {
    font-size: 12px;
    letter-spacing: 2px;
  }
  .section-header .section-title {
    font-size: 1.85rem;
    padding: 0 15px;
  }
  .section-header .section-title::before,
  .section-header .section-title::after {
    width: 35px;
  }
}

/* ══════════════════════════════════════════════
   PRODUCT CARD
══════════════════════════════════════════════ */
.product-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}
/* ══════════════════════════════════════════════
   AUTHENTIC BOOKSAW PRODUCT CARD STYLING
   (Exact Match to Original Clean Minimal Design)
══════════════════════════════════════════════ */
.product-item {
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
  margin-bottom: 24px;
}
.product-item:hover {
  transform: translateY(-4px);
}

.product-style {
  position: relative;
  overflow: hidden;
  margin: 0 0 16px 0;
  background: #F3F2EC;
  border: 1px solid #ECEAE3;
  border-radius: 4px;
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.product-item:hover .product-style {
  border-color: #dfdbcf;
}
.product-thumb-link {
  display: block;
  width: 100%;
}
.product-style img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.45;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease;
  display: block;
  margin: 0 auto;
}
.product-style:hover img {
  transform: scale(1.03);
}

/* Original Booksaw Slide-up Add to Cart button on hover */
.product-style .add-to-cart {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #23201d;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 13px 0;
  text-align: center;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.2s ease;
  transform: translateY(100%);
  line-height: 1;
}
.product-style:hover .add-to-cart {
  transform: translateY(0);
}
.product-style .add-to-cart:hover {
  background: #74642F;
}

/* Discount Badge */
.book-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 12;
  background: #dc2626;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}

/* Product Hover Actions Wrap */
.product-hover-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.product-style:hover .product-hover-actions {
  transform: translateY(0);
}
.product-hover-actions .add-to-cart {
  position: relative !important;
  transform: none !important;
  width: 100% !important;
}
.btn-quick-sample {
  display: block;
  background: rgba(255, 255, 255, 0.95);
  color: #74642F;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 0;
  text-align: center;
  text-decoration: none;
  border-top: 1px solid rgba(197, 169, 146, 0.3);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-quick-sample:hover {
  background: #f7f4ee;
  color: #4a3f1d;
}

/* Card Rating */
.card-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  color: #f59e0b;
  margin-bottom: 4px;
}
.card-rating .review-count {
  font-size: 11px;
  color: #888;
}

/* Wishlist Action Button on Top-Right */
.card-side-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.circle-btn-action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  color: #333;
}
.circle-btn-action:hover {
  transform: scale(1.1);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.wishlist-btn .heart-svg {
  transition: all 0.2s ease;
}
.wishlist-btn:hover .heart-svg {
  stroke: #ef4444;
  fill: rgba(239, 68, 68, 0.15);
}
.wishlist-btn.active {
  background: #ffffff;
}

/* Figcaption Text Center Alignment (Identical to Screenshot) */
.product-item figcaption {
  text-align: center;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-item figcaption h3 {
  font-family: 'Prata', 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: #74642F;
  margin: 0 0 4px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.product-item figcaption h3 a {
  color: #74642F;
  text-decoration: none;
  transition: color 0.2s ease;
}
.product-item figcaption h3 a:hover {
  color: #2c2723;
}
.product-item .author {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  color: #888888;
  font-weight: 400;
  margin: 0 0 6px 0;
  display: block;
}
.product-item .item-price {
  font-family: 'Prata', 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: #74642F;
  margin: 0;
}
.product-item .prev-price {
  color: #a8a095;
  font-size: 13px;
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 6px;
}

@media (max-width: 768px) {
  .product-style {
    padding: 18px 14px;
  }
  .product-style .add-to-cart {
    transform: translateY(0);
    padding: 9px 0;
    font-size: 10px;
    letter-spacing: 0.8px;
    background: rgba(35, 32, 29, 0.92);
  }
  .product-item figcaption h3 {
    font-size: 15px;
  }
}
.prev-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 4px;
}

.view-detail-btn {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.3px;
}
.view-detail-btn:hover { color: var(--primary-dark); gap: 4px; }

/* ══════════════════════════════════════════════
   TABS
══════════════════════════════════════════════ */
ul.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
  margin-bottom: 0;
}
ul.tabs .tab {
  padding: 10px 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px 6px 0 0;
  color: var(--text-muted);
  border: 2px solid transparent;
  border-bottom: none;
  position: relative;
  bottom: -2px;
  transition: var(--transition);
}
ul.tabs .tab.active {
  color: var(--primary);
  background: #fff;
  border-color: var(--border);
  border-bottom-color: #fff;
}
ul.tabs .tab:hover:not(.active) { color: var(--primary-dark); }

[data-tab-content] { display: none; }
[data-tab-content].active { display: block; }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn-primary-full {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-align: center;
}
.btn-primary-full:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197,169,146,0.4);
}

.btn-accent-arrow {
  font-family: var(--body-font, 'Raleway', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: #2f2f2f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}
.btn-accent-arrow i.icon {
  font-size: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
}
.btn-accent-arrow:hover {
  color: var(--primary);
}
.btn-accent-arrow:hover i.icon {
  transform: translateX(6px);
}

/* Neutralize legacy style.css layout shift bug on button icons */
.btn-wrap:hover i.icon,
.btn-wrap:hover i {
  padding-left: 0 !important;
}

.btn-cart-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-cart-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-cart-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--dark-color);
  border: 2px solid var(--dark-color);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline-dark:hover { background: var(--dark-color); color: #fff; }

/* ══════════════════════════════════════════════
   SHOP PAGE: NATURAL FULL PAGE SCROLL & STICKY SIDEBAR
══════════════════════════════════════════════ */
body.shop-page-body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh;
}

.shop-main-wrapper {
  display: flex;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 60px;
  gap: 28px;
  box-sizing: border-box;
  align-items: flex-start; /* Required for position: sticky sidebar */
}

/* Left Sidebar: Sticky while browsing books */
@media (min-width: 901px) {
  .shop-sidebar {
    width: 290px;
    min-width: 290px;
    max-width: 290px;
    position: sticky !important;
    top: calc(var(--header-height, 118px) + 16px);
    max-height: calc(100vh - var(--header-height, 118px) - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #ffffff;
    border: 1.5px solid #eae5dc;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: #d6ccbd transparent;
  }

  .shop-products-column {
    flex: 1;
    min-width: 0;
  }

  .shop-toolbar-card {
    position: sticky;
    top: calc(var(--header-height, 118px) + 8px);
    z-index: 30;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid #eae5dc;
    border-radius: 14px;
    padding: 10px 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.045);
    margin-bottom: 22px;
  }
}

/* Custom Scrollbars for Shop Sidebar */
.shop-sidebar::-webkit-scrollbar {
  width: 6px;
}
.shop-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.shop-sidebar::-webkit-scrollbar-thumb {
  background: #d6ccbd;
  border-radius: 6px;
}
.shop-sidebar::-webkit-scrollbar-thumb:hover {
  background: #74642F;
}

/* Upper Category Filter Pills */
.upper-category-pills {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  min-width: 0;
}
.upper-category-pills::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f7f5f0;
  color: #4a453e;
  border: 1.5px solid #eae5dc;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  line-height: 1.2;
}
.cat-pill:hover {
  background: #ede8dc;
  color: #2b2621;
  border-color: #d6ccbd;
  transform: translateY(-1px);
}
.cat-pill.active {
  background: #74642F !important;
  color: #ffffff !important;
  border-color: #74642F !important;
  box-shadow: 0 3px 10px rgba(116, 100, 47, 0.25);
}
.cat-pill .cat-pill-count {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 7px;
  border-radius: 12px;
  font-weight: 700;
}
.cat-pill.active .cat-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Mobile & Tablet (< 901px) */
@media (max-width: 900px) {
  .shop-main-wrapper {
    display: block !important;
    padding: 14px 16px 40px;
    width: 100%;
  }

  .mobile-filter-btn {
    display: flex;
  }

  .sidebar-mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .shop-sidebar {
    display: none;
    position: relative;
    top: 0;
    width: 100%;
    max-height: none;
    overflow-y: visible;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1.5px solid #eae5dc;
  }
  .shop-sidebar.show-mobile {
    display: block !important;
    animation: fadeInSidebar 0.25s ease;
  }

  .shop-toolbar-card {
    position: sticky;
    top: calc(var(--header-height, 70px) + 6px);
    z-index: 30;
    padding: 10px 14px;
  }

  .upper-category-pills {
    margin: 8px 0 0;
    padding: 4px 0 8px;
  }
}

@keyframes fadeInSidebar {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shop Column Header (Title + Breadcrumb) */
.shop-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid #ebe5da;
}
.shop-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #2b2621;
  margin: 0 0 2px;
}
.shop-page-subtitle {
  font-size: 13.5px;
  color: #796e62;
  margin: 0;
}
.shop-column-header .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 13px;
}
.shop-column-header .breadcrumb-item a {
  color: #74642F;
  font-weight: 600;
}
.shop-column-header .breadcrumb-item.active {
  color: #8c8276;
}


/* Sidebar Top Bar */
.sidebar-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1.5px solid #f1ece4;
}
.sidebar-top-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-top-icon {
  font-size: 16px;
}
.sidebar-top-bar h3 {
  font-size: 16px;
  font-weight: 800;
  color: #2b2621;
  margin: 0;
  letter-spacing: 0.2px;
}
.sidebar-quick-reset {
  background: #faf7f2;
  border: 1px solid #e5ded3;
  color: #74642F;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.sidebar-quick-reset:hover {
  background: #74642F;
  color: #ffffff;
  border-color: #74642F;
}

/* Sidebar Sections */
.sidebar-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #e7e1d6;
}
.sidebar-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.sidebar-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sidebar-sec-header h4 {
  font-size: 13px;
  font-weight: 800;
  color: #3b352e;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.sidebar-sec-badge {
  font-size: 11px;
  font-weight: 700;
  background: #f1ece4;
  color: #72685c;
  padding: 2px 7px;
  border-radius: 10px;
}
.filter-active-pill {
  font-size: 10.5px;
  font-weight: 700;
  background: #e6f4ea;
  color: #137333;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.4px;
}

/* Sidebar Search Box */
.sidebar-search-box {
  display: flex;
  align-items: center;
  position: relative;
  background: #faf8f5;
  border: 1.5px solid #ded7cb;
  border-radius: 10px;
  padding: 3px 4px 3px 12px;
  transition: all 0.2s ease;
}
.sidebar-search-box:focus-within {
  background: #ffffff;
  border-color: var(--primary, #74642F);
  box-shadow: 0 0 0 3px rgba(116, 100, 47, 0.12);
}
.sidebar-search-box .search-box-icon {
  font-size: 14px;
  color: #8a8075;
  margin-right: 6px;
  user-select: none;
}
.sidebar-search-box input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  padding: 7px 4px;
  color: #2c2825;
  min-width: 0;
}
.sidebar-search-box input[type="text"]::placeholder {
  color: #9e958c;
}
.sidebar-search-clear {
  background: none;
  border: none;
  color: #999;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 7px;
  display: none;
  line-height: 1;
  border-radius: 4px;
}
.sidebar-search-clear:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}
.sidebar-search-btn {
  background: var(--primary, #74642F);
  color: #ffffff;
  border: none;
  border-radius: 7px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.sidebar-search-btn:hover {
  background: #8e7b39;
  box-shadow: 0 2px 6px rgba(116, 100, 47, 0.3);
}

/* Category Chooser List */
.category-chooser-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.category-chooser-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  background: #faf8f5;
  border: 1px solid #ebe5dc;
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
}
.category-chooser-item:hover {
  background: #f4efe6;
  border-color: #d6ccbd;
  transform: translateX(3px);
}
.category-chooser-item.active {
  background: linear-gradient(135deg, #74642F 0%, #8c7a3a 100%) !important;
  border-color: #74642F !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(116, 100, 47, 0.25);
  transform: translateX(2px);
}
.category-chooser-item.active .cat-name {
  color: #ffffff !important;
}
.category-chooser-item.active .cat-count {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}
.cat-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cat-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
}
.cat-name {
  font-size: 13.5px;
  color: #3b352e;
  font-weight: 600;
}
.cat-count {
  font-size: 11px;
  font-weight: 700;
  background: #eee8de;
  color: #635a4f;
  padding: 2px 7px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

/* Price Range Slider */
.price-val-bubble {
  font-size: 12px;
  font-weight: 700;
  background: #f4eee3;
  color: #74642F;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #ded6c8;
}
.price-slider-wrap {
  margin-top: 10px;
}
.price-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--primary, #74642F);
  cursor: pointer;
  height: 6px;
  border-radius: 4px;
}
.price-range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #8c8276;
  margin-top: 6px;
  font-weight: 500;
}

/* Customer Rating Choices */
.rating-choice-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rating-choice-item {
  display: flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 9px;
  background: #faf8f5;
  border: 1px solid #ebe5dc;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
  user-select: none;
}
.rating-choice-item:hover {
  background: #f4efe6;
  border-color: #d8cfc0;
}
.rating-choice-item.active {
  background: #fbf7ee;
  border-color: var(--primary, #74642F);
  box-shadow: 0 0 0 1px var(--primary, #74642F);
}
.rating-choice-item input[type="radio"] {
  accent-color: var(--primary, #74642F);
  margin-right: 9px;
  cursor: pointer;
  transform: scale(1.05);
}
.stars-gold {
  color: #f59e0b;
  font-size: 13.5px;
  letter-spacing: 1px;
  margin-right: 6px;
}
.rating-choice-text {
  font-size: 13px;
  font-weight: 600;
  color: #4a4239;
}

/* Status Filter Items */
.status-filter-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.status-filter-item {
  display: flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 9px;
  background: #faf8f5;
  border: 1px solid #ebe5dc;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
  user-select: none;
}
.status-filter-item:hover {
  background: #f4efe6;
  border-color: #d8cfc0;
}
.status-filter-item input[type="checkbox"] {
  accent-color: var(--primary, #74642F);
  margin-right: 9px;
  cursor: pointer;
  transform: scale(1.05);
}
.status-item-text {
  font-size: 13px;
  font-weight: 600;
  color: #3f3830;
  flex: 1;
}
.status-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
.in-stock-dot {
  background: #e6f4ea;
  color: #137333;
}
.sale-badge {
  background: #fee2e2;
  color: #dc2626;
}
.feat-badge {
  background: #fef3c7;
  color: #92400e;
}

/* Sidebar Action Buttons */
.sidebar-action-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.btn-sidebar-apply {
  width: 100%;
  background: linear-gradient(135deg, #74642F 0%, #8c7a3a 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(116, 100, 47, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-sidebar-apply:hover {
  background: linear-gradient(135deg, #837237 0%, #998741 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(116, 100, 47, 0.3);
}
.btn-sidebar-apply:active {
  transform: translateY(0);
}
.btn-sidebar-reset {
  width: 100%;
  background: transparent;
  color: #61574c;
  border: 1.5px solid #ded7ca;
  border-radius: 10px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-sidebar-reset:hover {
  background: #faf6ee;
  border-color: #74642F;
  color: #74642F;
}

/* ══════════════════════════════════════════════
   SHOP TOOLBAR (Directly Above Books Grid)
══════════════════════════════════════════════ */
.shop-toolbar-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid #eae5dc;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.045);
  margin-bottom: 24px;
  position: sticky;
  top: calc(var(--header-height, 118px) + 16px);
  z-index: 45;
  transition: all 0.25s ease;
}
@media (max-width: 900px) {
  .shop-toolbar-card {
    position: sticky;
    top: calc(var(--header-height, 70px) + 8px);
    z-index: 40;
    padding: 10px 14px;
  }
}
@media (max-width: 600px) {
  .shop-toolbar-primary {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .toolbar-left, .toolbar-right {
    justify-content: space-between;
    width: 100%;
  }
  .sort-select-wrap {
    flex: 1;
  }
  .sort-select-wrap select {
    width: 100%;
  }
}
.shop-toolbar-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.results-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #faf8f5;
  border: 1px solid #ebe5dc;
  border-radius: 20px;
  padding: 6px 14px;
}
.results-badge-icon {
  font-size: 15px;
}
.results-count {
  font-size: 13.5px;
  font-weight: 600;
  color: #4a4239;
}
.results-count strong {
  color: var(--primary, #74642F);
  font-weight: 800;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Sort Select Box */
.sort-select-wrap {
  display: flex;
  align-items: center;
  background: #faf8f5;
  border: 1.5px solid #ded6c9;
  border-radius: 10px;
  padding: 2px 10px;
  transition: all 0.2s ease;
}
.sort-select-wrap:focus-within {
  border-color: var(--primary, #74642F);
  box-shadow: 0 0 0 3px rgba(116, 100, 47, 0.12);
  background: #ffffff;
}
.sort-icon {
  color: var(--primary, #74642F);
  font-size: 15px;
  font-weight: 700;
  margin-right: 6px;
  user-select: none;
}
.sort-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #7b7165;
  margin: 0 4px 0 0;
  white-space: nowrap;
}
.sort-select-wrap select {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: #2c2825;
  padding: 6px 4px;
  cursor: pointer;
}

/* View Mode Toggle */
.shop-view-toggle {
  display: flex;
  background: #f1ede6;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid #e1d8cc;
  gap: 3px;
}
.view-toggle-btn {
  border: none;
  background: transparent;
  border-radius: 7px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #665d52;
  cursor: pointer;
  transition: all 0.2s ease;
}
.view-toggle-btn svg {
  fill: currentColor;
  flex-shrink: 0;
}
.view-toggle-btn:hover {
  color: #222;
  background: rgba(255, 255, 255, 0.6);
}
.view-toggle-btn.active {
  background: var(--primary, #74642F);
  color: #ffffff !important;
  box-shadow: 0 2px 7px rgba(116, 100, 47, 0.35);
  font-weight: 700;
}

/* Active Filter Chips Bar */
.shop-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e6dfd3;
}
.active-filters-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #7b7165;
  margin-right: 4px;
}
.active-filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fbf7ee;
  border: 1px solid #e5dccb;
  color: #574b24;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.active-filter-chip:hover {
  background: #f7f1e2;
  border-color: #d8cbb4;
}
.chip-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: #8c7d5c;
  padding: 1px 3px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s ease;
}
.chip-remove-btn:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
}
.btn-clear-all-chips {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.btn-clear-all-chips:hover {
  background: #fee2e2;
}

/* Grids and List View */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1100px) { .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 600px) { .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 360px) { .shop-grid { grid-template-columns: 1fr; } }

.shop-grid-list { display: flex; flex-direction: column; gap: 16px; }
.shop-grid-list .product-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  background: #ffffff !important;
  border: 1.5px solid #ece6dc !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.25s ease !important;
  text-align: left !important;
}
.shop-grid-list .product-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
  border-color: #dcd3c4 !important;
  transform: none !important;
}
.shop-grid-list .btn-card-add-cart {
  background: #23201d;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.shop-grid-list .btn-card-add-cart:hover {
  background: #74642F;
}

.pagination-wrap { display: flex; gap: 8px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.page-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ══════════════════════════════════════════════
   PRODUCT DETAIL PAGE
══════════════════════════════════════════════ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 768px) { .product-detail { grid-template-columns: 1fr; } }

.product-gallery img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.product-info h1 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 10px; }
.product-author { font-size: 15px; color: var(--text-muted); margin-bottom: 12px; }
.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 12px 0;
}
.product-desc { color: #555; line-height: 1.8; font-size: 15px; margin: 16px 0; }
.product-meta p { display: flex; gap: 8px; font-size: 14px; margin-bottom: 6px; color: #555; }
.product-meta span { font-weight: 700; color: var(--dark-color); min-width: 80px; }

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.qty-selector button {
  width: 38px;
  height: 38px;
  border: none;
  background: var(--bg-light);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}
.qty-selector button:hover { background: var(--primary); color: #fff; }
.qty-selector input {
  width: 50px;
  height: 38px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
}

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.tag:hover { background: var(--primary); color: #fff; }

/* Reviews */
.review-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.reviewer { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.reviewer h5 { margin: 0; font-size: 15px; }
.reviewer small { color: var(--text-muted); }

/* ══════════════════════════════════════════════
   CART PAGE
══════════════════════════════════════════════ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
}
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-table { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.cart-table table { width: 100%; border-collapse: collapse; background: #fff; }
.cart-table thead { background: var(--dark-color); color: #fff; }
.cart-table th { padding: 12px 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; text-align: left; }
.cart-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14px; }

.cart-product-info { display: flex; align-items: center; gap: 12px; }
.cart-product-info img { width: 60px; height: 80px; object-fit: cover; border-radius: 6px; }
.cart-product-info h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.cart-product-info span { font-size: 12px; color: var(--text-muted); }

.cart-qty-input {
  width: 65px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.cart-remove,
.cart-remove-btn {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #ef4444;
  font-size: 16px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
  outline: none;
  transition: all 0.22s ease-in-out;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.08);
  vertical-align: middle;
}
.cart-remove svg,
.cart-remove-btn svg {
  width: 14px;
  height: 14px;
  stroke: #ef4444;
  stroke-width: 2.5;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
  display: block;
  pointer-events: none;
}
.cart-remove:hover,
.cart-remove-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.cart-remove:hover svg,
.cart-remove-btn:hover svg {
  stroke: #ffffff;
  transform: rotate(90deg);
}
.cart-remove:active,
.cart-remove-btn:active {
  transform: scale(0.92);
}

.cart-summary {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.cart-summary h3 { font-family: 'Playfair Display', serif; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.cart-summary-row.total { font-size: 18px; font-weight: 700; border-bottom: none; padding-top: 12px; }

/* ══════════════════════════════════════════════
   UNIFIED CART ACTIONS TOOLBAR & COUPON SYSTEM
   (Exact 42px height, perfect same-line alignment)
══════════════════════════════════════════════ */
.cart-actions-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-top: 20px !important;
  padding: 16px 20px !important;
  background: #faf8f5 !important;
  border: 1.5px solid #e7ded2 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
}

.cart-coupon-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  flex: 1 1 340px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cart-coupon-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #4a3e31 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  line-height: 42px !important;
  height: 42px !important;
}

.coupon-unified-group {
  display: inline-flex !important;
  align-items: stretch !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  border: 1.5px solid #c9bea9 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  flex: 1 1 auto !important;
  max-width: 360px !important;
  min-width: 240px !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
}

.coupon-unified-group input[type="text"],
.coupon-unified-group input {
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  line-height: normal !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  border: none !important;
  outline: none !important;
  padding: 0 14px !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: #27231e !important;
  background: transparent !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  vertical-align: middle !important;
}

.coupon-unified-group button {
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  flex: 0 0 auto !important;
  border: none !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 20px !important;
  background: linear-gradient(135deg, #74642F 0%, #554a22 100%) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  vertical-align: middle !important;
}

.coupon-unified-group button:hover {
  background: linear-gradient(135deg, #5c4f24 0%, #3e3618 100%) !important;
  color: #ffffff !important;
}

.cart-buttons-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cart-btn-action {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 20px !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  line-height: normal !important;
  vertical-align: middle !important;
  transition: all 0.2s ease !important;
}

.cart-btn-secondary {
  border: 1.5px solid #cfc4b4 !important;
  color: #4a3e31 !important;
  background: #ffffff !important;
}

.cart-btn-secondary:hover {
  border-color: #74642F !important;
  color: #74642F !important;
  background: #fbf9f6 !important;
}

.cart-btn-danger {
  border: 1.5px solid #fecaca !important;
  color: #dc2626 !important;
  background: #ffffff !important;
}

.cart-btn-danger:hover {
  background: #fef2f2 !important;
  border-color: #f87171 !important;
  color: #dc2626 !important;
}

.cart-coupon-applied-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0 14px !important;
  background: #f0fdf4 !important;
  border: 1.5px solid #86efac !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.cart-coupon-applied-badge .code-tag {
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #15803d !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.cart-coupon-applied-badge .percent-chip {
  background: #dcfce7 !important;
  color: #166534 !important;
  font-size: 11px !important;
  padding: 2px 7px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  border: 1px solid #bbf7d0 !important;
}

.cart-coupon-applied-badge .btn-remove-coupon {
  height: 28px !important;
  padding: 0 10px !important;
  background: #ffffff !important;
  border: 1px solid #fca5a5 !important;
  color: #dc2626 !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
}

.cart-coupon-applied-badge .btn-remove-coupon:hover {
  background: #fee2e2 !important;
}

@media (max-width: 768px) {
  .cart-actions-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .cart-coupon-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  .coupon-unified-group {
    max-width: 100% !important;
    width: 100% !important;
  }
  .cart-buttons-group {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .cart-buttons-group .cart-btn-action {
    flex: 1 1 auto !important;
    text-align: center !important;
  }
}

/* ══════════════════════════════════════════════
   CHECKOUT PAGE
══════════════════════════════════════════════ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }

.checkout-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.checkout-form h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--dark-color); margin-bottom: 6px; letter-spacing: 0.3px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Raleway', sans-serif;
  transition: var(--transition);
  background: #fff;
  color: var(--dark-color);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(197,169,146,0.15);
  outline: none;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: var(--transition);
}
.payment-option.selected { border-color: var(--primary); background: var(--primary-light); }
.payment-option:hover { border-color: var(--primary); }
.payment-option input { accent-color: var(--primary); }

.order-review {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.order-item img { width: 50px; height: 65px; object-fit: cover; border-radius: 6px; }
.order-item-details h5 { font-size: 13px; margin: 0; }
.order-item-details span { font-size: 11px; color: var(--text-muted); }
.order-item-price { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--primary-dark); white-space: nowrap; }

/* ══════════════════════════════════════════════
   ORDER SUCCESS
══════════════════════════════════════════════ */
.success-page { text-align: center; max-width: 600px; margin: 0 auto; padding: 60px 20px; }
.success-icon { font-size: 72px; display: block; margin-bottom: 20px; }
.success-page h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 12px; }
.success-page p { color: #666; margin-bottom: 24px; }
.order-detail-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}
.order-detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.order-detail-row:last-child { border-bottom: none; }

/* ══════════════════════════════════════════════
   BLOG PAGE
══════════════════════════════════════════════ */
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.blog-card img { transition: transform 0.5s ease; }
.blog-card:hover img { transform: scale(1.05); }
.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 10px; }
.blog-card-body h3 a { color: var(--dark-color); }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body p { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 14px; }
.blog-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12px; color: var(--text-muted); }
.read-more-btn { font-size: 13px; font-weight: 700; color: var(--primary); }
.read-more-btn:hover { color: var(--primary-dark); }

/* ══════════════════════════════════════════════
   AUTH PAGES (Login / Register) - Distraction Free
══════════════════════════════════════════════ */
body.auth-page {
  background: radial-gradient(circle at 10% 20%, rgba(234, 226, 214, 0.45) 0%, rgba(246, 244, 238, 1) 90%);
  min-height: 100vh;
  margin: 0;
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* Strictly hide header and footer on auth pages */
body.auth-page #page-header,
body.auth-page #page-footer,
body.auth-page #header-wrap,
body.auth-page header#header,
body.auth-page .newsletter-section,
body.auth-page footer.main-footer {
  display: none !important;
}

.auth-wrapper {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.auth-wrapper.register-wrapper {
  max-width: 520px;
}

.auth-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  width: 100%;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #74642F;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #dfd8cb;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.auth-back-link:hover {
  background: #74642F;
  color: #ffffff !important;
  border-color: #74642F;
  transform: translateX(-2px);
}

.auth-card {
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: 0 16px 45px rgba(45, 35, 20, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #eae5db;
  box-sizing: border-box;
}

.auth-logo {
  text-align: center;
  margin-bottom: 16px;
}
.auth-logo img {
  max-height: 46px;
  margin: 0 auto;
}

.auth-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  text-align: center;
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 700;
  color: #27231e;
}

.auth-sub {
  text-align: center;
  color: #7c746c;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 22px;
}

.auth-card .form-group {
  margin-bottom: 15px;
}
.auth-card .form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #3b352f;
  margin-bottom: 6px;
}

.auth-info-banner {
  background: #fdfaf3;
  border: 1px solid #ede3d1;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 12.5px;
  color: #6d5b30;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.45;
}

/* Auth Avatar Centered Badge at top of form */
.auth-avatar-center {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto 16px auto !important;
  text-align: center !important;
  width: 100% !important;
}

.auth-avatar-circle {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: #f7f3ec !important;
  border: 2px solid #ded6c8 !important;
  color: #74642F !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(116, 100, 47, 0.12) !important;
  margin: 0 auto !important;
}

.auth-avatar-circle svg {
  display: block !important;
  margin: auto !important;
  stroke: #74642F !important;
}

/* Auth Input Group with Perfectly Centered Icon Prefix Box */
.auth-input-group {
  display: flex !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  background: #ffffff !important;
  border: 1.5px solid #dcd7cc !important;
  border-radius: 10px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  width: 100% !important;
}

.auth-input-group:focus-within {
  border-color: #74642F !important;
  box-shadow: 0 0 0 3px rgba(116, 100, 47, 0.14) !important;
}

.auth-input-icon {
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 100% !important;
  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  color: #74642F !important;
  background: #faf8f5 !important;
  border-right: 1px solid #e8e3d8 !important;
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.auth-input-icon svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  margin: auto !important;
  stroke: #74642F !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

.auth-input-group input,
.auth-input-group select {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  color: #222 !important;
  font-family: var(--body-font, 'Raleway', sans-serif) !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  line-height: normal !important;
}

.auth-input-group select {
  cursor: pointer !important;
}

.auth-input-group input::placeholder {
  color: #9c9489 !important;
  font-size: 13.5px !important;
}

.auth-toggle-btn {
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 100% !important;
  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  color: #8c8376 !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  transition: color 0.2s ease !important;
  line-height: 1 !important;
}

.auth-toggle-btn:hover {
  color: #74642F !important;
}

.auth-toggle-btn svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  margin: auto !important;
  stroke: currentColor !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

/* Auth Phone Country Code Input Group */
.auth-phone-group {
  display: flex !important;
  align-items: stretch !important;
  background: #ffffff !important;
  border: 1.5px solid #dcd7cc !important;
  border-radius: 10px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  width: 100% !important;
}

.auth-phone-group:focus-within {
  border-color: #74642F !important;
  box-shadow: 0 0 0 3px rgba(116, 100, 47, 0.14) !important;
}

.auth-phone-prefix-wrap {
  background: #faf8f5 !important;
  border-right: 1px solid #e8e3d8 !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 8px !important;
  flex-shrink: 0 !important;
  max-width: 140px !important;
  box-sizing: border-box !important;
}

.auth-phone-code-select {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #3b352f !important;
  cursor: pointer !important;
  padding: 0 !important;
  max-width: 125px !important;
  height: 100% !important;
}

.auth-phone-group input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 100% !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  color: #222 !important;
  font-family: var(--body-font, 'Raleway', sans-serif) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Legal Links & Terms Checkbox */
.auth-terms-box {
  background: #fdfbf7;
  border: 1.5px solid #ebd9b8;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0 20px;
  transition: all 0.2s ease;
}

.auth-terms-box:hover {
  border-color: #74642F;
}

.auth-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 0;
  font-size: 13px;
  color: #3c362f;
  line-height: 1.45;
  user-select: none;
}

.auth-terms-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin-top: 2px !important;
  accent-color: #74642F !important;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-legal-link {
  color: #74642F !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  cursor: pointer;
}
.auth-legal-link:hover {
  color: #4a3e1a !important;
}

/* In-Page Legal Terms & Privacy Modal */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 16, 12, 0.65);
  backdrop-filter: blur(5px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.auth-modal-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 1px solid #ebd9b8;
  animation: authModalFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authModalFade {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #ebe5da;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fbf9f5;
}

.auth-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #27231e;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

.auth-modal-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #8c8273;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
}
.auth-modal-close-btn:hover {
  color: #222;
}

.auth-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.65;
  color: #4a433a;
}

.auth-modal-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: #27231e;
  margin: 16px 0 6px 0;
}
.auth-modal-body h4:first-child {
  margin-top: 0;
}

.auth-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid #ebe5da;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fbf9f5;
}

.btn-primary-full {
  width: 100%;
  background: #74642F;
  color: #ffffff !important;
  border: none;
  padding: 11px 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(116, 100, 47, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary-full:hover {
  background: #8c7939;
  box-shadow: 0 6px 20px rgba(116, 100, 47, 0.35);
  transform: translateY(-1px);
  color: #ffffff !important;
}
.btn-primary-full:active {
  transform: translateY(0);
}

.auth-quick-fill-box {
  background: #fbf9f5;
  border: 1px dashed #dfd8cb;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 18px;
}
.auth-quick-fill-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8a7c66;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.auth-quick-fill-btns {
  display: flex;
  gap: 8px;
}
.auth-demo-btn {
  flex: 1;
  background: #ffffff;
  border: 1px solid #dcd5c7;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #4a4338;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.auth-demo-btn:hover {
  border-color: #74642F;
  background: #fdfbf7;
  color: #74642F;
}

.auth-divider {
  text-align: center;
  color: #a49d94;
  font-size: 12px;
  margin: 18px 0 14px;
  position: relative;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: #e6e0d5;
}
.auth-divider span {
  position: relative;
  z-index: 1;
  background: #ffffff;
  padding: 0 12px;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 1px;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: #665f57;
  margin-top: 12px;
}
.auth-switch a {
  color: #74642F;
  font-weight: 700;
  text-decoration: none !important;
}
.auth-switch a:hover {
  text-decoration: underline !important;
}

.auth-footer-note {
  text-align: center;
  margin-top: 16px;
  font-size: 11.5px;
  color: #928a80;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ══════════════════════════════════════════════
   ACCOUNT PAGE
══════════════════════════════════════════════ */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 768px) { .account-layout { grid-template-columns: 1fr; } }

.account-sidebar {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.account-nav-header {
  background: linear-gradient(135deg, var(--dark-color), #4a3728);
  padding: 24px;
  text-align: center;
  color: #fff;
}
.account-nav-header img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  margin: 0 auto 12px;
  object-fit: cover;
}
.account-nav-header h4 { font-size: 16px; margin-bottom: 2px; color: #fff; }
.account-nav-header span { font-size: 12px; color: rgba(255,255,255,0.6); }

.account-nav { padding: 12px 0; }
.account-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  transition: var(--transition);
}
.account-nav a:hover, .account-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
}

.account-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  min-height: 400px;
}
.account-panel h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* Orders table */
.orders-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.orders-table th { background: var(--dark-color); color: #fff; padding: 12px 14px; text-align: left; font-size: 12px; }
.orders-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.orders-table tr:hover td { background: var(--bg-light); }

/* ══════════════════════════════════════════════
   CLIENT PROFILE & ACTIVITY DASHBOARD STYLES
   ══════════════════════════════════════════════ */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.profile-stat-card {
  background: #ffffff;
  border: 1px solid #e8e2d5;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(116, 100, 47, 0.12);
  border-color: #d6ccba;
}
.profile-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.profile-stat-info h5 {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin: 0 0 4px 0;
  font-weight: 700;
}
.profile-stat-info .stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #27231e;
  line-height: 1.2;
}
.profile-stat-info .stat-desc {
  font-size: 11px;
  color: #74642F;
  margin-top: 3px;
  font-weight: 600;
}

/* Activity Timeline */
.activity-timeline {
  position: relative;
  padding-left: 28px;
  margin: 20px 0;
}
.activity-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e8e2d8;
}
.activity-item {
  position: relative;
  margin-bottom: 16px;
}
.activity-item:last-child {
  margin-bottom: 0;
}
.activity-dot {
  position: absolute;
  left: -28px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f7f3ec;
  border: 2px solid #74642F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.activity-content {
  background: #faf8f5;
  border: 1px solid #ede7db;
  border-radius: 10px;
  padding: 12px 16px;
}
.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.activity-title {
  font-weight: 700;
  font-size: 13.5px;
  color: #27231e;
}
.activity-time {
  font-size: 11px;
  color: #999;
}
.activity-desc {
  font-size: 12.5px;
  color: #666;
  margin: 0;
}

/* ══════════════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════════════ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f4f6f9;
}

.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand img { height: 32px; }
.sidebar-brand span { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 0.5px; }

.sidebar-section-label {
  padding: 16px 18px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.admin-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: var(--transition);
  margin: 1px 10px;
  border-radius: 8px;
}
.admin-sidebar .nav-item:hover, .admin-sidebar .nav-item.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.admin-sidebar .nav-item.active { background: rgba(197,169,146,0.2); color: var(--primary); }
.nav-icon { font-size: 16px; width: 22px; text-align: center; }

.sidebar-footer {
  margin-top: auto;
  padding: 20px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
}
.sidebar-footer a { color: rgba(255,255,255,0.5); display: block; margin-bottom: 4px; text-decoration: none; }
.sidebar-footer a:hover { color: var(--primary); }

.admin-main {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar h1 { font-size: 1.3rem; font-family: 'Playfair Display', serif; margin: 0; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.admin-user { display: flex; align-items: center; gap: 8px; }
.admin-user img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--primary); }

.admin-content { padding: 24px 28px; flex: 1; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 1200px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
}
.stat-card.blue::before { background: #3b82f6; }
.stat-card.green::before { background: #22c55e; }
.stat-card.amber::before { background: #f59e0b; }
.stat-card.purple::before { background: #8b5cf6; }
.stat-card.pink::before { background: #ec4899; }

.stat-icon { font-size: 28px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--bg-light); }
.stat-info h3 { font-size: 1.4rem; font-weight: 700; margin: 0; }
.stat-info p { font-size: 12px; color: var(--text-muted); margin: 0; }
.stat-trend { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; position: absolute; top: 12px; right: 12px; }
.trend-up { background: #dcfce7; color: #16a34a; }

/* Admin Cards */
.admin-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 0;
}
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.admin-card-header h3 { font-size: 15px; font-weight: 700; margin: 0; }
.admin-card-body { padding: 20px; }

/* Admin Table */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { background: #f8f9fa; border-bottom: 2px solid #e9ecef; padding: 10px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); text-align: left; white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.admin-table tr:hover td { background: #fafafa; }
.admin-table td img { width: 45px; height: 60px; object-fit: cover; border-radius: 4px; }

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-add:hover { background: var(--primary-dark); color: #fff; }

.btn-action {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  margin-right: 4px;
}
.btn-edit { background: #dbeafe; color: #1d4ed8; }
.btn-edit:hover { background: #1d4ed8; color: #fff; }
.btn-delete { background: #fee2e2; color: var(--danger); }
.btn-delete:hover { background: var(--danger); color: #fff; }
.btn-view { background: #d1fae5; color: #065f46; }
.btn-view:hover { background: #065f46; color: #fff; }

.admin-search input {
  padding: 8px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 7px;
  font-size: 13px;
  width: 220px;
  outline: none;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped { background: #e0e7ff; color: #3730a3; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-family: 'Playfair Display', serif; margin: 0; font-size: 1.2rem; }
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0;
  transition: var(--transition);
}
.modal-close:hover { color: var(--danger); transform: rotate(90deg); }
.modal-body { padding: 24px; }
.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}

/* ══════════════════════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.bs-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  font-size: 14px;
  max-width: 380px;
  min-width: 290px;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: auto;
  z-index: 99999;
}
.bs-toast.show { transform: translateX(0); opacity: 1; }
.bs-toast-success { background: #fff; border-left: 4px solid var(--success); color: var(--dark-color); }
.bs-toast-error { background: #fff; border-left: 4px solid var(--danger); color: var(--dark-color); }
.bs-toast-info { background: #fff; border-left: 4px solid var(--info); color: var(--dark-color); }
.bs-toast-warning { background: #fff; border-left: 4px solid var(--warning); color: var(--dark-color); }
.toast-icon { font-size: 18px; margin-top: 2px; }
.toast-msg { flex: 1; width: 100%; }

/* ══════════════════════════════════════════════
   SPINNER LOADER
══════════════════════════════════════════════ */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

/* ══════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon { font-size: 64px; display: block; margin-bottom: 16px; }
.empty-state h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 15px; }

/* ══════════════════════════════════════════════
   NEWSLETTER SECTION (LUXURY GOLD & CHARCOAL)
══════════════════════════════════════════════ */
.newsletter-section {
  background: #23221E;
  background-image: radial-gradient(circle at 50% 0%, rgba(116, 100, 47, 0.28) 0%, transparent 75%);
  padding: 80px 20px;
  text-align: center;
  color: #FAF9F5;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.newsletter-badge {
  display: inline-block;
  background: rgba(197, 169, 146, 0.15);
  color: #C5A992;
  border: 1px solid rgba(197, 169, 146, 0.3);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.newsletter-section h2 {
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  font-weight: 400;
  margin-bottom: 14px;
  color: #FAF9F5;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.newsletter-section p {
  color: #B5B2A8;
  font-size: 15px;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 34px;
}

.newsletter-form {
  display: flex !important;
  max-width: 480px !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 auto 12px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #ded8cc !important;
  border-radius: 50px !important;
  padding: 3px 4px 3px 16px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.25s ease !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

.newsletter-form:focus-within {
  border-color: #74642F !important;
  box-shadow: 0 6px 22px rgba(116, 100, 47, 0.28) !important;
}

.newsletter-form .newsletter-input-wrap {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  flex: 1 1 auto !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.newsletter-input-icon {
  font-size: 14px !important;
  color: #74642F !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.8 !important;
}

.newsletter-form .newsletter-input-wrap input,
.newsletter-form input[type="email"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 100% !important;
  padding: 0 6px !important;
  border: none !important;
  font-size: 13px !important;
  font-family: var(--body-font, 'Raleway', sans-serif) !important;
  color: #2F2F2F !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0 !important;
  line-height: normal !important;
  box-sizing: border-box !important;
}

.newsletter-form .newsletter-input-wrap input::placeholder,
.newsletter-form input[type="email"]::placeholder {
  color: #8c827a !important;
  font-size: 12.5px !important;
}

.newsletter-form button,
.newsletter-form button[type="submit"] {
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 20px !important;
  background: #74642F !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 40px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  font-family: var(--body-font, 'Raleway', sans-serif) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(116, 100, 47, 0.28) !important;
  margin: 0 !important;
}

.newsletter-form button:hover,
.newsletter-form button[type="submit"]:hover {
  background: #5A4E24 !important;
  transform: translateY(-0.5px) !important;
  box-shadow: 0 4px 12px rgba(116, 100, 47, 0.38) !important;
}

.newsletter-trust {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 14px !important;
  font-size: 12px !important;
  color: #8C887E !important;
  flex-wrap: wrap !important;
}

/* 📱 Responsive Mobile Layout for Newsletter */
@media (max-width: 600px) {
  .newsletter-section {
    padding: 36px 14px !important;
  }
  .newsletter-form {
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    border-radius: 14px !important;
    padding: 6px !important;
    gap: 6px !important;
    max-width: 100% !important;
  }
  .newsletter-form .newsletter-input-wrap {
    width: 100% !important;
    height: 36px !important;
    padding: 0 8px !important;
  }
  .newsletter-form button,
  .newsletter-form button[type="submit"] {
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
  }
  .newsletter-trust {
    gap: 8px !important;
    font-size: 11px !important;
  }
}

/* ══════════════════════════════════════════════
   MAIN FOOTER (WARM DARK LUXURY PALETTE)
══════════════════════════════════════════════ */
.main-footer {
  background: #1C1B18;
  color: #A6A398;
  padding: 70px 0 0;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'Raleway', sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 45px;
  margin-bottom: 50px;
}

.footer-brand .footer-logo {
  max-height: 44px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.75;
  color: #9E9B90;
  margin-bottom: 20px;
  max-width: 380px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #B5B2A6;
  margin-bottom: 9px;
}

.footer-contact-list li span.contact-icon {
  font-size: 14px;
  color: #C5A992;
  width: 18px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #D5D2C5;
  font-size: 14px;
  transition: all 0.25s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social a:hover {
  background: #74642F;
  border-color: #74642F;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(116, 100, 47, 0.35);
}

.footer-col h4 {
  color: #FAF9F5;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: #74642F;
  border-radius: 2px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col ul li a {
  color: #9E9B90;
  font-size: 13.5px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: #C5A992;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
  color: #858277;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-currency {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #C5A992;
}

.footer-payment-methods {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #E2DFD5;
}

/* ══════════════════════════════════════════════
   CLIENT / PUBLISHER LOGOS SECTION (IMAGE 2)
══════════════════════════════════════════════ */
#client-holder {
  background: #EDEBE4;
  padding: 100px 0;
  position: relative;
  border-top: 1px solid rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

#client-holder .inner-content {
  width: 100%;
}

#client-holder .logo-wrap {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 20px;
}

#client-holder .grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

#client-holder .grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  transition: all 0.35s ease;
  text-decoration: none;
}

#client-holder .grid a:hover {
  opacity: 1;
  transform: translateY(-4px);
}

#client-holder .grid img {
  max-height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.35s ease;
}

#client-holder .grid a:hover img {
  filter: grayscale(0%);
}

@media screen and (max-width: 991px) {
  #client-holder {
    padding: 70px 0;
  }
  #client-holder .grid {
    justify-content: center;
    gap: 36px 30px;
  }
  #client-holder .grid img {
    max-height: 44px;
    max-width: 130px;
  }
}

@media screen and (max-width: 768px) {
  #client-holder {
    padding: 50px 0;
  }
  #client-holder .grid {
    justify-content: center;
    gap: 25px 20px;
  }
  #client-holder .grid img {
    max-height: 38px;
    max-width: 110px;
  }
}

/* ══════════════════════════════════════════════
   BEST SELLING SECTION
══════════════════════════════════════════════ */
#best-selling {
  background: var(--bg-light);
  padding: 80px 0;
  position: relative;
}
.products-thumb img {
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
}

/* ══════════════════════════════════════════════
   GLOBAL RESPONSIVE OPTIMIZATIONS (ALL DEVICES)
══════════════════════════════════════════════ */
@media (max-width: 991px) {
  .section-title { font-size: 1.8rem; }
}

@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; min-height: auto; position: relative; }
  .admin-main { margin-left: 0; }
  .admin-topbar { padding: 12px 16px; }
  .admin-content { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .checkout-grid, .cart-layout, .account-layout { grid-template-columns: 1fr; }

  /* Cart table mobile polish */
  .cart-table table { min-width: 520px; }
  .cart-layout { gap: 20px; }

  /* Tabs responsive horizontal scrolling */
  ul.tabs {
    display: flex !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    gap: 8px;
    border-bottom: 2px solid #eee;
  }
  ul.tabs .tab {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Footer on mobile */
  .main-footer { padding: 40px 0 20px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-item figcaption { padding: 10px 10px 14px; }
  .product-item h3 { font-size: 13px; min-height: 2.6em; }
  .product-item .author { font-size: 11px; }
  .product-item .item-price { font-size: 13px; }
  .circle-btn-action { width: 34px; height: 34px; }
  .circle-btn-action svg { width: 15px; height: 15px; }
  .btn-card-add-cart { padding: 6px 6px; font-size: 11px; gap: 4px; }
  .card-side-actions { top: 8px; right: 8px; gap: 6px; }
  .product-badges { top: 8px; left: 8px; }
}

/* Touch device active state enhancement */
@media (hover: none) {
  .circle-btn-action {
    opacity: 1 !important;
    transform: none !important;
  }
  .card-side-actions {
    opacity: 1 !important;
  }
}

/* ══════════════════════════════════════════════
   DIGITAL E-BOOK & ONLINE READER ENHANCEMENTS
══════════════════════════════════════════════ */
.badge-pdf {
  background: #e02424 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 3px 7px !important;
  border-radius: 4px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 6px rgba(224, 36, 36, 0.25);
}

.btn-read-online {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.btn-read-online:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
  color: #fff !important;
}

.btn-download-pdf-action {
  background: #1e293b;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-download-pdf-action:hover {
  background: #334155;
  transform: translateY(-2px);
  color: #fff !important;
}

/* ══════════════════════════════════════════════
   HERO BILLBOARD & SLICK CAROUSEL RESPONSIVE FIX
══════════════════════════════════════════════ */
#billboard {
  position: relative;
  overflow: hidden;
  background: #F3F2EC;
  padding: 0;
}

#billboard .position-relative {
  position: relative;
}

#billboard {
  position: relative;
  background: #f3f2ec;
  overflow: hidden;
}

#billboard .main-slider {
  padding: 35px 0 80px 0 !important;
  margin: 0 !important;
  position: relative;
}

/* ── Prevent Hero Slider FOUC (Vertical Stacking Glitch on Page Reload) ── */
#billboard .main-slider:not(.slick-initialized) {
  overflow: hidden !important;
  max-height: 560px;
}

#billboard .main-slider:not(.slick-initialized) > .slider-item:not(:first-child) {
  display: none !important;
}

#billboard .main-slider:not(.slick-initialized) > .slider-item:first-child {
  display: flex !important;
}

#billboard .slider-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 480px;
  gap: 36px;
  padding: 25px 90px !important;
  box-sizing: border-box;
  outline: none;
}

#billboard .banner-content {
  flex: 1 1 52%;
  max-width: 540px;
  margin: 0 !important;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#billboard .banner-content .badge {
  align-self: flex-start;
  margin-bottom: 14px;
}

#billboard .banner-content h2.banner-title {
  font-family: "Prata", Georgia, serif;
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  line-height: 1.15;
  font-weight: 500;
  color: #1E1E1E;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

#billboard .banner-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 26px;
  max-width: 480px;
}

#billboard .banner-content .btn-wrap,
#billboard .hero-btn-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-top: 10px !important;
}

/* Symmetrical, perfectly matched Hero Buttons */
#billboard .btn-hero {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  min-width: 220px !important;
  padding: 0 24px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  font-family: 'Raleway', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  text-shadow: none !important;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease !important;
  will-change: transform;
}

/* Prevent ANY layout shift, width jitter or padding animation on icons inside hero buttons */
#billboard .btn-hero i,
#billboard .btn-hero .icon,
#billboard .hero-btn-wrap i,
#billboard .hero-btn-wrap:hover i,
#billboard .btn-wrap:hover i,
#billboard .btn-hero:hover i {
  padding: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  display: inline-block !important;
  width: auto !important;
  transition: transform 0.22s ease !important;
}

/* Primary Button: EXPLORE BOOKS (solid luxury caramel tone) */
#billboard .btn-hero-primary {
  background-color: #c5a992 !important;
  border: 2px solid #c5a992 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(197, 169, 146, 0.35) !important;
}

#billboard .btn-hero-primary:hover {
  background-color: #b5957b !important;
  border-color: #b5957b !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(181, 149, 123, 0.45) !important;
}

#billboard .btn-hero-primary:hover i {
  transform: translateX(4px) !important;
}

/* Secondary Button: FREE SAMPLE (2 PAGES) (matching outline, exact same dimension) */
#billboard .btn-hero-secondary {
  background-color: transparent !important;
  border: 2px solid #c5a992 !important;
  color: #74642f !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

#billboard .btn-hero-secondary:hover {
  background-color: #c5a992 !important;
  border-color: #c5a992 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(197, 169, 146, 0.35) !important;
}

#billboard .btn-hero-secondary:hover i {
  transform: scale(1.15) !important;
}

#billboard .banner-image {
  flex: 0 0 auto;
  height: 440px !important;
  max-height: 440px !important;
  width: auto !important;
  max-width: 45% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.14));
  margin: 0 auto;
  display: block;
  transition: transform 0.35s ease;
}

#billboard .slider-item:hover .banner-image {
  transform: translateY(-5px);
}

/* ── Centered, Non-overlapping Slick Dots ── */
#billboard .slick-dots {
  position: absolute !important;
  bottom: 22px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 30 !important;
  width: auto !important;
  text-align: center !important;
  pointer-events: auto !important;
}

#billboard .slick-dots li {
  width: 10px !important;
  height: 10px !important;
  border-radius: 5px !important;
  background: #C7C3B5 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  border: none !important;
}

#billboard .slick-dots li.slick-active {
  background: #74642F !important;
  width: 28px !important;
  border-radius: 14px !important;
}

#billboard .slick-dots li button {
  display: none !important;
}

/* ── Arrows (Perfect Circle Shape & Clean Non-Overlapping Navigation) ── */
#billboard button.slick-arrow,
#billboard .slick-arrow {
  background: #ffffff !important;
  border: 1.5px solid #E2DEC3 !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 30 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
  outline: none !important;
  color: #74642F !important;
}

#billboard button.slick-arrow:hover,
#billboard .slick-arrow:hover {
  background: #74642F !important;
  border-color: #74642F !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 8px 22px rgba(116, 100, 47, 0.32) !important;
}

#billboard button.prev.slick-arrow {
  left: 16px !important;
  right: auto !important;
}

#billboard button.next.slick-arrow {
  right: 16px !important;
  left: auto !important;
}

#billboard button.slick-arrow i,
#billboard button.slick-arrow .icon,
#billboard .slick-arrow i {
  color: #74642F !important;
  font-size: 16px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: color 0.2s ease !important;
}

#billboard button.slick-arrow:hover i,
#billboard button.slick-arrow:hover .icon,
#billboard .slick-arrow:hover i {
  color: #ffffff !important;
}

/* ── Tablet Responsiveness (991px) ── */
@media (max-width: 991px) {
  #billboard .main-slider {
    padding: 30px 0 85px 0 !important;
  }
  #billboard .slider-item {
    flex-direction: column-reverse !important;
    min-height: auto;
    padding: 20px 60px 25px 60px !important;
    text-align: center;
    gap: 22px;
  }
  #billboard .banner-content {
    max-width: 100% !important;
    text-align: center;
    align-items: center;
  }
  #billboard .banner-content .badge {
    align-self: center;
  }
  #billboard .banner-content h2.banner-title {
    font-size: 2.3rem !important;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  #billboard .banner-content p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 auto 20px !important;
    max-width: 520px;
  }
  #billboard .banner-content .btn-wrap,
  #billboard .hero-btn-wrap {
    justify-content: center !important;
  }
  #billboard .btn-hero {
    min-width: 200px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 20px !important;
    font-size: 12px !important;
  }
  #billboard .banner-image {
    height: 250px !important;
    max-height: 250px !important;
    width: auto !important;
    max-width: 260px !important;
    margin: 0 auto;
  }
  #billboard button.slick-arrow {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
  }
  #billboard button.prev.slick-arrow {
    left: 8px !important;
  }
  #billboard button.next.slick-arrow {
    right: 8px !important;
  }
}

/* ── Mobile Responsiveness (576px) ── */
@media (max-width: 576px) {
  #billboard .main-slider {
    padding: 20px 0 80px 0 !important;
  }
  #billboard .slider-item {
    padding: 10px 15px 15px 15px !important;
    gap: 16px;
  }
  #billboard .banner-content h2.banner-title {
    font-size: 1.7rem !important;
    line-height: 1.22;
    margin-bottom: 10px;
  }
  #billboard .banner-content p {
    font-size: 13px;
    line-height: 1.55;
    margin: 0 auto 16px !important;
    max-width: 95%;
  }
  #billboard .banner-content .btn-wrap,
  #billboard .hero-btn-wrap {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  #billboard .banner-content .btn-wrap .btn,
  #billboard .btn-hero {
    width: 100% !important;
    min-width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 16px !important;
    font-size: 12px !important;
    justify-content: center !important;
    text-align: center !important;
  }
  #billboard .banner-image {
    height: 190px !important;
    max-height: 190px !important;
    width: auto !important;
    max-width: 200px !important;
    margin: 0 auto;
  }
  #billboard button.slick-arrow {
    display: none !important;
  }
  #billboard .slick-dots {
    bottom: 20px !important;
  }
}

/* ── Grid Card Stability Fix ── */
.shop-simple-grid .product-item {
  display: flex !important;
  flex-direction: column !important;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}


/* ── Cross-Page Mobile Responsive Protections ── */
html, body {
  overflow-x: hidden !important;
  width: 100%;
}

img {
  max-width: 100%;
}

#download-app img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.breadcrumb {
  flex-wrap: wrap;
}

/* Ensure buttons wrap gracefully without breaking viewport on mobile */
.btn-cart-primary, .btn-primary-full, .btn-outline-dark, .btn-outline-accent {
  max-width: 100%;
  word-break: break-word;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }
  .product-gallery {
    text-align: center;
  }
  .product-gallery img {
    max-width: 260px;
    margin: 0 auto;
  }
  .product-info h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 30px 0 25px;
  }
  .page-hero h1 {
    font-size: 1.6rem;
  }
  .product-item figcaption {
    padding: 10px;
  }
  .product-item h3 {
    font-size: 12.5px;
    min-height: 2.5em;
  }
  .product-meta p {
    font-size: 12.5px;
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* ══════════════════════════════════════════════════════════
   OUR TEAM SECTION (about.html)
   ══════════════════════════════════════════════════════════ */
.our-team-section {
  position: relative;
  overflow: hidden;
}
.team-card {
  background: #ffffff;
  border: 1px solid #ede8df;
  border-radius: 16px;
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.team-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 28px rgba(116, 100, 47, 0.12);
  border-color: #d8cdbe;
}
.team-avatar-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto 16px;
}
.team-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  outline: 3px solid var(--primary, #74642F);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}
.team-card:hover .team-avatar {
  transform: scale(1.05);
}
.team-verified-badge {
  position: absolute;
  bottom: 2px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: var(--primary, #74642F);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.team-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
}
.team-role-pill {
  display: inline-block;
  background: #f7f2ea;
  color: var(--primary, #74642F);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  border: 1px solid #ede4d6;
}
.team-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-color, #1e1b18);
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}
.team-bio {
  font-size: 13px;
  color: #6c757d;
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}
.team-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}
.team-tag {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 11px;
  padding: 3px 8px;
  font-weight: 500;
}
.team-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: auto;
}
.team-social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3efe8;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.team-social-link:hover {
  background: var(--primary, #74642F);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(116, 100, 47, 0.2);
}

/* ══════════════════════════════════════════════════════════
   NEWSLETTER SECTION & SLEEK FORM (index.html & js/layout.js)
   ══════════════════════════════════════════════════════════ */
.newsletter-section {
  background: linear-gradient(135deg, #23201d 0%, #171513 100%);
  color: #f7f4ed;
  padding: 34px 18px;
  position: relative;
  text-align: center;
  border-top: 1px solid #3d3732;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.newsletter-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(116, 100, 47, 0.15) 0%, transparent 65%);
  pointer-events: none;
}
.newsletter-section .container {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}
.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd27a;
  padding: 3px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
  backdrop-filter: blur(6px);
}
.newsletter-section h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.newsletter-section p {
  color: #b5ada3;
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 520px;
  margin: 0 auto 16px;
}

/* ══════════════════════════════════════════════
   CONTACT PAGE ENHANCEMENTS & FAQ ACCORDION
══════════════════════════════════════════════ */
.contact-form-card,
.contact-info-card {
  background: #ffffff;
  border: 1px solid #ede8df;
  border-radius: 16px;
  padding: 34px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  height: 100%;
}
.contact-card-header {
  margin-bottom: 22px;
}
.contact-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-dark, #74642F);
  background: rgba(197, 169, 146, 0.16);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.contact-card-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #2c2723;
  margin: 0 0 6px;
  font-family: 'Playfair Display', serif;
}
.contact-card-header p {
  color: #777;
  font-size: 13.5px;
  margin: 0;
  line-height: 1.5;
}
.form-floating-wrap {
  margin-bottom: 16px;
}
.form-floating-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.form-floating-wrap label .req {
  color: #dc2626;
}
.form-floating-wrap label .optional {
  color: #999;
  font-weight: 400;
  font-size: 12px;
}
.contact-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border: 1.5px solid #e2ddd3;
  border-radius: 8px;
  background: #fff;
  color: #333;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.contact-input:focus {
  border-color: var(--primary, #74642F);
  box-shadow: 0 0 0 3px rgba(116, 100, 47, 0.12);
  background: #ffffff;
}
.contact-textarea {
  resize: vertical;
  min-height: 110px;
}
.btn-contact-submit {
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, #74642F, #5c4e24);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(116, 100, 47, 0.22);
  transition: all 0.25s ease;
}
.btn-contact-submit:hover {
  background: linear-gradient(135deg, #5c4e24, #44391a);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(116, 100, 47, 0.3);
}

/* Contact Info List */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #fbfaf8;
  border: 1px solid #ede8df;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.contact-info-item:hover {
  background: #f5f2eb;
}
.info-icon-box {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #e5ded3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}
.info-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: #2c2723;
  margin: 0 0 2px;
}
.info-content a {
  color: var(--primary, #74642F);
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}
.info-content a:hover {
  text-decoration: underline;
}
.info-content p {
  color: #666;
  font-size: 12.5px;
  margin: 0;
  line-height: 1.4;
}
.info-sub {
  display: block;
  font-size: 11.5px;
  color: #888;
  margin-top: 2px;
}
.contact-social-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee8dd;
}
.contact-social-wrap h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.contact-social-links {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #74642F;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14px;
}
.social-link:hover {
  transform: translateY(-2px);
  background: #5c4e24;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #ffffff;
  border: 1px solid #ede8df;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.faq-item:hover {
  border-color: #d8cfc0;
}
.faq-item.active {
  border-color: var(--primary, #74642F);
  box-shadow: 0 4px 14px rgba(116, 100, 47, 0.08);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #2c2723;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}
.faq-item.active .faq-question {
  color: var(--primary, #74642F);
}
.faq-toggle {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: #888;
  margin-left: 12px;
  transition: transform 0.25s ease;
}
.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary, #74642F);
}
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: #666;
  font-size: 13.5px;
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  display: block;
}

/* ══════════════════════════════════════════════
   CLEAN & SIMPLE SHOP PAGE STYLES
══════════════════════════════════════════════ */
.shop-simple-wrapper {
  background: #ffffff;
  padding: 20px 0 60px;
}
.shop-hero-header {
  text-align: center;
  margin-bottom: 28px;
}
.shop-sub-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-color, #C5A992);
  margin-bottom: 6px;
}
.shop-main-title {
  font-family: 'Prata', 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  color: #2c2723;
  margin: 0 0 6px;
}
.shop-hero-header p {
  color: #777;
  font-size: 14px;
  margin: 0;
}

/* Category Tabs & Sort Bar */
.shop-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid #EAE6DC;
}
.shop-category-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.shop-category-tabs .tab-item {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #777;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
  text-transform: capitalize;
}
.shop-category-tabs .tab-item:hover,
.shop-category-tabs .tab-item.active {
  color: #74642F;
}
.shop-category-tabs .tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #74642F;
}

.shop-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-sort-wrap label {
  font-size: 13px;
  color: #777;
  font-weight: 600;
  margin: 0;
}
.shop-sort-wrap select {
  padding: 6px 12px;
  border: 1px solid #d5cec2;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #333;
  outline: none;
  cursor: pointer;
}

/* Active Search Banner */
.shop-search-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fbf7f0;
  border: 1px solid #e7ded0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  color: #555;
  margin-bottom: 24px;
}
.shop-search-banner strong {
  color: #74642F;
}
.shop-search-banner button {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  font-weight: bold;
  padding: 0 2px;
  font-size: 13px;
}
.shop-search-banner button:hover {
  color: #dc2626;
}

/* 4-Column Book Grid */
.shop-simple-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 28px;
  row-gap: 36px;
}
@media (max-width: 1100px) {
  .shop-simple-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 30px;
  }
}
@media (max-width: 768px) {
  .shop-simple-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
    row-gap: 24px;
  }
  .shop-category-tabs {
    gap: 16px;
    justify-content: center;
    width: 100%;
  }
  .shop-filter-bar {
    justify-content: center;
  }
  .shop-category-tabs .tab-item.active::after {
    bottom: -6px;
  }
}
@media (max-width: 480px) {
  .shop-simple-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
    row-gap: 20px;
  }
}

/* ══════════════════════════════════════════════
   INTERACTIVE PAYMENT GATEWAY & 3D SECURE MODAL
══════════════════════════════════════════════ */
.payment-details-box {
  background: #faf8f5;
  border: 1.5px solid #e7dfd1;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 10px 0 16px;
  display: none;
  animation: fadeInPay 0.25s ease;
}
.payment-details-box.active {
  display: block;
}
@keyframes fadeInPay {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pay-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pay-input-wrap input {
  width: 100%;
  padding: 10px 42px 10px 14px;
  border: 1.5px solid #dcd4c6;
  border-radius: 8px;
  font-size: 14.5px;
  font-family: 'Raleway', monospace;
  background: #fff;
  transition: border-color 0.2s;
}
.pay-input-wrap input:focus {
  border-color: #74642F;
  outline: none;
  box-shadow: 0 0 0 3px rgba(116, 100, 47, 0.12);
}
.pay-card-icon {
  position: absolute;
  right: 12px;
  font-size: 20px;
  pointer-events: none;
}

.btn-autofill-test {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ede8dc;
  color: #5c4e28;
  border: 1px solid #d4c8b2;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s ease;
}
.btn-autofill-test:hover {
  background: #74642F;
  color: #fff;
}

/* 3D-Secure Verification Modal */
.secure-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 13, 11, 0.65);
  backdrop-filter: blur(5px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.secure-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}
.secure-modal-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.secure-modal-backdrop.show .secure-modal-card {
  transform: translateY(0) scale(1);
}

.secure-modal-header {
  background: #1e1b18;
  color: #fff;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.secure-modal-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}
.secure-modal-header .btn-close-modal {
  background: none;
  border: none;
  color: #aaa;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.secure-modal-header .btn-close-modal:hover {
  color: #fff;
}

.secure-modal-body {
  padding: 24px;
}
.secure-meta-table {
  background: #fbf9f5;
  border: 1px solid #eee7db;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.secure-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  color: #555;
}
.secure-meta-row strong {
  color: #222;
}

.otp-box-wrap {
  text-align: center;
  margin: 18px 0;
}
.otp-input-field {
  font-family: monospace;
  font-size: 24px;
  letter-spacing: 10px;
  text-align: center;
  width: 220px;
  padding: 10px;
  border: 2px solid #74642F;
  border-radius: 8px;
  outline: none;
  background: #fff;
  box-shadow: 0 4px 12px rgba(116, 100, 47, 0.1);
}
.otp-timer {
  font-size: 12px;
  color: #777;
  margin-top: 6px;
}


.auth-spinner-wrap {
  display: none;
  text-align: center;
  padding: 30px 20px;
}
.auth-spinner-wrap.active {
  display: block;
}


/* ═══════════════════════════════════════════════════════════════
   BOOKSAW GLOBAL PAGE LOADER — Book Icon + Circular Ring
   ═══════════════════════════════════════════════════════════════ */

#bs-page-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(135deg, #1a1208 0%, #2c1f0a 40%, #3d2b10 100%);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  visibility: visible;
  will-change: opacity, visibility;
}

#bs-page-loader.bs-loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Radial ambient glow */
#bs-page-loader::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 160, 100, 0.15) 0%, transparent 70%);
  animation: bsl-pulse-glow 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bsl-pulse-glow {
  0%, 100% { transform: scale(0.85); opacity: 0.5; }
  50%       { transform: scale(1.25); opacity: 1;   }
}

/* ── Spinning ring wrapper ────────────────────── */
.bsl-ring-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── SVG ring spinner ─────────────────────────── */
.bsl-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: bsl-rotate 1.5s linear infinite;
  overflow: visible;
}

.bsl-svg .bsl-track {
  fill: none;
  stroke: rgba(196, 160, 100, 0.12);
  stroke-width: 6;
}

.bsl-svg .bsl-arc {
  fill: none;
  stroke: #c4a064;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 180;
  animation: bsl-arc-dash 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(196, 160, 100, 0.7));
}

/* Second subtle inner ring */
.bsl-svg .bsl-arc-inner {
  fill: none;
  stroke: rgba(196, 160, 100, 0.22);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 100;
  animation: bsl-arc-dash 1.5s ease-in-out infinite reverse;
}

@keyframes bsl-rotate {
  to { transform: rotate(360deg); }
}

@keyframes bsl-arc-dash {
  0%   { stroke-dashoffset: 220; opacity: 0.35; }
  50%  { stroke-dashoffset: 55;  opacity: 1;    }
  100% { stroke-dashoffset: 220; opacity: 0.35; }
}

/* ── Book icon center ─────────────────────────── */
.bsl-book-icon {
  position: relative;
  z-index: 3;
  font-size: 38px;
  line-height: 1;
  color: #c4a064;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bsl-book-float 2.2s ease-in-out infinite;
  filter: drop-shadow(0 4px 14px rgba(196, 160, 100, 0.5));
  user-select: none;
  -webkit-user-select: none;
}

@keyframes bsl-book-float {
  0%, 100% { transform: translateY(0px)  rotate(-4deg) scale(1);    }
  25%       { transform: translateY(-7px) rotate(3deg)  scale(1.04); }
  50%       { transform: translateY(-3px) rotate(-1deg) scale(1.02); }
  75%       { transform: translateY(-5px) rotate(2deg)  scale(1.03); }
}

/* ── Page-turning dots ────────────────────────── */
.bsl-dots {
  display: flex;
  gap: 7px;
  margin-top: 26px;
}

.bsl-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c4a064;
  animation: bsl-dot-wave 1.3s ease-in-out infinite;
  opacity: 0.25;
}

.bsl-dots span:nth-child(1) { animation-delay: 0s;    }
.bsl-dots span:nth-child(2) { animation-delay: 0.2s;  }
.bsl-dots span:nth-child(3) { animation-delay: 0.4s;  }
.bsl-dots span:nth-child(4) { animation-delay: 0.6s;  }
.bsl-dots span:nth-child(5) { animation-delay: 0.8s;  }

@keyframes bsl-dot-wave {
  0%, 80%, 100% { transform: scale(0.5) translateY(0);  opacity: 0.25; }
  40%           { transform: scale(1.5) translateY(-4px); opacity: 1;   }
}

/* ── Loader label text ────────────────────────── */
.bsl-label {
  margin-top: 16px;
  font-family: 'Raleway', 'Playfair Display', Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(196, 160, 100, 0.65);
  animation: bsl-label-pulse 2.4s ease-in-out infinite;
}

@keyframes bsl-label-pulse {
  0%, 100% { opacity: 0.4; letter-spacing: 4px;   }
  50%       { opacity: 1;   letter-spacing: 4.5px; }
}

/* ── Floating golden particles ────────────────── */
.bsl-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bsl-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(196, 160, 100, 0.55);
  animation: bsl-particle-rise linear infinite;
}

.bsl-particle:nth-child(1)  { width:3px; height:3px; left:15%;  animation-duration:3.2s; animation-delay:0.0s; }
.bsl-particle:nth-child(2)  { width:2px; height:2px; left:30%;  animation-duration:2.6s; animation-delay:0.7s; }
.bsl-particle:nth-child(3)  { width:4px; height:4px; left:50%;  animation-duration:3.8s; animation-delay:1.2s; }
.bsl-particle:nth-child(4)  { width:2px; height:2px; left:65%;  animation-duration:2.9s; animation-delay:0.4s; }
.bsl-particle:nth-child(5)  { width:3px; height:3px; left:80%;  animation-duration:3.4s; animation-delay:1.0s; }
.bsl-particle:nth-child(6)  { width:2px; height:2px; left:10%;  animation-duration:2.7s; animation-delay:1.6s; }
.bsl-particle:nth-child(7)  { width:3px; height:3px; left:88%;  animation-duration:3.1s; animation-delay:0.3s; }
.bsl-particle:nth-child(8)  { width:4px; height:4px; left:42%;  animation-duration:3.0s; animation-delay:1.9s; }
.bsl-particle:nth-child(9)  { width:2px; height:2px; left:72%;  animation-duration:2.5s; animation-delay:0.8s; }
.bsl-particle:nth-child(10) { width:3px; height:3px; left:22%;  animation-duration:3.6s; animation-delay:2.2s; }

@keyframes bsl-particle-rise {
  0%   { bottom: -8px;  opacity: 0;   transform: scale(0.4) translateX(0); }
  15%  { opacity: 0.9; }
  75%  { opacity: 0.35; }
  100% { bottom: 105%;  opacity: 0;   transform: scale(1.6) translateX(12px); }
}

/* ── Brand Logo at top of loader ────────────────── */
.bsl-brand-logo {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  z-index: 2;
  animation: bsl-logo-breathe 2.8s ease-in-out infinite;
}

.bsl-brand-logo .brand-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #c4a064 0%, #9e7d3b 100%);
  color: #ffffff;
  border-radius: 10px;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(196, 160, 100, 0.35);
}

.bsl-brand-logo .brand-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.bsl-brand-logo .brand-title {
  font-family: 'Raleway', 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 2px;
  color: #f7f3ec;
}

.bsl-brand-logo .brand-accent {
  color: #c4a064;
}

.bsl-brand-logo .brand-subtitle {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: rgba(247, 243, 236, 0.6);
  text-transform: uppercase;
  margin-top: 2px;
}

@keyframes bsl-logo-breathe {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;    transform: translateX(-50%) scale(1.02); }
}

/* ═══ ADMIN variant (indigo/blue theme) ═══════ */
#bs-page-loader.bsl--admin {
  background: linear-gradient(135deg, #0a0f1e 0%, #111827 55%, #0f1d30 100%);
}
#bs-page-loader.bsl--admin::before {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}
#bs-page-loader.bsl--admin .bsl-svg .bsl-arc {
  stroke: #818cf8;
  filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.7));
}
#bs-page-loader.bsl--admin .bsl-dots span { background: #818cf8; }
#bs-page-loader.bsl--admin .bsl-label    { color: rgba(129, 140, 248, 0.7); }
#bs-page-loader.bsl--admin .bsl-particle { background: rgba(99, 102, 241, 0.55); }

/* ═══ AUTH variant (deep warm auth pages) ════ */
#bs-page-loader.bsl--auth {
  background: linear-gradient(150deg, #160a02 0%, #2a1608 50%, #160a02 100%);
}

/* ═══ Inline Section Loader (small, inside sections) ═══ */
.bsl-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 52px 24px;
  gap: 14px;
  min-height: 160px;
}

.bsl-inline .bsl-ring-wrap    { width: 72px;  height: 72px; }
.bsl-inline .bsl-book-icon    { font-size: 28px; }
.bsl-inline .bsl-svg .bsl-arc { stroke-width: 5; }
.bsl-inline .bsl-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: #b5a48c;
}

/* ══════════════════════════════════════════════
   AUTH GATE MODAL (Triggered when non-logged-in user tries to Add to Cart or Buy)
══════════════════════════════════════════════ */
#bs-auth-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(18, 14, 10, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

#bs-auth-gate-modal.active {
  opacity: 1;
  visibility: visible;
}

.bs-auth-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  padding: 32px 28px;
  border: 1px solid #e7ded2;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
  transform: translateY(14px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

#bs-auth-gate-modal.active .bs-auth-card {
  transform: translateY(0) scale(1);
}

.bs-auth-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f7f4ed;
  border: 1px solid #e2dac9;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: #777;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bs-auth-close-btn:hover {
  background: #74642F;
  color: #fff;
  border-color: #74642F;
}

.bs-auth-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #FAF8F5 0%, #efe7d9 100%);
  border: 2px solid #e0d5c1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(116, 100, 47, 0.12);
}

.bs-auth-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 23px;
  color: #27231e;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.bs-auth-desc {
  font-size: 13.5px;
  color: #665f55;
  line-height: 1.55;
  margin: 0 0 18px 0;
}

.bs-auth-book-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FAF8F5;
  border: 1px solid #ebe5da;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  text-align: left;
}

.bs-auth-book-img {
  width: 44px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.bs-auth-book-info {
  flex: 1;
  min-width: 0;
}

.bs-auth-book-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #2F2F2F;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px 0;
}

.bs-auth-book-author {
  font-size: 12px;
  color: #777;
  margin: 0 0 2px 0;
}

.bs-auth-book-price {
  font-size: 13px;
  font-weight: 700;
  color: #74642F;
}

.bs-auth-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  font-size: 12.5px;
  color: #554e44;
}

.bs-auth-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bs-auth-perks li span.check {
  color: #16a34a;
  font-weight: 700;
}

.bs-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bs-auth-btn-login {
  background: #74642F;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: block;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(116, 100, 47, 0.25);
  border: none;
}

.bs-auth-btn-login:hover {
  background: #5c4f24;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(116, 100, 47, 0.35);
}

.bs-auth-btn-register {
  background: #ffffff;
  color: #74642F !important;
  border: 1.5px solid #74642F;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}

.bs-auth-btn-register:hover {
  background: #FAF8F5;
  border-color: #5c4f24;
  color: #5c4f24 !important;
}

/* ══════════════════════════════════════════════
   CHECKOUT AUTH REQUIRED GATE
══════════════════════════════════════════════ */
.checkout-auth-gate {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #ebe5da;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  padding: 42px 28px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.checkout-auth-gate .auth-gate-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbf7ee 0%, #efe3cc 100%);
  border: 2px solid #ddcca9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 16px rgba(116, 100, 47, 0.15);
}

.checkout-auth-gate h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  color: #27231e;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.checkout-auth-gate p {
  color: #665f55;
  font-size: 14px;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 24px auto;
}

.checkout-auth-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.checkout-auth-actions a {
  min-width: 190px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
}

.checkout-auth-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid #eee8df;
  font-size: 12.5px;
  color: #777;
}

/* ══════════════════════════════════════════════════════════════════════════
   APP DOWNLOAD SECTION MODERN RESPONSIVE STYLING
   ══════════════════════════════════════════════════════════════════════════ */
#download-app,
#download-app.download-app-section {
  background: linear-gradient(135deg, #F5F3EC 0%, #E8E4D9 100%) !important;
  padding: 85px 0 !important;
  position: relative !important;
  overflow: hidden !important;
  border-top: 1px solid rgba(116, 100, 47, 0.12) !important;
  border-bottom: 1px solid rgba(116, 100, 47, 0.12) !important;
}

.app-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(116, 100, 47, 0.1);
  border: 1px solid rgba(116, 100, 47, 0.25);
  color: #74642F;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 14px;
}

#download-app .section-title {
  margin-bottom: 15px;
}

.app-lead {
  font-size: 15px;
  color: #554f46;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 540px;
}

.app-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
  margin-bottom: 24px;
}

.app-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.65);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(116, 100, 47, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.app-feat-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.2;
}

.app-feature-item strong {
  display: block;
  font-size: 13.5px;
  color: #27231e;
  font-weight: 700;
  line-height: 1.3;
}

.app-feature-item p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6a6358;
  line-height: 1.4;
}

.app-rating-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 8px 14px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(116, 100, 47, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: fit-content;
  max-width: 100%;
}

.stars-gold {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 13px;
}

.rating-text {
  font-size: 12.5px;
  color: #3b352e;
}

.app-store-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge-link {
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  line-height: 0;
}

.store-badge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.store-badge-link img {
  height: 46px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.device-mockup-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.device-glow-bg {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.35) 0%, transparent 70%);
  filter: blur(35px);
  z-index: 0;
  pointer-events: none;
}

.device-mockup-img {
  position: relative;
  z-index: 1;
  max-height: 450px !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.22)) !important;
  transition: transform 0.4s ease !important;
}

.device-mockup-img:hover {
  transform: translateY(-5px) scale(1.02);
}

@media (max-width: 991px) {
  #download-app,
  #download-app.download-app-section {
    padding: 60px 0 !important;
  }
  .app-info-card {
    text-align: center;
  }
  #download-app .section-title.divider.text-start {
    text-align: center !important;
  }
  #download-app .section-title.divider.text-start::after {
    margin-left: auto;
    margin-right: auto;
  }
  .app-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .app-rating-strip {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .app-store-buttons {
    justify-content: center;
  }
  .device-mockup-wrapper {
    margin-top: 25px;
  }
  .device-mockup-img {
    max-height: 360px !important;
  }
}

@media (max-width: 576px) {
  #download-app,
  #download-app.download-app-section {
    padding: 42px 0 !important;
  }
  .app-features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
  }
  .app-store-buttons {
    gap: 10px;
  }
  .store-badge-link img {
    height: 40px !important;
  }
  .device-mockup-img {
    max-height: 270px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   GLOBAL RESPONSIVE COMPONENT POLISH (ALL GADGETS)
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #best-selling .product-entry {
    text-align: center;
    margin-top: 20px;
  }
  #best-selling .section-title.divider::after {
    margin-left: auto;
    margin-right: auto;
  }
  #best-selling .products-thumb .single-image {
    max-height: 320px !important;
    width: auto !important;
    margin: 0 auto;
    display: block;
  }
  #best-selling .product-entry .d-flex {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px !important;
  }
}

@media (max-width: 576px) {
  #quotation blockquote q {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }
  #quotation .author-name {
    font-size: 13px !important;
    margin-top: 10px;
  }
  .section-header h2.section-title {
    font-size: 1.8rem !important;
  }
  .section-subtitle {
    font-size: 13px !important;
    padding: 0 10px;
  }
}

/* ═════════════════════════════════════════════════════════════
   OFFICIAL VECTOR BRAND LOGO COMPONENT
   ═════════════════════════════════════════════════════════════ */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: #27231e !important;
  transition: transform 0.22s ease, opacity 0.2s ease;
  user-select: none;
}
.brand-logo:hover {
  transform: translateY(-1px);
}
.brand-logo-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, #74642F 0%, #4a3e1b 100%);
  color: #ffffff !important;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(116, 100, 47, 0.28), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid rgba(255, 215, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brand-logo:hover .brand-logo-icon {
  transform: rotate(-3deg) scale(1.05);
  box-shadow: 0 6px 18px rgba(116, 100, 47, 0.38);
}
.brand-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #27231e;
  text-transform: uppercase;
}
.brand-title .brand-accent {
  color: #74642F;
  font-style: italic;
  margin-left: 1px;
}
.brand-subtitle {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: #8c827a;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Footer variant */
.footer-brand-logo .brand-title {
  color: #ffffff;
}
.footer-brand-logo .brand-subtitle {
  color: #d1c7b7;
}

/* Auth Pages variant */
.auth-brand-logo {
  justify-content: center;
  margin: 0 auto 16px;
}
.auth-brand-logo .brand-logo-icon {
  width: 48px;
  height: 48px;
  font-size: 22px;
}
.auth-brand-logo .brand-title {
  font-size: 24px;
}
.auth-brand-logo .brand-subtitle {
  font-size: 10px;
}

/* Mobile Drawer variant */
.drawer-brand-logo .brand-title {
  font-size: 20px;
}
.drawer-brand-logo .brand-subtitle {
  font-size: 9px;
}

/* ═════════════════════════════════════════════════════════════
   COMMON CLEAN EXTRACTED STYLES (FROM INLINE CSS)
   ═════════════════════════════════════════════════════════════ */

/* Cart page remove button */
.cart-remove-btn,
.cart-remove {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid #fee2e2 !important;
  background: #fef2f2 !important;
  color: #ef4444 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 auto !important;
  outline: none !important;
  transition: all 0.22s ease-in-out !important;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.08) !important;
  vertical-align: middle !important;
}
.cart-remove-btn svg,
.cart-remove svg {
  width: 14px !important;
  height: 14px !important;
  stroke: #ef4444 !important;
  stroke-width: 2.5 !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease !important;
  display: block !important;
  pointer-events: none !important;
}
.cart-remove-btn:hover,
.cart-remove:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}
.cart-remove-btn:hover svg,
.cart-remove:hover svg {
  stroke: #ffffff !important;
  transform: rotate(90deg) !important;
}
.cart-remove-btn:active,
.cart-remove:active {
  transform: scale(0.92) !important;
}

/* Index page styles */
.pattern-overlay {
  background-image: url('../images/pattern1.png');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: auto;
}
.btn-outline-accent {
  border: 1px solid #C5A992;
  color: #74642F;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  transition: all 0.3s ease;
  border-radius: 4px;
}
.btn-outline-accent:hover {
  background: #C5A992;
  color: #fff;
  border-color: #C5A992;
}
.btn-outline-accent i.icon {
  font-size: 10px;
  transition: transform 0.3s ease;
}
.btn-outline-accent:hover i.icon {
  transform: translateX(4px);
}
.product-item h3 {
  font-size: 14px;
  margin: 0 0 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.product-item .author {
  font-size: 12px;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.product-item .item-price {
  font-size: 14px;
  font-weight: 700;
  color: #74642F;
  margin: 4px 0;
}
@media screen and (max-width: 576px) {
  .btn-outline-accent {
    padding: 10px 18px;
    font-size: 12px;
  }
  .product-item figcaption { padding: 10px 10px 12px; }
  .circle-btn-action { width: 34px; height: 34px; }
  .circle-btn-action svg { width: 15px; height: 15px; }
  .btn-card-add-cart { padding: 6px 8px; font-size: 11px; }
}

/* About page styles */
.about-stats-wrap {
  display: flex;
  gap: 30px;
  margin-top: 24px;
}
.about-stat-item {
  text-align: center;
}
.about-stat-number {
  font-size: 2rem;
  color: var(--primary, #74642F);
  margin: 0;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.about-stat-label {
  margin: 0;
  font-size: 14px;
  color: #888;
}
.about-main-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow, 0 8px 30px rgba(0,0,0,0.08));
}
.about-values-section {
  background: #f9f7f4;
  padding: 60px 0;
}
.about-value-box {
  text-align: center;
}
.about-value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: #f1ebd8;
  color: #74642F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(116, 100, 47, 0.12);
  transition: transform 0.25s ease;
}
.about-value-box:hover .about-value-icon {
  transform: translateY(-4px);
}
.about-value-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #27231e;
}
.about-value-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
.about-team-section {
  background: #FAF8F5;
  border-top: 1px solid #EAE6DC;
  border-bottom: 1px solid #EAE6DC;
  padding: 60px 0;
}
.about-team-header-title {
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary, #74642F);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}
.about-team-title {
  font-size: 34px;
  margin-bottom: 12px;
}
.about-team-desc {
  max-width: 650px;
  margin: 0 auto;
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

/* Legal pages (terms, privacy, refund, digital access) */
.legal-page-container {
  max-width: 860px;
  margin: 0 auto;
}
.legal-tabs-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.legal-tab-btn {
  border: 1px solid #dcd6cc;
  border-radius: 20px;
  padding: 7px 18px;
  color: #555;
  text-decoration: none;
  font-size: 13px;
  background: #fff;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legal-tab-btn:hover {
  background: #f7f2ea;
  color: #74642F;
  border-color: #74642F;
}
.legal-tab-btn.active {
  border-color: #74642F;
  background: #74642F;
  color: #fff;
}
.legal-card-box {
  background: #fff;
  padding: 36px;
  border-radius: 16px;
  border: 1px solid #ebe5da;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  line-height: 1.75;
  color: #444;
}
.legal-card-tag {
  font-size: 12px;
  font-weight: 700;
  color: #74642F;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 6px;
}
.legal-card-title {
  font-family: 'Playfair Display', serif;
  margin: 6px 0 20px 0;
  color: #27231e;
  font-size: 28px;
}
.legal-card-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #27231e;
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-footer-meta {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.legal-back-btn {
  width: auto;
  padding: 8px 20px;
  text-decoration: none;
  font-size: 13px;
}

/* Shop empty state */
.shop-no-books-wrap {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}
.shop-no-books-title {
  font-family: 'Playfair Display', serif;
  color: #74642F;
  font-size: 22px;
  margin-bottom: 8px;
}
.shop-no-books-text {
  color: #777;
  font-size: 14px;
  margin-bottom: 18px;
}
.shop-no-books-btn {
  padding: 10px 22px;
  background: #74642F;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.shop-no-books-btn:hover {
  background: #594c23;
}

/* Auth Pages Clean Utility Classes */
.auth-sub-badge {
  font-size: 12px;
  color: #8a8378;
  font-weight: 600;
}
.auth-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #37302a;
}
.auth-field-error {
  display: none;
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
}
.auth-currency-hint-wrap {
  font-size: 12px;
  color: var(--primary, #74642F);
  margin-top: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.auth-currency-tag-pill {
  background: #f7f2ea;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #ede4d6;
  color: var(--primary, #74642F);
  font-size: 11.5px;
}
.auth-switch-divider {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #ebe5da;
}

/* ═════════════════════════════════════════════════════════════
   ARTICLE & BLOG SINGLE STYLES (EXTRACTED FROM INLINE TAGS)
   ═════════════════════════════════════════════════════════════ */
.articles-toolbar-section {
  background: #fbf9f5;
  border-bottom: 1px solid #ede6dc;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.articles-toolbar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.articles-categories-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.article-cat-pill {
  border: 1px solid #dbd3c5;
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #5d5651;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.article-cat-pill:hover {
  border-color: #74642F;
  color: #74642F;
  background: #fdfbf7;
}
.article-cat-pill.active {
  background: #74642F;
  color: #ffffff;
  border-color: #74642F;
  box-shadow: 0 2px 8px rgba(116, 100, 47, 0.25);
}
.articles-search-form {
  position: relative;
  min-width: 260px;
  max-width: 340px;
  flex-shrink: 0;
}
.articles-search-input {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 14px;
  font-size: 13px;
  border-radius: 20px;
  border: 1.5px solid #dcd5c9;
  background: #ffffff;
  color: #27231e;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.articles-search-input:focus {
  border-color: #74642F;
  box-shadow: 0 0 0 3px rgba(116, 100, 47, 0.12);
}
.articles-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #74642F;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
@media (max-width: 991px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-search-form { width: 100%; max-width: 100%; }
}
@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
}
.article-card {
  background: #ffffff;
  border: 1px solid #ebe5da;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.article-card-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f7f3ed;
  display: block;
}
.article-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.article-card-meta {
  font-size: 12.5px;
  color: #78716c;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}
.article-card-title a {
  color: #2c2523;
  text-decoration: none;
  transition: color 0.2s ease;
}
.article-card-title a:hover {
  color: var(--primary, #74642F);
}
.article-card-excerpt {
  font-size: 14px;
  color: #5d5651;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}
.article-card-footer {
  border-top: 1px solid #f2ece3;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.article-author-name {
  font-size: 13px;
  font-weight: 600;
  color: #78716c;
}
.read-more-btn {
  color: var(--primary, #74642F);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.read-more-btn:hover {
  color: #4a3e1b;
  gap: 8px;
}

/* Article Single Details */
.article-wrapper {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #ede6dc;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.03);
}
@media (max-width: 768px) {
  .article-wrapper {
    padding: 24px 18px;
    border-radius: 12px;
  }
}
.article-badge-tag {
  display: inline-block;
  background: #74642F;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.article-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: #2c2523;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .article-heading { font-size: 1.75rem; }
}
.article-meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: #78716c;
  padding-bottom: 20px;
  border-bottom: 1px solid #ede6dc;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-featured-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
  background: #ede6dc;
}
.article-body-content {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.85;
  color: #3b3532;
}
.article-body-content p {
  margin-bottom: 24px;
}
.article-body-content h2,
.article-body-content h3 {
  font-family: 'Playfair Display', serif;
  color: #2c2523;
  margin-top: 36px;
  margin-bottom: 16px;
}
.article-body-content blockquote {
  border-left: 3px solid #74642F;
  padding: 12px 20px;
  margin: 30px 0;
  background: #fbf9f5;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4a3e1b;
}
.article-author-bio-box {
  margin-top: 40px;
  padding: 24px;
  border-radius: 12px;
  background: #fbf9f5;
  border: 1px solid #ede6dc;
  display: flex;
  gap: 18px;
  align-items: center;
}
.article-author-bio-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #74642F;
  flex-shrink: 0;
}
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
@media (max-width: 850px) {
  .related-articles-grid { grid-template-columns: 1fr; }
}
.related-card {
  background: #ffffff;
  border: 1px solid #ede6dc;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.related-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.related-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.related-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.related-card-title a {
  color: #2c2523;
  text-decoration: none;
}
.related-card-title a:hover {
  color: #74642F;
}

/* ─── Article Toolbar & Standard Search Box ─────────────────── */
.article-toolbar-container {
  border-bottom: 1px solid #EAE6DC;
}
.article-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.article-cat-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 3px 0;
}
.article-cat-wrapper::-webkit-scrollbar {
  display: none;
}
.cat-scroll-track {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.cat-pill-btn {
  height: 30px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid #ded7cb;
  background: #fbf9f6;
  color: #555555;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
  outline: none;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}
.cat-pill-btn .cat-icon {
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.cat-pill-btn:hover {
  background: #f5ede1;
  border-color: var(--primary, #74642F);
  color: var(--primary, #74642F);
}
.cat-pill-btn.active {
  background: var(--primary, #74642F);
  border-color: var(--primary, #74642F);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(116, 100, 47, 0.25);
}
.article-search-wrapper {
  flex: 0 0 300px;
  width: 300px;
  max-width: 100%;
}
.article-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #d5cec2;
  border-radius: 50px;
  height: 38px;
  padding: 0 3px 0 16px;
  transition: all 0.25s ease;
  width: 100%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  overflow: hidden;
}
.article-search-box:focus-within {
  background: #ffffff;
  border-color: var(--primary, #74642F);
  box-shadow: 0 0 0 3px rgba(116, 100, 47, 0.15);
}
.article-search-box input[type="text"].article-search-field,
.article-search-box input.article-search-field,
input#article-search-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 6px 0 0 !important;
  margin: 0 !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: #2F2F2F !important;
  line-height: 38px !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.article-search-box input[type="text"].article-search-field:focus,
.article-search-box input.article-search-field:focus,
input#article-search-input:focus {
  border: 0 !important;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
}
.article-search-box input[type="text"].article-search-field::placeholder,
input#article-search-input::placeholder {
  color: #9e958c !important;
  font-size: 13px !important;
  opacity: 1 !important;
}
.article-search-clear {
  background: transparent !important;
  border: none !important;
  color: #999999 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  padding: 0 6px !important;
  margin: 0 !important;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
  transition: color 0.15s ease !important;
  flex-shrink: 0 !important;
}
.article-search-clear:hover {
  color: #dc2626 !important;
}
.article-search-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  border-radius: 50% !important;
  border: none !important;
  background: var(--primary, #74642F) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 0 2px 6px rgba(116, 100, 47, 0.25) !important;
}
.article-search-btn i,
.article-search-btn .icon {
  font-size: 13px !important;
  color: #ffffff !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.article-search-btn:hover {
  background: #56481e !important;
  transform: scale(1.06) !important;
  box-shadow: 0 3px 8px rgba(116, 100, 47, 0.35) !important;
}
@media (max-width: 991px) {
  .article-toolbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .article-cat-wrapper {
    width: 100%;
  }
  .article-search-wrapper {
    width: 100%;
    flex: 1 1 100%;
  }
}
.article-card-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #ede6dc;
}
.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card-thumb img {
  transform: scale(1.05);
}
.article-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary, #74642F);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
}
.spinner-ring {
  width: 40px;
  height: 40px;
  border: 3px solid #ede6dc;
  border-top-color: var(--primary, #74642F);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Blog Single Article Typography & Navigation ───────────── */
.article-breadcrumb {
  background: #f7f4ed;
  border-bottom: 1px solid #ede6dc;
  padding: 14px 0;
  font-size: 13.5px;
}
.article-breadcrumb a {
  color: #74642F;
  text-decoration: none;
}
.article-breadcrumb a:hover {
  text-decoration: underline;
}
.article-breadcrumb .separator {
  margin: 0 8px;
  color: #b0a79d;
}
.article-banner-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.article-body {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.95;
  color: #332d29;
}
.article-body p {
  margin-bottom: 22px;
}
.article-body strong {
  color: #2c2523;
}
.article-body blockquote {
  border-left: 4px solid #74642F;
  padding: 16px 20px;
  background: #faf7f2;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  margin: 26px 0;
  color: #4a4039;
}
.article-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid #ede6dc;
}
.article-tag-pill {
  background: #f7f3ec;
  border: 1px solid #ede6dc;
  color: #78716c;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  text-decoration: none;
}
.article-tag-pill:hover {
  background: #eae2d3;
  color: #4a3e1b;
}
.article-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.related-section {
  background: #f7f4ed;
  border-top: 1px solid #ede6dc;
  padding: 50px 0;
  margin-top: 60px;
}
.related-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
}

/* Digital Publishing & Partners */
.badge-digital-pub {
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 12px;
}
.publisher-partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.75;
  padding: 20px 0;
}
.publisher-badge {
  font-family: 'Prata', serif;
  font-size: 15px;
  font-weight: 700;
  color: #555;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.publisher-badge:hover {
  opacity: 1;
  color: #74642F;
  transform: translateY(-2px);
}













/* ==========================================================================
   MODULE: ACCOUNT DASHBOARD & PROFILE STYLES
   ========================================================================== */
.profile-hero-card {
      background: linear-gradient(135deg, #2b251c 0%, #463b2c 100%);
      border-radius: 18px;
      padding: 30px;
      color: #fff;
      margin-bottom: 28px;
      box-shadow: 0 12px 35px rgba(43, 37, 28, 0.2);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
    }
    .profile-user-flex {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    .profile-avatar-circle {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: linear-gradient(135deg, #c5a992, #74642F);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 26px;
      font-weight: 800;
      border: 3px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
      flex-shrink: 0;
    }
    .profile-meta-title {
      font-family: 'Playfair Display', Georgia, serif;
      font-size: 24px;
      font-weight: 700;
      margin: 0 0 4px 0;
      color: #ffffff;
    }
    .profile-badge-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 6px;
    }
    .profile-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 11.5px;
      font-weight: 600;
      background: rgba(255, 255, 255, 0.12);
      color: #ede7dc;
      border: 1px solid rgba(255, 255, 255, 0.15);
    }
    .profile-badge.verified {
      background: rgba(40, 167, 69, 0.2);
      border-color: rgba(40, 167, 69, 0.4);
      color: #75b798;
    }
    .profile-card-book {
      background: #ffffff;
      border: 1px solid #ebe5da;
      border-radius: 14px;
      padding: 16px;
      display: flex;
      gap: 16px;
      box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
      transition: all 0.25s ease;
      height: 100%;
      box-sizing: border-box;
      align-items: stretch;
    }
    .profile-card-book:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(116, 100, 47, 0.12);
      border-color: #d8cfbe;
    }
    .profile-card-cover-wrap {
      flex-shrink: 0;
      display: block;
      line-height: 0;
    }
    .profile-card-cover {
      width: 90px;
      height: 130px;
      min-width: 90px;
      object-fit: cover;
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
      display: block;
      aspect-ratio: 9/13;
    }
    .profile-card-content {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      flex: 1;
      min-width: 0;
    }
    .profile-card-info {
      display: flex;
      flex-direction: column;
    }
    .profile-card-badge-row {
      display: flex;
      gap: 6px;
      margin-bottom: 6px;
      flex-wrap: wrap;
    }
    .badge-status-active {
      background: #16a34a;
      color: #fff;
      font-size: 9.5px;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 4px;
      letter-spacing: 0.3px;
      text-transform: uppercase;
      line-height: 1.2;
      display: inline-block;
    }
    .profile-book-title {
      margin: 0 0 4px 0;
      font-size: 15px;
      font-weight: 700;
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 40px; /* Locks height uniformly across all cards */
    }
    .profile-book-title a {
      color: #27231e;
      text-decoration: none;
    }
    .profile-book-title a:hover {
      color: #74642F;
    }
    .profile-book-author {
      margin: 0;
      font-size: 12px;
      color: #777;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Attractive Slim Profile Button Design System */
    .btn-profile-edit {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 18px;
      height: 38px;
      border-radius: 20px;
      border: 1.5px solid rgba(255, 255, 255, 0.4);
      background: rgba(255, 255, 255, 0.15);
      color: #fff !important;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      backdrop-filter: blur(10px);
      transition: all 0.2s ease;
      white-space: nowrap;
    }
    .btn-profile-edit:hover {
      background: rgba(255, 255, 255, 0.28);
      border-color: rgba(255, 255, 255, 0.8);
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    }

    .btn-profile-logout {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 18px;
      height: 38px;
      border-radius: 20px;
      border: none;
      background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
      color: #fff !important;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
      white-space: nowrap;
    }
    .btn-profile-logout:hover {
      background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
    }

    /* Perfectly Synchronized Book Action Buttons Container */
    .book-card-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: auto; /* Locked to the exact same bottom position across all cards */
      padding-top: 12px;
      width: 100%;
      align-items: stretch;
      box-sizing: border-box;
    }

    .btn-book-read,
    .btn-book-download {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 0 10px;
      height: 36px;
      line-height: 36px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 700;
      font-family: inherit;
      text-decoration: none !important;
      box-sizing: border-box;
      border: 1.5px solid transparent;
      cursor: pointer;
      white-space: nowrap;
      margin: 0;
      outline: none;
      vertical-align: middle;
      transition: all 0.2s ease;
      -webkit-appearance: none;
      appearance: none;
    }

    .btn-book-read {
      background: linear-gradient(135deg, #74642F 0%, #564a22 100%);
      border-color: #74642F;
      color: #fff !important;
      box-shadow: 0 2px 6px rgba(116, 100, 47, 0.2);
    }
    .btn-book-read:hover {
      background: linear-gradient(135deg, #8a773b 0%, #655627 100%);
      border-color: #8a773b;
      transform: translateY(-1px);
      box-shadow: 0 4px 10px rgba(116, 100, 47, 0.3);
    }

    .btn-book-download {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #1e293b !important;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }
    .btn-book-download:hover {
      background: #1e293b;
      color: #fff !important;
      border-color: #1e293b;
      transform: translateY(-1px);
      box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
    }

    .btn-profile-primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 24px;
      height: 42px;
      border-radius: 8px;
      background: linear-gradient(135deg, #74642F 0%, #54481f 100%);
      color: #fff !important;
      font-size: 13.5px;
      font-weight: 700;
      text-decoration: none !important;
      border: none;
      cursor: pointer;
      transition: all 0.25s ease;
      box-shadow: 0 3px 12px rgba(116, 100, 47, 0.28);
    }
    .btn-profile-primary:hover {
      background: linear-gradient(135deg, #8a773b 0%, #655627 100%);
      transform: translateY(-1.5px);
      box-shadow: 0 5px 16px rgba(116, 100, 47, 0.38);
    }

    .btn-explore-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 0 16px;
      height: 34px;
      border: 1.5px solid #74642F;
      color: #74642F !important;
      background: #fff;
      border-radius: 20px;
      text-decoration: none !important;
      font-size: 12.5px;
      font-weight: 700;
      transition: all 0.2s ease;
      box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    }
    .btn-explore-pill:hover {
      background: #74642F;
      color: #fff !important;
      box-shadow: 0 4px 12px rgba(116, 100, 47, 0.25);
      transform: translateY(-1px);
    }

    /* Modern Attractive Sidebar Navigation */
    .account-sidebar {
      background: #ffffff;
      border: 1px solid #ebd9c8;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
      position: sticky;
      top: 90px;
    }
    .account-nav {
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .account-nav a {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border-radius: 8px;
      font-size: 13.5px;
      font-weight: 600;
      color: #4a3f35;
      text-decoration: none !important;
      transition: all 0.2s ease;
    }
    .account-nav a .nav-icon {
      font-size: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      flex-shrink: 0;
    }
    .account-nav a .nav-text {
      flex: 1;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .account-nav a .nav-badge {
      font-size: 11px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 10px;
      background: #f1ebd8;
      color: #74642F;
      margin-left: auto;
      flex-shrink: 0;
    }
    .account-nav a.active {
      background: linear-gradient(135deg, #74642F 0%, #564a22 100%) !important;
      color: #fff !important;
      box-shadow: 0 3px 10px rgba(116, 100, 47, 0.25);
    }
    .account-nav a.active .nav-badge {
      background: rgba(255, 255, 255, 0.22);
      color: #fff;
    }
    .account-nav a:hover:not(.active) {
      background: #fbf7f0;
      color: #74642F;
      padding-left: 17px;
    }
    .account-nav a.nav-logout {
      color: #dc2626 !important;
      border-top: 1px solid #f0ebe1;
      margin-top: 6px;
      padding-top: 12px;
    }
    .account-nav a.nav-logout:hover {
      background: #fef2f2 !important;
      color: #b91c1c !important;
      padding-left: 14px;
    }

    /* ═════════════════════════════════════════════════════════════
       COMPREHENSIVE RESPONSIVE STYLES FOR ACCOUNT & PROFILE
       ═════════════════════════════════════════════════════════════ */
    @media (max-width: 991px) {
      .account-layout {
        grid-template-columns: 1fr;
        gap: 24px;
      }
      .account-sidebar {
        position: static;
        top: auto;
      }
      .profile-hero-card {
        padding: 24px;
      }
    }

    @media (max-width: 768px) {
      .profile-hero-card {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
      }
      .profile-user-flex {
        flex-direction: row;
        align-items: center;
        gap: 16px;
      }
      .profile-avatar-circle {
        width: 60px;
        height: 60px;
        font-size: 22px;
      }
      .profile-meta-title {
        font-size: 20px;
      }
      .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
      }
      .profile-stat-card {
        padding: 14px;
        gap: 10px;
      }
      .profile-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
      }
      .profile-stat-info .stat-value {
        font-size: 17px;
      }
      .account-panel {
        padding: 20px;
      }
    }

    @media (max-width: 576px) {
      .profile-hero-card {
        padding: 16px;
      }
      .profile-hero-card > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 8px !important;
      }
      .btn-profile-edit,
      .btn-profile-logout {
        width: 100%;
        justify-content: center;
        padding: 0 10px;
        font-size: 12px;
        height: 36px;
      }
      .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
      }
      .profile-stat-card {
        padding: 12px 10px;
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
      }
      .profile-stat-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
      }
      .profile-stat-info h5 {
        font-size: 10px;
      }
      .profile-stat-info .stat-value {
        font-size: 15px;
      }
      .profile-stat-info .stat-desc {
        font-size: 9.5px;
      }
      .account-panel {
        padding: 16px;
        border-radius: 12px;
      }
      .profile-card-book {
        padding: 12px;
        gap: 12px;
      }
      .profile-card-cover {
        width: 78px;
        height: 115px;
        min-width: 78px;
      }
      .profile-book-title {
        font-size: 13.5px;
        min-height: 36px;
      }
      .book-card-actions {
        gap: 6px;
        padding-top: 8px;
      }
      .btn-book-read,
      .btn-book-download {
        font-size: 11px;
        padding: 0 6px;
        gap: 4px;
        height: 34px;
        line-height: 34px;
      }
    }

    @media (max-width: 380px) {
      .profile-user-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
      .profile-badge-row {
        justify-content: center;
      }
      .profile-card-book {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
      .profile-card-cover {
        width: 90px;
        height: 130px;
        margin-bottom: 8px;
      }
      .profile-card-content {
        width: 100%;
        align-items: center;
      }
      .profile-card-badge-row {
        justify-content: center;
      }
      .book-card-actions {
        grid-template-columns: 1fr 1fr;
        width: 100%;
      }
    }

/* ==========================================================================
   MODULE: CHECKOUT PAYMENT STYLES
   ========================================================================== */
:root {
      --rzp-blue: #074EE8;
      --rzp-dark: #0f172a;
      --surface: #ffffff;
      --bg-light: #f8fafc;
      --border: #e2e8f0;
      --border-dark: #cbd5e1;
      --muted: #64748b;
      --green: #16a34a;
      --green-bg: #f0fdf4;
      --accent-gold: #74642F;
    }
    body { background: var(--bg-light); color: var(--rzp-dark); font-family: inherit; }

    /* Stepper */
    .checkout-stepper { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 24px; }
    .stepper-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #94a3b8; text-decoration: none; }
    .stepper-step.completed { color: var(--green); cursor: pointer; }
    .stepper-step.active { color: var(--rzp-blue); }
    .stepper-circle { width: 26px; height: 26px; border-radius: 50%; background: #e2e8f0; color: #64748b; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
    .stepper-step.completed .stepper-circle { background: #dcfce7; color: var(--green); border: 1px solid #86efac; }
    .stepper-step.active .stepper-circle { background: var(--rzp-blue); color: #fff; }
    .stepper-line { width: 44px; height: 2px; background: #cbd5e1; }

    /* Layout */
    .payment-grid { display: grid; grid-template-columns: 1fr 370px; gap: 24px; align-items: start; }
    @media(max-width: 991px){ .payment-grid { grid-template-columns: 1fr; gap: 20px; } }

    /* Pay Card Base */
    .pay-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 22px 24px;
      box-shadow: 0 4px 18px -2px rgba(15,23,42,0.05);
      margin-bottom: 18px;
    }
    @media(max-width: 576px){ .pay-card { padding: 16px 14px; } }

    .pay-card-title {
      font-size: 15px;
      font-weight: 800;
      color: var(--rzp-dark);
      margin: 0 0 14px;
      padding-bottom: 10px;
      border-bottom: 1px solid #f1f5f9;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .badge-secure {
      font-size: 11px;
      font-weight: 700;
      background: #dcfce7;
      color: #15803d;
      padding: 3px 8px;
      border-radius: 5px;
      border: 1px solid #bbf7d0;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    /* Order Recap Strip */
    .order-recap-strip {
      background: #f8fafc;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px 14px;
      margin-bottom: 18px;
      font-size: 12.5px;
      color: #475569;
    }
    .order-recap-strip .recap-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
    .order-recap-strip .recap-row:last-child { margin-bottom: 0; }
    .order-recap-strip strong { color: var(--rzp-dark); }
    .edit-link { font-size: 11.5px; color: var(--rzp-blue); font-weight: 700; text-decoration: underline; cursor: pointer; }

    /* Interactive Payment Methods Navigation Tabs */
    .method-nav-tabs {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin-bottom: 18px;
      background: #f1f5f9;
      padding: 6px;
      border-radius: 12px;
    }
    @media(max-width: 640px){
      .method-nav-tabs { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    }

    .method-tab-btn {
      border: none;
      background: transparent;
      padding: 8px 6px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 700;
      color: #475569;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      transition: all 0.15s ease;
      text-align: center;
      min-height: 56px;
      box-sizing: border-box;
      line-height: 1;
    }
    .method-tab-btn .tab-icon {
      font-size: 20px;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin: 0;
    }
    .method-tab-btn .tab-title {
      font-size: 12px;
      line-height: 1.2;
      display: block;
      margin: 0;
    }
    .method-tab-btn.active {
      background: #fff;
      color: var(--rzp-blue);
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    /* Method Content Panels */
    .method-panel { display: none; }
    .method-panel.active { display: block; animation: fadeIn 0.2s ease; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

    /* Scanner & UPI Container */
    .qr-scanner-card {
      background: #fff;
      border: 1.5px solid #fed7aa;
      border-radius: 12px;
      padding: 18px;
      margin-bottom: 16px;
      box-shadow: 0 4px 14px rgba(234, 88, 12, 0.05);
    }
    .qr-flex-layout {
      display: flex;
      gap: 20px;
      align-items: center;
      flex-wrap: wrap;
    }
    @media(max-width: 576px){
      .qr-flex-layout { flex-direction: column; text-align: center; }
    }

    .qr-frame-box {
      width: 140px;
      height: 140px;
      background: #fff;
      border: 2px dashed #ea580c;
      border-radius: 12px;
      padding: 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      flex-shrink: 0;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
      margin: 0 auto;
    }
    .qr-frame-box svg { width: 100%; height: 100%; }
    .qr-timer-badge {
      font-size: 10.5px;
      font-weight: 700;
      color: #c2410c;
      background: #ffedd5;
      padding: 2px 6px;
      border-radius: 4px;
      margin-top: 4px;
      display: inline-block;
      line-height: 1.2;
    }

    .qr-instructions-box { flex: 1; min-width: 220px; }
    .qr-instructions-box h4 {
      font-size: 15px;
      font-weight: 800;
      color: #9a3412;
      margin: 0 0 6px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    @media(max-width: 576px){
      .qr-instructions-box h4 { justify-content: center; }
    }
    .qr-instructions-box p {
      font-size: 12px;
      color: #7c2d12;
      margin: 0 0 10px;
      line-height: 1.45;
    }
    .supported-apps-row {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      align-items: center;
      margin-bottom: 12px;
    }
    @media(max-width: 576px){
      .supported-apps-row { justify-content: center; }
    }
    .app-pill {
      background: #fff;
      border: 1px solid #fdba74;
      padding: 4px 8px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 700;
      color: #9a3412;
      display: inline-flex;
      align-items: center;
      line-height: 1;
    }

    /* UPI ID Input Form — Exact Equal Height & Pixel-Perfect Alignment */
    .upi-id-form-group {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 6px;
      max-width: 460px;
      width: 100%;
    }
    @media(max-width: 480px){
      .upi-id-form-group { flex-direction: column; align-items: stretch; gap: 8px; }
    }
    .upi-input {
      flex: 1;
      height: 42px;
      line-height: 42px;
      border: 1.5px solid #cbd5e1;
      border-radius: 8px;
      padding: 0 14px;
      font-size: 13px;
      font-weight: 600;
      outline: none;
      color: #0f172a;
      box-sizing: border-box;
      margin: 0;
      transition: border-color 0.15s;
    }
    .upi-input:focus { border-color: var(--rzp-blue); }
    .btn-upi-verify {
      height: 42px;
      line-height: 42px;
      background: #0f172a;
      color: #fff;
      border: 1.5px solid #0f172a;
      border-radius: 8px;
      padding: 0 18px;
      font-size: 12.5px;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.15s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      margin: 0;
      flex-shrink: 0;
    }
    .btn-upi-verify:hover { background: #334155; border-color: #334155; }

    /* Interactive Card Form — Perfect Centering */
    .card-form-box {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 16px;
      margin-bottom: 16px;
    }
    .card-preview-strip {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid #f1f5f9;
      font-size: 12.5px;
      font-weight: 700;
    }
    .card-input-label {
      font-size: 11px;
      font-weight: 700;
      color: #64748b;
      text-transform: uppercase;
      margin-bottom: 5px;
      display: block;
      line-height: 1.2;
    }
    .card-input-field {
      width: 100%;
      height: 42px;
      line-height: 42px;
      border: 1.5px solid #cbd5e1;
      border-radius: 8px;
      padding: 0 14px;
      font-size: 13px;
      font-weight: 600;
      outline: none;
      color: #0f172a;
      box-sizing: border-box;
      margin: 0;
      transition: border-color 0.15s;
    }
    .card-input-field:focus { border-color: var(--rzp-blue); }
    .card-number-wrapper {
      position: relative;
      display: flex;
      align-items: center;
      width: 100%;
    }
    .card-number-wrapper .card-input-field {
      padding-right: 48px;
    }
    .card-brand-icon {
      position: absolute;
      right: 12px;
      top: 0;
      bottom: 0;
      margin: auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 100%;
      font-size: 17px;
      line-height: 1;
      pointer-events: none;
      color: #64748b;
    }

    /* Global Net Banking & Region Selector */
    .bank-region-pills {
      display: flex;
      gap: 6px;
      margin-bottom: 12px;
      overflow-x: auto;
      padding-bottom: 4px;
      scrollbar-width: none;
      align-items: center;
      flex-wrap: wrap;
    }
    .bank-region-pills::-webkit-scrollbar { display: none; }
    .region-pill-btn {
      background: #f1f5f9;
      border: 1.5px solid #cbd5e1;
      border-radius: 20px;
      padding: 6px 14px;
      font-size: 11.5px;
      font-weight: 700;
      color: #475569;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.15s ease;
      height: 32px;
      line-height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      margin: 0;
    }
    .region-pill-btn:hover { background: #e2e8f0; color: #0f172a; }
    .region-pill-btn.active {
      background: #0f172a;
      color: #fff;
      border-color: #0f172a;
    }
    .banks-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin-bottom: 14px;
    }
    @media(max-width: 520px){ .banks-grid { grid-template-columns: repeat(2, 1fr); } }
    .bank-tile {
      border: 1.5px solid var(--border);
      border-radius: 8px;
      padding: 8px 10px;
      background: #fff;
      cursor: pointer;
      transition: all 0.15s ease;
      font-size: 11.5px;
      font-weight: 700;
      color: #334155;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      line-height: 1.25;
      min-height: 46px;
      box-sizing: border-box;
      text-align: center;
    }
    .bank-tile:hover {
      border-color: var(--rzp-blue);
      background: #f0f7ff;
      transform: translateY(-1px);
    }
    .bank-tile.selected {
      border-color: var(--rzp-blue);
      background: #eff6ff;
      color: var(--rzp-blue);
      box-shadow: 0 0 0 1px var(--rzp-blue);
    }

    /* Master Pay Button Container — Exact Baseline Alignment */
    .master-pay-section {
      text-align: center;
      margin-top: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
    }
    .btn-master-pay {
      width: 100%;
      max-width: 400px;
      height: 50px;
      background: linear-gradient(135deg, var(--rzp-blue) 0%, #0036b3 100%);
      color: #fff;
      border: none;
      border-radius: 9px;
      font-size: 14.5px;
      font-weight: 800;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: 0 4px 16px rgba(7, 78, 232, 0.35);
      transition: all 0.2s ease;
      box-sizing: border-box;
      line-height: 1;
    }
    .btn-master-pay span,
    .btn-master-pay svg {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      vertical-align: middle;
    }
    .btn-master-pay:hover:not(:disabled) {
      background: linear-gradient(135deg, #1860ff 0%, #003dd3 100%);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(7, 78, 232, 0.45);
    }
    .btn-master-pay:disabled { opacity: 0.6; cursor: not-allowed; }
    .btn-amount-badge {
      background: rgba(255,255,255,0.22);
      height: 26px;
      padding: 0 10px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      line-height: 1;
    }


    /* Sticky Sidebar */
    .order-sidebar-clean {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px 22px;
      box-shadow: 0 4px 18px -2px rgba(15,23,42,0.05);
    }
    @media(min-width: 992px){
      .order-sidebar-clean { position: sticky; top: 90px; }
    }
    .sidebar-header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 15px;
      font-weight: 800;
      color: var(--rzp-dark);
      padding-bottom: 12px;
      border-bottom: 1px solid #f1f5f9;
      margin-bottom: 12px;
    }
    .sidebar-items-list { max-height: 220px; overflow-y: auto; padding-right: 4px; margin-bottom: 12px; }
    .sidebar-item-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f8fafc; }
    .sidebar-item-row:last-child { border-bottom: none; }
    .sidebar-item-row img { width: 36px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
    .sidebar-item-details { flex: 1; min-width: 0; }
    .sidebar-item-title { font-size: 12.5px; font-weight: 700; color: var(--rzp-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
    .sidebar-item-author { font-size: 11px; color: var(--muted); }
    .sidebar-item-price { font-size: 12.5px; font-weight: 700; color: var(--rzp-dark); white-space: nowrap; }

    .summary-calc-rows { border-top: 1px solid var(--border); padding-top: 10px; }
    .calc-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #475569; margin-bottom: 6px; }
    .calc-row.discount { color: var(--green); font-weight: 700; }
    .calc-row.total-row { border-top: 1.5px solid #cbd5e1; margin-top: 8px; padding-top: 8px; font-size: 15px; font-weight: 800; color: var(--rzp-dark); }
    .calc-row.total-row .total-amount { font-size: 18px; color: var(--rzp-blue); }

    /* Processing Overlay */
    .processing-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15,23,42,0.78);
      backdrop-filter: blur(4px);
      z-index: 99999;
      display: none;
      align-items: center;
      justify-content: center;
    }
    .processing-overlay.show { display: flex; }
    .processing-card {
      background: #fff;
      border-radius: 14px;
      padding: 30px;
      text-align: center;
      max-width: 360px;
      width: 90%;
      box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    }
    .spinner-ring {
      width: 44px;
      height: 44px;
      border: 3.5px solid #e2e8f0;
      border-top-color: var(--rzp-blue);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      margin: 0 auto 14px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   MODULE: DIGITAL READER STYLES
   ========================================================================== */
:root {
      --reader-bg: #f8f6f0;
      --reader-canvas: #ffffff;
      --reader-text: #2b2523;
      --reader-panel-bg: rgba(255, 255, 255, 0.95);
      --reader-border: #e8e0d5;
      --reader-accent: #74642f;
      --reader-accent-light: #c5a992;
      --reader-accent-glow: rgba(116, 100, 47, 0.25);
      --reader-muted: #79716b;
      --reader-card-bg: #faf7f2;
      --reader-font-family: 'Lora', Georgia, serif;
      --reader-font-size: 19px;
      --reader-line-height: 1.9;
      --reader-max-width: 820px;
    }

    body.theme-sepia {
      --reader-bg: #f2e9d2;
      --reader-canvas: #faf3e0;
      --reader-text: #3c2f1f;
      --reader-panel-bg: rgba(244, 236, 216, 0.96);
      --reader-border: #dccdb3;
      --reader-accent: #8b5e34;
      --reader-accent-light: #c5a992;
      --reader-accent-glow: rgba(139, 94, 52, 0.25);
      --reader-muted: #7d6b53;
      --reader-card-bg: #ede0c7;
    }

    body.theme-dark {
      --reader-bg: #0f1115;
      --reader-canvas: #16181e;
      --reader-text: #e4e4eb;
      --reader-panel-bg: rgba(22, 24, 30, 0.96);
      --reader-border: #282c37;
      --reader-accent: #d4af37;
      --reader-accent-light: #947a24;
      --reader-accent-glow: rgba(212, 175, 55, 0.25);
      --reader-muted: #9a9eb2;
      --reader-card-bg: #1e2129;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      background-color: var(--reader-bg);
      color: var(--reader-text);
      font-family: var(--reader-font-family);
      font-size: var(--reader-font-size);
      line-height: var(--reader-line-height);
      transition: background-color 0.3s ease, color 0.3s ease;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      position: relative;
    }

    .ambient-glow {
      position: fixed;
      top: -120px;
      left: 50%;
      transform: translateX(-50%);
      width: 600px;
      height: 350px;
      background: radial-gradient(circle, var(--reader-accent-glow) 0%, rgba(0,0,0,0) 70%);
      pointer-events: none;
      z-index: 0;
      filter: blur(60px);
    }

    #reading-progress {
      position: fixed;
      top: 0;
      left: 0;
      height: 4px;
      background: linear-gradient(90deg, #74642f, #d4af37, #c5a992);
      width: 0%;
      z-index: 1001;
      transition: width 0.15s ease;
      box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    }

    .reader-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      background-color: var(--reader-panel-bg);
      border-bottom: 1px solid var(--reader-border);
      padding: 12px 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 14px;
      user-select: none;
      box-shadow: 0 4px 25px rgba(0,0,0,0.09);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
    }

    /* Offset body content so fixed header doesn't overlap */
    body { padding-top: 65px; }

    .header-left {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }

    .btn-back {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 16px;
      background: rgba(0,0,0,0.04);
      border: 1px solid var(--reader-border);
      border-radius: 10px;
      color: var(--reader-text);
      text-decoration: none;
      font-weight: 700;
      font-size: 13px;
      transition: all 0.25s ease;
      flex-shrink: 0;
    }
    .btn-back:hover {
      background: var(--reader-accent);
      color: #fff !important;
      border-color: var(--reader-accent);
      transform: translateX(-2px);
      box-shadow: 0 4px 12px var(--reader-accent-glow);
    }

    .book-thumb-small {
      width: 32px;
      height: 44px;
      border-radius: 4px;
      object-fit: cover;
      box-shadow: 0 3px 8px rgba(0,0,0,0.15);
      border: 1px solid rgba(255,255,255,0.2);
    }

    .book-meta-head {
      min-width: 0;
    }
    .book-meta-head h1 {
      font-size: 15px;
      font-weight: 800;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 260px;
      color: var(--reader-text);
      font-family: 'Plus Jakarta Sans', sans-serif;
      line-height: 1.2;
    }
    .book-meta-head .subhead {
      font-size: 12px;
      color: var(--reader-muted);
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 2px;
    }

    .status-pill {
      font-size: 10px;
      padding: 2px 8px;
      border-radius: 12px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      letter-spacing: 0.5px;
    }
    .pill-owned {
      background: #e6f4ea;
      color: #137333;
      border: 1px solid #b7e1cd;
    }
    .pill-sample {
      background: #fef3c7;
      color: #92400e;
      border: 1px solid #fde68a;
      box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
    }

    .header-center {
      text-align: center;
      font-size: 13px;
      color: var(--reader-text);
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 12px;
      background: rgba(0,0,0,0.03);
      padding: 6px 16px;
      border-radius: 20px;
      border: 1px solid var(--reader-border);
    }
    .page-dots-wrap {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .page-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--reader-border);
      cursor: pointer;
      transition: all 0.2s;
    }
    .page-dot.active {
      background: var(--reader-accent);
      transform: scale(1.3);
      box-shadow: 0 0 8px var(--reader-accent);
    }
    .page-dot.locked {
      background: #cbd5e1;
      position: relative;
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .reader-btn {
      padding: 8px 14px;
      background: var(--reader-card-bg);
      border: 1px solid var(--reader-border);
      border-radius: 10px;
      color: var(--reader-text);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reader-btn:hover {
      border-color: var(--reader-accent);
      color: var(--reader-accent);
      transform: translateY(-1px);
    }
    .reader-btn.active {
      background: var(--reader-accent);
      color: #fff !important;
      border-color: var(--reader-accent);
    }

    .audio-waves {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      height: 12px;
    }
    .audio-waves span {
      width: 2px;
      background: currentColor;
      border-radius: 1px;
      animation: soundWave 0.6s infinite ease-in-out alternate;
    }
    .audio-waves span:nth-child(2) { animation-delay: 0.2s; height: 10px; }
    .audio-waves span:nth-child(3) { animation-delay: 0.4s; height: 14px; }
    @keyframes soundWave {
      0% { height: 4px; }
      100% { height: 14px; }
    }

    .btn-download-pdf {
      background: linear-gradient(135deg, #1e293b, #0f172a);
      color: #fff !important;
      border: none;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .btn-download-pdf:hover {
      background: linear-gradient(135deg, #334155, #1e293b);
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    }
    .btn-download-pdf.locked-btn {
      background: #475569;
      opacity: 0.95;
    }

    /* ── Translation Feature ── */
    .translate-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
    }
    .btn-translate {
      background: linear-gradient(135deg, #1d4ed8, #2563eb);
      color: #fff !important;
      border: none;
      box-shadow: 0 4px 12px rgba(37,99,235,0.3);
      padding: 8px 14px;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
      white-space: nowrap;
    }
    .btn-translate:hover {
      background: linear-gradient(135deg, #1e40af, #1d4ed8);
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(37,99,235,0.4);
    }
    .btn-translate.translating {
      opacity: 0.8;
      cursor: wait;
    }
    .btn-translate.translated {
      background: linear-gradient(135deg, #059669, #047857);
      box-shadow: 0 4px 12px rgba(5,150,105,0.35);
    }
    .lang-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      min-width: 240px;
      background: var(--reader-panel-bg);
      border: 1px solid var(--reader-border);
      border-radius: 14px;
      box-shadow: 0 20px 50px rgba(0,0,0,0.18);
      z-index: 2000;
      padding: 8px;
      display: none;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      animation: dropIn 0.2s cubic-bezier(0.16,1,0.3,1);
      font-family: 'Plus Jakarta Sans', sans-serif;
      max-height: 380px;
      overflow-y: auto;
    }
    .lang-dropdown.open { display: block; }
    @keyframes dropIn {
      from { opacity: 0; transform: translateY(-6px) scale(0.97); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }
    .lang-group-label {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: var(--reader-muted);
      padding: 8px 12px 4px;
    }
    .lang-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 12px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      color: var(--reader-text);
      transition: all 0.15s;
    }
    .lang-item:hover { background: rgba(37,99,235,0.08); color: #2563eb; }
    .lang-item.active { background: #2563eb; color: #fff; }
    .lang-item .lang-flag { font-size: 18px; line-height: 1; }
    .lang-item .lang-native { font-size: 11px; opacity: 0.6; }
    .lang-search {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid var(--reader-border);
      border-radius: 8px;
      font-size: 13px;
      background: var(--reader-card-bg);
      color: var(--reader-text);
      outline: none;
      margin-bottom: 6px;
      font-family: 'Plus Jakarta Sans', sans-serif;
    }
    .lang-search:focus { border-color: #2563eb; }
    .translate-status-bar {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: #1e293b;
      color: #fff;
      padding: 10px 22px;
      border-radius: 40px;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 13px;
      font-weight: 700;
      z-index: 9999;
      display: none;
      align-items: center;
      gap: 10px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.35);
      animation: slideUp 0.3s ease;
    }
    .translate-status-bar.show { display: flex; }
    @keyframes slideUp {
      from { opacity: 0; transform: translateX(-50%) translateY(12px); }
      to   { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
    .translate-spinner {
      width: 14px; height: 14px;
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    .reader-layout {
      display: flex;
      flex: 1;
      position: relative;
      z-index: 1;
    }

    .toc-drawer {
      width: 350px;
      background: var(--reader-panel-bg);
      border-right: 1px solid var(--reader-border);
      position: fixed;
      top: 65px;
      bottom: 0;
      left: -350px;
      z-index: 90;
      overflow-y: auto;
      transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
      font-family: 'Plus Jakarta Sans', sans-serif;
      padding: 24px;
      box-shadow: 6px 0 30px rgba(0,0,0,0.1);
      backdrop-filter: blur(16px);
    }
    .toc-drawer.open {
      left: 0;
    }
    .toc-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--reader-border);
    }
    .toc-header h3 {
      font-size: 17px;
      font-weight: 800;
    }
    .toc-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      border-radius: 10px;
      color: var(--reader-text);
      text-decoration: none;
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 8px;
      transition: all 0.2s;
      cursor: pointer;
      border: 1px solid transparent;
    }
    .toc-item:hover {
      background: rgba(0,0,0,0.04);
      border-color: var(--reader-border);
      transform: translateX(3px);
    }
    .toc-item.active {
      background: var(--reader-accent);
      color: #fff;
      font-weight: 700;
      box-shadow: 0 4px 15px var(--reader-accent-glow);
    }
    .toc-item.active .toc-subtext {
      color: rgba(255,255,255,0.9);
    }
    .toc-item.locked {
      opacity: 0.85;
      background: rgba(0,0,0,0.015);
    }

    .toc-backdrop {
      display: none;
      position: fixed;
      inset: 65px 0 0 0;
      background: rgba(0,0,0,0.5);
      z-index: 85;
      backdrop-filter: blur(3px);
    }
    .toc-backdrop.show { display: block; }

    .reading-container {
      flex: 1;
      max-width: var(--reader-max-width);
      margin: 30px auto 100px;
      padding: 50px 48px 60px;
      background: var(--reader-canvas);
      border-radius: 16px;
      border: 1px solid var(--reader-border);
      box-shadow: 0 10px 40px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.02);
      position: relative;
      animation: pageFadeIn 0.3s ease-out;
    }
    @keyframes pageFadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .reading-container::before {
      content: '';
      position: absolute;
      top: 0;
      right: 48px;
      width: 24px;
      height: 38px;
      background: linear-gradient(135deg, #d4af37, #74642f);
      clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
      box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

    .reader-book-hero {
      display: flex;
      gap: 28px;
      align-items: center;
      background: var(--reader-card-bg);
      border: 1px solid var(--reader-border);
      border-radius: 14px;
      padding: 24px;
      margin-bottom: 40px;
      font-family: 'Plus Jakarta Sans', sans-serif;
      position: relative;
      overflow: hidden;
    }
    .reader-book-hero::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: var(--reader-accent);
    }
    .hero-img-box {
      perspective: 800px;
      flex-shrink: 0;
    }
    .reader-book-hero img {
      width: 105px;
      height: 150px;
      object-fit: cover;
      border-radius: 8px;
      box-shadow: 0 12px 25px rgba(0,0,0,0.2), 0 2px 5px rgba(0,0,0,0.1);
      transform: rotateY(-8deg);
      transition: transform 0.3s ease;
    }
    .reader-book-hero:hover img {
      transform: rotateY(0deg) scale(1.03);
    }
    .reader-hero-info h2 {
      font-size: 22px;
      font-weight: 800;
      margin-bottom: 6px;
      line-height: 1.25;
      color: var(--reader-text);
      font-family: 'Playfair Display', Georgia, serif;
    }
    .reader-hero-info .author-line {
      font-size: 14px;
      color: var(--reader-muted);
      margin-bottom: 12px;
    }
    .reader-hero-badges {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .reader-badge-item {
      font-size: 12px;
      padding: 4px 10px;
      border-radius: 6px;
      font-weight: 700;
      background: rgba(0,0,0,0.05);
      border: 1px solid var(--reader-border);
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .chapter-eyebrow {
      text-transform: uppercase;
      letter-spacing: 3px;
      font-size: 12px;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-weight: 800;
      color: var(--reader-accent);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .chapter-heading {
      font-family: 'Cinzel', Georgia, serif;
      font-size: 34px;
      font-weight: 800;
      line-height: 1.3;
      margin-bottom: 24px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--reader-border);
      color: var(--reader-text);
    }

    .chapter-body {
      position: relative;
    }
    .chapter-body p {
      margin-bottom: 1.7em;
      text-align: justify;
      line-height: var(--reader-line-height);
    }

    .chapter-body p.has-dropcap::first-letter {
      font-size: 4em;
      float: left;
      line-height: 0.75;
      margin-right: 0.18em;
      margin-top: 0.05em;
      font-family: 'Cinzel', serif;
      font-weight: 800;
      color: var(--reader-accent);
      text-shadow: 1px 1px 0 var(--reader-border);
    }

    .chapter-body blockquote {
      margin: 2.2em 0;
      padding: 20px 28px;
      border-left: 4px solid var(--reader-accent);
      background: var(--reader-card-bg);
      border-radius: 0 12px 12px 0;
      font-style: italic;
      font-size: 1.08em;
      position: relative;
    }
    .chapter-body blockquote::before {
      content: '“';
      font-family: 'Playfair Display', serif;
      font-size: 60px;
      position: absolute;
      top: -10px;
      left: 10px;
      opacity: 0.15;
      color: var(--reader-accent);
    }

    .reader-takeaways-box {
      margin: 2.4em 0;
      padding: 24px 28px;
      background: var(--reader-card-bg);
      border: 1px solid var(--reader-border);
      border-radius: 14px;
      font-family: 'Plus Jakarta Sans', sans-serif;
      box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    }
    .reader-takeaways-box h4 {
      font-size: 16px;
      font-weight: 800;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--reader-accent);
    }
    .reader-takeaways-box ul {
      margin: 0;
      padding-left: 20px;
      font-size: 14.5px;
      line-height: 1.8;
    }
    .reader-takeaways-box li {
      margin-bottom: 8px;
    }

    .sample-paywall-card {
      margin-top: 55px;
      padding: 44px 36px;
      background: var(--reader-panel-bg);
      border: 2px solid var(--reader-accent);
      border-radius: 18px;
      text-align: center;
      box-shadow: 0 15px 45px rgba(116, 100, 47, 0.12);
      font-family: 'Plus Jakarta Sans', sans-serif;
      position: relative;
      overflow: hidden;
    }
    .sample-paywall-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 6px;
      background: linear-gradient(90deg, #74642f, #d4af37, #c5a992);
    }
    .paywall-icon {
      font-size: 48px;
      margin-bottom: 12px;
      display: inline-block;
      animation: pulseIcon 2s infinite ease-in-out;
    }
    @keyframes pulseIcon {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.1); }
    }
    .sample-paywall-card h3 {
      font-size: 24px;
      font-weight: 800;
      margin-bottom: 10px;
      color: var(--reader-text);
      font-family: 'Playfair Display', Georgia, serif;
    }
    .sample-paywall-card p {
      font-size: 15px;
      color: var(--reader-muted);
      max-width: 580px;
      margin: 0 auto 24px;
      line-height: 1.65;
    }
    .paywall-perks-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 12px;
      max-width: 600px;
      margin: 0 auto 28px;
      text-align: left;
    }
    .perk-item {
      background: rgba(0,0,0,0.03);
      border: 1px solid var(--reader-border);
      padding: 10px 14px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .paywall-price {
      font-size: 34px;
      font-weight: 900;
      color: var(--reader-accent);
      margin-bottom: 22px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .paywall-actions {
      display: flex;
      gap: 16px;
      justify-content: center;
      flex-wrap: wrap;
    }
    .btn-buy-unlock {
      padding: 16px 36px;
      background: linear-gradient(135deg, #74642f 0%, #52461f 100%);
      color: #fff !important;
      border-radius: 12px;
      font-weight: 800;
      font-size: 16px;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      border: none;
      cursor: pointer;
      box-shadow: 0 8px 24px rgba(116,100,47,0.35);
    }
    .btn-buy-unlock:hover {
      transform: translateY(-3px) scale(1.02);
      box-shadow: 0 12px 30px rgba(116,100,47,0.5);
      color: #fff;
    }

    .chapter-nav-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 50px;
      padding-top: 24px;
      border-top: 1px solid var(--reader-border);
      font-family: 'Plus Jakarta Sans', sans-serif;
      gap: 16px;
    }
    .btn-nav-action {
      padding: 12px 24px;
      border-radius: 10px;
      font-weight: 700;
      font-size: 14px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .btn-nav-prev {
      background: var(--reader-card-bg);
      border: 1px solid var(--reader-border);
      color: var(--reader-text);
    }
    .btn-nav-prev:hover:not(:disabled) {
      border-color: var(--reader-accent);
      color: var(--reader-accent);
    }
    .btn-nav-prev:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }
    .btn-nav-next {
      background: var(--reader-accent);
      color: #fff !important;
      border: none;
      box-shadow: 0 4px 14px var(--reader-accent-glow);
    }
    .btn-nav-next:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px var(--reader-accent-glow);
    }
    .btn-nav-locked {
      background: linear-gradient(135deg, #74642f, #d4af37);
      color: #fff !important;
      border: none;
      animation: glowBtn 2s infinite alternate;
    }
    @keyframes glowBtn {
      0% { box-shadow: 0 4px 12px rgba(116,100,47,0.3); }
      100% { box-shadow: 0 6px 20px rgba(212,175,55,0.6); }
    }

    .reader-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.75);
      z-index: 1000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      backdrop-filter: blur(8px);
    }
    .reader-modal-overlay.active {
      display: flex;
    }
    .reader-modal-box {
      background: #ffffff;
      color: #1e293b;
      width: 100%;
      max-width: 560px;
      border-radius: 20px;
      padding: 36px 32px;
      text-align: center;
      box-shadow: 0 25px 60px rgba(0,0,0,0.35);
      font-family: 'Plus Jakarta Sans', sans-serif;
      position: relative;
      animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
      border: 1px solid rgba(212, 175, 55, 0.3);
    }
    @keyframes modalPop {
      from { transform: scale(0.88); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
    .reader-modal-close {
      position: absolute;
      top: 16px;
      right: 18px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #f1f5f9;
      border: none;
      cursor: pointer;
      color: #64748b;
      font-size: 18px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    .reader-modal-close:hover {
      background: #e2e8f0;
      color: #0f172a;
    }

    .modal-book-strip {
      display: flex;
      align-items: center;
      gap: 16px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 12px 16px;
      margin: 16px 0 20px;
      text-align: left;
    }
    .modal-book-strip img {
      width: 45px;
      height: 62px;
      object-fit: cover;
      border-radius: 4px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

    @media (max-width: 768px) {
      .reader-header {
        padding: 8px 12px;
      }
      .book-meta-head h1 {
        max-width: 130px;
        font-size: 13px;
      }
      .header-center {
        display: none;
      }
      .reading-container {
        margin: 10px 8px 60px;
        padding: 28px 18px 50px;
        border-radius: 12px;
      }
      .reading-container::before {
        right: 20px;
        width: 18px;
        height: 28px;
      }
      .chapter-heading {
        font-size: 24px;
      }
      .reader-book-hero {
        flex-direction: column;
        text-align: center;
        padding: 18px;
      }
      .sample-paywall-card {
        padding: 28px 16px;
      }
      .paywall-actions {
        flex-direction: column;
      }
      .btn-buy-unlock {
        width: 100%;
        justify-content: center;
      }
    }


/* ==========================================================================
   CENTRALIZED E-COMMERCE COMPONENT CLASSES (EXTRACTED FROM INLINE STYLES)
   ========================================================================== */

/* Universal Utilities */
.text-success-bold { color: #16a34a !important; font-weight: 700 !important; }
.text-danger-bold { color: #dc2626 !important; font-weight: 700 !important; }
.text-muted-sm { font-size: 13px; color: #777; }
.text-center { text-align: center; }
.cursor-pointer { cursor: pointer; }
.display-none { display: none !important; }
.w-full { width: 100%; }

/* Redirect Splash Pages (checkout.html, profile.html) */
.redirect-splash {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: center;
  padding: 60px 20px;
  color: #333;
}
.redirect-splash h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  margin-bottom: 12px;
  color: #74642F;
}

/* Legal Pages (terms, privacy, refund, digital-access) */
.legal-updated-date {
  font-size: 12.5px;
  color: #888;
}

/* Auth Pages (login, register) */
.auth-remember-label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-checkbox {
  width: auto;
  margin: 0;
  accent-color: #74642F;
}
.auth-forgot-link {
  color: #74642F;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.auth-forgot-link:hover {
  color: #4a3f1d;
  text-decoration: underline;
}
.auth-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #37302a;
}
.auth-field-error {
  display: none;
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
}
.auth-currency-hint {
  font-size: 12px;
  color: var(--primary, #74642F);
  margin-top: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.auth-currency-badge {
  background: #f7f2ea;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #ede4d6;
  color: var(--primary, #74642F);
  font-size: 11.5px;
}
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-modal-dialog {
  background: #fff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.auth-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #ede4d6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}
.auth-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #ede4d6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Shop Page Components */
.shop-center-banner-wrap {
  text-align: center;
}
.shop-no-books-wrap {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}
.shop-no-books-title {
  font-family: 'Playfair Display', 'Prata', Georgia, serif;
  color: #74642F;
  font-size: 24px;
  margin-bottom: 8px;
}
.shop-no-books-text {
  color: #777;
  font-size: 14px;
  margin-bottom: 18px;
}
.shop-no-books-btn {
  padding: 10px 24px;
  background: #74642F;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.shop-no-books-btn:hover {
  background: #564a22;
  color: #fff;
  transform: translateY(-1px);
}

/* Cart Page Extracted Utilities */
.cart-checkout-btn-center {
  max-width: 220px;
  display: block;
  margin: 20px auto;
  text-align: center;
  text-decoration: none;
}
.cart-item-title-link {
  color: var(--dark-color, #27231e);
  text-decoration: none;
  font-weight: 600;
}
.cart-item-meta-text {
  font-size: 13px;
  color: #777;
}
.cart-th-qty {
  width: 70px;
  text-align: center;
}
.cart-alert-success {
  color: #15803d;
  font-weight: 700;
}
.cart-summary-shipping-note {
  margin-top: 16px;
  padding: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 12px;
  color: #166534;
}

/* Product Page Extracted Utilities */
.product-badge-static {
  position: static;
  display: inline-block;
}
.product-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.product-rating-stars {
  margin-left: auto;
  color: #f59e0b;
}
.product-preview-callout {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 14px;
  padding: 24px;
  margin: 28px 0;
}
.product-preview-callout-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.product-preview-callout-icon {
  font-size: 28px;
  color: #16a34a;
}
.product-feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.product-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
}
.product-feature-item i {
  color: #74642F;
  font-size: 15px;
}

/* Order Success Page Extracted Utilities */
.order-success-hero {
  max-width: 640px;
  margin: 40px auto;
  text-align: center;
  padding: 0 16px;
}
.order-success-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin: 0 auto 20px;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.15);
}
.order-success-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: #27231e;
  margin-bottom: 10px;
}
.order-success-subtitle {
  font-size: 15px;
  color: #666;
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.order-success-card {
  background: #fff;
  border: 1px solid #ebd9c8;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  text-align: left;
  margin-bottom: 24px;
}
.order-badge-pill {
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.order-success-actions-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Account Page Additional Utility Classes */
.account-section-header {
  margin-bottom: 20px;
}
.account-section-header h3 {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-section-header p {
  margin: 0;
  font-size: 13px;
  color: #777;
}
.account-stat-box {
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  height: 100%;
}
.account-stat-box.gold {
  background: #fdfbf7;
  border: 1px solid #ebd9b8;
}
.account-stat-box.slate {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}
.account-stat-box.green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.account-stat-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.account-stat-value {
  font-size: 26px;
  font-weight: 800;
  margin: 6px 0;
}
.account-stat-sub {
  font-size: 11.5px;
  color: #666;
}
.account-empty-state {
  text-align: center;
  padding: 50px 20px;
}
.account-empty-icon {
  font-size: 48px;
  color: #cbd5e1;
  margin-bottom: 12px;
  display: inline-block;
}
.account-table-wrap {
  overflow-x: auto;
}
.account-form-grid {
  max-width: 680px;
}
.account-form-label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  display: block;
}
.account-form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #dcd7cc;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease;
}
.account-form-input:focus {
  border-color: #74642F;
  outline: none;
}
.account-form-input:disabled {
  background: #f5f3ee;
  color: #777;
  cursor: not-allowed;
  border-color: #e5e0d6;
}

/* Reader Paywall & Modal Utilities */
.reader-icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--reader-muted, #94a3b8);
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.reader-icon-btn:hover {
  color: var(--reader-text, #0f172a);
  background: rgba(0, 0, 0, 0.05);
}



/* Account Dashboard Detailed Classes */
.account-section-bg { background: #faf8f5; }
.profile-meta-sub { font-size: 13.5px; color: #cfc7ba; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.profile-actions-wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stat-card-gold { border-left: 4px solid #74642F !important; }
.stat-card-blue { border-left: 4px solid #2563eb !important; }
.stat-card-green { border-left: 4px solid #16a34a !important; }
.stat-card-rose { border-left: 4px solid #e11d48 !important; }
.stat-icon-gold { background: #f7f2ea !important; color: #74642F !important; }
.stat-icon-blue { background: #eff6ff !important; color: #2563eb !important; }
.stat-icon-green { background: #f0fdf4 !important; color: #16a34a !important; }
.stat-icon-rose { background: #fff1f2 !important; color: #e11d48 !important; }
.stat-val-gold { color: #74642F !important; }
.stat-val-blue { color: #2563eb !important; }
.stat-val-green { color: #16a34a !important; }
.stat-val-rose { color: #e11d48 !important; }
.account-nav-header-dark { background: linear-gradient(135deg, #362e24, #201b15); padding: 24px 20px; }
.account-avatar-sm { width: 58px; height: 58px; font-size: 20px; margin: 0 auto 10px; border-color: #74642F !important; }
.account-user-name { margin: 0 0 2px 0; font-size: 16px; color: #fff; }
.account-user-email { font-size: 12px; color: #b0a89c; }
.admin-portal-link { color: #b45309; font-weight: 700; }
.account-header-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.order-date-text { font-size: 12.5px; color: #555; }
.order-items-count { font-weight: 600; }
.order-book-links { font-size: 11.5px; margin-top: 4px; }
.order-book-link-item { margin-bottom: 2px; }
.order-book-link { color: #74642F; text-decoration: none; font-weight: 600; }
.order-payment-method { font-size: 12.5px; }
.order-total-gold { color: #74642F; font-size: 15px; }
.badge-order-paid { background: #e6f4ea; color: #137333; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 12px; }
.wishlist-card-book { flex-direction: column !important; align-items: center !important; text-align: center !important; }
.wishlist-card-img { width: 110px; height: 160px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); margin-bottom: 10px; }
.wishlist-card-title { margin: 0 0 4px; font-size: 14px; font-weight: 700; min-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wishlist-title-link { color: #222; text-decoration: none; }
.wishlist-card-author { font-size: 12px; color: #777; margin: 0 0 8px; }
.wishlist-card-price { font-size: 16px; font-weight: 800; color: #74642F; margin-bottom: 10px; }
.wishlist-card-actions { display: flex; gap: 8px; width: 100%; margin-top: auto; padding-top: 10px; }
.btn-wishlist-cart { flex: 1; height: 36px; font-size: 12px; justify-content: center; }
.btn-wishlist-del { flex: 0 0 38px; height: 36px; padding: 0; background: #fff1f2; border-color: #fecdd3; color: #e11d48 !important; justify-content: center; font-size: 13px; }


/* Payment Page Additional Extracted Classes */
.pay-page-section { padding: 28px 0 60px; }
.pay-proc-title { font-size: 16px; font-weight: 800; margin: 0 0 6px; color: #0f172a; }
.pay-proc-text { font-size: 12px; color: #64748b; margin: 0; line-height: 1.5; }
.pay-step-cart-link { text-decoration: none; cursor: pointer; }
.pay-step-cart-circle { background: #16a34a !important; color: #fff !important; }
.pay-step-cart-title { color: #0f172a; }
.pay-details-header { display: flex; gap: 10px; align-items: center; }
.pay-btn-edit-details { background: none; border: none; padding: 0; font-size: 12px; }
.pay-link-back-cart { font-size: 11.5px; color: #64748b; font-weight: 600; text-decoration: underline; }
.pay-edit-panel { background: #f8fafc; border: 1.5px solid #cbd5e1; border-radius: 10px; padding: 16px; margin-bottom: 18px; }
.pay-edit-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pay-edit-title { font-size: 13.5px; font-weight: 800; color: #0f172a; margin: 0; }
.pay-edit-close-btn { background: none; border: none; font-size: 16px; cursor: pointer; color: #64748b; }
.pay-edit-actions-row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.pay-edit-btn-cancel { padding: 6px 14px; border: 1px solid #cbd5e1; background: #fff; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; color: #475569; }
.pay-edit-btn-save { padding: 6px 16px; background: var(--rzp-blue, #074EE8); color: #fff; border: none; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
.pay-vpa-label { font-size: 11px; font-weight: 700; color: #64748b; display: block; margin-top: 8px; }
.pay-card-accepted-text { font-size: 12.5px; font-weight: 700; color: #1e293b; }
.pay-card-brand-tag { font-size: 13px; font-weight: 800; color: var(--rzp-blue, #074EE8); }
.pay-bank-region-label { font-size: 12.5px; font-weight: 700; color: #1e293b; display: block; margin-bottom: 8px; }
.pay-bank-info-note { margin-top: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 14px; font-size: 12px; color: #334155; line-height: 1.45; }
.pay-intl-box { background: #f8fafc; border: 1px solid var(--border, #e2e8f0); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.pay-intl-title { font-size: 13.5px; font-weight: 800; color: #0f172a; margin: 0 0 6px; }
.pay-intl-text { font-size: 12px; color: #475569; margin: 0 0 10px; line-height: 1.45; }
.pay-intl-pills-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-security-footnote { margin-top: 10px; font-size: 11.5px; color: var(--muted, #64748b); display: flex; align-items: center; gap: 6px; }
.pay-powered-by-rzp { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #475569; font-weight: 600; }
.pay-trust-badges-bar { margin-top: 14px; padding: 10px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: #475569; }
.pay-settlement-guarantee { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 10px 12px; margin-top: 14px; font-size: 11.5px; color: #166534; line-height: 1.45; }


/* Order Success Page Component Classes */
.order-success-icon { font-size: 56px; color: #16a34a; }
.order-success-title { font-size: 28px; margin-top: 10px; }
.order-success-subtitle { font-size: 16px; color: #555; max-width: 540px; margin: 0 auto 20px; }
.order-confirmation-notice { background: #f0fdf4; border: 1px solid #86efac; border-radius: 10px; padding: 14px 20px; max-width: 600px; margin: 0 auto 24px; font-size: 14px; color: #166534; text-align: center; }
.order-detail-box-max { max-width: 600px; }
.order-rzp-code { background: #f1f5f9; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #0f172a; }
.order-books-section { max-width: 640px; margin: 30px auto; text-align: left; }
.order-books-heading { font-size: 18px; margin-bottom: 14px; color: #333; text-align: center; }
.order-books-list { display: flex; flex-direction: column; gap: 12px; }
.order-book-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; padding: 16px; border: 1px solid #e8e2d8; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); flex-wrap: wrap; }
.order-book-item-left { display: flex; align-items: center; gap: 14px; }
.order-book-cover-img { width: 50px; height: 70px; object-fit: cover; border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.order-book-item-title { margin: 4px 0 2px; font-size: 15px; color: #222; }
.order-book-item-meta { margin: 0; font-size: 12px; color: #777; }
.order-book-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.btn-order-read { height: 38px; padding: 0 16px; font-size: 13px; font-weight: 700; text-decoration: none; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; margin: 0; }
.btn-order-download { height: 38px; padding: 0 16px; font-size: 13px; font-weight: 700; background: #1e293b; color: #fff; border: none; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; margin: 0; font-family: inherit; }
.btn-order-download:hover { background: #334155; }
.order-footer-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.btn-library-nav { max-width: 240px; text-decoration: none; text-align: center; display: block; padding: 14px 24px; font-weight: 700; }
.btn-browse-outline { max-width: 200px; padding: 14px 20px; border: 2px solid var(--primary); color: var(--primary); border-radius: 8px; text-decoration: none; text-align: center; display: block; font-weight: 700; }
.text-capitalize { text-transform: capitalize; }
.btn-home-center { max-width: 200px; display: block; margin: 20px auto; text-decoration: none; text-align: center; }


/* Product Detail Component Classes */
.product-divider-top { border-top: 2px solid #e8e0d5; }
.product-btn-shop-center { max-width: 200px; display: block; margin: 16px auto; text-decoration: none; text-align: center; }
.product-owned-box { background: #e8f5e9; border: 2px solid #4caf50; border-radius: 12px; padding: 20px; margin-top: 20px; }
.product-owned-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.product-owned-icon { font-size: 24px; color: #2e7d32; }
.product-owned-title { color: #2e7d32; font-size: 16px; font-weight: 700; }
.product-owned-subtitle { margin: 0; font-size: 13px; color: #388e3c; }
.product-owned-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-btn-read-owned { max-width: 200px; height: 44px; padding: 0 20px; text-align: center; text-decoration: none; background: #2e7d32; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; margin: 0; border-radius: 8px; font-weight: 700; color: #fff !important; }
.product-btn-download-owned { height: 44px; padding: 0 20px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid #2e7d32; color: #2e7d32; box-sizing: border-box; margin: 0; font-family: inherit; border-radius: 8px; background: transparent; cursor: pointer; }
.product-link-account { padding: 12px; font-size: 13px; color: #555; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.product-actions-flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-buynow-gold { background: linear-gradient(135deg, #74642F 0%, #554a22 100%); padding: 14px 24px; font-weight: 700; max-width: 100%; white-space: normal; line-height: 1.35; text-align: center; border: none; border-radius: 8px; box-shadow: 0 4px 14px rgba(116, 100, 47, 0.3); color: #fff; cursor: pointer; transition: all 0.2s ease; }
.btn-buynow-gold:hover { background: linear-gradient(135deg, #8a773b 0%, #655627 100%); color: #fff; transform: translateY(-1px); }
.btn-pad-md { padding: 12px 18px; }
.btn-pad-sm { padding: 12px 16px; }
.btn-sample-preview { padding: 12px 18px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.product-policy-note { margin-top: 10px; font-size: 12px; color: #666; line-height: 1.5; }
.product-img-relative { position: relative; display: inline-block; }
.product-img-main { cursor: pointer; border-radius: 10px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); transition: transform 0.3s ease; }
.badge-device { background: #2563eb; color: #fff; padding: 4px 8px; font-size: 11px; font-weight: 700; border-radius: 4px; }
.product-meta-card { background: #fcfbf9; padding: 16px; border-radius: 8px; border: 1px solid #ede8e1; }
.product-perks-row { display: flex; gap: 20px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f0f0; flex-wrap: wrap; }
.product-preview-callout-card { background: #faf7f2; border-left: 4px solid var(--primary, #74642F); border-radius: 8px; }
.product-preview-callout-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.product-preview-title { margin: 0 0 4px; font-size: 17px; }
.product-preview-desc { margin: 0; font-size: 14px; color: #666; }
.btn-sample-callout { padding: 10px 22px; background: #fff; border: 1px solid var(--primary, #74642F); color: var(--primary, #74642F); border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 14px; }
.reviewer-avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.reviewer-name { margin: 0; font-size: 15px; }
.reviewer-rating { margin-left: auto; color: #f59e0b; }
.reviewer-comment { margin: 0; font-size: 14px; color: #555; }
.badge-static { position: static; display: inline-block; }


/* Digital Reader Extracted Utility Classes */
.reader-lock-placeholder { text-align: center; padding: 50px 20px; background: var(--reader-card-bg); border: 2px dashed var(--reader-border); border-radius: 14px; }
.reader-lock-icon { font-size: 52px; margin-bottom: 12px; color: var(--reader-accent); }
.reader-lock-title { margin-bottom: 8px; font-family: 'Playfair Display', Georgia, serif; }
.reader-lock-desc { color: var(--reader-muted); max-width: 520px; margin: 0 auto 20px; line-height: 1.6; }
.reader-lock-btn { padding: 14px 28px; }
.reader-toc-close-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--reader-muted); }
.reader-sample-intro { font-size: 12px; color: var(--reader-muted); margin-bottom: 14px; }
.reader-modal-lock-icon { font-size: 44px; margin-bottom: 6px; color: #b45309; }
.reader-modal-edition-badge { font-size: 11px; color: #b45309; font-weight: 700; margin-top: 2px; }
.reader-modal-perk-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.reader-modal-check { color: #16a34a; font-weight: 800; }
.reader-modal-perks-box { background: #f8fafc; border: 1px solid #e2e8f0; padding: 14px 16px; border-radius: 12px; font-size: 13px; color: #334155; margin-bottom: 20px; text-align: left; }
.reader-modal-title { font-size: 23px; font-weight: 800; margin-bottom: 6px; font-family: 'Playfair Display', Georgia, serif; }
.reader-modal-desc { font-size: 14px; color: #64748b; line-height: 1.6; margin-bottom: 12px; }
.reader-modal-book-box { background: #f1f5f9; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; text-align: left; }
.reader-modal-book-name { font-weight: 800; font-size: 15px; color: #0f172a; }
.reader-modal-book-auth { font-size: 13px; color: #64748b; }
.reader-footer-page-pill { font-size: 13px; color: var(--reader-muted); font-weight: 700; }
.reader-badge-genre { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.reader-badge-sample { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.reader-toc-item-locked-badge { margin-left: auto; font-size: 10px; background: #fef3c7; color: #92400e; padding: 2px 6px; border-radius: 4px; font-weight: 800; }
.reader-toc-sample-tag { color: #b45309; font-size: 11px; font-weight: 800; margin-left: 4px; }
.reader-toc-subtext { font-size: 12px; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-toc-item-icon { font-size: 16px; }
.reader-hero-banner { display: none; }
.reader-license-pill-box { display: inline-block; }


/* Digital Reader Additional Classes */
.paywall-modal-price { font-size: 32px; font-weight: 900; color: #74642f; margin-bottom: 20px; }
.paywall-btn-primary { padding: 15px 30px; width: 100%; justify-content: center; }
.paywall-btn-close { padding: 12px 24px; background: #f1f5f9; color: #475569; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 13px; transition: all 0.2s; }
.paywall-btn-close:hover { background: #e2e8f0; color: #1e293b; }
.reader-quote-author { font-size: 12px; font-weight: 700; margin-top: 6px; display: inline-block; color: var(--reader-accent); }
.reader-not-found-wrap { padding: 80px 20px; text-align: center; }
.reader-not-found-desc { margin: 12px 0 20px; color: #666; }


/* Cart Page Extracted Classes */
.cart-btn-browse { max-width: 200px; display: block; margin: 20px auto; text-align: center; text-decoration: none; }
.cart-item-title { color: var(--dark-color); text-decoration: none; }
.cart-item-author { font-size: 13px; color: #777; }
.cart-item-license { font-weight: 600; font-size: 14px; color: #555; }
.cart-td-center { text-align: center; width: 60px; }
.cart-coupon-alert { display: none; margin-top: 10px; font-size: 12.5px; padding: 8px 14px; border-radius: 6px; line-height: 1.4; }
.cart-row-discount { color: #15803d; font-weight: 700; }
.cart-instant-free { color: var(--success); font-weight: 700; }
.cart-delivery-note { margin-top: 16px; padding: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; font-size: 13px; color: #166534; line-height: 1.5; }
.cart-auth-note { margin-top: 14px; padding: 14px; background: #fef7ea; border: 1.5px solid #e8d7b8; border-radius: 10px; font-size: 13px; color: #6b5327; line-height: 1.5; }
.cart-auth-title { font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13.5px; color: #544018; }
.cart-auth-btns { display: flex; gap: 8px; margin-top: 10px; }
.btn-auth-signin { flex: 1; text-align: center; padding: 8px 10px; background: #74642F; color: #fff; border-radius: 6px; font-weight: 700; font-size: 12.5px; text-decoration: none; }
.btn-auth-signin:hover { background: #554a22; color: #fff; }
.btn-auth-register { flex: 1; text-align: center; padding: 8px 10px; background: #fff; color: #74642F; border: 1px solid #74642F; border-radius: 6px; font-weight: 700; font-size: 12.5px; text-decoration: none; }
.btn-auth-register:hover { background: #74642F; color: #fff; }
.btn-cart-proceed { width: 100%; margin-top: 18px; height: 46px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; border: none; cursor: pointer; border-radius: 8px; background: linear-gradient(135deg, #74642F 0%, #554a22 100%); box-shadow: 0 4px 14px rgba(116, 100, 47, 0.3); transition: all 0.2s; color: #fff; }
.btn-cart-proceed:hover { background: linear-gradient(135deg, #8a773b 0%, #655627 100%); color: #fff; transform: translateY(-1px); }
.cart-security-note { text-align: center; margin-top: 14px; font-size: 12px; color: #999; }
.cart-accepted-pay { text-align: center; margin-top: 10px; }
.cart-accepted-label { color: #bbb; }
.cart-pay-icons-row { font-size: 20px; color: #74642f; display: flex; justify-content: center; gap: 14px; margin-top: 4px; }


/* Home Index Extracted Classes */
.home-btn-category-all { font-weight: 700; font-size: 14px; }
.bestseller-image-rounded { border-radius: 12px; }
.home-blog-thumb { width: 100%; height: 220px; object-fit: cover; }


/* Auth Modal Extracted Classes */
.auth-modal-full-link { font-size: 12.5px; color: #74642F; font-weight: 600; text-decoration: underline; }
.auth-modal-btn-close { font-size: 13px; border-radius: 8px; padding: 7px 16px; }
.auth-modal-btn-accept { width: auto; font-size: 13px; padding: 7px 18px; border-radius: 8px; }
.auth-options-row { font-size: 13px; }


/* Blog & Article Detail Extracted Classes */
.article-empty-title { font-family: 'Playfair Display', Georgia, serif; color: #2c2523; font-weight: 700; }
.article-empty-desc { max-width: 420px; margin: 6px auto 18px; }
.article-tag-label { font-size: 13px; font-weight: 700; color: var(--bs-text-muted, #78716c); margin-right: 6px; }
.related-card-category { font-size: 11px; font-weight: 700; color: var(--bs-primary-gold, #74642F); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; display: block; }
.related-card-excerpt { font-size: 13.5px; color: var(--bs-text-muted, #78716c); line-height: 1.5; margin-bottom: 14px; flex-grow: 1; }
.related-card-link { color: var(--bs-primary-gold, #74642F); font-weight: 700; font-size: 13px; text-decoration: none; }
.related-card-link:hover { text-decoration: underline; }
