/*
Theme Name: Folio & Quill - Penguin Literary Bookstore
Theme URI: https://folioandquill.com
Author: Folio Press
Author URI: https://folioandquill.com
Description: High-end Western literary bookstore theme inspired by Penguin Classics, Smyth-sewn clothbound editions, direct 1-click WhatsApp ordering, and instant Bank / Raast transfers.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: folio-quill
*/
/* ==========================================================================
   THE FOLIO & QUILL — WESTERN LITERARY & PENGUIN CLASSICS STYLESHEET
   Aesthetic: Heritage Editorial, Warm Paper, Classic Typography, Smyth-Sewn Cloth
   ========================================================================== */

:root {
  /* Warm Paper & Heritage Palette */
  --bg-paper: #FAF7F2;
  --bg-paper-alt: #F3EFE6;
  --bg-card: #FFFFFF;
  --bg-dark: #1A1A1A;
  
  --ink-primary: #1F1E1D;
  --ink-secondary: #4A4845;
  --ink-muted: #7A7874;
  --ink-faint: #B5B2AB;

  /* Penguin Heritage Accents */
  --penguin-orange: #EB5E28;
  --penguin-orange-hover: #D44810;
  --heritage-crimson: #8C2D19;
  --cloth-forest: #1F382B;
  --cloth-navy: #182A3A;
  --gold-foil: #C5A059;
  --border-light: #E8E3D8;
  --border-dark: #D4CDBC;

  /* WhatsApp Brand */
  --wa-green: #25D366;
  --wa-dark: #128C7E;

  /* Typography */
  --font-serif-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-serif-reading: 'Newsreader', Garamond, Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Transitions */
  --ease-editorial: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-paper);
}

body {
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background-color: var(--bg-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
  background-color: var(--bg-dark);
  color: #F5EFEB;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.marquee-wrap .dot {
  color: var(--penguin-orange);
  font-size: 0.9rem;
}

.demand-highlight {
  color: #FFE5A3;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(224, 86, 36, 0.25);
  padding: 2px 10px;
  border-radius: 3px;
  border: 1px solid rgba(224, 86, 36, 0.45);
}

.nav-link.nav-highlight {
  color: #FFF !important;
  background: var(--penguin-orange) !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  white-space: nowrap !important;
  padding: 6px 12px !important;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(224, 86, 36, 0.25);
  transition: all 0.2s ease;
  display: inline-block;
}

.nav-link.nav-highlight:hover {
  background: #C44315 !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background-color: var(--bg-paper);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 20px;
}

.brand-crest {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crest-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-primary);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  font-weight: 600;
}

/* Nav Menu */
.main-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--penguin-orange);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--penguin-orange);
}

/* Actions: Search & Cart */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-paper-alt);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 6px 12px;
  width: 250px;
  transition: all 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--penguin-orange);
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(235, 94, 40, 0.1);
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.82rem;
  width: 100%;
  color: var(--ink-primary);
}

.search-box input::placeholder {
  color: var(--ink-muted);
}

.search-icon-btn {
  font-size: 0.85rem;
  opacity: 0.6;
}

.cart-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-dark);
  color: #FFF;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s ease;
}

.cart-trigger-btn:hover {
  background: var(--penguin-orange);
}

.cart-badge {
  background: var(--penguin-orange);
  color: #FFF;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.cart-trigger-btn:hover .cart-badge {
  background: #FFF;
  color: var(--bg-dark);
}

.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   SUB-NAV RIBBON (GENRE PILLS)
   ========================================================================== */
.sub-nav-ribbon {
  background: var(--bg-paper-alt);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.ribbon-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ribbon-title {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.genre-pills {
  display: flex;
  gap: 8px;
}

.genre-pill {
  padding: 6px 14px;
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: all 0.2s ease;
}

.genre-pill:hover,
.genre-pill.active {
  background: var(--ink-primary);
  color: var(--bg-paper);
  border-color: var(--ink-primary);
}

/* ==========================================================================
   HERO EDITORIAL SECTION (PENGUIN HERITAGE)
   ========================================================================== */
.editorial-hero {
  padding: 70px 0 60px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(235, 94, 40, 0.04) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.editorial-stamp {
  margin-bottom: 16px;
}

.stamp-border {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--heritage-crimson);
  border: 1px solid var(--heritage-crimson);
  padding: 4px 10px;
  border-radius: 2px;
}

.hero-headline {
  font-family: var(--font-serif-display);
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin-bottom: 20px;
}

.hero-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin-bottom: 30px;
  max-width: 600px;
}

/* Featured Book Meta Card */
.hero-meta-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--penguin-orange);
  padding: 24px 28px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--penguin-orange);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.featured-book-title {
  font-family: var(--font-serif-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.featured-author {
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 12px;
}

.featured-blurb {
  font-family: var(--font-serif-reading);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-secondary);
  border-left: 2px solid var(--border-light);
  padding-left: 12px;
  margin-bottom: 18px;
}

.hero-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px dashed var(--border-light);
  border-bottom: 1px dashed var(--border-light);
  margin-bottom: 20px;
}

