/* ============================================
   SHOP / BOOK LIBRARY
   Full rebuild
   ============================================ */

/* ── 1. ARCHIVE HERO ── */
.shop-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-navy);
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
}
@media (max-width: 768px) {
  .shop-hero { background-attachment: scroll; min-height: 60vh; }
}

.shop-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15,23,42,0.90) 0%,
    rgba(15,23,42,0.76) 55%,
    rgba(15,23,42,0.52) 100%
  );
}

.shop-hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

.shop-hero__inner {
  position: relative;
  z-index: 2;
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
}

.shop-hero__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
}
.shop-hero__label-rule {
  display: block;
  flex: 0 0 36px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.45;
}

.shop-hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 6vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  color: var(--color-white);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-5);
}
.shop-hero__title em {
  font-style: italic;
  font-family: var(--font-accent);
  font-weight: 400;
  color: rgba(196,168,116,0.95);
}

.shop-hero__sub {
  font-size: clamp(var(--text-base), 1.6vw, var(--text-lg));
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
}

/* Pillar chips in hero */
.shop-hero__pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}
.shop-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.shop-hero__pill:hover,
.shop-hero__pill.is-active {
  background: rgba(255,255,255,0.14);
  border-color: var(--pill-color, var(--color-gold));
  color: var(--color-white);
}
.shop-hero__pill-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pill-color, var(--color-gold));
  flex-shrink: 0;
}


/* ── 2. SHOP BODY ── */
.shop-body {
  padding: var(--space-12) 0 var(--space-20);
  background: var(--color-bg);
}


/* ── 3. PILLAR TABS ── */
.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
  padding-bottom: 0;
}

.shop-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px; /* sit on top of the border */
  border-radius: var(--radius-base) var(--radius-base) 0 0;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  white-space: nowrap;
}
.shop-tab:hover {
  color: var(--color-navy);
  border-bottom-color: var(--color-border);
}
.shop-tab.is-active {
  color: var(--color-navy);
  border-bottom-color: var(--tab-color, var(--color-gold));
  background: var(--color-white);
}

.shop-tab__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tab-color, var(--color-gold));
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .shop-tabs { gap: var(--space-1); }
  .shop-tab  { padding: var(--space-2) var(--space-3); font-size: var(--text-xs); }
}


/* ── 4. META ROW ── */
.shop-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.shop-meta-row__count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.shop-meta-row__count strong {
  color: var(--color-navy);
}
.shop-meta-row__clear {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s var(--ease-out);
}
.shop-meta-row__clear:hover { color: var(--color-navy); }


/* ── 5. BOOK GRID ── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}
.book-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .book-grid { grid-template-columns: 1fr; }
}


/* ── 6. BOOK CARD ── */
.book-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  /* top accent bar in pillar color */
  border-top: 4px solid var(--book-color, var(--color-gold));
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.10);
}

/* Cover */
.book-card__cover-wrap {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-bg);
  flex-shrink: 0;
}
.book-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease-out);
}
.book-card:hover .book-card__cover {
  transform: scale(1.04);
}
.book-card__cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  background: linear-gradient(150deg, rgba(var(--book-color-raw, 15,23,42), 0.06) 0%, rgba(var(--book-color-raw, 15,23,42), 0.12) 100%);
  padding: var(--space-6);
}
.book-card__cover-placeholder-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
  line-height: var(--leading-snug);
}
.book-card__cover-placeholder .pillar-icon-svg {
  width: 36px;
  height: 36px;
  color: var(--book-color, var(--color-gold));
  opacity: 0.5;
}
.book-card__cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Body */
.book-card__body {
  flex: 1;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Badges row */
.book-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

/* Title */
.book-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: var(--leading-snug);
  color: var(--color-navy);
  margin: 0;
}
.book-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.book-card__title a:hover { color: var(--book-color, var(--color-gold)); }

/* Author */
.book-card__author {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
}

/* Excerpt */
.book-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: var(--space-1) 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer */
.book-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.book-card__price {
  font-family: var(--font-metric);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy);
}
.book-card__ctas {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}


