@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --green: #5EC733;
  --green-dark: #4aaa27;
  --black: #111111;
  --white: #ffffff;
  --off-white: #F5F5F0;
  --cream: #EEEDE8;
  --shelf-bg: #1A1A1A;
  --shelf-wood: #3D2B15;
  --shelf-edge: #5C3A1E;
  --text-muted: #777770;
  --border: #DDDDD8;
  --overlay-bg: rgba(17, 17, 17, 0.95);
  --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.22);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

/* ============================================================
   SITE NAV (white bar)
   ============================================================ */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.site-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo-link { display: flex; align-items: center; flex-shrink: 0; }

.site-logo-nav {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--black);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { opacity: 1; }

.nav-link-active {
  opacity: 1 !important;
  font-weight: 700 !important;
  position: relative;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}

.nav-social-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  opacity: 0.45 !important;
  transition: opacity 0.2s !important;
}

.nav-social:hover { opacity: 1 !important; }

.btn-cta-nav {
  background: #224802;
  color: #ffffff !important;
  opacity: 1 !important;
  padding: 12px 22px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-cta-nav:hover { background: #1a3802 !important; transform: translateY(-1px); }

.cta-arrow { font-size: 16px; line-height: 1; }

/* ============================================================
   HEADER / HERO
   ============================================================ */
.site-header {
  background: #224802;
  color: var(--white);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 40px 56px;
}

/* Legacy — kept for reference, no longer in HTML */
.header-top { display: none; }
.site-logo { height: 56px; width: auto; }
.header-nav { display: none; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--black);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 900px;
}

.hero-title em {
  font-style: normal;
  color: var(--green);
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--black);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}

.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  background: var(--white);
  border-bottom: 2px solid var(--black);
  position: sticky;
  top: 72px;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.filter-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-inner::-webkit-scrollbar { display: none; }

.filter-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.filter-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin: 0 16px;
  flex-shrink: 0;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-btn {
  padding: 18px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
}

.filter-btn:hover { color: var(--black); }

.filter-btn.active {
  color: var(--black);
  font-weight: 700;
  border-bottom-color: var(--green);
}

.filter-select {
  appearance: none;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 32px 8px 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.filter-select:focus { outline: none; border-color: var(--green); }

.publisher-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.publisher-site-link:hover { border-color: var(--black); color: var(--black); background: var(--cream); }
.publisher-site-link svg { width: 11px; height: 11px; }

.filter-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 0 0 24px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

/* ============================================================
   CATEGORY SECTION
   ============================================================ */
.category-section {
  margin-top: 64px;
  transition: opacity 0.3s;
}

.category-section.hidden { display: none; }
.category-section.dimmed { opacity: 0.25; pointer-events: none; }

.category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--black);
}

.category-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.category-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ============================================================
   SHELF
   ============================================================ */
.shelf-wrapper {
  position: relative;
}

.shelf {
  display: flex;
  gap: 14px;
  padding: 24px 20px 28px;
  background: transparent;
  border-radius: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.shelf::-webkit-scrollbar { height: 4px; }
.shelf::-webkit-scrollbar-track { background: transparent; }
.shelf::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.shelf:active { cursor: grabbing; }

/* Shelf plank — removed */
.shelf-plank { display: none; }

/* Scroll arrows */
.shelf-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-calc(50% + 8px));
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.15s;
  box-shadow: var(--shadow);
}

.shelf-arrow:hover { background: var(--green); transform: translateY(calc(-50% - 8px)) scale(1.05); }
.shelf-arrow-left { left: -20px; }
.shelf-arrow-right { right: -20px; }
.shelf-arrow svg { width: 16px; height: 16px; }

/* ============================================================
   BOOK CARD
   ============================================================ */
.book-card {
  flex: 0 0 130px;
  width: 130px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.25s;
  transform-origin: bottom center;
  padding-bottom: 4px;
}

.book-card:hover {
  transform: scale(1.07);
  z-index: 10;
}