.book-format {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.book-price {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.hero-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 3px;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--wa-dark);
  color: #FFF;
}

.btn-primary:hover {
  background: #0d6e62;
  box-shadow: 0 4px 12px rgba(18, 140, 126, 0.25);
}

.btn-secondary {
  background: var(--bg-paper-alt);
  color: var(--ink-primary);
  border: 1px solid var(--border-dark);
}

.btn-secondary:hover {
  background: #E8E2D5;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFF;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #1EBE5D;
}

.btn-block {
  width: 100%;
}

/* Hero 3D Book Presentation */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.book-stage {
  perspective: 1200px;
  position: relative;
}

.book-3d-card {
  width: 290px;
  height: 430px;
  position: relative;
  transform: rotateY(-18deg) rotateX(6deg);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-editorial);
  cursor: pointer;
}

.book-3d-card:hover {
  transform: rotateY(-8deg) rotateX(2deg) translateY(-8px);
}

.book-cover-wrap {
  width: 100%;
  height: 100%;
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  box-shadow: 
    -4px 0 0 #B8860B, /* Gold cloth spine edge */
    -8px 4px 12px rgba(0, 0, 0, 0.25),
    15px 25px 45px rgba(0, 0, 0, 0.3);
  position: relative;
  background: #2A4B7C;
}

.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
}

.book-spine-lighting {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.penguin-band {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--penguin-orange);
  color: #FFF;
  text-align: center;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  border-top: 2px solid #FFF;
}

.book-shadow {
  position: absolute;
  bottom: -25px;
  left: 5%;
  width: 90%;
  height: 25px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
  filter: blur(6px);
  z-index: -1;
}

.provenance-note {
  margin-top: 40px;
  font-size: 0.76rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.prov-dot {
  width: 6px;
  height: 6px;
  background: var(--gold-foil);
  border-radius: 50%;
}

/* ==========================================================================
   CATALOG SECTION & BOOKS GRID
   ========================================================================== */
.catalog-section {
  padding: 80px 0;
}

.section-header {
  max-width: 650px;
  margin: 0 auto 50px;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--penguin-orange);
  margin-bottom: 10px;
}

