/* =====================================================================
   ALPHORIA AI — Design System & Styles
   Palette and direction follow the supplied brief (blue/white, SaaS-clean).
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --ms-blue: #0078D4;
  --google-blue: #4285F4;
  --light-blue: #E8F2FF;
  --soft-grey: #F5F7FA;
  --white: #FFFFFF;
  --text: #1F2937;
  --text-muted: #5B6677;
  --border: #E2E8F2;

  /* Derived */
  --blue-grad: linear-gradient(135deg, var(--ms-blue) 0%, var(--google-blue) 100%);
  --ring: 0 0 0 4px rgba(66, 133, 244, 0.28);

  /* Type */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Spacing / radius / shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 12px 32px rgba(31, 41, 55, 0.10);
  --shadow-lg: 0 28px 64px rgba(11, 87, 164, 0.18);
  --maxw: 1200px;
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ms-blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--text-muted); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--grey { background: var(--soft-grey); }
.section--blue-tint { background: var(--light-blue); }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ms-blue); margin-bottom: 12px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.1rem; color: var(--text-muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: 13px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--primary { background: var(--blue-grad); color: #fff; box-shadow: 0 8px 20px rgba(11, 87, 164, .25); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(11, 87, 164, .32); }
.btn--secondary { background: var(--white); color: var(--ms-blue); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { transform: translateY(-2px); border-color: var(--google-blue); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--light-blue); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; font-family: var(--font-display);
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--light-blue); color: var(--ms-blue);
}
.badge--gold { background: #FFF4D6; color: #9A6B00; }
.badge--green { background: #E3F7EC; color: #137A45; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--blue-grad);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem;
}
.nav__links { display: flex; gap: 4px; margin-left: 12px; }
.nav__links a {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--text);
  padding: 8px 14px; border-radius: var(--r-sm); transition: background .15s, color .15s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { background: var(--light-blue); color: var(--ms-blue); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-sm);
  background: transparent; border: 1px solid transparent; color: var(--text); position: relative;
  transition: background .15s;
}
.icon-btn:hover { background: var(--soft-grey); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.cart-count {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--ms-blue); color: #fff; border-radius: var(--r-pill);
  font-size: .68rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.cart-count[data-empty="true"] { display: none; }
.nav__cta { margin-left: 6px; }
.hamburger { display: none; }

@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .hamburger { display: grid; }
}

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 23, 42, .4);
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.mobile-menu[data-open="true"] { opacity: 1; visibility: visible; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; width: min(86%, 360px); height: 100%;
  background: #fff; padding: 24px; transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu[data-open="true"] .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__panel a { font-family: var(--font-display); font-weight: 600; padding: 14px 12px; border-radius: var(--r-sm); color: var(--text); }
.mobile-menu__panel a:hover { background: var(--light-blue); }
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1100px 480px at 85% -10%, var(--light-blue) 0%, rgba(232,242,255,0) 60%),
  linear-gradient(180deg, #fff 0%, var(--soft-grey) 100%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero__title { margin-bottom: 18px; }
.hero__title .accent { background: var(--blue-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: 1.18rem; max-width: 30em; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__proof { display: flex; gap: 28px; flex-wrap: wrap; }
.hero__proof div { display: flex; flex-direction: column; }
.hero__proof strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.hero__proof span { font-size: .85rem; color: var(--text-muted); }

/* ---------- 3D book mockup (signature element) ---------- */
.book3d { perspective: 1600px; display: grid; place-items: center; }
.book3d__inner {
  position: relative; width: 270px; aspect-ratio: 3 / 4;
  transform: rotateY(-26deg) rotateX(6deg); transform-style: preserve-3d;
  transition: transform .5s ease; animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 40px 50px rgba(11, 87, 164, .35));
}
.book3d:hover .book3d__inner { transform: rotateY(-14deg) rotateX(3deg); }
.book3d__cover {
  position: absolute; inset: 0; border-radius: 6px 12px 12px 6px;
  background-size: cover; background-position: center; overflow: hidden;
  box-shadow: inset 6px 0 14px rgba(0,0,0,.16);
}
.book3d__cover::after { /* spine sheen */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 18px;
  background: linear-gradient(90deg, rgba(255,255,255,.32), rgba(255,255,255,0));
}
.book3d__pages {
  position: absolute; right: -2px; top: 3%; bottom: 3%; width: 26px;
  background: repeating-linear-gradient(90deg, #fff, #fff 1px, #e7eaf0 2px, #fff 3px);
  transform: rotateY(90deg); transform-origin: right center; border-radius: 2px;
}
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }

@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions, .hero__proof { justify-content: center; }
}

/* =====================================================================
   FEATURED BOOK
   ===================================================================== */
.featured__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.featured__media { display: grid; place-items: center; }
.featured__price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 18px; }
.featured__price .now { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text); }
.featured__price .fmt { font-size: .9rem; color: var(--text-muted); }
.featured__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
@media (max-width: 920px) { .featured__grid { grid-template-columns: 1fr; gap: 40px; } }