.book-cover-wrap {
  position: relative;
  width: 130px;
  height: 195px;
  border-radius: 2px 4px 4px 2px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 2px 4px rgba(0,0,0,0.08);
  background: #e0ddd8;
  flex-shrink: 0;
}

.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.book-cover.loading { opacity: 0; }

/* Book spine effect */
.book-cover-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Cover placeholder (while loading / no image) */
.book-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  gap: 8px;
}

.book-placeholder-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(0,0,0,0.7);
  line-height: 1.3;
  word-break: break-word;
}

.book-placeholder-author {
  font-size: 10px;
  color: rgba(0,0,0,0.4);
  line-height: 1.3;
}


/* ============================================================
   CTA BANDS
   ============================================================ */
.cta-band {
  background: #224802;
  color: var(--white);
  margin: 80px -40px 0;
  padding: 60px 40px;
}

.cta-band-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-band-text {}

.cta-band-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.cta-band-title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 560px;
}

.cta-band-title em {
  font-style: normal;
  color: var(--green);
}

.cta-band-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  margin-top: 12px;
  max-width: 460px;
}

.cta-band-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* ============================================================
   BOOK MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  backdrop-filter: blur(4px);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  box-shadow: var(--shadow-lg);
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.modal-close:hover { background: var(--black); border-color: var(--black); }
.modal-close:hover svg path { stroke: var(--white); }

.modal-close svg { width: 16px; height: 16px; }
.modal-close svg path { stroke: var(--black); stroke-width: 2; fill: none; transition: stroke 0.2s; }

.modal-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  min-height: 360px;
}

.modal-cover-col {
  background: var(--shelf-bg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 20px;
  border-radius: 8px 0 0 8px;
}

.modal-cover {
  width: 160px;
  height: 240px;
  object-fit: cover;
  border-radius: 2px 4px 4px 2px;
  box-shadow: -4px 4px 16px rgba(0,0,0,0.7);
}

.modal-cover-placeholder {
  width: 160px;
  height: 240px;
  border-radius: 2px 4px 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  gap: 8px;
}

.modal-info-col {
  padding: 32px 48px 32px 32px;
}

.modal-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 2px;
  color: var(--white);
}

.modal-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.modal-author {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 20px;
}

.modal-publisher-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  border: 1.5px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  transition: border-color 0.2s, background 0.2s;
}

.modal-publisher-link:hover { border-color: var(--black); background: var(--off-white); }
.modal-publisher-link svg { width: 12px; height: 12px; opacity: 0.5; }

.modal-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.modal-summary {
  font-size: 15px;
  line-height: 1.65;
  color: var(--black);
  margin-bottom: 24px;
}

.modal-take {
  background: var(--off-white);
  border-left: 3px solid var(--green);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  font-style: italic;
  color: var(--black);
  margin-bottom: 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.modal-audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.audience-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 2px;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  color: var(--black);
  letter-spacing: 0.02em;
}

.modal-cta {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1.5px solid var(--border);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.empty-state p { font-size: 15px; }

/* ============================================================
   FOOTER CTA
   ============================================================ */
.footer-cta {
  background: var(--green);
  margin: 0 -40px;
  padding: 80px 40px;
}

.footer-cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-cta-title {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
  max-width: 600px;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: transform 0.15s, background 0.2s;
  white-space: nowrap;
}

.btn-dark:hover { transform: translateY(-2px); background: #333; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #224802;
  color: var(--white);
  padding: 40px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: 0.7; }

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   HOVER CARD POPUP
   ============================================================ */
.book-hover-card {
  position: fixed;
  z-index: 600;
  width: 220px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.07);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  transform: translateY(-6px);
  overflow: hidden;
}

.book-hover-card.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Cover section removed — no image doubling */
.hover-cover-wrap { display: none; }

.hover-info {
  padding: 14px 16px 16px;
}

.hover-cat-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  color: var(--white);
  margin-bottom: 8px;
}

.hover-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.hover-author {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.hover-summary {
  font-size: 12px;
  line-height: 1.55;
  color: var(--black);
  margin-bottom: 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.hover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.hover-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 2px;
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--black);
}

