/* ============================================================
   Bookmelon — Premium Design System
   Palette: Primary #0F172A | Accent #F97316 | BG #F8FAFC
   ============================================================ */

:root {
  --primary:       #0F172A;
  --secondary:     #1E293B;
  --accent:        #F97316;
  --accent-dark:   #EA580C;
  --accent-light:  #FFF7ED;
  --bg:            #F8FAFC;
  --bg-white:      #FFFFFF;
  --text:          #0F172A;
  --text-light:    #334155;
  --muted:         #64748B;
  --border:        #E2E8F0;
  --border-dark:   #CBD5E1;
  --shadow-xs:     0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:     0 1px 3px rgba(0,0,0,.07), 0 1px 2px -1px rgba(0,0,0,.04);
  --shadow:        0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.04);
  --shadow-md:     0 10px 15px -3px rgba(0,0,0,.07), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-lg:     0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-xl:     0 25px 50px -12px rgba(0,0,0,.14);
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --radius-full:   9999px;
  --transition:    all .2s cubic-bezier(.4,0,.2,1);
  --transition-slow: all .35s cubic-bezier(.4,0,.2,1);
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ── Typography Utilities ─────────────────────────────────── */
.fw-400 { font-weight: 400 !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.text-accent    { color: var(--accent) !important; }
.text-muted-sm  { color: var(--muted); font-size: .83rem; }
.text-primary-c { color: var(--primary) !important; }
.section-title  { font-size: 1.7rem; font-weight: 700; color: var(--primary); letter-spacing: -.02em; line-height: 1.25; }
.section-subtitle { font-size: .9rem; color: var(--muted); margin-top: .35rem; }
.section-eyebrow {
  font-size: .7rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; display: block;
}
.view-all-link {
  font-size: .82rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: .35rem; transition: var(--transition);
}
.view-all-link:hover { color: var(--accent-dark); gap: .6rem; }

/* ── Topbar ───────────────────────────────────────────────── */
.site-topbar {
  background: var(--primary); color: rgba(255,255,255,.65);
  font-size: .76rem; padding: .5rem 0; letter-spacing: .01em;
}
.site-topbar a { color: rgba(255,255,255,.65); }
.site-topbar a:hover { color: #fff; }
.site-topbar .topbar-accent { color: var(--accent); font-weight: 600; }

/* ── Navbar ───────────────────────────────────────────────── */
.main-navbar {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: .8rem 0;
  position: sticky; top: 0; z-index: 1000;
  transition: var(--transition);
}
.main-navbar.scrolled { box-shadow: var(--shadow); }
.navbar-brand {
  font-size: 1.45rem; font-weight: 800;
  color: var(--primary) !important; letter-spacing: -.03em;
}
.navbar-brand span { color: var(--accent); }
/* ── Search ───────────────────────────────────────────────── */
.search-form { position: relative; max-width: 380px; width: 100%; }
.search-form .search-icon {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: .8rem; pointer-events: none; z-index: 2;
}
.search-form .form-control {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-full); padding: .52rem 2.6rem .52rem 2.4rem;
  font-size: .84rem; color: var(--text); transition: var(--transition); width: 100%;
}
.search-form .form-control:focus {
  background: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1); outline: none;
}
.search-form .btn-search {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius-full);
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  font-size: .72rem; transition: var(--transition);
}
.search-form .btn-search:hover { background: var(--accent-dark); }

/* ── Navbar Nav Links ─────────────────────────────────────── */
.nav-link-custom {
  font-size: .84rem; font-weight: 500; color: var(--text-light) !important;
  padding: .4rem .75rem !important; border-radius: var(--radius-sm); transition: var(--transition);
}
.nav-link-custom:hover { color: var(--accent) !important; background: var(--accent-light); }
.nav-link-custom.active { color: var(--accent) !important; }

/* ── Navbar Icon Buttons ──────────────────────────────────── */
.navbar-icon-btn {
  position: relative; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); color: var(--text-light);
  background: transparent; border: none; cursor: pointer;
  transition: var(--transition); font-size: .95rem;
}
.navbar-icon-btn:hover { background: var(--bg); color: var(--accent); }
.badge-count {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: .62rem; font-weight: 700;
  border-radius: var(--radius-full); padding: 0 3px;
}

/* ── Navbar Dropdown ──────────────────────────────────────── */
.navbar .dropdown-menu {
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .4rem; min-width: 210px;
  animation: dropIn .15s ease;
}
@keyframes dropIn {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}
.navbar .dropdown-item {
  border-radius: var(--radius-sm); font-size: .84rem;
  padding: .45rem .75rem; color: var(--text-light); transition: var(--transition);
}
.navbar .dropdown-item:hover { background: var(--accent-light); color: var(--accent); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-accent {
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius-full); padding: .65rem 1.6rem;
  font-size: .87rem; font-weight: 600; letter-spacing: .01em;
  transition: var(--transition); display: inline-flex; align-items: center; gap: .45rem;
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(249,115,22,.35); }
.btn-accent:active { transform: translateY(0); }
.btn-outline-primary-c {
  background: transparent; color: var(--primary); border: 1.5px solid var(--primary);
  border-radius: var(--radius-full); padding: .63rem 1.6rem;
  font-size: .87rem; font-weight: 600; transition: var(--transition);
  display: inline-flex; align-items: center; gap: .45rem;
}
.btn-outline-primary-c:hover { background: var(--primary); color: #fff; }
.btn-white-ghost {
  background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius-full); padding: .63rem 1.6rem;
  font-size: .87rem; font-weight: 600; transition: var(--transition);
  display: inline-flex; align-items: center; gap: .45rem;
}
.btn-white-ghost:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); color: #fff; }

/* ── Section Layout ───────────────────────────────────────── */
.section    { padding: 4.5rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0F172A 0%, #1a2744 55%, #0F2040 100%);
  min-height: 86vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(249,115,22,.06) 0%, transparent 55%),
                    radial-gradient(circle at 80% 20%, rgba(99,102,241,.08) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.25);
  color: var(--accent); font-size: .72rem; font-weight: 600;
  padding: .28rem .85rem; border-radius: var(--radius-full);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800;
  color: #fff; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 1.2rem;
}
.hero h1 .highlight { color: var(--accent); }
.hero p { font-size: 1rem; color: rgba(255,255,255,.6); max-width: 500px; margin-bottom: 1.8rem; line-height: 1.75; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); }
.hero-stat-value { font-size: 1.4rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-label { font-size: .7rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .05em; margin-top: .15rem; }
.hero-visual { position: relative; height: 460px; }
.hero-book-stack {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; display: flex; align-items: center; justify-content: center;
}
.hero-book {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl); position: absolute;
}
.hero-book-a { width: 175px; z-index: 3; transform: rotate(-4deg); animation: floatA 4.5s ease-in-out infinite; }
.hero-book-b { width: 135px; z-index: 2; transform: rotate(6deg) translate(100px, -30px); opacity: .88; animation: floatB 5s ease-in-out infinite .5s; }
.hero-book-c { width: 120px; z-index: 1; transform: rotate(-7deg) translate(-100px, 40px); opacity: .75; animation: floatC 5.5s ease-in-out infinite 1s; }
@keyframes floatA { 0%,100% { transform:rotate(-4deg) translateY(0); } 50% { transform:rotate(-4deg) translateY(-14px); } }
@keyframes floatB { 0%,100% { transform:rotate(6deg) translate(100px,-30px); } 50% { transform:rotate(6deg) translate(100px,-44px); } }
@keyframes floatC { 0%,100% { transform:rotate(-7deg) translate(-100px,40px); } 50% { transform:rotate(-7deg) translate(-100px,26px); } }

/* ── Feature Strip ────────────────────────────────────────── */
.feature-strip { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.75rem 0; }
.feature-item { display: flex; align-items: center; gap: .9rem; }
.feature-icon { width: 42px; height: 42px; background: var(--accent-light); color: var(--accent); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.feature-item h6 { font-size: .84rem; font-weight: 600; color: var(--primary); margin: 0; }
.feature-item p  { font-size: .74rem; color: var(--muted); margin: 0; }

/* ── Book Card ────────────────────────────────────────────── */
.book-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15,23,42,.12);
  border-color: transparent;
}

/* Image container */
.bcard-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #F1F5F9;
  flex-shrink: 0;
}
.bcard-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  display: block;
}
.book-card:hover .bcard-img img { transform: scale(1.06); }

/* Fallback placeholder */
.bcard-img .bcard-no-cover {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg,#F1F5F9,#E2E8F0);
  color: var(--muted); font-size: .75rem; gap: .4rem;
}
.bcard-img .bcard-no-cover i { font-size: 2rem; opacity: .3; }