/* =====================================================================
   CARD GRID (why-choose / features / learn)
   ===================================================================== */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0fb; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--light-blue);
  display: grid; place-items: center; color: var(--ms-blue); margin-bottom: 16px;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: .95rem; }

/* Checklist (inside the book) */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.checklist li { list-style: none; display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--text); }
.checklist .tick {
  flex: none; width: 24px; height: 24px; border-radius: var(--r-pill);
  background: var(--blue-grad); color: #fff; display: grid; place-items: center; font-size: .8rem;
}
.checklist { padding: 0; margin: 0; }

@media (max-width: 920px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } .checklist { grid-template-columns: 1fr; } }

/* =====================================================================
   TESTIMONIALS  (NOTE: example content — not real reviews, no Review schema)
   ===================================================================== */
.quote {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
}
.quote p { color: var(--text); font-size: 1.02rem; margin: 0; }
.quote__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__avatar { width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--blue-grad); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.quote__name { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--text); }
.quote__role { font-size: .82rem; color: var(--text-muted); }
.disclaimer-note { font-size: .8rem; color: var(--text-muted); margin-top: 24px; text-align: center; }

/* =====================================================================
   BLOG PREVIEW
   ===================================================================== */
.post {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post__img { aspect-ratio: 16 / 9; background: var(--blue-grad); position: relative; }
.post__img span { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.9); color: var(--ms-blue); font-size: .74rem; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill); font-family: var(--font-display); }
.post__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__meta { font-size: .8rem; color: var(--text-muted); }
.post__body h3 { font-size: 1.1rem; margin: 0; }
.post__body a { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: .9rem; }

/* =====================================================================
   NEWSLETTER + CTA
   ===================================================================== */