.hover-buy-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 14px;
  background: var(--green);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.2s;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.hover-buy-link:hover { background: var(--green-dark); }

/* ============================================================
   GRID LAYOUT (when filtered to few results)
   ============================================================ */
.shelf.is-grid {
  flex-wrap: wrap;
  overflow-x: visible;
  overflow-y: visible;
  padding: 24px 0 8px;
  background: transparent;
  border-radius: 0;
  gap: 20px;
  cursor: default;
  scrollbar-width: none;
}

.shelf.is-grid ~ .shelf-plank,
.shelf.is-grid ~ .shelf-scroll-hint {
  display: none;
}

.shelf.is-grid .book-card {
  flex: 0 0 130px;
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #d8d5d0 25%, #e8e5e0 50%, #d8d5d0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   NO RESULTS MESSAGE
   ============================================================ */
.no-results-book {
  opacity: 0.25;
  pointer-events: none;
}

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */
.shelf-scroll-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 8px;
}

.shelf-scroll-hint svg { width: 14px; height: 14px; opacity: 0.5; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .site-nav-inner { padding: 0 24px; }
  .header-inner, .filter-inner, .main-content { padding-left: 24px; padding-right: 24px; }
  .cta-band { margin-left: -24px; margin-right: -24px; padding: 48px 24px; }
  .footer-cta { margin-left: -24px; margin-right: -24px; padding: 60px 24px; }
  .site-footer { padding: 32px 24px; }

  .hero-title { font-size: clamp(40px, 6vw, 64px); }
  .hero-stats { gap: 24px; }

  .cta-band-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }

  .book-card { flex: 0 0 115px; width: 115px; }
  .book-cover-wrap { width: 115px; height: 173px; }

  /* Hide secondary nav links at tablet, keep logo + CTA */
  .nav-links a:not(.nav-link-active):not(.btn-cta-nav):not(.nav-social) { display: none; }
  .nav-social-divider { display: none; }
}