.serif-heading {
  font-family: var(--font-serif-display);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

.section-subtext {
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

.ornament-divider {
  margin-top: 18px;
  color: var(--gold-foil);
  letter-spacing: 0.3em;
  font-size: 0.8rem;
}

/* Books Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 36px 28px;
}

/* Individual Book Card (Heritage Style) */
.book-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: var(--border-dark);
}

.book-card-art {
  position: relative;
  height: 330px;
  background: var(--bg-paper-alt);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
}

.book-card-art img {
  width: 78%;
  height: 90%;
  object-fit: cover;
  box-shadow: 
    -3px 0 0 #D4AF37, /* Gold spine mark */
    5px 8px 18px rgba(0, 0, 0, 0.22);
  border-radius: 2px 5px 5px 2px;
  transition: transform 0.3s ease;
}

.book-card:hover .book-card-art img {
  transform: scale(1.03) rotateY(-4deg);
}

.book-badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(26, 26, 26, 0.85);
  color: #FFF;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

.book-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-author-meta {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.book-title {
  font-family: var(--font-serif-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.book-summary {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card-footer {
  margin-top: auto;
  border-top: 1px dashed var(--border-light);
  padding-top: 14px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.card-format {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.card-price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-primary);
}

/* Card Button Actions */
.card-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-card-wa {
  grid-column: 1 / -1;
  background: var(--wa-green);
  color: #FFF;
  padding: 9px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-card-wa:hover {
  background: #1EBE5D;
}

.btn-card-excerpt {
  background: var(--bg-paper-alt);
  color: var(--ink-primary);
  border: 1px solid var(--border-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px;
  border-radius: 3px;
  text-align: center;
}

.btn-card-excerpt:hover {
  background: #E8E2D5;
}

.btn-card-bag {
  background: transparent;
  color: var(--ink-secondary);
  border: 1px solid var(--border-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px;
  border-radius: 3px;
  text-align: center;
}

.btn-card-bag:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

/* ==========================================================================
   SANCTUARY EDITORIAL CALLOUT
   ========================================================================== */
.sanctuary-editorial {
  background: var(--cloth-forest);
  color: #F7F5EE;
  padding: 90px 0;
  position: relative;
}

.sanctuary-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.eyebrow-light {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-foil);
  margin-bottom: 12px;
}

.sanctuary-heading {
  font-family: var(--font-serif-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 8px;
}

.sanctuary-cite {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #C0CFB2;
  margin-bottom: 24px;
}

.sanctuary-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #DDE5D4;
  margin-bottom: 36px;
}

.trust-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.trust-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  color: #FFF;
  margin-bottom: 2px;
}

.trust-item p {
  font-size: 0.82rem;
  color: #C0CFB2;
  margin: 0;
}

.sanctuary-image img {
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   BANK DETAILS & RAASRT SECTION
   ========================================================================== */
.bank-section {
  padding: 80px 0;
  background: var(--bg-paper);
}

.bank-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 48px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.bank-header {
  max-width: 650px;
  margin-bottom: 36px;
}

.bank-title {
  font-family: var(--font-serif-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 10px;
}

.bank-desc {
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.bank-accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.bank-account-box {
  background: var(--bg-paper);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 24px;
  position: relative;
}

.bank-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--heritage-crimson);
  color: #FFF;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.08em;
}

.bank-badge.secondary {
  background: var(--cloth-navy);
}

.bank-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

.bank-logo-icon {
  font-size: 1.6rem;
}

.bank-name-row h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.bank-name-row p {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.account-field {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.field-val-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFF;
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: 4px;
}

.field-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.field-val.mono {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.copy-btn {
  background: var(--bg-paper-alt);
  border: 1px solid var(--border-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  color: var(--ink-secondary);
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--ink-primary);
  color: #FFF;
}

.copy-btn.copied {
  background: var(--wa-green);
  color: #FFF;
  border-color: var(--wa-green);
}

/* Transfer Steps */
.transfer-steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px dashed var(--border-light);
  padding-top: 30px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--penguin-orange);
  color: #FFF;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.step-card strong {
  font-size: 0.92rem;
  color: var(--ink-primary);
}

.step-card p {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #141312;
  color: #E8E5DD;
  padding-top: 70px;
  border-top: 1px solid #2B2927;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  font-family: var(--font-serif-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFF;
  margin-bottom: 14px;
}

.footer-bio {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #A39F97;
  margin-bottom: 16px;
}

.footer-contact {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #D4CFBF;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--penguin-orange);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.85rem;
  color: #B5B0A4;
}

.footer-col ul a:hover {
  color: #FFF;
}

.newsletter-sub {
  font-size: 0.82rem;
  color: #A39F97;
  margin-bottom: 14px;
}

.footer-form {
  display: flex;
  background: #242220;
  border: 1px solid #383532;
  border-radius: 4px;
  overflow: hidden;
}

.footer-form input {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 14px;
  color: #FFF;
  font-size: 0.82rem;
  outline: none;
}

.footer-form button {
  background: var(--penguin-orange);
  color: #FFF;
  padding: 0 16px;
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid #242220;
  padding: 24px 0;
  font-size: 0.75rem;
  color: #7D7971;
}

.bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom-links {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   MODAL: LOOK INSIDE EXCERPT READER
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 17, 16, 0.78);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.is-open {
  display: flex;
  opacity: 1;
}

.book-reader-card {
  background: #FFF;
  width: min(980px, 100%);
  max-height: 90vh;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.8rem;
  color: var(--ink-secondary);
  line-height: 1;
  z-index: 10;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--penguin-orange);
}

.reader-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 80vh;
}

.reader-cover-pane {
  background: var(--bg-paper-alt);
  border-right: 1px solid var(--border-dark);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

.reader-img {
  width: 170px;
  height: 250px;
  object-fit: cover;
  border-radius: 2px 6px 6px 2px;
  box-shadow: 
    -3px 0 0 #B8860B,
    8px 12px 24px rgba(0, 0, 0, 0.25);
  margin-bottom: 24px;
}

.reader-meta {
  width: 100%;
  text-align: center;
}

.reader-edition-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--heritage-crimson);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.reader-title {
  font-family: var(--font-serif-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.reader-author {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 14px;
}

.reader-price {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 16px;
}

/* Excerpt Paper Pane */
.reader-paper-pane {
  background: #FAF7F0;
  padding: 40px 48px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.paper-texture {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.reader-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 28px;
}

.running-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
}

.font-controls button {
  background: var(--bg-paper-alt);
  border: 1px solid var(--border-dark);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 4px;
}

.reader-page-content {
  font-family: var(--font-serif-reading);
  font-size: 1.08rem;
  line-height: 1.85;
  color: #242220;
  flex-grow: 1;
}

.reader-page-content p {
  margin-bottom: 18px;
  text-align: justify;
}

/* Classical Literary Drop Cap */
.reader-page-content p:first-of-type::first-letter {
  font-family: var(--font-serif-display);
  font-size: 3.8rem;
  float: left;
  line-height: 0.8;
  margin: 4px 10px 0 0;
  color: var(--heritage-crimson);
  font-weight: 700;
}

.reader-bottom-nav {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   MODAL: WHATSAPP QUICK ORDER SHEET
   ========================================================================== */
.whatsapp-card {
  background: #FFF;
  width: min(520px, 100%);
  border-radius: 6px;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  max-height: 92vh;
  overflow-y: auto;
}

.wa-header {
  text-align: center;
  margin-bottom: 20px;
}

.wa-badge-icon {
  width: 48px;
  height: 48px;
  background: #E8F9EE;
  color: var(--wa-green);
  border-radius: 50%;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.wa-header h3 {
  font-family: var(--font-serif-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.wa-header p {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.order-summary-box {
  background: var(--bg-paper);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 22px;
}

.order-summary-box h5 {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--penguin-orange);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.order-summary-title {
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.order-summary-price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 4px;
}

.wa-form .form-group {
  margin-bottom: 16px;
}

.wa-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 5px;
}

.wa-form input,
.wa-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  background: #FFF;
  color: var(--ink-primary);
  outline: none;
}

.wa-form input:focus,
.wa-form textarea:focus {
  border-color: var(--wa-green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-paper);
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  cursor: pointer;
}

.radio-label input {
  width: auto;
}

.wa-disclaimer {
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 12px;
}

/* ==========================================================================
   BAG DRAWER (CART)
   ========================================================================== */
.bag-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bag-drawer-backdrop.is-open {
  display: block;
  opacity: 1;
}

.bag-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  bottom: 0;
  width: min(400px, 100%);
  background: #FFF;
  z-index: 1000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.35s var(--ease-editorial);
}

.bag-drawer.is-open {
  right: 0;
}

.bag-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bag-drawer-header h3 {
  font-family: var(--font-serif-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.bag-close-btn {
  font-size: 1.8rem;
  color: var(--ink-muted);
  line-height: 1;
}

.bag-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.empty-bag-state {
  text-align: center;
  padding: 50px 20px;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

.bag-item-card {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border-light);
}

.bag-item-img {
  width: 55px;
  height: 80px;
  object-fit: cover;
  border-radius: 2px;
}

.bag-item-details {
  flex-grow: 1;
}

.bag-item-title {
  font-family: var(--font-serif-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.bag-item-author {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.bag-item-price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 4px;
}

.bag-item-remove {
  font-size: 0.72rem;
  color: var(--heritage-crimson);
  text-decoration: underline;
  margin-top: 4px;
}

.bag-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-paper);
}

.bag-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bag-subtotal-price {
  font-family: var(--font-mono);
  color: var(--ink-primary);
}

.delivery-hint {
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

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

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (FOR QUICK HELP)
   ========================================================================== */
.floating-whatsapp-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
}

.floating-wa-btn {
  background: var(--wa-green);
  color: #FFF;
  border-radius: 30px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-wa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.wa-bubble-icon {
  font-size: 1.2rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .sanctuary-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bank-accounts-grid {
    grid-template-columns: 1fr;
  }

  .transfer-steps-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reader-layout {
    grid-template-columns: 1fr;
    height: 85vh;
  }

  .reader-cover-pane {
    display: none; /* Hide left pane on mobile reader for max text room */
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
  }

  .main-nav {
    display: none; /* Can be opened via mobile menu */
  }

  .search-box {
    display: none; /* Move search to drawer if needed */
  }

  .hero-headline {
    font-size: 2.1rem;
  }

  .bank-card {
    padding: 24px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .floating-wa-btn .wa-bubble-text {
    display: none;
  }

  .floating-wa-btn {
    padding: 14px;
    border-radius: 50%;
  }
}


/* Format Selection Pills (Paperback / Hardcover) */
.format-toggle-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.format-pill {
  flex: 1;
  padding: 5px 8px;
  font-size: 0.73rem;
  font-weight: 600;
  border: 1px solid var(--border-dark);
  border-radius: 3px;
  background: var(--bg-paper-alt);
  color: var(--ink-secondary);
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.format-pill.active {
  background: var(--ink-primary);
  color: #FFF;
  border-color: var(--ink-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.format-pill:hover:not(.active) {
  background: #E8E2D5;
  color: var(--ink-primary);
}