/* ── 7. PILLAR BADGE ── */
.pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.6;
}
.pillar-badge--sm {
  padding: 2px var(--space-2);
  font-size: 10px;
}
.pillar-badge .pillar-icon-svg {
  width: 12px;
  height: 12px;
}
/* Text contrast: gold and sage pillars use navy text */
.pillar-badge--rebuild,
.pillar-badge--regulate {
  color: var(--color-navy);
}


/* ── 8. FORMAT BADGE ── */
.format-badge {
  display: inline-block;
  padding: 2px var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-bg);
}
.format-badge--lg {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
}


/* ── 9. AMAZON BUTTON ── */
.btn-amazon {
  background: #FF9900 !important;
  color: var(--color-navy) !important;
  border-color: #FF9900 !important;
}
.btn-amazon:hover {
  background: #e68900 !important;
  border-color: #e68900 !important;
  transform: translateY(-1px);
}


/* ── 10. PAGINATION ── */
.shop-pagination { margin-top: var(--space-4); }
.shop-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}
.shop-pagination .page-numbers li a,
.shop-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-base);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.shop-pagination .page-numbers li a:hover {
  border-color: var(--color-gold);
  color: var(--color-navy);
}
.shop-pagination .page-numbers li span.current {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
}


/* ── 11. EMPTY STATE ── */
.shop-empty {
  text-align: center;
  padding: var(--space-20) 0;
}
.shop-empty__icon {
  display: inline-block;
  color: var(--color-border);
  margin-bottom: var(--space-6);
}
.shop-empty__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}
.shop-empty__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 400px;
  margin: 0 auto var(--space-8);
}


/* ── 12. ASSESSMENT STRIP ── */
.shop-assessment-strip {
  background: var(--color-navy);
  padding: var(--space-10) 0;
}
.shop-assessment-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.shop-assessment-strip__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}
.shop-assessment-strip__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
}
@media (max-width: 640px) {
  .shop-assessment-strip__inner { flex-direction: column; text-align: center; }
}


/* ── 13. SINGLE BOOK: BREADCRUMB ── */
.book-breadcrumb {
  padding-top: var(--space-6);
  padding-bottom: var(--space-4);
}
.book-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.book-breadcrumb__list a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s var(--ease-out);
}
.book-breadcrumb__list a:hover { color: var(--color-navy); }
.book-breadcrumb__list [aria-current="page"] { color: var(--color-navy); font-weight: 600; }


/* ── 14. SINGLE BOOK: HERO ── */
.book-page-hero {
  padding: var(--space-12) 0 var(--space-16);
  /* --book-color set by PHP inline style */
}
.book-page-hero::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--book-color, var(--color-gold));
}

.book-page-hero__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-14);
  align-items: start;
}
@media (max-width: 900px) {
  .book-page-hero__inner { grid-template-columns: 220px 1fr; gap: var(--space-10); }
}
@media (max-width: 680px) {
  .book-page-hero__inner { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* Cover column */
.book-page-hero__cover-wrap {
  position: sticky;
  top: calc(var(--nav-height, 72px) + var(--space-6));
}
.book-page-hero__cover {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: block;
}
.book-page-hero__cover-placeholder {
  aspect-ratio: 2/3;
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-8);
  border: 2px solid var(--color-border);
}
.book-page-hero__cover-placeholder span {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
}

/* Purchase box */
.book-page-hero__purchase {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.book-page-hero__price {
  font-family: var(--font-metric);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}
.book-page-hero__price-note {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}
.book-page-hero__formats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.book-page-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.book-page-hero__ctas .btn { justify-content: center; }

/* Info column */
.book-page-hero__pillar { margin-bottom: var(--space-4); }
.book-page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.05;
  color: var(--color-navy);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}
.book-page-hero__subtitle {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.book-page-hero__author {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.book-page-hero__author-label {
  color: var(--color-text-muted);
  margin-right: var(--space-1);
}
.book-page-hero__desc {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  border-left: 3px solid var(--book-color, var(--color-gold));
  padding-left: var(--space-5);
}

/* Who this is for */
.book-page-hero__audience {
  background: rgba(196,168,116,0.06);
  border: 1px solid rgba(196,168,116,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.book-page-hero__audience-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}
.book-page-hero__audience-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
}

/* Mobile CTA — shown on mobile, hidden on desktop */
.book-page-hero__mobile-cta {
  display: none;
  flex-wrap: wrap;
  gap: var(--space-3);
}
@media (max-width: 680px) {
  .book-page-hero__mobile-cta { display: flex; }
  .book-page-hero__cover-wrap { position: static; max-width: 240px; margin: 0 auto; }
  .book-page-hero__purchase { display: none; }
}


/* ── 15. SINGLE BOOK: META SECTION ── */
.book-meta-section {
  padding: var(--space-16) 0;
}
.book-meta-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-14);
  align-items: start;
}
@media (max-width: 900px) {
  .book-meta-layout { grid-template-columns: 1fr 240px; gap: var(--space-10); }
}
@media (max-width: 680px) {
  .book-meta-layout { grid-template-columns: 1fr; }
}

/* Content */
.book-meta-content__heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-6);
}
.book-meta-content__body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}
.book-meta-content__body p { margin-bottom: var(--space-4); }