@media (max-width: 768px) {
  .site-nav-inner { padding: 0 20px; height: 60px; }
  .site-logo-nav { height: 32px; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.btn-cta-nav) { display: none; }
  .nav-social-divider { display: none; }
  .filter-bar { top: 60px; }
  .header-inner { padding: 32px 20px 40px; }
  .filter-inner { padding: 0 20px; }
  .main-content { padding: 0 20px 60px; }

  .hero-title { font-size: clamp(36px, 8vw, 56px); }
  .hero-description { font-size: 16px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-number { font-size: 32px; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

  .cta-band { margin-left: -20px; margin-right: -20px; padding: 40px 20px; }
  .footer-cta { margin-left: -20px; margin-right: -20px; padding: 48px 20px; }
  .site-footer { padding: 32px 20px; }

  .modal-body { grid-template-columns: 1fr; }
  .modal-cover-col {
    border-radius: 8px 8px 0 0;
    padding: 24px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;
  }
  .modal-cover, .modal-cover-placeholder { width: 80px; height: 120px; }
  .modal-info-col { padding: 24px 24px 32px; }
  .modal-title { font-size: 22px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }

  .filter-label { display: none; }
  .filter-btn { padding: 16px 12px; font-size: 12px; }

  .book-card { flex: 0 0 100px; width: 100px; }
  .book-cover-wrap { width: 100px; height: 150px; }

  .category-section { margin-top: 48px; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 16px; }
  .stat-number { font-size: 28px; }
  .cta-band-actions { width: 100%; }
  .cta-band-actions .btn-primary,
  .cta-band-actions .btn-secondary { width: 100%; justify-content: center; }

  .modal { border-radius: 12px 12px 0 0; max-height: 95vh; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
}

/* ============================================================
   MY LIST — TOGGLE BUTTON
   ============================================================ */
.my-list-toggle {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 40px;
  padding: 14px 22px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}

.my-list-toggle:hover { background: #333; transform: translateY(-2px); }

.my-list-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }

.list-toggle-count {
  background: var(--green);
  color: var(--black);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
  min-width: 22px;
  text-align: center;
  line-height: 18px;
}

/* ============================================================
   MY LIST — PANEL
   ============================================================ */
.my-list-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
  background: var(--white);
  border-left: 2px solid var(--black);
  z-index: 800;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
}

.my-list-panel.open { transform: translateX(0); }

.list-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 2px solid var(--black);
  flex-shrink: 0;
}

.list-panel-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-panel-badge {
  background: var(--green);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  line-height: 18px;
}

.list-panel-close {
  width: 32px;
  height: 32px;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.list-panel-close:hover { background: var(--black); }
.list-panel-close:hover svg path { stroke: var(--white); }
.list-panel-close svg { width: 14px; height: 14px; }
.list-panel-close svg path { stroke: var(--black); stroke-width: 2; fill: none; transition: stroke 0.2s; }

.list-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.list-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}

.list-empty-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.4; }
.list-empty h4 { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.list-empty p { font-size: 13px; line-height: 1.5; }

.list-category-group { margin-bottom: 20px; }

.list-cat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.list-book-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.list-book-item:last-child { border-bottom: none; }

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

.list-book-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-book-author {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.list-remove-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  margin-top: 2px;
}

.list-remove-btn:hover { background: #ffeaea; border-color: #e84343; color: #e84343; }

/* ============================================================
   MY LIST — PANEL FOOTER ACTIONS
   ============================================================ */
.list-panel-footer {
  padding: 16px 20px 20px;
  border-top: 2px solid var(--black);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-footer-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.list-action-row { display: flex; gap: 8px; }

.btn-list-copy, .btn-list-email {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
  border: none;
  text-decoration: none;
}

.btn-list-copy {
  background: var(--black);
  color: var(--white);
}
.btn-list-copy:hover { background: #333; }
.btn-list-copy.copied { background: var(--green); color: var(--black); }

.btn-list-email {
  background: var(--off-white);
  color: var(--black);
  border: 1.5px solid var(--border);
}
.btn-list-email:hover { border-color: var(--black); background: var(--cream); }

.btn-list-copy svg, .btn-list-email svg { width: 14px; height: 14px; flex-shrink: 0; }

.list-clear-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  padding: 4px;
  transition: color 0.2s;
}
.list-clear-btn:hover { color: #e84343; }

/* Email form (inline in list panel footer) */
.email-form-wrap { display: flex; flex-direction: column; gap: 6px; }
.email-form-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.email-form-row { display: flex; gap: 6px; }
.email-form-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-family: var(--font);
  font-size: 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.email-form-input:focus { border-color: var(--black); }
.email-form-send {
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.email-form-send:hover { background: #333; }
.email-form-send:disabled { opacity: 0.6; cursor: not-allowed; }
.email-form-status { font-size: 12px; min-height: 16px; }

/* ============================================================
   ADD TO LIST BUTTON (hover card + modal)
   ============================================================ */
.hover-add-btn {
  width: 100%;
  padding: 9px 14px;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  margin-top: 6px;
  letter-spacing: 0.02em;
  text-align: center;
}

.hover-add-btn:hover { border-color: var(--black); background: var(--cream); }

.hover-add-btn.in-list {
  background: var(--green);
  border-color: var(--green);
  color: var(--black);
}

.modal-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.02em;
}

.modal-add-btn:hover { border-color: var(--black); background: var(--cream); }

.modal-add-btn.in-list {
  background: var(--green);
  border-color: var(--green);
}

/* ============================================================
   PANEL OVERLAY (mobile)
   ============================================================ */
.list-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 790;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.list-panel-overlay.open { opacity: 1; pointer-events: all; }

@media (max-width: 768px) {
  .my-list-panel {
    width: 100%;
    top: auto;
    height: 80vh;
    border-left: none;
    border-top: 2px solid var(--black);
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  .my-list-panel.open { transform: translateY(0); }
  .my-list-toggle { bottom: 20px; right: 20px; }
}

/* ============================================================
   DRAG-TO-SCROLL STATE
   ============================================================ */
.shelf.is-dragging { cursor: grabbing; user-select: none; }
.shelf.is-dragging .book-card { pointer-events: none; }