.newsletter { background: var(--blue-grad); border-radius: var(--r-lg); padding: clamp(36px, 6vw, 64px); color: #fff; text-align: center; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,.9); }
.newsletter__form { display: flex; gap: 10px; max-width: 480px; margin: 24px auto 0; }
.newsletter__form input {
  flex: 1; padding: 14px 18px; border-radius: var(--r-pill); border: none; font-family: var(--font-body); font-size: .95rem;
}
.newsletter__form input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(255,255,255,.5); }
.newsletter__form .btn { background: #fff; color: var(--ms-blue); }
.form-note { font-size: .82rem; margin-top: 12px; min-height: 1.2em; }
@media (max-width: 560px) { .newsletter__form { flex-direction: column; } }

.cta-band { text-align: center; }
.cta-band .btn { margin-top: 8px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: #0E1B2E; color: #cdd7e6; padding-block: 56px 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { color: #fff; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: #cdd7e6; font-size: .92rem; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer__brand .brand { color: #fff; margin-bottom: 12px; }
.footer__brand p { color: #9fb0c6; font-size: .9rem; max-width: 32ch; }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a { width: 38px; height: 38px; border-radius: var(--r-sm); background: rgba(255,255,255,.08); display: grid; place-items: center; padding: 0; }
.footer__social a:hover { background: var(--ms-blue); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: .85rem; color: #8294ad; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   CART DRAWER
   ===================================================================== */
.drawer-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(15,23,42,.45); opacity: 0; visibility: hidden; transition: opacity .25s; }
.drawer-overlay[data-open="true"] { opacity: 1; visibility: visible; }
.drawer { position: absolute; top: 0; right: 0; width: min(92%, 420px); height: 100%; background: #fff; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; }
.drawer-overlay[data-open="true"] .drawer { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.drawer__head h3 { margin: 0; }
.drawer__items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.drawer__empty { color: var(--text-muted); text-align: center; padding: 40px 0; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item__cover { width: 56px; height: 74px; border-radius: 6px; background-size: cover; background-position: center; box-shadow: var(--shadow-sm); }
.cart-item__title { font-family: var(--font-display); font-weight: 700; font-size: .92rem; margin: 0 0 4px; }
.cart-item__price { font-size: .86rem; color: var(--text-muted); }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border); background: #fff; font-weight: 700; line-height: 1; }
.qty button:hover { background: var(--light-blue); }
.cart-item__remove { background: none; border: none; color: var(--text-muted); font-size: .82rem; text-decoration: underline; padding: 0; }
.drawer__foot { padding: 20px 22px; border-top: 1px solid var(--border); }
.drawer__total { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }

/* =====================================================================
   COOKIE BANNER
   ===================================================================== */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 250; max-width: 560px; margin-inline: auto;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 22px; transform: translateY(160%); transition: transform .4s ease;
}
.cookie[data-show="true"] { transform: translateY(0); }
.cookie h4 { margin: 0 0 6px; }
.cookie p { font-size: .88rem; margin: 0 0 14px; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__actions .btn { flex: 1; min-width: 130px; }

/* =====================================================================
   CHATBOT
   ===================================================================== */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 240; width: 60px; height: 60px;
  border-radius: var(--r-pill); background: var(--blue-grad); color: #fff; border: none;
  box-shadow: var(--shadow-lg); display: grid; place-items: center;
  transition: transform .2s; 
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab:focus-visible { outline: none; box-shadow: var(--ring), var(--shadow-lg); }
.chat-panel {
  position: fixed; right: 22px; bottom: 94px; z-index: 245; width: min(92vw, 370px); height: min(70vh, 520px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .25s, transform .25s;
}
.chat-panel[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-panel__head { background: var(--blue-grad); color: #fff; padding: 16px 18px; }
.chat-panel__head strong { font-family: var(--font-display); }
.chat-panel__head span { display: block; font-size: .8rem; opacity: .9; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--soft-grey); }
.chat-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.chat-msg--bot { background: #fff; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg--user { background: var(--ms-blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-typing { font-style: italic; color: var(--text-muted); font-size: .85rem; padding: 4px 14px; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); background: #fff; }
.chat-suggest button { font-size: .82rem; padding: 8px 12px; border-radius: var(--r-pill); border: 1px solid var(--border); background: #fff; color: var(--ms-blue); font-weight: 600; }
.chat-suggest button:hover { background: var(--light-blue); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); z-index: 400;
  background: #0E1B2E; color: #fff; padding: 13px 22px; border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .25s, transform .25s;
}
.toast[data-show="true"] { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   BOOKS PAGE — filter bar + cards
   ===================================================================== */
.filter-bar { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.filter-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); padding: 0 16px; box-shadow: var(--shadow-sm); }
.filter-search input { border: none; outline: none; padding: 13px 0; font-family: var(--font-body); font-size: .95rem; width: 100%; background: transparent; }
.filter-bar select { padding: 12px 16px; border-radius: var(--r-pill); border: 1px solid var(--border); background: #fff; font-family: var(--font-body); font-size: .92rem; color: var(--text); box-shadow: var(--shadow-sm); cursor: pointer; }
@media (max-width: 720px) { .filter-bar { grid-template-columns: 1fr; } }

.book-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.book-card__media { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--soft-grey); overflow: hidden; }
.book-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.book-card:hover .book-card__media img { transform: scale(1.04); }
.book-card__badge { position: absolute; left: 12px; top: 12px; background: #FFF4D6; color: #9A6B00; font-size: .72rem; font-weight: 700; font-family: var(--font-display); padding: 5px 11px; border-radius: var(--r-pill); }
.book-card__badge--soon { background: var(--light-blue); color: var(--ms-blue); }
.book-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.book-card__cat { font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ms-blue); }
.book-card__body h3 { font-size: 1.15rem; margin: 0; }
.book-card__sub { font-size: .9rem; color: var(--text-muted); margin: 0; }
.book-card__desc { font-size: .9rem; margin: 4px 0 0; }
.stars { color: #F5A623; font-size: .9rem; letter-spacing: 1px; }
.stars span { color: var(--text-muted); font-size: .78rem; letter-spacing: 0; }
.book-card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.book-card__price { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.book-card__actions { display: flex; gap: 8px; }
.book-card__actions .btn { padding: 9px 14px; font-size: .85rem; }
.book-card--soon { opacity: .96; }
.book-card [disabled] { opacity: .5; cursor: not-allowed; }

/* =====================================================================
   PRODUCT PAGE
   ===================================================================== */
.breadcrumb { font-size: .88rem; color: var(--text-muted); margin-bottom: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb span[aria-current] { color: var(--text); font-weight: 600; }
.product { display: grid; grid-template-columns: 1fr 1.1fr .8fr; gap: 40px; align-items: start; }
.product__gallery { position: sticky; top: calc(var(--nav-h) + 20px); }
.thumb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumb-row img, .thumb-placeholder { aspect-ratio: 3 / 4; border-radius: 10px; border: 1px solid var(--border); object-fit: cover; }
.thumb-placeholder { background: var(--soft-grey); display: grid; place-items: center; font-size: .68rem; color: var(--text-muted); text-align: center; padding: 4px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 22px; border-top: 1px solid var(--border); padding-top: 22px; }
.spec div { display: flex; flex-direction: column; }
.spec dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.spec dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; }
.product__buy { position: sticky; top: calc(var(--nav-h) + 20px); }
.buy-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-md); }
.buy-panel__price { font-family: var(--font-display); font-weight: 800; font-size: 2rem; margin-bottom: 16px; }
.buy-panel__price span { display: block; font-size: .85rem; font-weight: 500; color: var(--text-muted); }
.buy-trust { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: .88rem; color: var(--text); }
@media (max-width: 1040px) { .product { grid-template-columns: 1fr 1fr; } .product__buy { grid-column: 1 / -1; position: static; } }
@media (max-width: 720px) { .product { grid-template-columns: 1fr; } .product__gallery { position: static; } }

.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 14px 0; font-family: var(--font-display); font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--ms-blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; margin: 0; }

/* =====================================================================
   CART / CHECKOUT / THANK YOU
   ===================================================================== */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.cart-main { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 8px 24px; box-shadow: var(--shadow-sm); }
.cart-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--nav-h) + 20px); }
.cart-summary h3 { margin-bottom: 16px; }
.cart-summary__row { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 16px; }
.cart-summary__promo { display: flex; gap: 8px; margin-bottom: 6px; }
.cart-summary__promo input { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); font-family: var(--font-body); }
.cart-summary .btn--block { margin-top: 12px; }
@media (max-width: 820px) { .cart-layout { grid-template-columns: 1fr; } .cart-summary { position: static; } }

.checkout-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.checkout-card h3 { margin-bottom: 16px; }
.trust-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }

.thank-mark { width: 76px; height: 76px; border-radius: var(--r-pill); background: var(--blue-grad); color: #fff; font-size: 2.2rem; display: grid; place-items: center; margin: 0 auto 24px; box-shadow: var(--shadow-md); }

/* =====================================================================
   PAGE HERO (shared simple hero band for inner pages)
   ===================================================================== */
.page-hero { background: radial-gradient(900px 380px at 80% -20%, var(--light-blue), rgba(232,242,255,0)), var(--soft-grey); }
.page-hero .container { padding-block: clamp(48px, 7vw, 80px); }
.page-hero h1 { max-width: 18ch; }
.page-hero p { max-width: 52ch; }

/* =====================================================================
   ABOUT
   ===================================================================== */
.prose-block { max-width: 70ch; }
.prose-block p { font-size: 1.05rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--ms-blue); }
.stat span { font-size: .88rem; color: var(--text-muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.split .card { height: 100%; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } .split { grid-template-columns: 1fr; } }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 36px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: .95rem; color: var(--text); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--google-blue); box-shadow: var(--ring); }
.field textarea { min-height: 140px; resize: vertical; }
.field-error { color: #C0392B; font-size: .82rem; margin-top: 6px; display: none; }
.field[data-invalid="true"] .field-error { display: block; }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: #C0392B; }
.contact-info { display: grid; gap: 16px; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 1rem; margin-bottom: 6px; }
.info-card p { margin: 0; font-size: .92rem; }
.map-placeholder { aspect-ratio: 16 / 10; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--light-blue), #d4e6ff); display: grid; place-items: center; color: var(--ms-blue); font-family: var(--font-display); font-weight: 700; border: 1px solid var(--border); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   LEGAL PAGES
   ===================================================================== */
.legal { max-width: 760px; margin-inline: auto; }
.legal h2 { font-size: 1.35rem; margin-top: 40px; }
.legal h3 { font-size: 1.05rem; margin-top: 24px; }
.legal p, .legal li { color: var(--text-muted); font-size: 1rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; }
.legal__meta { color: var(--text-muted); font-size: .9rem; }
.notice { background: #FFF8E6; border: 1px solid #F2D98A; border-radius: var(--r-md); padding: 16px 20px; margin: 20px 0 8px; }
.notice p { color: #7A5B00; margin: 0; font-size: .92rem; }
.placeholder-tag { background: var(--light-blue); color: var(--ms-blue); padding: 1px 6px; border-radius: 5px; font-size: .85em; font-weight: 600; }

/* =====================================================================
   BLOG ARTICLE (individual post pages)
   ===================================================================== */
.article { max-width: 720px; margin-inline: auto; }
.article__cat { color: var(--ms-blue); font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.article h1 { margin: 10px 0 14px; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.article__meta { color: var(--text-muted); font-size: .92rem; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.article__byline { display: flex; align-items: center; gap: 10px; margin: 22px 0 4px; }
.article__avatar { width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--blue-grad); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .85rem; }
.article__avatar-name { font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--text); }
.article__cover { aspect-ratio: 16 / 7; border-radius: var(--r-lg); margin: 28px 0; background: var(--blue-grad); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; box-shadow: var(--shadow-md); }
.article__body { font-size: 1.08rem; }
.article__body p { color: var(--text); margin: 0 0 1.2rem; }
.article__body h2 { font-size: 1.4rem; margin: 2rem 0 .8rem; }
.article__body ul { padding-left: 22px; margin: 0 0 1.2rem; }
.article__body li { margin-bottom: 8px; color: var(--text); }
.article__body strong { color: var(--text); }
.article__cta { background: var(--light-blue); border-radius: var(--r-lg); padding: 26px; margin: 32px 0; text-align: center; }
.article__cta h3 { margin-bottom: 8px; }
.article__back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; margin-bottom: 8px; }
.article__divider { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