/* Framework note */
.book-framework-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding: var(--space-5);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.book-framework-note svg { color: var(--color-gold); flex-shrink: 0; margin-top: 2px; }
.book-framework-note__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-1);
}
.book-framework-note__text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
}

/* Details card */
.book-details-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  position: sticky;
  top: calc(var(--nav-height, 72px) + var(--space-6));
  box-shadow: var(--shadow-sm);
}
.book-details-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.book-details-list { display: flex; flex-direction: column; gap: var(--space-4); }
.book-details-item { display: flex; flex-direction: column; gap: var(--space-1); }
.book-details-item dt {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.book-details-item dd {
  font-size: var(--text-sm);
  color: var(--color-text);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
}
.book-details-card__footer {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.book-details-card__footer-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}


/* ── 16. POST-DESCRIPTION CTA STRIP ── */
.book-cta-strip {
  margin-top: var(--space-10);
  padding: var(--space-8);
  background: linear-gradient(135deg, rgba(26,35,64,0.04) 0%, rgba(196,168,116,0.06) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}
.book-cta-strip__label {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-5);
}
.book-cta-strip__actions {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-5);
}
.book-cta-strip__buy { flex-shrink: 0; }
.book-cta-strip__amazon {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.book-cta-strip__amazon-label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.book-cta-strip__amazon-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.book-cta-strip__disclosure {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
/* Vertical divider between WC buy button and Amazon group */
@media (min-width: 600px) {
  .book-cta-strip__buy + .book-cta-strip__amazon {
    padding-left: var(--space-5);
    border-left: 1px solid var(--color-border);
  }
}
@media (max-width: 500px) {
  .book-cta-strip { padding: var(--space-6); }
  .book-cta-strip__actions { flex-direction: column; align-items: stretch; }
  .book-cta-strip__buy { width: 100%; justify-content: center; }
}


/* ── 17. BOOK REVIEWS SECTION ── */
.book-reviews-section {
  padding: var(--space-16) 0 var(--space-20);
  background: var(--color-navy-dark, #0f1a30);
  color: var(--color-white);
  position: relative;
}
.book-reviews-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.book-reviews-section .container { position: relative; }

/* Header row */
.reviews-header { margin-bottom: var(--space-10); }
.reviews-header__inner {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.reviews-header__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: 700;
  color: var(--color-white);
  flex: 0 0 100%;
  margin-bottom: 0;
}
.reviews-header__empty {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-base);
  font-style: italic;
}

/* Aggregate score */
.reviews-aggregate {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.reviews-aggregate__score {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}
.reviews-aggregate__number {
  font-family: var(--font-metric, var(--font-display));
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
.reviews-aggregate__right { display: flex; flex-direction: column; gap: var(--space-1); }
.reviews-aggregate__stars { display: flex; gap: 2px; color: var(--color-gold); }
.reviews-aggregate__count {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

/* Rating distribution bars */
.reviews-dist {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 200px;
}
.reviews-dist__row {
  display: grid;
  grid-template-columns: 24px 1fr 36px;
  align-items: center;
  gap: var(--space-2);
}
.reviews-dist__label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}
.reviews-dist__bar-wrap {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}
.reviews-dist__bar {
  height: 100%;
  border-radius: 3px;
  background: var(--color-gold);
  transition: width 0.6s var(--ease-out, ease);
  min-width: 0;
}
.reviews-dist__pct {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  text-align: right;
}

/* Write a Review button */
.reviews-toggle-btn {
  margin-top: var(--space-1);
  align-self: flex-start;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: var(--color-white);
}
.reviews-toggle-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  color: var(--color-white);
}

/* ── Review Form ── */
.review-form-wrap {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-10);
  animation: fadeSlideDown 0.25s var(--ease-out, ease) both;
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.review-form__honeypot { display: none !important; }
.review-form__inner { display: flex; flex-direction: column; gap: var(--space-6); }

/* Star input */
.review-form__field--stars .review-form__label { margin-bottom: var(--space-3); }
.stc-star-input {
  display: flex;
  gap: var(--space-2);
}
.star-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: rgba(255,255,255,0.2);
  transition: color 0.1s, transform 0.1s;
  line-height: 1;
}
.star-btn svg { fill: currentColor; display: block; }
.star-btn.is-active { color: var(--color-gold); }
.star-btn.is-hover  { color: var(--color-gold); opacity: 0.75; }
.star-btn:hover     { transform: scale(1.2); }
.star-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.review-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 600px) {
  .review-form__row { grid-template-columns: 1fr; }
}

.review-form__field { display: flex; flex-direction: column; gap: var(--space-2); }
.review-form__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.review-form__label .req { color: var(--color-gold); margin-left: 2px; }
.review-form__hint {
  font-size: var(--text-xs);
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  margin-left: var(--space-2);
}
.review-form__input,
.review-form__textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.review-form__input::placeholder,
.review-form__textarea::placeholder { color: rgba(255,255,255,0.3); }
.review-form__input:focus,
.review-form__textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255,255,255,0.1);
}
.review-form__textarea { resize: vertical; min-height: 120px; }