/* Wishlist pill — always visible top-right */
.bcard-wish {
  position: absolute; top: .6rem; right: .6rem; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .78rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  transition: all .2s cubic-bezier(.4,0,.2,1);
}
.bcard-wish:hover     { background: #FEF2F2; color: #EF4444; transform: scale(1.1); }
.bcard-wish.active    { background: #FEF2F2; color: #EF4444; }
.bcard-wish.active .fa-heart::before { font-family: 'Font Awesome 6 Free'; font-weight: 900; }

/* Badges — stacked bottom-left */
.bcard-badges {
  position: absolute; bottom: .6rem; left: .6rem; z-index: 3;
  display: flex; flex-direction: column; gap: .3rem;
}
.bcard-badge {
  font-size: .6rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .2rem .6rem; border-radius: 99px; line-height: 1.5;
  width: fit-content;
}
.bcard-badge-new  { background: #10B981; color: #fff; }
.bcard-badge-sale { background: var(--accent); color: #fff; }
.bcard-badge-pre  { background: #8B5CF6; color: #fff; }
.bcard-badge-best { background: var(--primary); color: #fff; }
/* keep legacy badge-* classes for other views */
.badge-new  { background:#10B981; color:#fff; font-size:.6rem; font-weight:800; padding:.2rem .6rem; border-radius:99px; text-transform:uppercase; letter-spacing:.05em; }
.badge-sale { background:var(--accent); color:#fff; font-size:.6rem; font-weight:800; padding:.2rem .6rem; border-radius:99px; }
.badge-pre  { background:#8B5CF6; color:#fff; font-size:.6rem; font-weight:800; padding:.2rem .6rem; border-radius:99px; text-transform:uppercase; letter-spacing:.05em; }
.badge-best { background:var(--primary); color:#fff; font-size:.6rem; font-weight:800; padding:.2rem .6rem; border-radius:99px; text-transform:uppercase; letter-spacing:.05em; }

/* Card body */
.bcard-body {
  padding: .85rem .9rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Category badge inside body */
.bcard-category {
  font-size: .62rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: .07em; margin-bottom: .3rem; display: block;
}

/* Title */
.bcard-title {
  font-size: .875rem; font-weight: 600;
  color: var(--primary); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: .2rem; transition: color .15s;
  text-decoration: none;
}
.bcard-title:hover { color: var(--accent); }

/* Author */
.bcard-author {
  font-size: .72rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: .3rem;
}

/* Rating row */
.bcard-rating {
  display: flex; align-items: center; gap: .25rem;
  font-size: .68rem; margin-bottom: .4rem;
}
.bcard-rating .fa-star,
.bcard-rating .fa-star-half-alt { color: #F59E0B; }
.bcard-rating .fa-star.far      { color: #D1D5DB; }
.bcard-rating .rcount           { color: var(--muted); }

/* Price row — pushes to bottom of body */
.bcard-price {
  display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap;
  margin-top: auto; padding-top: .45rem;
}
.bcard-price-now  { font-size: 1rem; font-weight: 700; color: var(--primary); }
.bcard-price-orig { font-size: .78rem; color: var(--muted); text-decoration: line-through; }
.bcard-price-off  { font-size: .64rem; font-weight: 700; color: #10B981; background: #F0FDF4; padding: .1rem .4rem; border-radius: 4px; }
/* legacy aliases */
.price-current  { font-size:1rem; font-weight:700; color:var(--primary); }
.price-original { font-size:.78rem; color:var(--muted); text-decoration:line-through; }
.price-off      { font-size:.64rem; font-weight:700; color:#10B981; }

/* Add to Cart button — always visible at bottom */
.bcard-cart {
  width: 100%; margin-top: .7rem;
  background: var(--primary); color: #fff;
  border: none; border-radius: 10px;
  padding: .58rem .75rem;
  font-size: .8rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  cursor: pointer; letter-spacing: .01em;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  font-family: inherit;
}
.bcard-cart:hover {
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(249,115,22,.3);
  transform: translateY(-1px);
}
.bcard-cart:active { transform: translateY(0); box-shadow: none; }

/* ── Category Cards ───────────────────────────────────────── */
.category-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.4rem 1rem; text-align: center; transition: var(--transition); cursor: pointer;
}
.category-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.category-card .cat-icon {
  width: 50px; height: 50px; margin: 0 auto .7rem;
  background: var(--accent-light); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--accent); transition: var(--transition);
}
.category-card:hover .cat-icon { background: var(--accent); color: #fff; }
.category-card h6    { font-size: .82rem; font-weight: 600; color: var(--primary); margin: 0; }
.category-card small { font-size: .7rem; color: var(--muted); }

/* ── Section Tabs / Pills ─────────────────────────────────── */
.section-pills { border: none; gap: .35rem; }
.section-pills .nav-link {
  font-size: .81rem; font-weight: 500; color: var(--muted);
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-full); padding: .38rem 1.05rem; transition: var(--transition);
}
.section-pills .nav-link:hover  { border-color: var(--accent); color: var(--accent); }
.section-pills .nav-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }
/* Legacy alias */
.section-tabs .nav-link { font-size:.82rem; font-weight:500; color:var(--muted); border:1.5px solid var(--border); border-radius:var(--radius-full); padding:.38rem 1rem; transition:var(--transition); }
.section-tabs .nav-link.active { background:var(--accent); border-color:var(--accent); color:#fff; }

/* ── Promo Cards ──────────────────────────────────────────── */
.promo-card {
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem;
  position: relative; overflow: hidden; min-height: 155px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.promo-card::before { content:''; position:absolute; top:-25px; right:-25px; width:130px; height:130px; border-radius:50%; background:rgba(255,255,255,.07); }
.promo-card::after  { content:''; position:absolute; bottom:-35px; left:15px; width:100px; height:100px; border-radius:50%; background:rgba(255,255,255,.05); }
.promo-card .eyebrow { font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.7); margin-bottom:.3rem; }
.promo-card h5 { font-size:1rem; font-weight:700; color:#fff; margin-bottom:.2rem; position:relative; z-index:1; }
.promo-card p  { font-size:.76rem; color:rgba(255,255,255,.75); margin-bottom:.7rem; position:relative; z-index:1; }
.promo-card a  { display:inline-flex; align-items:center; gap:.35rem; background:rgba(255,255,255,.15); color:#fff; font-size:.76rem; font-weight:600; padding:.35rem .9rem; border-radius:var(--radius-full); border:1px solid rgba(255,255,255,.25); transition:var(--transition); width:fit-content; position:relative; z-index:1; }
.promo-card a:hover { background:rgba(255,255,255,.28); }

/* ── Newsletter ───────────────────────────────────────────── */
.newsletter-section {
  background: var(--primary); padding: 5rem 0;
  position: relative; overflow: hidden;
}
.newsletter-section::before { content:''; position:absolute; top:-80px; right:-80px; width:320px; height:320px; border-radius:50%; background:rgba(249,115,22,.07); }
.newsletter-section::after  { content:''; position:absolute; bottom:-80px; left:-80px; width:280px; height:280px; border-radius:50%; background:rgba(249,115,22,.04); }
.newsletter-section .section-title    { color: #fff; }
.newsletter-section .section-subtitle { color: rgba(255,255,255,.5); }
.newsletter-form { display:flex; gap:.5rem; max-width:440px; margin:0 auto; }
.newsletter-form .form-control {
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
  color:#fff; border-radius:var(--radius-full); padding:.65rem 1.2rem;
  font-size:.87rem; flex:1;
}
.newsletter-form .form-control::placeholder { color:rgba(255,255,255,.38); }
.newsletter-form .form-control:focus { outline:none; border-color:var(--accent); background:rgba(255,255,255,.12); box-shadow:none; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.page-breadcrumb { background:#fff; border-bottom:1px solid var(--border); padding:.8rem 0; }
.page-breadcrumb .breadcrumb { margin:0; font-size:.82rem; }
.page-breadcrumb .breadcrumb-item a { color:var(--muted); }
.page-breadcrumb .breadcrumb-item a:hover { color:var(--accent); }
.page-breadcrumb .breadcrumb-item.active { color:var(--primary); font-weight:500; }
.page-breadcrumb .breadcrumb-item+.breadcrumb-item::before { color:var(--border-dark); }

/* ── Book Detail ──────────────────────────────────────────── */
.book-detail-img { max-height:420px; object-fit:contain; border-radius:var(--radius-lg); box-shadow:var(--shadow-xl); }
.book-detail-title { font-size:1.6rem; font-weight:700; color:var(--primary); letter-spacing:-.02em; line-height:1.25; }
.book-detail-price { font-size:1.75rem; font-weight:800; color:var(--primary); }
.book-detail-original { font-size:1rem; color:var(--muted); text-decoration:line-through; }
.book-meta-table { font-size:.83rem; width:100%; }
.book-meta-table td { padding:.38rem .5rem; border-bottom:1px solid var(--border); }
.book-meta-table td:first-child { color:var(--muted); font-weight:500; width:110px; }
.qty-input { width:64px; text-align:center; }

/* ── Filter Card ──────────────────────────────────────────── */
.filter-card { background:#fff; border-radius:var(--radius); padding:1.2rem; margin-bottom:1rem; border:1px solid var(--border); }
.filter-card h6 { font-size:.74rem; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); margin-bottom:.7rem; }
.filter-card .form-check-label { font-size:.84rem; color:var(--text-light); cursor:pointer; }
.filter-card .form-check-input:checked { background-color:var(--accent); border-color:var(--accent); }

/* ── Cart ─────────────────────────────────────────────────── */
.cart-item-img { width:56px; height:76px; object-fit:cover; border-radius:var(--radius-sm); }
.cart-summary-card { background:#fff; border-radius:var(--radius-lg); padding:1.5rem; border:1px solid var(--border); box-shadow:var(--shadow-sm); }
.summary-row { display:flex; justify-content:space-between; padding:.5rem 0; border-bottom:1px solid var(--border); font-size:.87rem; }
.summary-row:last-of-type { border-bottom:none; }

/* ── Checkout ─────────────────────────────────────────────── */
.checkout-section { background:#fff; border-radius:var(--radius-lg); padding:1.5rem; border:1px solid var(--border); margin-bottom:1.25rem; }
.checkout-section h5 { font-size:.9rem; font-weight:700; margin-bottom:1rem; color:var(--primary); }
.payment-method-card { border:1.5px solid var(--border); border-radius:var(--radius); padding:.9rem; margin-bottom:.7rem; cursor:pointer; transition:var(--transition); }
.payment-method-card:hover   { border-color:var(--accent); }
.payment-method-card.selected { border-color:var(--accent); background:var(--accent-light); }

/* ── Forms ────────────────────────────────────────────────── */
.form-control, .form-select {
  border:1.5px solid var(--border); border-radius:var(--radius-sm);
  font-size:.875rem; color:var(--text); background:#fff; padding:.58rem .85rem; transition:var(--transition);
}
.form-control:focus, .form-select:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(249,115,22,.1); outline:none; }
.form-label { font-size:.82rem; font-weight:600; color:var(--text-light); margin-bottom:.35rem; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert { border:none; border-radius:var(--radius); padding:.85rem 1.2rem; font-size:.87rem; }
.alert-success { background:#F0FDF4; color:#166534; border-left:3px solid #22C55E; }
.alert-danger   { background:#FEF2F2; color:#991B1B; border-left:3px solid #EF4444; }
.alert-info     { background:#EFF6FF; color:#1E40AF; border-left:3px solid #3B82F6; }
.alert-warning  { background:#FFFBEB; color:#92400E; border-left:3px solid #F59E0B; }

/* ── Order Status Badges ──────────────────────────────────── */
.status-pending    { background:#FFF7ED; color:#C2410C; border-radius:var(--radius-full); }
.status-processing { background:#EFF6FF; color:#1D4ED8; border-radius:var(--radius-full); }
.status-shipped    { background:#F0FDF4; color:#15803D; border-radius:var(--radius-full); }
.status-completed  { background:#F0FDF4; color:#166534; border-radius:var(--radius-full); }
.status-cancelled  { background:#FEF2F2; color:#B91C1C; border-radius:var(--radius-full); }

/* ── Account Sidebar ──────────────────────────────────────── */
.account-nav .list-group-item { border:none; border-radius:var(--radius) !important; margin-bottom:.2rem; color:var(--text-light); font-size:.87rem; font-weight:500; padding:.6rem 1rem; transition:var(--transition); }
.account-nav .list-group-item.active      { background:var(--accent); color:#fff; }
.account-nav .list-group-item:hover:not(.active) { background:var(--accent-light); color:var(--accent); }

/* ── Order Confirmation ───────────────────────────────────── */
.order-success-icon { font-size:4rem; color:#22C55E; }
.order-badge { display:inline-block; background:var(--accent); color:#fff; font-weight:700; padding:.4rem 1.4rem; border-radius:var(--radius-full); }

/* ── Star Rating Input ────────────────────────────────────── */
.star-rating { display:flex; flex-direction:row-reverse; gap:.2rem; }
.star-rating input { display:none; }
.star-rating label { cursor:pointer; font-size:1.4rem; color:#D1D5DB; transition:var(--transition); }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color:#F59E0B; }

/* ── Wishlist ─────────────────────────────────────────────── */
.btn-wishlist.active { color:var(--accent) !important; border-color:var(--accent) !important; }
.wishlist-btn { cursor:pointer; background:none; border:none; padding:0; }
.wishlist-btn.active .fa-heart { color:var(--accent) !important; }

/* ── Toast ────────────────────────────────────────────────── */
.toast-container { position:fixed; bottom:1.5rem; right:1.5rem; z-index:9999; display:flex; flex-direction:column; gap:.45rem; }
.bm-toast {
  background:var(--primary); color:#fff; padding:.8rem 1.15rem;
  border-radius:var(--radius); font-size:.83rem; display:flex; align-items:center; gap:.6rem;
  box-shadow:var(--shadow-lg); animation:toastIn .3s cubic-bezier(.4,0,.2,1);
  min-width:250px; max-width:330px; border-left:3px solid var(--accent);
}
.bm-toast.error { border-left-color:#EF4444; }
@keyframes toastIn { from{opacity:0;transform:translateX(16px)} to{opacity:1;transform:translateX(0)} }

/* ── Footer ───────────────────────────────────────────────── */
.main-footer { background:var(--primary); color:rgba(255,255,255,.55); padding:4rem 0 0; }
.footer-brand { font-size:1.35rem; font-weight:800; color:#fff; letter-spacing:-.02em; }
.footer-brand span { color:var(--accent); }
.footer-desc { font-size:.82rem; line-height:1.7; margin-top:.7rem; max-width:230px; color:rgba(255,255,255,.45); }
.footer-heading { font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:rgba(255,255,255,.38); margin-bottom:1.2rem; }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom:.55rem; }
.footer-links a { font-size:.83rem; color:rgba(255,255,255,.5); transition:var(--transition); }
.footer-links a:hover { color:var(--accent); padding-left:3px; }
.footer-social { display:flex; gap:.55rem; margin-top:1.4rem; }
.footer-social a { width:33px; height:33px; border-radius:var(--radius-sm); background:rgba(255,255,255,.07); color:rgba(255,255,255,.55); display:flex; align-items:center; justify-content:center; font-size:.83rem; transition:var(--transition); }
.footer-social a:hover { background:var(--accent); color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.07); padding:1.2rem 0; margin-top:3rem; font-size:.76rem; color:rgba(255,255,255,.3); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
.animate-fade-up   { animation:fadeUp .5s cubic-bezier(.4,0,.2,1) both; }
.delay-1 { animation-delay:.1s; } .delay-2 { animation-delay:.2s; } .delay-3 { animation-delay:.3s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width:991px) {
  .hero { min-height:auto; padding:4.5rem 0 3.5rem; }
  .hero h1 { font-size:2rem; }
  .hero-visual { height:300px; margin-top:2.5rem; }
  .hero-stats { gap:1.5rem; }
}
@media (max-width:768px) {
  .section { padding:3rem 0; }
  .section-title { font-size:1.4rem; }
  .hero-stat-value { font-size:1.1rem; }
  .main-footer { padding:2.5rem 0 0; }
  .newsletter-form { flex-direction:column; }
  .book-detail-title { font-size:1.3rem; }
  .book-detail-price { font-size:1.5rem; }
}
@media (max-width:576px) {
  .hero h1 { font-size:1.75rem; }
  .hero-stats { flex-wrap:wrap; gap:1rem; }
  .hero-book-b, .hero-book-c { display:none; }
  .hero-book-a { position:relative; width:160px; }
  .hero-visual { height:220px; }
}
/* ── Shimmer / Skeleton ───────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.bcard-img {
  background: linear-gradient(90deg,#f0f3f5 25%,#e4e8ea 50%,#f0f3f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}
.bcard-img img { position: relative; z-index: 1; }
.skeleton-card { pointer-events: none; }
.skeleton-box {
  background: linear-gradient(90deg,#f0f3f5 25%,#e4e8ea 50%,#f0f3f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: 8px;
}
.sk-img  { aspect-ratio:3/4; border-radius:12px 12px 0 0; }
.sk-line { height:10px; margin-bottom:8px; }
.sk-line.w-40 { width:40%; }
.sk-line.w-70 { width:70%; }
.sk-line.w-55 { width:55%; }
.sk-btn  { height:36px; border-radius:10px; margin-top:12px; }

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: .08s; }
.stagger-2 { transition-delay: .16s; }
.stagger-3 { transition-delay: .24s; }
.stagger-4 { transition-delay: .32s; }
.stagger-5 { transition-delay: .40s; }

/* ── Cart Fly Dot ─────────────────────────────────────────── */
.cart-fly {
  position: fixed; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); z-index: 9999; pointer-events: none;
  box-shadow: 0 0 10px rgba(249,115,22,.5);
}
@keyframes cartBounce {
  0%,100% { transform: scale(1); }
  30%     { transform: scale(1.4); }
  55%     { transform: scale(.88); }
  75%     { transform: scale(1.12); }
}
.cart-bounce { animation: cartBounce .55s ease; }

/* ── Added-to-Cart Popup ──────────────────────────────────── */
.cart-popup {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1060;
  background: #fff; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,.16);
  padding: 1rem; width: 300px;
  display: flex; flex-direction: column; gap: .6rem;
  transform: translateY(20px); opacity: 0;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.cart-popup.show { transform: translateY(0); opacity: 1; pointer-events: all; }
.cart-popup-header {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; color: #10B981;
  text-transform: uppercase; letter-spacing: .06em;
}
.cart-popup-header i { font-size: .9rem; }
.cart-popup-item { display: flex; gap: .75rem; align-items: flex-start; }
.cart-popup-item img {
  width: 44px; height: 60px; object-fit: cover;
  border-radius: 7px; flex-shrink: 0;
  border: 1px solid var(--border);
}
.cart-popup-title {
  font-size: .8rem; font-weight: 600; color: var(--primary);
  line-height: 1.35; margin-bottom: .15rem;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-popup-price { font-size: .82rem; font-weight: 700; color: var(--accent); }
.cart-popup-actions { display: flex; gap: .5rem; }
.cart-popup-actions a {
  flex: 1; text-align: center; border-radius: 9px; font-size: .78rem;
  font-weight: 600; padding: .48rem; text-decoration: none; transition: var(--transition);
}
.cart-popup-view  { background: var(--primary); color: #fff; }
.cart-popup-view:hover { background: var(--accent); color: #fff; }
.cart-popup-cont  { background: var(--bg); color: var(--primary); border: 1px solid var(--border); }
.cart-popup-cont:hover { background: var(--border); }

/* ── Flash Sale Bar ───────────────────────────────────────── */
.flash-sale-bar {
  background: linear-gradient(90deg,#0F172A,#1a2744 50%,#0F172A);
  padding: .6rem 0; text-align: center; font-size: .8rem;
}
.flash-label {
  background: var(--accent); color: #fff;
  font-size: .62rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; padding: .18rem .5rem; border-radius: 4px; margin-right: .6rem;
}
.flash-text { color: rgba(255,255,255,.7); }
.flash-text strong { color: #fff; }
.countdown-unit {
  display: inline-block; background: rgba(255,255,255,.13);
  border-radius: 5px; padding: .1rem .42rem;
  font-weight: 700; font-size: .84rem; font-variant-numeric: tabular-nums;
  min-width: 26px; text-align: center; color: #fff;
}
.countdown-sep { color: rgba(255,255,255,.4); margin: 0 .08rem; font-weight: 800; }
#flash-bar-close {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.4); cursor: pointer;
  font-size: .9rem; line-height: 1;
}
#flash-bar-close:hover { color: #fff; }

/* ── Trust Strip ──────────────────────────────────────────── */
.trust-strip {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: .7rem 0;
}
.trust-item { display: flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 500; color: var(--text-light); }
.trust-item i { color: var(--accent); font-size: .85rem; }
.trust-sep { width: 1px; height: 18px; background: var(--border); margin: 0 .5rem; }

/* ── Stock Indicator ──────────────────────────────────────── */
.bcard-stock {
  font-size: .67rem; font-weight: 600;
  display: flex; align-items: center; gap: .3rem; margin-top: .25rem;
}
.bcard-stock-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.bcard-stock.in-stock  { color: #059669; }
.bcard-stock.in-stock  .bcard-stock-dot { background: #10B981; }
.bcard-stock.low-stock { color: #D97706; }
.bcard-stock.low-stock .bcard-stock-dot { background: #F59E0B; animation: pulse 1.4s infinite; }
.bcard-stock.out-stock { color: #DC2626; }
.bcard-stock.out-stock .bcard-stock-dot { background: #EF4444; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.35; } }

/* ── Delivery Line ────────────────────────────────────────── */
.bcard-delivery {
  font-size: .67rem; color: #059669; font-weight: 500;
  display: flex; align-items: center; gap: .28rem; margin-top: .2rem;
}

/* ── Bestseller Ribbon ────────────────────────────────────── */
.bcard-ribbon-wrap {
  position: absolute; top: 0; right: 0;
  width: 70px; height: 70px; overflow: hidden; z-index: 4;
}
.bcard-ribbon {
  position: absolute; top: 16px; right: -20px;
  background: #F97316; color: #fff;
  font-size: .52rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  padding: .22rem 2rem; transform: rotate(45deg); white-space: nowrap;
  box-shadow: 0 2px 6px rgba(249,115,22,.4);
}

/* ── Sold count badge ─────────────────────────────────────── */
.bcard-sold { font-size: .65rem; color: var(--muted); margin-top: .1rem; }

/* ── Cart drawer ──────────────────────────────────────────── */
.cart-drawer-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.42);
  z-index: 1049; opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.cart-drawer-overlay.show { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; right: 0; top: 0; height: 100dvh; width: 380px; max-width: 96vw;
  background: #fff; box-shadow: -6px 0 40px rgba(15,23,42,.14);
  transform: translateX(110%); transition: transform .38s cubic-bezier(.4,0,.2,1);
  z-index: 1050; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.cart-drawer-head h6 { font-size: .92rem; font-weight: 700; color: var(--primary); margin: 0; }
.cart-drawer-close {
  width: 28px; height: 28px; border-radius: 7px; border: none;
  background: var(--bg); color: var(--muted); cursor: pointer; font-size: .78rem;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.cart-drawer-close:hover { background: var(--border); color: var(--primary); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: .75rem 1.25rem; }
.cart-drawer-item {
  display: flex; gap: .8rem; padding: .8rem 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.cart-drawer-item:last-child { border-bottom: none; }
.cart-drawer-item img {
  width: 50px; height: 68px; object-fit: cover;
  border-radius: 8px; flex-shrink: 0; border: 1px solid var(--border);
}
.cart-di-title  { font-size: .8rem; font-weight: 600; color: var(--primary); line-height: 1.35; }
.cart-di-author { font-size: .7rem; color: var(--muted); margin: .1rem 0; }
.cart-di-meta   { display: flex; gap: .75rem; align-items: center; margin-top: .3rem; }
.cart-di-price  { font-size: .84rem; font-weight: 700; color: var(--accent); }
.cart-di-qty    { font-size: .72rem; color: var(--muted); }
.cart-drawer-foot {
  padding: .9rem 1.25rem; border-top: 1px solid var(--border);
  flex-shrink: 0; background: #fff;
}
.cart-drawer-totrow { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .4rem; }
.cart-drawer-totrow .lbl { color: var(--muted); }
.cart-drawer-totrow .val { font-weight: 700; color: var(--primary); }
.cart-drawer-totrow.grand .val { color: var(--accent); font-size: 1rem; }
.cart-drawer-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.cart-drawer-empty i { font-size: 2.4rem; opacity: .2; display: block; margin-bottom: .75rem; }
.cart-drawer-empty p { font-size: .83rem; }

/* ── Pagination ───────────────────────────────────────────── */
.bm-pagination {
  gap: .35rem;
}

.bm-pagination .page-link {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-light);
  font-size: .84rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15,23,42,.035);
}

.bm-pagination .page-link:hover {
  border-color: rgba(249,115,22,.3);
  background: var(--accent-light);
  color: var(--accent);
}

.bm-pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.bm-pagination .page-item.disabled .page-link {
  background: #F8FAFC;
  color: #CBD5E1;
  box-shadow: none;
}

/* ── Customer Review Photos ───────────────────────────────── */
.review-card {
  padding: 1rem 0 1.15rem;
  border-bottom: 1px solid var(--border);
}

.review-card:last-child {
  border-bottom: 0;
}

.review-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  max-width: 520px;
}

.review-photo-grid a {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #F8FAFC;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}

.review-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .3s ease;
}

.review-photo-grid a:hover img {
  transform: scale(1.05);
}

/* ── Social Proof Numbers ─────────────────────────────────── */
.sp-stat { text-align: center; }
.sp-stat .sp-num  { font-size: 1.75rem; font-weight: 800; color: var(--primary); letter-spacing: -.03em; }
.sp-stat .sp-lbl  { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: .15rem; }
.sp-divider { width: 1px; background: var(--border); align-self: stretch; }

/* ── end ──────────────────────────────────────────────────── */

/* ============================================================
   Premium Storefront Refresh
   ============================================================ */
:root {
  --primary: #065F35;
  --secondary: #0F3F2A;
  --accent: #D12A1F;
  --accent-dark: #AA2119;
  --accent-light: #FEF2F2;
  --brand-leaf: #78B34D;
  --bg: #F8FAFC;
  --bg-white: #FFFFFF;
  --text: #0F172A;
  --text-light: #334155;
  --muted: #64748B;
  --border: #E2E8F0;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, .08);
  --shadow-hover: 0 24px 60px rgba(15, 23, 42, .13);
}

body {
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    linear-gradient(180deg, #FFFFFF 0, #F8FAFC 520px),
    var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

.container-fluid {
  max-width: 1440px;
}

.site-topbar {
  background: #0B1220;
  padding: .46rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.main-navbar {
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(226,232,240,.82);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  padding: .72rem 0;
}

.main-navbar.scrolled {
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
}

.mobile-nav-actions {
  display: none;
}

.brand-logo-img {
  display: block;
  width: 188px;
  max-width: 42vw;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.search-form {
  max-width: 440px;
}

.search-form .form-control {
  height: 44px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.search-form .form-control:focus {
  border-color: rgba(249,115,22,.55);
  box-shadow: 0 0 0 4px rgba(249,115,22,.1);
}

.search-form .btn-search {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.nav-link-custom {
  border-radius: 12px;
  color: #334155 !important;
  font-size: .82rem;
}

.nav-link-custom:hover {
  background: #F8FAFC;
  color: var(--primary) !important;
}

.navbar-icon-btn {
  border: 1px solid transparent;
  border-radius: 14px;
}

.navbar-icon-btn:hover {
  background: #FFFFFF;
  border-color: var(--border);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.btn-accent,
.btn-outline-primary-c,
.btn-white-ghost {
  border-radius: 14px;
  min-height: 42px;
  padding: .72rem 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
}

.btn-accent {
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .14);
}

.btn-accent:hover {
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(249, 115, 22, .26);
  transform: translateY(-2px);
}

.btn-outline-primary-c {
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--primary);
}

.btn-outline-primary-c:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.premium-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    linear-gradient(135deg, rgba(240,253,244,.9) 0%, rgba(255,255,255,.96) 40%, rgba(248,250,252,.98) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-eyebrow {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(249,115,22,.2);
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(249,115,22,.08);
}

.premium-hero h1,
.hero-copy h1 {
  color: var(--primary);
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: 0;
  margin-bottom: 1.35rem;
}

.hero-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  max-width: 520px;
  margin-top: 2.2rem;
}

.hero-metrics div {
  padding: 1rem;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(226,232,240,.82);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,.04);
}

.hero-metrics strong {
  display: block;
  color: var(--primary);
  font-size: 1.18rem;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
  font-size: .76rem;
}

.hero-showcase {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-shelf-card {
  width: min(520px, 100%);
  padding: 1.15rem;
  border: 1px solid rgba(226,232,240,.8);
  border-radius: 28px;
  background: rgba(255,255,255,.68);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  animation: premiumFloat 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.hero-brand-image {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(420px, 86%);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,.85);
  background: #FFFFFF;
  box-shadow: 0 24px 60px rgba(6,95,53,.12);
  transform: translate(10px, -24px);
  z-index: 1;
}

.hero-brand-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 45%, rgba(255,255,255,.82) 100%);
}

.hero-brand-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.hero-shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .35rem .35rem 1rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-shelf-head i {
  color: var(--accent);
}

.hero-book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
  align-items: end;
}

.hero-cover {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
  transform: translateY(var(--lift, 0));
  transition: transform .35s ease, box-shadow .35s ease;
}

.hero-cover:hover {
  transform: translateY(calc(var(--lift, 0) - 8px));
  box-shadow: 0 24px 54px rgba(15, 23, 42, .22);
}

.hero-cover img {
  aspect-ratio: 3 / 4.4;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cover-1 { --lift: -22px; }
.hero-cover-2 { --lift: 14px; }
.hero-cover-3 { --lift: -8px; }
.hero-cover-4 { --lift: 26px; }

.hero-featured-book {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid var(--border);
}

.hero-featured-book span {
  display: block;
  color: var(--accent);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.hero-featured-book strong {
  display: block;
  margin-top: .25rem;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.3;
}

.hero-featured-book small {
  color: var(--muted);
}

@keyframes premiumFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.premium-feature-strip {
  padding: 1.35rem 0;
  border-top: 0;
  background: #FFFFFF;
}

.feature-item {
  min-height: 86px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 8px 22px rgba(15,23,42,.035);
}

.feature-icon {
  background: #F8FAFC;
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 16px;
}

.section,
.section-sm {
  position: relative;
}

.section-white {
  background: #FFFFFF;
  border-block: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-title {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-eyebrow {
  color: var(--accent);
  letter-spacing: .11em;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.premium-promo {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(248,250,252,.98));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: 0 12px 30px rgba(15,23,42,.05);
  color: var(--primary);
  overflow: hidden;
}

.premium-promo::before,
.premium-promo::after {
  display: none;
}

.premium-promo:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(249,115,22,.28);
}

.premium-promo .promo-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 15px;
}

.promo-card-image {
  width: calc(100% + 2.5rem);
  height: 118px;
  object-fit: cover;
  margin: -1.25rem -1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.premium-promo .eyebrow,
.promo-card .eyebrow {
  color: var(--accent);
  font-size: .68rem;
  letter-spacing: .1em;
}

.premium-promo h5 {
  color: var(--primary);
  font-size: 1.05rem;
  margin: .9rem 0 .45rem;
  line-height: 1.25;
}

.premium-promo p {
  color: var(--muted);
  font-size: .86rem;
  margin: 0;
}

.book-card {
  border: 1px solid rgba(226,232,240,.92);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
  background: rgba(255,255,255,.96);
}

.book-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249,115,22,.22);
  box-shadow: var(--shadow-hover);
}

.bcard-img {
  margin: .85rem .85rem 0;
  border-radius: 16px;
  background: #F1F5F9;
  aspect-ratio: 3 / 4;
  animation: none;
}

.bcard-img img {
  object-fit: cover;
  border-radius: 16px;
}

.bcard-body {
  padding: .9rem .95rem 1rem;
}

.bcard-title {
  font-size: .92rem;
  font-weight: 750;
  color: var(--primary);
}

.bcard-author,
.bcard-stock,
.bcard-delivery {
  color: var(--muted);
}

.bcard-price-now {
  font-size: 1.08rem;
  font-weight: 800;
}

.bcard-cart {
  border-radius: 13px;
  background: #0F172A;
  min-height: 40px;
}

.bcard-cart:hover {
  background: var(--accent);
}

.bcard-wish {
  top: .75rem;
  right: .75rem;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(226,232,240,.72);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}

.bcard-ribbon-wrap {
  display: none;
}

.bcard-badge {
  box-shadow: 0 8px 16px rgba(15,23,42,.12);
}

.category-card {
  display: block;
  height: 100%;
  text-align: left;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(15,23,42,.035);
}

.category-card .cat-icon {
  margin: 0 0 1rem;
}

.category-card:hover {
  border-color: rgba(249,115,22,.35);
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
}

.section-pills {
  padding: .25rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.section-pills .nav-link {
  border-radius: 12px;
  color: var(--muted);
}

.section-pills .nav-link.active {
  background: var(--primary);
  color: #FFFFFF;
}

.editorial-band {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background:
    linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  overflow: hidden;
}

.editorial-band h2 {
  color: #FFFFFF;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.editorial-band p {
  color: rgba(255,255,255,.66);
  max-width: 460px;
  margin-bottom: 1.5rem;
}

.cover-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(.6rem, 1.5vw, 1.2rem);
}

.cover-row-item {
  width: min(18vw, 142px);
  min-width: 78px;
  transform: rotate(var(--tilt));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
  transition: transform .35s ease, box-shadow .35s ease;
}

.cover-row-item:hover {
  transform: rotate(0) translateY(-12px);
  box-shadow: 0 30px 72px rgba(0,0,0,.42);
}

.cover-row-item img {
  width: 100%;
  aspect-ratio: 3 / 4.35;
  object-fit: cover;
}

.author-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.author-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 112px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
}

.author-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(249,115,22,.28);
}

.author-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  background: #F1F5F9;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card h6 {
  margin: 0 0 .15rem;
  color: var(--primary);
  font-weight: 800;
}

.author-card p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.author-card > i {
  margin-left: auto;
  color: var(--muted);
}

.testimonials-section {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  background: #FFFFFF;
  border-block: 1px solid var(--border);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(15,23,42,.045);
}

.testimonial-card .stars {
  color: #F59E0B;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}

.testimonial-card p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.testimonial-card strong {
  color: var(--primary);
}

.reader-gallery {
  display: grid;
  grid-template-columns: 1.15fr .85fr 1fr .85fr 1.15fr;
  gap: 1rem;
  align-items: stretch;
}

.reader-gallery-card {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  border-radius: 24px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}

.reader-gallery-card:nth-child(even) {
  margin-top: 2rem;
}

.reader-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.reader-gallery-card:hover img {
  transform: scale(1.06);
}

.reader-gallery-card > div {
  position: absolute;
  inset: auto .85rem .85rem;
  padding: .8rem;
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(15,23,42,.12);
}

.reader-gallery-card strong,
.reader-gallery-card small {
  display: block;
}

.reader-gallery-card strong {
  color: var(--primary);
  font-size: .9rem;
  margin-top: .2rem;
}

.reader-gallery-card small {
  color: var(--muted);
  font-size: .75rem;
}

.premium-newsletter {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bg);
}

.premium-newsletter::before,
.premium-newsletter::after {
  display: none;
}

.newsletter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 28px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.newsletter-panel h2 {
  color: var(--primary);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: .7rem;
}

.newsletter-panel p {
  color: var(--muted);
  margin: 0;
}

.newsletter-panel .newsletter-form {
  min-width: min(440px, 100%);
}

.newsletter-form .form-control {
  min-height: 46px;
  border-radius: 14px;
}

.main-footer {
  background: #0B1220;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-logo-img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
  border-radius: 10px;
  background: #FFFFFF;
  padding: .35rem;
}

.footer-social a,
.footer-bottom span[style*="background"] {
  border-radius: 12px !important;
}

@media (max-width: 1199px) {
  .promo-grid,
  .author-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .main-navbar .container-fluid {
    padding-inline: 1rem !important;
  }

  .premium-hero {
    padding-top: 3.2rem;
  }

  .hero-showcase {
    min-height: auto;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .reader-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reader-gallery-card:nth-child(even) {
    margin-top: 0;
  }

  .newsletter-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .premium-hero h1,
  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-book-grid {
    gap: .55rem;
  }

  .hero-cover {
    border-radius: 12px;
  }

  .promo-grid,
  .author-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    min-height: 104px;
    align-items: flex-start;
  }

  .section-pills {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .section-pills .nav-link {
    white-space: nowrap;
  }

  .cover-row {
    justify-content: flex-start;
    overflow-x: auto;
    padding: .75rem .25rem 1.2rem;
  }

  .reader-gallery {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .reader-gallery-card {
    flex: 0 0 78%;
    min-height: 280px;
  }

  .cover-row-item {
    width: 112px;
    flex: 0 0 112px;
  }

  .newsletter-form {
    gap: .75rem;
  }
}

@media (max-width: 575px) {
  .hero-actions .btn-accent,
  .hero-actions .btn-outline-primary-c {
    width: 100%;
    justify-content: center;
  }

  .hero-shelf-card {
    border-radius: 22px;
  }

  .bcard-img {
    margin: .55rem .55rem 0;
  }

  .bcard-body {
    padding: .75rem .7rem .8rem;
  }

  .bcard-cart {
    font-size: .74rem;
  }
}

/* ============================================================
   Editorial Bookshop Direction
   Inspired by airy bookstore layouts with animated seasonal art.
   ============================================================ */
body {
  background: #FFFEFB;
}

.premium-hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #FFFEFB 0%, #FFFFFF 68%, #FFF7ED 100%);
  border-bottom: 0;
  padding: clamp(4rem, 7vw, 6.8rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.premium-hero .row {
  min-height: 560px;
}

.hero-copy h1 {
  max-width: 560px;
  font-family: 'Poppins', 'Inter', sans-serif;
  color: #8C4B1C;
  font-size: clamp(2.25rem, 4.8vw, 4.7rem);
  line-height: 1.08;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 430px;
  color: #1E293B;
  font-size: 1.02rem;
}

.hero-eyebrow {
  background: #FFF7ED;
  border-color: #FED7AA;
  color: #C2410C;
  box-shadow: none;
}

.hero-showcase {
  min-height: 580px;
}

.hero-editorial-art {
  position: relative;
  inset: auto;
  width: min(760px, 112%);
  transform: translateX(-4%);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: heroDrift 7s ease-in-out infinite;
}

.hero-editorial-art::after {
  display: none;
}

.hero-editorial-art img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  filter: drop-shadow(0 30px 38px rgba(124,45,18,.14));
}

.hero-shelf-card {
  position: absolute;
  right: 2%;
  bottom: 6%;
  width: min(360px, 78%);
  padding: .85rem;
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 44px rgba(124,45,18,.13);
}

.hero-book-grid {
  gap: .55rem;
}

.hero-featured-book {
  display: none;
}

.hero-metrics {
  max-width: 620px;
}

.hero-metrics div {
  background: #FFFFFF;
  border-color: #FFEDD5;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(124,45,18,.06);
}

.hero-metrics strong {
  color: #EA580C;
  font-size: 1.55rem;
}

.leaf-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.leaf {
  position: absolute;
  width: 28px;
  height: 18px;
  border-radius: 90% 0 90% 0;
  background: linear-gradient(135deg, #F97316, #B91C1C);
  opacity: .92;
  transform: rotate(28deg);
  animation: leafFloat 8s ease-in-out infinite;
}

.leaf::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  top: 8px;
  height: 1px;
  background: rgba(255,255,255,.5);
  transform: rotate(-16deg);
}

.leaf-1 { left: 45%; top: 13%; animation-delay: -.5s; }
.leaf-2 { left: 58%; top: 19%; width: 20px; height: 14px; background: linear-gradient(135deg, #FACC15, #F97316); animation-delay: -2s; }
.leaf-3 { left: 78%; top: 11%; width: 23px; height: 16px; animation-delay: -3.3s; }
.leaf-4 { left: 70%; top: 42%; width: 18px; height: 12px; background: linear-gradient(135deg, #FBBF24, #EA580C); animation-delay: -4.7s; }
.leaf-5 { left: 38%; top: 38%; width: 16px; height: 11px; animation-delay: -6s; }

@keyframes leafFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(28deg); }
  35% { transform: translate3d(18px, -22px, 0) rotate(72deg); }
  70% { transform: translate3d(-12px, 14px, 0) rotate(-18deg); }
}

@keyframes heroDrift {
  0%, 100% { transform: translateX(-4%) translateY(0); }
  50% { transform: translateX(-4%) translateY(-12px); }
}

.premium-feature-strip {
  background: #FFFEFB;
  border: 0;
}

.feature-item,
.book-card,
.category-card,
.testimonial-card,
.author-card,
.newsletter-panel {
  border-radius: 8px;
  border-color: #F3E7D8;
  box-shadow: 0 12px 28px rgba(124,45,18,.055);
}

.feature-icon,
.category-card .cat-icon {
  border-radius: 8px;
  background: #FFF7ED;
  color: #EA580C;
  border-color: #FED7AA;
}

.section {
  padding: 4.8rem 0;
}

.section-white {
  background: #FFFEFB;
  border-color: #F3E7D8;
}

.section-eyebrow {
  color: #B45309;
}

.section-title {
  color: #8C4B1C;
  font-family: 'Poppins', 'Inter', sans-serif;
  text-transform: uppercase;
}

.view-all-link {
  color: #EA580C;
}

.promo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-promo {
  min-height: 248px;
  border-radius: 8px;
  background: #FFFFFF;
}

.promo-card-image {
  height: 168px;
}

.premium-promo .promo-icon {
  display: none;
}

.book-card {
  border-radius: 8px;
  overflow: visible;
}

.bcard-img,
.bcard-img img {
  border-radius: 6px;
}

.bcard-cart {
  background: #FFFFFF;
  color: #B45309;
  border: 1px solid #D97706;
  border-radius: 5px;
  box-shadow: none;
}

.bcard-cart:hover {
  background: #F97316;
  color: #FFFFFF;
}

.bcard-wish {
  color: #D97706;
  border-radius: 50%;
}

.editorial-band {
  background: linear-gradient(135deg, rgba(194,65,12,.92), rgba(234,88,12,.78)), #9A3412;
}

.cover-row-item {
  border-radius: 8px;
}

.main-footer {
  background: #FFF7ED;
  color: #64748B;
  border-top: 1px solid #FED7AA;
}

.main-footer .footer-heading,
.main-footer .footer-desc,
.main-footer .footer-links a,
.main-footer .footer-bottom {
  color: #64748B;
}

.main-footer .footer-links a:hover {
  color: #EA580C;
}

.footer-bottom {
  border-top-color: #FED7AA;
}

@media (max-width: 991px) {
  .premium-hero,
  .premium-hero .row {
    min-height: auto;
  }

  .hero-showcase {
    min-height: 420px;
  }

  .hero-editorial-art {
    width: 100%;
    transform: none;
  }

  .hero-shelf-card {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 767px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 320px;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }
}

/* First viewport polish: make the storefront feel more immediate and campaign-led. */
.premium-hero {
  min-height: calc(100vh - 122px);
  padding: clamp(2.4rem, 5vw, 4.6rem) 0 clamp(2rem, 4vw, 3.5rem);
  background:
    linear-gradient(90deg, rgba(255,254,251,.98) 0%, rgba(255,254,251,.96) 42%, rgba(255,247,237,.9) 100%),
    radial-gradient(circle at 78% 45%, rgba(249,115,22,.15), transparent 34%);
}

.premium-hero .row {
  min-height: calc(100vh - 220px);
}

.hero-copy {
  padding-top: clamp(.5rem, 2vw, 2rem);
}

.hero-copy h1 {
  font-size: clamp(3rem, 5.6vw, 6rem);
  letter-spacing: -.02em;
  color: #8A4217;
  text-shadow: 0 10px 34px rgba(138,66,23,.08);
}

.hero-copy p {
  font-size: 1.08rem;
  max-width: 500px;
}

.hero-offer-line {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: -.35rem 0 1.25rem;
  padding: .72rem 1rem;
  border: 1px solid #FED7AA;
  border-radius: 12px;
  background: #FFFFFF;
  color: #9A3412;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(124,45,18,.07);
}

.hero-offer-line i {
  color: #D12A1F;
}

.hero-actions {
  margin-top: .25rem;
}

.hero-actions .btn-accent {
  background: #065F35;
  box-shadow: 0 18px 32px rgba(6,95,53,.2);
}

.hero-actions .btn-accent:hover {
  background: #D12A1F;
}

.hero-showcase {
  min-height: calc(100vh - 230px);
  align-items: center;
  justify-content: flex-end;
}

.hero-editorial-art {
  width: min(920px, 122%);
  margin-right: -7%;
  transform: translateY(-3%);
}

.hero-editorial-art img {
  filter: drop-shadow(0 34px 44px rgba(124,45,18,.16));
}

.hero-shelf-card {
  right: 5%;
  bottom: 5%;
  width: min(390px, 78%);
  border: 1px solid rgba(254,215,170,.95);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
}

.hero-shelf-head {
  padding-bottom: .7rem;
  color: #64748B;
}

.hero-cover {
  box-shadow: 0 16px 34px rgba(15,23,42,.22);
}

.hero-cover:hover {
  transform: translateY(calc(var(--lift, 0) - 12px)) rotate(-1deg);
}

.hero-metrics {
  margin-top: 1.6rem;
}

.leaf {
  animation-duration: 6.5s;
}

.leaf-1 { left: 43%; top: 19%; }
.leaf-2 { left: 57%; top: 25%; }
.leaf-3 { left: 82%; top: 16%; }
.leaf-4 { left: 77%; top: 54%; }
.leaf-5 { left: 39%; top: 50%; }

.premium-feature-strip {
  margin-top: 0;
  transform: translateY(-28px);
  position: relative;
  z-index: 3;
}

.premium-feature-strip .feature-item {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}

@media (max-width: 991px) {
  .premium-hero,
  .premium-hero .row,
  .hero-showcase {
    min-height: auto;
  }

  .hero-editorial-art {
    width: 100%;
    margin-right: 0;
    transform: none;
  }

  .premium-feature-strip {
    transform: none;
  }
}

@media (max-width: 767px) {
  .hero-copy h1 {
    font-size: 2.65rem;
  }

  .hero-offer-line {
    align-items: flex-start;
  }

  .hero-shelf-card {
    display: none;
  }
}

/* Warm paper atmosphere: reduce stark white while keeping product cards readable. */
body {
  background:
    linear-gradient(180deg, #FFF7ED 0%, #FFFBF5 34%, #F8FAFC 100%);
}

.premium-hero {
  background:
    linear-gradient(90deg, rgba(255,247,237,.96) 0%, rgba(255,251,245,.94) 43%, rgba(254,226,226,.72) 100%),
    radial-gradient(circle at 74% 42%, rgba(249,115,22,.18), transparent 34%),
    radial-gradient(circle at 16% 18%, rgba(120,179,77,.1), transparent 28%);
}

.premium-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120,53,15,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,53,15,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.45), transparent 72%);
}

.section-white,
.premium-feature-strip,
.testimonials-section,
.premium-newsletter {
  background: #FFFBF5;
}

.section:not(.section-white):not(.testimonials-section),
.section-sm {
  background: linear-gradient(180deg, #FFFEFB, #FFF7ED);
}

.book-card,
.feature-item,
.category-card,
.testimonial-card,
.newsletter-panel,
.premium-promo {
  background: rgba(255,255,255,.94);
}

/* Mobile and tablet storefront polish */
@media (max-width: 991px) {
  .site-topbar {
    display: none !important;
  }

  .main-navbar {
    padding: .55rem 0;
  }

  .brand-logo-img {
    width: 150px;
    height: 38px;
  }

  .navbar-toggler {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #FFF7ED;
    color: #065F35 !important;
  }

  .navbar-collapse {
    margin-top: .8rem;
    padding: 1rem;
    border: 1px solid #F3E7D8;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 42px rgba(124,45,18,.1);
  }

  .search-form {
    max-width: none;
  }

  .navbar-nav {
    margin-left: 0 !important;
    padding-top: .65rem;
    align-items: stretch !important;
  }

  .nav-link-custom {
    display: flex;
    justify-content: space-between;
    padding: .72rem .8rem !important;
  }

  .premium-hero {
    min-height: auto;
    padding: 2rem 0 0;
    overflow: hidden;
  }

  .premium-hero .row {
    min-height: auto;
    gap: 1rem;
  }

  .hero-copy {
    padding-top: .25rem;
  }

  .hero-copy h1 {
    max-width: 720px;
    font-size: clamp(2.2rem, 7vw, 4.2rem);
    line-height: 1.04;
  }

  .hero-copy p {
    max-width: 640px;
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .hero-offer-line {
    margin-bottom: 1rem;
    max-width: 100%;
  }

  .hero-actions {
    gap: .7rem;
  }

  .hero-actions .btn-accent,
  .hero-actions .btn-outline-primary-c {
    min-height: 44px;
    padding: .65rem 1rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
    margin-top: 1.1rem;
  }

  .hero-metrics div {
    padding: .8rem;
  }

  .hero-metrics strong {
    font-size: 1.25rem;
  }

  .hero-showcase {
    min-height: 320px;
    align-items: flex-start;
    justify-content: center;
    margin-top: .5rem;
  }

  .hero-editorial-art {
    width: min(780px, 112%);
    margin: 0 auto -3.5rem;
    transform: none;
  }

  .hero-editorial-art img {
    object-position: center top;
  }

  .hero-shelf-card {
    display: none;
  }

  .leaf-4,
  .leaf-5 {
    display: none;
  }

  .premium-feature-strip {
    transform: none;
    padding-top: 1rem;
  }
}

@media (max-width: 767px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .premium-hero {
    padding-top: 1.35rem;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .hero-copy p {
    font-size: .96rem;
    line-height: 1.65;
  }

  .hero-offer-line {
    width: 100%;
    font-size: .85rem;
    line-height: 1.35;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .btn-accent,
  .hero-actions .btn-outline-primary-c {
    width: 100%;
    justify-content: center;
    font-size: .84rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-metrics div {
    padding: .7rem .55rem;
  }

  .hero-metrics strong {
    font-size: 1.05rem;
  }

  .hero-metrics span {
    font-size: .68rem;
  }

  .hero-showcase {
    min-height: 235px;
  }

  .hero-editorial-art {
    width: 124%;
    margin-left: -12%;
    margin-bottom: -2.2rem;
  }

  .premium-feature-strip .row {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
  }

  .feature-item {
    min-height: 92px;
    padding: .85rem;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .brand-logo-img {
    width: 132px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .7rem;
  }

  .hero-metrics span {
    margin-top: 0;
  }

  .hero-showcase {
    min-height: 190px;
  }
}

/* Phone storefront: campaign-card composition inspired by modern mobile bookshops. */
@media (max-width: 575px) {
  body {
    background: #F7F7F5;
  }

  .main-navbar {
    background: #F97316;
    border-bottom: 0;
    padding: .72rem 0;
    box-shadow: none;
  }

  .main-navbar .container-fluid {
    padding-left: .9rem !important;
    padding-right: .9rem !important;
  }

  .navbar-brand {
    margin-right: 0 !important;
  }

  .brand-logo-img {
    width: 168px;
    height: 52px;
    padding: .25rem;
    border-radius: 999px;
    background: #FFFFFF;
    object-position: left center;
  }

  .mobile-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-left: auto;
  }

  .mobile-nav-icon,
  .navbar-toggler {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0F172A !important;
    background: transparent !important;
    border-radius: 999px;
    font-size: 1.08rem;
  }

  .navbar-collapse {
    position: absolute;
    left: .9rem;
    right: .9rem;
    top: calc(100% + .55rem);
    margin-top: 0;
    z-index: 1200;
    border-color: rgba(255,255,255,.6);
    border-radius: 18px;
  }

  .premium-hero {
    min-height: 0;
    margin: 0;
    padding: 0;
    background: #F7F7F5;
  }

  .premium-hero::before,
  .leaf-field {
    display: none;
  }

  .premium-hero .container-fluid {
    padding: 0 !important;
    max-width: none;
  }

  .premium-hero .row {
    position: relative;
    min-height: 482px;
    margin: 0;
    padding: 2.8rem 1.05rem 2.1rem;
    overflow: hidden;
    background:
      radial-gradient(circle at 83% 48%, rgba(250,204,21,.82) 0 24%, transparent 25%),
      linear-gradient(135deg, #FFE1C4 0%, #FFD9BD 54%, #FFF4E8 100%);
  }

  .premium-hero .col-lg-6 {
    position: static;
    padding: 0;
  }

  .hero-copy {
    position: relative;
    z-index: 3;
    width: 58%;
    padding-top: 0;
  }

  .hero-eyebrow,
  .hero-offer-line,
  .hero-metrics,
  .hero-actions .btn-outline-primary-c {
    display: none;
  }

  .hero-copy h1 {
    max-width: 100%;
    margin: 0 0 1.3rem;
    color: #F97316;
    font-size: clamp(1.55rem, 8vw, 2.2rem);
    line-height: 1.14;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
  }

  .hero-copy p {
    max-width: 100%;
    margin-bottom: 1.5rem;
    color: #1E293B;
    font-size: .98rem;
    line-height: 1.65;
    font-weight: 600;
  }

  .hero-actions {
    display: block;
  }

  .hero-actions .btn-accent {
    width: auto;
    min-height: 42px;
    padding: .66rem 1.55rem;
    border-radius: 999px;
    background: #F97316;
    color: #FFFFFF;
    box-shadow: 0 16px 30px rgba(249,115,22,.25);
    font-size: .92rem;
  }

  .hero-showcase {
    position: absolute;
    right: -5.6rem;
    bottom: -1.15rem;
    z-index: 2;
    width: 72%;
    min-height: 0;
    margin: 0;
    display: block;
  }

  .hero-editorial-art {
    width: 100%;
    margin: 0;
    transform: none;
    animation: mobileHeroFloat 5.5s ease-in-out infinite;
  }

  .hero-editorial-art img {
    width: 100%;
    aspect-ratio: 3 / 3.6;
    object-fit: cover;
    object-position: 62% bottom;
    filter: drop-shadow(0 20px 24px rgba(124,45,18,.16));
  }

  .premium-feature-strip {
    padding: 1.55rem 0 0;
    background: #F7F7F5;
  }

  .premium-feature-strip .row {
    display: block;
  }

  .premium-feature-strip .col-6 {
    width: 100%;
    margin-bottom: .9rem;
  }

  .feature-item {
    min-height: 112px;
    align-items: center;
    padding: 1.15rem;
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 16px 36px rgba(15,23,42,.08);
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
  }

  .feature-item h6 {
    font-size: 1rem;
  }

  .feature-item p {
    font-size: .86rem;
    line-height: 1.45;
  }
}

@media (max-width: 390px) {
  .brand-logo-img {
    width: 142px;
  }

  .hero-copy {
    width: 62%;
  }

  .premium-hero .row {
    min-height: 455px;
  }

  .hero-showcase {
    right: -6.5rem;
    width: 78%;
  }
}

@keyframes mobileHeroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Bookmelon mobile identity correction: inspired structure, original brand look. */
@media (max-width: 575px) {
  .main-navbar {
    background: linear-gradient(135deg, #065F35, #06472B);
  }

  .brand-logo-img {
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
  }

  .mobile-nav-icon,
  .navbar-toggler {
    color: #FFFFFF !important;
    background: rgba(255,255,255,.12) !important;
  }

  .premium-hero .row {
    background:
      radial-gradient(circle at 82% 44%, rgba(120,179,77,.36) 0 24%, transparent 25%),
      linear-gradient(135deg, #FFF7ED 0%, #FEF2F2 50%, #F0FDF4 100%);
  }

  .hero-copy h1 {
    color: #065F35;
    text-transform: uppercase;
    font-weight: 800;
  }

  .hero-copy p {
    color: #334155;
  }

  .hero-actions .btn-accent {
    background: #065F35;
    box-shadow: 0 16px 30px rgba(6,95,53,.22);
  }

  .hero-actions .btn-accent:hover {
    background: #D12A1F;
  }

  .feature-icon {
    background: #F0FDF4;
    border-color: rgba(120,179,77,.35);
    color: #065F35;
  }
}

/* Final mobile composition polish: blend art into the Bookmelon campaign block. */
@media (max-width: 575px) {
  .premium-hero .row {
    min-height: 500px;
    background:
      radial-gradient(circle at 83% 47%, rgba(120,179,77,.34) 0 24%, transparent 25%),
      linear-gradient(135deg, #FFF7ED 0%, #FFF4EA 46%, #F0FDF4 100%);
    border-bottom: 1px solid #F3E7D8;
  }

  .hero-copy {
    width: 57%;
  }

  .hero-copy h1 {
    letter-spacing: -.01em;
  }

  .hero-showcase {
    right: -4.4rem;
    bottom: -1.65rem;
    width: 74%;
  }

  .hero-editorial-art {
    overflow: visible;
  }

  .hero-editorial-art img {
    aspect-ratio: 1 / 1.22;
    object-fit: contain;
    object-position: right bottom;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 22px 26px rgba(124,45,18,.18));
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 12%, #000 28%, #000 100%);
  }
}

@media (max-width: 390px) {
  .premium-hero .row {
    min-height: 470px;
  }

  .hero-showcase {
    right: -5.2rem;
    width: 80%;
  }
}

/* Admin-managed hero images: keep uploaded banners bold, not thumbnail-like. */
.hero-showcase {
  overflow: visible;
}

.hero-editorial-art {
  width: min(760px, 112%);
  max-width: none;
}

.hero-editorial-art img {
  width: 100%;
  height: min(64vh, 660px);
  min-height: 480px;
  object-fit: contain;
  object-position: center bottom;
}

@media (min-width: 992px) {
  .hero-showcase {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-right: -3rem;
  }

  .hero-editorial-art {
    width: min(820px, 118%);
  }

  .hero-shelf-card {
    right: 2%;
    bottom: 1.5rem;
  }
}

@media (max-width: 575px) {
  .premium-hero .row {
    min-height: 540px;
  }

  .hero-showcase {
    right: -5.6rem;
    bottom: -1.25rem;
    width: 86%;
  }

  .hero-editorial-art {
    width: 100%;
  }

  .hero-editorial-art img {
    height: 390px;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: right bottom;
    mix-blend-mode: normal;
    mask-image: none;
    filter: drop-shadow(0 24px 28px rgba(6,95,53,.18));
  }
}

@media (max-width: 390px) {
  .premium-hero .row {
    min-height: 510px;
  }

  .hero-showcase {
    right: -6.2rem;
    width: 92%;
  }

  .hero-editorial-art img {
    height: 365px;
  }
}

/* Hero composition refinement: image higher, cleaner, and tucked to the side. */
@media (min-width: 992px) {
  .hero-showcase {
    align-items: flex-start;
    margin-right: -7rem;
    padding-top: 7.5rem;
  }

  .hero-editorial-art {
    width: min(640px, 98%);
  }

  .hero-editorial-art img {
    height: min(55vh, 560px);
    min-height: 410px;
    object-position: center top;
  }

  .hero-shelf-card {
    right: -1.5rem;
    bottom: 1.1rem;
    transform: scale(.92);
    transform-origin: right bottom;
  }
}

@media (max-width: 575px) {
  .hero-showcase {
    right: -6.8rem;
    bottom: 1.4rem;
    width: 78%;
  }

  .hero-editorial-art img {
    height: 345px;
    object-position: right top;
  }
}

/* Final hero scale: larger image, still elevated and side-aligned. */
@media (min-width: 992px) {
  .hero-showcase {
    margin-right: -3rem;
    padding-top: 1.75rem;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .hero-editorial-art {
    width: min(940px, 132%);
    margin-left: -4rem;
  }

  .hero-editorial-art img {
    height: min(76vh, 760px);
    min-height: 600px;
    object-position: center bottom;
  }

  .hero-shelf-card {
    right: -1rem;
    bottom: .25rem;
  }
}

@media (max-width: 575px) {
  .hero-showcase {
    right: -5.6rem;
    bottom: 0;
    width: 96%;
  }

  .hero-editorial-art img {
    height: 430px;
    object-position: right bottom;
  }
}

/* Homepage hero carousel: admin sliders are real frontend slides. */
.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  min-height: inherit;
}

.hero-carousel .carousel-item {
  transition: transform .7s ease, opacity .7s ease;
}

.hero-carousel-control {
  top: auto;
  bottom: 2.25rem;
  width: 42px;
  height: 42px;
  border: 1px solid #FED7AA;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: #8A4217;
  opacity: 1;
  box-shadow: 0 14px 28px rgba(124,45,18,.1);
}

.hero-carousel-control:hover {
  background: #065F35;
  border-color: #065F35;
  color: #FFFFFF;
}

.hero-carousel-prev {
  left: auto;
  right: 6.25rem;
}

.hero-carousel-next {
  right: 3rem;
}

.hero-carousel-indicators {
  right: auto;
  bottom: 2.65rem;
  left: 3rem;
  justify-content: flex-start;
  margin: 0;
  gap: .45rem;
}

.hero-carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(138,66,23,.28);
  opacity: 1;
}

.hero-carousel-indicators .active {
  width: 26px;
  border-radius: 999px;
  background: #D12A1F;
}

@media (max-width: 991px) {
  .hero-carousel-control,
  .hero-carousel-indicators {
    display: none;
  }
}

/* Stable hero/carousel composition: keep slides centered, not pushed to the browser edge. */
.premium-hero .container-fluid {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 4.5rem) !important;
}

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  width: 100%;
}

.hero-carousel .carousel-item {
  min-height: calc(100vh - 198px);
}

@media (min-width: 992px) {
  .premium-hero {
    min-height: calc(100vh - 122px);
    padding-top: clamp(2rem, 3.6vw, 3.6rem);
    padding-bottom: 1.35rem;
  }

  .premium-hero .row {
    min-height: calc(100vh - 210px);
  }

  .hero-copy {
    max-width: 620px;
    padding-top: 0;
  }

  .hero-copy h1 {
    font-size: clamp(4.3rem, 5.3vw, 6.1rem);
  }

  .hero-showcase {
    min-height: calc(100vh - 220px);
    margin-right: 0;
    padding-top: 0;
    justify-content: center;
  }

  .hero-editorial-art {
    width: min(760px, 110%);
    margin-left: 0;
    margin-right: -2rem;
    transform: translateY(1rem);
  }

  .hero-editorial-art img {
    height: min(68vh, 690px);
    min-height: 560px;
    object-position: center bottom;
  }

  .hero-shelf-card {
    right: 1.25rem;
    bottom: .9rem;
    transform: none;
  }

  .hero-carousel-indicators {
    left: clamp(1.5rem, 4vw, 4.5rem);
  }
}

@media (min-width: 1600px) {
  .premium-hero .container-fluid {
    width: min(100%, 1500px);
  }

  .hero-editorial-art {
    width: min(820px, 112%);
  }
}

@media (max-width: 991px) {
  .premium-hero .container-fluid {
    padding-inline: 1.25rem !important;
  }
}

/* Promo card composition: tighter campaign tiles with the visual anchored to the side. */
.promo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.premium-promo {
  position: relative;
  min-height: 178px;
  padding: 1.45rem 1.55rem;
  justify-content: flex-end;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 58%, rgba(255,247,237,.9) 100%);
  overflow: hidden;
}

.premium-promo::before {
  display: block;
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 52%, rgba(255,255,255,.5) 70%, rgba(255,255,255,.1) 100%);
  pointer-events: none;
}

.promo-card-image {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 48%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
}

.premium-promo .promo-icon {
  position: absolute;
  right: 1.35rem;
  top: 50%;
  z-index: 0;
  display: inline-flex;
  width: 88px;
  height: 88px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #FFF7ED;
  color: rgba(209,42,31,.3);
  font-size: 2.15rem;
}

.premium-promo:has(.promo-card-image) .promo-icon {
  display: none;
}

.premium-promo .eyebrow,
.premium-promo h5,
.premium-promo p {
  position: relative;
  z-index: 2;
  max-width: 56%;
}

.premium-promo .eyebrow {
  position: absolute;
  top: 1.35rem;
  left: 1.55rem;
}

.premium-promo h5 {
  margin: 0 0 .4rem;
  font-size: 1.1rem;
}

.premium-promo p {
  font-size: .88rem;
}

@media (max-width: 767px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }

  .premium-promo {
    min-height: 164px;
  }
}

/* Premium frontend modal system */
.bm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 15%, rgba(120,179,77,.16), transparent 32%),
    rgba(15,23,42,.56);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.bm-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.bm-modal {
  position: relative;
  width: min(430px, 100%);
  padding: 2rem;
  border: 1px solid rgba(226,232,240,.88);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,250,245,.96));
  box-shadow: 0 28px 90px rgba(15,23,42,.24);
  color: #0F172A;
  text-align: center;
  transform: translateY(14px) scale(.96);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}

.bm-modal-overlay.is-visible .bm-modal {
  transform: translateY(0) scale(1);
}

.bm-modal-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  width: 38px;
  height: 38px;
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  background: #FFFFFF;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.bm-modal-close:hover {
  color: #0F172A;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15,23,42,.1);
}

.bm-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.15rem;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F0FDF4;
  color: #065F35;
  border: 1px solid rgba(120,179,77,.38);
  box-shadow: 0 16px 32px rgba(6,95,53,.12);
  font-size: 1.35rem;
}

.bm-modal-icon.danger {
  background: #FFF7ED;
  color: #D12A1F;
  border-color: rgba(249,115,22,.28);
  box-shadow: 0 16px 32px rgba(209,42,31,.1);
}

.bm-modal h3 {
  margin: 0 0 .65rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #0F172A;
}

.bm-modal p {
  margin: 0 auto 1.5rem;
  max-width: 32ch;
  color: #64748B;
  line-height: 1.65;
}

.bm-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.bm-modal-btn {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: .92rem;
  transition: all .2s ease;
}

.bm-modal-btn.secondary {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #E2E8F0;
}

.bm-modal-btn.primary,
.bm-modal-btn.danger {
  color: #FFFFFF;
  box-shadow: 0 16px 34px rgba(6,95,53,.2);
}

.bm-modal-btn.primary {
  background: #065F35;
}

.bm-modal-btn.danger {
  background: #D12A1F;
  box-shadow: 0 16px 34px rgba(209,42,31,.2);
}

.bm-modal-btn:hover {
  transform: translateY(-2px);
}

.bm-modal-btn.secondary:hover {
  border-color: rgba(6,95,53,.35);
  box-shadow: 0 14px 28px rgba(15,23,42,.08);
}

@media (max-width: 575px) {
  .bm-modal-overlay {
    align-items: end;
    padding: 1rem;
  }

  .bm-modal {
    padding: 1.65rem;
    border-radius: 24px;
  }

  .bm-modal h3 {
    font-size: 1.28rem;
  }

  .bm-modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cart-fly {
    display: none;
  }
}

/* Header brand presence: compensate for whitespace-heavy uploaded logo artwork. */
@media (min-width: 992px) {
  .main-navbar {
    padding: .95rem 0;
  }

  .navbar-brand {
    flex: 0 0 auto;
    margin-right: clamp(1.5rem, 3vw, 3rem) !important;
  }

  .brand-logo-img {
    width: 244px;
    max-width: 244px;
    height: 62px;
    object-fit: contain;
    object-position: left center;
  }
}

@media (min-width: 1200px) {
  .brand-logo-img {
    width: 270px;
    max-width: 270px;
    height: 66px;
  }
}

@media (max-width: 991px) {
  .brand-logo-img {
    width: 188px;
    max-width: 58vw;
    height: 54px;
  }
}

@media (max-width: 575px) {
  .brand-logo-img {
    width: 172px;
    max-width: 54vw;
    height: 50px;
  }
}

/* Mobile hero polish: compact campaign layout with stronger hierarchy and cleaner image framing. */
@media (max-width: 575px) {
  .premium-hero {
    background: #F7F7F5;
  }

  .premium-hero .container-fluid {
    padding: 0 !important;
  }

  .hero-carousel .carousel-item {
    min-height: auto;
  }

  .premium-hero .row {
    min-height: 610px;
    padding: 2.65rem 1.25rem 2rem;
    background:
      radial-gradient(circle at 82% 50%, rgba(120,179,77,.36) 0 24%, transparent 25%),
      radial-gradient(circle at 100% 12%, rgba(249,115,22,.2), transparent 36%),
      linear-gradient(145deg, #FFF8EF 0%, #FFFDF8 50%, #F0FDF4 100%);
  }

  .hero-copy {
    width: min(68%, 300px);
    padding-top: .15rem;
  }

  .hero-eyebrow {
    display: inline-flex;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: .35rem .72rem;
    border-radius: 999px;
    background: rgba(255,255,255,.84);
    color: #B45309;
    font-size: .66rem;
    box-shadow: 0 10px 22px rgba(124,45,18,.08);
  }

  .hero-copy h1 {
    margin-bottom: .85rem;
    color: #065F35;
    font-size: clamp(2.15rem, 12vw, 3.45rem);
    line-height: .98;
    font-weight: 900;
  }

  .hero-copy p {
    max-width: 27ch;
    margin-bottom: 1.15rem;
    color: #26364A;
    font-size: .92rem;
    line-height: 1.52;
    font-weight: 700;
  }

  .hero-actions {
    display: block;
  }

  .hero-actions .btn-accent {
    min-height: 48px;
    padding: .78rem 1.25rem;
    background: #065F35;
    box-shadow: 0 18px 32px rgba(6,95,53,.24);
    font-size: .88rem;
  }

  .hero-showcase {
    right: -4.75rem;
    bottom: .1rem;
    width: 82%;
  }

  .hero-editorial-art img {
    height: 430px;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 24px 30px rgba(6,95,53,.18));
  }

  .hero-shelf-card {
    display: none;
  }

  .premium-feature-strip {
    margin-top: 0;
    padding-top: 1.1rem;
  }
}

@media (max-width: 390px) {
  .premium-hero .row {
    min-height: 570px;
    padding-inline: 1rem;
  }

  .hero-copy {
    width: 70%;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .hero-copy p {
    font-size: .86rem;
  }

  .hero-showcase {
    right: -5.35rem;
    width: 88%;
  }

  .hero-editorial-art img {
    height: 398px;
  }
}

.book-review-link {
  display: inline-flex;
  align-items: center;
  padding: .25rem .65rem;
  border: 1px solid rgba(6,95,53,.18);
  border-radius: 999px;
  color: #065F35;
  background: #F0FDF4;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.book-review-link:hover {
  color: #FFFFFF;
  background: #065F35;
}

/* Family-friendly polish: brighter moments without losing the adult bookstore feel. */
:root {
  --kid-sun: #FDE68A;
  --kid-mint: #BBF7D0;
  --kid-sky: #BAE6FD;
  --kid-berry: #FBCFE8;
}

.category-card,
.feature-item,
.book-card,
.author-card,
.premium-promo {
  position: relative;
  overflow: hidden;
}

.category-card::before,
.feature-item::before,
.author-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 76px;
  height: 76px;
  border-radius: 0 0 999px 0;
  background: rgba(253,230,138,.42);
  pointer-events: none;
}

.category-card:nth-child(4n + 2)::before,
.feature-item:nth-child(4n + 2)::before,
.author-card:nth-child(4n + 2)::before {
  background: rgba(187,247,208,.48);
}

.category-card:nth-child(4n + 3)::before,
.feature-item:nth-child(4n + 3)::before,
.author-card:nth-child(4n + 3)::before {
  background: rgba(186,230,253,.48);
}

.category-card:nth-child(4n)::before,
.feature-item:nth-child(4n)::before,
.author-card:nth-child(4n)::before {
  background: rgba(251,207,232,.48);
}

.category-card > *,
.feature-item > *,
.author-card > * {
  position: relative;
  z-index: 1;
}

.cat-icon,
.feature-icon {
  background: linear-gradient(135deg, #FFF7ED, #F0FDF4);
}

.book-card:hover {
  border-color: rgba(14,165,233,.22);
  box-shadow: 0 18px 46px rgba(14,165,233,.12), 0 14px 34px rgba(6,95,53,.08);
}

.author-avatar {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.9), transparent 26%),
    linear-gradient(135deg, var(--kid-sun), var(--kid-mint) 48%, var(--kid-sky));
  color: #064E3B;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 12px 22px rgba(6,95,53,.1);
}

.author-card:nth-child(4n + 2) .author-avatar {
  background: linear-gradient(135deg, #FBCFE8, #FDE68A);
  color: #831843;
}

.author-card:nth-child(4n + 3) .author-avatar {
  background: linear-gradient(135deg, #BAE6FD, #C4B5FD);
  color: #1E3A8A;
}

.author-card:nth-child(4n) .author-avatar {
  background: linear-gradient(135deg, #BBF7D0, #FDBA74);
  color: #14532D;
}

.hero-offer-line {
  background: linear-gradient(135deg, #FFFFFF, #FFF7ED 58%, #F0FDF4);
}

.section-eyebrow {
  color: #D12A1F;
}

/* Mobile cart: table becomes readable product cards instead of squeezed columns. */
@media (max-width: 767px) {
  .page-breadcrumb {
    padding: .9rem 0;
  }

  section.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
  }

  #cart-items-wrapper h2,
  .container-fluid > h2.fw-800 {
    font-size: 1.65rem;
    line-height: 1.2;
    margin-bottom: 1.15rem !important;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table {
    border-collapse: separate;
    border-spacing: 0 1rem;
  }

  .cart-table tbody {
    padding: .75rem;
  }

  .cart-table tr[data-cart-row] {
    position: relative;
    margin: 0 0 1rem;
    padding: .95rem .95rem .9rem;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 14px 32px rgba(15,23,42,.07);
  }

  .cart-table td {
    border: 0;
    padding: .35rem 0 !important;
  }

  .cart-product-cell {
    padding-right: 2.6rem !important;
  }

  .cart-product-cell .d-flex {
    align-items: flex-start !important;
    gap: .85rem !important;
  }

  .cart-item-img {
    flex: 0 0 auto;
    width: 72px;
    height: 102px;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(15,23,42,.12);
  }

  .cart-product-copy a {
    display: -webkit-box !important;
    max-width: 100%;
    color: #0F172A !important;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 800 !important;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .cart-product-copy small {
    display: block;
    margin-top: .35rem;
    font-size: .84rem;
    line-height: 1.35;
  }

  .cart-table td:not(.cart-product-cell):not(.cart-remove-cell) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 38px;
    color: #0F172A;
    font-size: .95rem;
    font-weight: 800;
  }

  .cart-table td:not(.cart-product-cell):not(.cart-remove-cell)::before {
    content: attr(data-label);
    color: #64748B;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .cart-qty-input {
    width: 76px !important;
    height: 42px;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
  }

  .item-subtotal {
    color: #065F35;
    font-size: 1rem;
  }

  .cart-remove-cell {
    position: absolute;
    top: .85rem;
    right: .85rem;
    width: auto !important;
    padding: 0 !important;
  }

  .btn-remove-cart {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #FEF2F2;
  }

  #cart-items-wrapper .mt-3.d-flex {
    margin-bottom: 1rem;
  }

  #cart-items-wrapper .btn-outline-secondary {
    width: 100%;
    justify-content: center;
    padding: .75rem 1rem;
    font-weight: 800;
  }

  .cart-summary-card {
    padding: 1.25rem;
    border-radius: 22px;
  }
}