.review-form__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.review-form__disclaimer {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  flex: 1 0 100%;
  margin: 0;
}

.review-form__status {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
}
.review-form__status--success {
  background: rgba(44,122,75,0.25);
  border: 1px solid rgba(44,122,75,0.5);
  color: #6ee7a0;
}
.review-form__status--error {
  background: rgba(220,53,69,0.2);
  border: 1px solid rgba(220,53,69,0.4);
  color: #fca5a5;
}

/* ── Review Cards Grid ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (max-width: 700px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

.review-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color 0.2s, background 0.2s;
}
.review-card:hover {
  border-color: rgba(230,184,74,0.3);
  background: rgba(255,255,255,0.07);
}

.review-card__stars {
  display: flex;
  gap: 3px;
}
.review-card__stars .star-filled { color: var(--color-gold); }
.review-card__stars .star-empty  { color: rgba(255,255,255,0.2); }

.review-card__quote {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin: 0;
  flex-grow: 1;
}
.review-card__quote::before { content: '\201C'; }
.review-card__quote::after  { content: '\201D'; }

.review-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.review-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-card__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}
.review-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  font-style: normal;
}
.review-card__date {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}
.review-card__featured-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gold);
  background: rgba(230,184,74,0.1);
  border: 1px solid rgba(230,184,74,0.2);
  border-radius: 20px;
  padding: 2px 8px;
}


/* ── 18. RELATED BOOKS SECTION ── */
.related-books {
  padding: var(--space-16) 0 var(--space-20);
}
.related-books__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.related-books__header-copy {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.related-books__pillar-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.related-books__see-all {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-out);
}
.related-books__see-all:hover { color: var(--color-navy); }


/* ── 17. RESPONSIVE CLEANUP ── */
@media (max-width: 768px) {
  .shop-hero__title { font-size: clamp(var(--text-3xl), 9vw, var(--text-4xl)); }
  .shop-body { padding: var(--space-8) 0 var(--space-14); }
  .book-meta-section { padding: var(--space-10) 0; }
}
