/* =====================================================================
   Pan-African Bookstore storefront
   Colours are set in Admin > Settings > Logo, photos and colours.
   ===================================================================== */
:root {
  --ink: #18221e;
  --ink-soft: #52625a;
  --muted: #7a877e;
  --paper: #fcfbf6;
  --paper-dark: #f1efe6;
  --line: #e4e5dc;
  --teal: #157347;
  --teal-deep: #0d3b2a;
  --sun: #f2b33d;
  --coral: #d94f2b;
  --plum: #6d3d5c;
  --blue: #456c83;
  --white: #fff;
  --ok: #157347;
  --err: #b3261e;
  --shadow: 0 14px 35px rgba(35, 57, 48, .11);
  --radius: 9px;
  --display: 'Fraunces', Georgia, serif;
  --body: 'DM Sans', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.55; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); letter-spacing: -.045em; line-height: 1.02; font-weight: 700; }
h3 { font-family: var(--display); letter-spacing: -.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 4px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 55%, transparent); outline-offset: 2px; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.fine { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }
.eyebrow { color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; display: inline-block; }
.section { padding: 40px 0 60px; }
.section-tight { padding-top: 8px; }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 6px; padding: 12px 18px; font-size: 13.5px; font-weight: 700; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; text-align: center; }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button span[aria-hidden] { font-size: 16px; padding-left: 8px; }
.button--primary { color: var(--white); background: var(--coral); box-shadow: 0 6px 15px color-mix(in srgb, var(--coral) 22%, transparent); }
.button--primary:hover { background: color-mix(in srgb, var(--coral) 88%, #000); }
.button--outline { color: var(--teal); background: transparent; border: 1px solid color-mix(in srgb, var(--teal) 35%, #fff); }
.button--outline:hover { background: var(--teal); color: #fff; }
.button--text { background: transparent; color: var(--teal); padding-left: 0; padding-right: 0; }
.button--cream { color: var(--teal-deep); background: var(--sun); }
.button--cream:hover { background: color-mix(in srgb, var(--sun) 80%, #fff); }
.button--wide { width: 100%; }
.button--lg { padding: 14px 22px; font-size: 14.5px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12.5px; text-decoration: underline; }
.link-btn:hover { color: var(--coral); }
.text-link { color: var(--teal); font-weight: 700; }

/* ---------- Top strip & header ---------- */
.top-strip { background: var(--teal-deep); color: rgba(255,255,255,.88); font-size: 12px; letter-spacing: .02em; }
.top-strip__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; background: var(--sun); border-radius: 50%; margin-right: 7px; vertical-align: 1px; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--sun) 25%, transparent); } }
.top-strip__note { color: rgba(255,255,255,.65); }
.site-header { background: color-mix(in srgb, var(--paper) 94%, transparent); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-main { min-height: 80px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 200px; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.brand-copy { display: flex; flex-direction: column; line-height: .92; letter-spacing: -.035em; }
.brand-copy strong { font-family: var(--display); font-size: 19px; font-weight: 700; }
.brand-copy em { color: var(--coral); font-family: var(--display); font-size: 18px; font-style: normal; font-weight: 700; margin-left: 18px; }
.search { height: 44px; flex: 1; display: flex; align-items: center; border: 1px solid #d7dbd1; border-radius: 7px; background: var(--white); overflow: hidden; max-width: 640px; }
.search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 12%, transparent); }
.search-icon { font-size: 26px; color: var(--teal); line-height: 0; margin: 0 7px 3px 14px; transform: rotate(-20deg); }
.search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; }
.search input::placeholder { color: #96a096; }
.search button { align-self: stretch; border: 0; padding: 0 20px; color: var(--white); background: var(--teal); font-size: 13px; font-weight: 700; }
.search button:hover { background: var(--teal-deep); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.text-action, .basket-button { border: 0; background: transparent; display: flex; align-items: center; gap: 8px; padding: 0; }
.text-action small { display: block; color: var(--ink-soft); font-size: 11px; line-height: 1.1; }
.text-action strong { display: block; font-size: 13px; }
.action-icon { color: var(--teal); border: 1px solid var(--teal); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.basket-button { position: relative; font-weight: 700; font-size: 13px; }
.basket-icon { color: var(--coral); border: 2px solid var(--coral); border-top: 0; padding: 0 5px 1px; font-size: 22px; line-height: .72; transform: skew(-7deg); }
.basket-count { position: absolute; top: -13px; left: 15px; background: var(--sun); border: 2px solid var(--paper); border-radius: 50%; min-width: 21px; height: 21px; display: grid; place-items: center; font-size: 11px; color: var(--ink); padding: 0 3px; }
.basket-count.is-bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.category-nav { background: var(--white); border-top: 1px solid #f0f0e9; }
.category-nav__inner { min-height: 44px; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.category-nav__inner::-webkit-scrollbar { display: none; }
.menu-button, .nav-link { white-space: nowrap; font-size: 13px; font-weight: 600; padding: 8px 12px; color: var(--ink-soft); border-radius: 5px; }
.menu-button { color: var(--ink); font-weight: 700; padding-left: 0; }
.menu-lines { color: var(--coral); font-size: 16px; margin-right: 5px; }
.nav-link:hover, .nav-link.is-active { color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, #fff); }
.nav-link--quiet { color: #8a928b; font-weight: 500; }
.nav-link--mobile { display: none; }
.nav-spacer { flex: 1; }

/* ---------- Alerts & toasts ---------- */
.alert { border-radius: 8px; padding: 12px 16px; margin: 16px 0; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: #e6f3ea; border-color: #bfdcc9; color: #0f4d2f; }
.alert-error { background: #fbeceb; border-color: #f1c6c2; color: #8a1c15; }
.alert-info { background: #eef4f7; border-color: #cbdce5; color: #23485d; }
.alert-warn { background: #fdf3e0; border-color: #f0d9a8; color: #6b4a07; }
.toast-region { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(460px, calc(100% - 32px)); }
.toast { pointer-events: auto; background: var(--ink); color: #fff; border-radius: 6px; padding: 11px 16px; font-size: 13px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; animation: toastIn .25s ease; }
.toast a { color: var(--sun); font-weight: 700; margin-left: auto; }
.toast-err { background: var(--err); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Hero ---------- */
.hero-section { min-height: 442px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; padding: 54px 0 48px; }
.hero-section h1 { font-size: clamp(46px, 6vw, 76px); margin: 14px 0 20px; max-width: 560px; }
.hero-section h1 span { color: var(--teal); font-style: italic; }
.hero-copy > p { color: var(--ink-soft); font-size: 16px; max-width: 460px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 11px; color: #7c8980; font-size: 12.5px; margin-top: 35px; }
.avatar-stack { display: inline-flex; }
.avatar-stack i { font-style: normal; font-size: 10px; color: var(--white); display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -6px; }
.avatar-stack i:first-child { margin-left: 0; background: var(--teal); }
.avatar-stack i:nth-child(2) { background: var(--plum); }
.avatar-stack i:nth-child(3) { background: var(--sun); color: var(--ink); }
.hero-art { min-height: 360px; position: relative; background: color-mix(in srgb, var(--teal) 12%, #fff); border-radius: 13px 13px 72px 13px; overflow: hidden; }
.hero-art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(135deg, color-mix(in srgb, var(--teal) 10%, transparent) 25%, transparent 25%, transparent 50%, color-mix(in srgb, var(--teal) 10%, transparent) 50%, color-mix(in srgb, var(--teal) 10%, transparent) 75%, transparent 75%); background-size: 24px 24px; opacity: .5; }
.hero-art--photo::before { display: none; }
.hero-art--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sun-disc { width: 210px; height: 210px; border-radius: 50%; background: var(--sun); position: absolute; top: 33px; right: 76px; opacity: .88; }
.arch { position: absolute; width: 245px; height: 255px; border: 15px solid var(--teal); border-bottom: 0; border-radius: 150px 150px 0 0; opacity: .92; bottom: -21px; left: 87px; }
.hero-book { position: absolute; width: 149px; height: 189px; top: 80px; color: #fff5dc; padding: 29px 20px; box-shadow: 9px 13px 0 rgba(93,69,52,.14); }
.hero-book::after { content: ''; position: absolute; width: 11px; height: 100%; top: 0; background: rgba(0,0,0,.1); }
.hero-book span { font-family: var(--display); font-size: 22px; line-height: .95; font-weight: 600; position: relative; z-index: 2; }
.hero-book--left { left: 136px; transform: rotate(-12deg); background: var(--plum); }
.hero-book--left::after { right: 9px; }
.hero-book--right { left: 254px; transform: rotate(12deg); background: var(--coral); }
.hero-book--right::after { left: 9px; }
.book-pattern { position: absolute; width: 49px; height: 49px; right: 20px; top: 21px; border: 1px solid rgba(255,255,255,.45); transform: rotate(45deg); }
.book-pattern::after, .book-pattern::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.45); }
.book-pattern::before { inset: 19px; }
.book-line { height: 35px; width: 50px; position: absolute; right: 20px; top: 25px; border-top: 1px solid rgba(255,255,255,.6); border-bottom: 1px solid rgba(255,255,255,.6); }
.hero-star { position: absolute; z-index: 3; color: var(--coral); font-size: 23px; }
.star-one { top: 34px; left: 87px; }
.star-two { right: 38px; top: 125px; color: var(--teal); }
.star-three { bottom: 51px; left: 64px; color: var(--sun); }
.hero-plant { position: absolute; bottom: 21px; z-index: 5; }
.hero-plant span { position: absolute; display: block; width: 39px; height: 18px; background: var(--teal); border-radius: 100% 0 100% 0; transform-origin: right bottom; }
.hero-plant span:nth-child(1) { transform: rotate(-35deg); bottom: 8px; }
.hero-plant span:nth-child(2) { transform: rotate(-73deg); bottom: 24px; right: 1px; }
.hero-plant span:nth-child(3) { transform: rotate(-8deg); bottom: 31px; right: -8px; }
.plant-left { left: 27px; }
.plant-right { right: 18px; transform: scaleX(-1); }
.hero-caption { position: absolute; right: 26px; bottom: 20px; z-index: 8; text-align: right; }
.hero-caption strong { font-family: var(--display); color: var(--teal-deep); font-size: 17px; line-height: .95; display: block; max-width: 150px; margin-left: auto; }
.hero-caption small { font-size: 9px; color: var(--teal); display: block; margin-top: 8px; letter-spacing: .05em; }

/* ---------- Section headings ---------- */
.browse-section, .catalog-section, .types-section, .subjects-section, .reviews-section, .gallery-section, .text-section { border-top: 1px solid var(--line); padding: 48px 0 60px; }
.section-heading, .catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(28px, 3.4vw, 36px); }
.section-heading h2 em { color: var(--teal); }
.section-sub { color: var(--ink-soft); margin: 10px 0 0; max-width: 560px; }

/* ---------- Learning stages ---------- */
.stage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stage-count-1, .stage-count-2 { grid-template-columns: repeat(2, 1fr); }
.stage-count-3 { grid-template-columns: repeat(3, 1fr); }
.stage-count-5 { grid-template-columns: repeat(5, 1fr); }
.stage-count-6 { grid-template-columns: repeat(3, 1fr); }
.stage-card { border-radius: var(--radius); min-height: 156px; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; isolation: isolate; }
.stage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stage-card::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -26px; bottom: -29px; background: rgba(255,255,255,.3); z-index: -1; }
.stage-card.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .3; }
.stage-card--sun { background: #f8dfab; } .stage-card--teal { background: #b8dcd0; } .stage-card--plum { background: #d9b7c5; } .stage-card--blue { background: #c2d6dc; }
.stage-number { font-size: 11px; color: rgba(24,34,30,.58); }
.stage-emoji { font-size: 32px; position: absolute; right: 20px; top: 16px; color: rgba(24,34,30,.58); }
.stage-card strong { font-family: var(--display); font-size: 22px; margin-top: auto; letter-spacing: -.04em; line-height: 1.05; }
.stage-card small { font-size: 12px; color: rgba(24,34,30,.68); margin-top: 3px; padding-right: 26px; }
.stage-arrow { position: absolute; right: 18px; bottom: 14px; font-size: 16px; }

/* ---------- Formats & subjects ---------- */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.type-card { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.type-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.type-media { width: 58px; height: 58px; border-radius: 8px; background: var(--card); color: #fff; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.type-media img { width: 100%; height: 100%; object-fit: cover; }
.type-icon { font-size: 26px; }
.type-body strong { display: block; font-family: var(--display); font-size: 17px; letter-spacing: -.02em; line-height: 1.1; }
.type-body small { color: var(--muted); font-size: 12px; display: block; margin-top: 3px; line-height: 1.3; }
.subject-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.subject-chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: .2s; }
.subject-chip:hover { border-color: var(--card); color: var(--card); }
.subject-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.chip-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--card); }
.subject-chip small { color: var(--muted); font-weight: 500; }

/* ---------- Product cards & covers ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 16px; align-content: start; }
.catalog-layout .product-grid { grid-template-columns: repeat(3, 1fr); }
.catalog-layout.no-filters .product-grid { grid-template-columns: repeat(4, 1fr); }
.product-card { min-width: 0; position: relative; display: flex; flex-direction: column; }
.product-image { height: 220px; position: relative; border-radius: 8px; overflow: hidden; margin-bottom: 13px; display: block; background: color-mix(in srgb, var(--teal) 14%, #fff); box-shadow: inset 0 -12px 18px rgba(25,38,30,.06); }
.product-card:nth-child(4n+2) .product-image { background: #f7dca7; }
.product-card:nth-child(4n+3) .product-image { background: #ecd3da; }
.product-card:nth-child(4n+4) .product-image { background: #cfe0e6; }
.product-image::before { content: ''; position: absolute; inset: 0; opacity: .2; background-image: repeating-linear-gradient(45deg, transparent, transparent 9px, rgba(255,255,255,.55) 10px, transparent 11px); }
.product-image:hover .cover-label, .product-image:hover .cover.has-image img { transform: rotate(0) translateY(-4px) scale(1.02); }
.cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cover.has-image { padding: 14px; }
.cover.has-image img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 3px; box-shadow: 5px 7px 0 rgba(29,45,38,.14); transition: transform .3s ease; }
.cover-label { position: relative; width: 66%; height: 80%; padding: 16px 13px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 5px 7px 0 rgba(29,45,38,.14); transform: rotate(-3deg); color: #fff; background: var(--cover, var(--teal)); transition: transform .3s ease; overflow: hidden; }
.product-card:nth-child(even) .cover-label { transform: rotate(3deg); }
.cover-label::after { content: ''; position: absolute; width: 7px; top: 0; right: 12px; bottom: 0; background: rgba(255,255,255,.18); }
.cover-label small { font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .9; max-width: 68%; line-height: 1.3; }
.cover-label strong { font-family: var(--display); font-size: 18px; line-height: 1; letter-spacing: -.035em; max-width: 92%; overflow-wrap: anywhere; }
.cover-label em { font-style: normal; font-size: 10px; opacity: .85; margin-top: -10px; }
.cover-symbol { position: absolute; right: 22px; top: 12px; font-size: 24px; opacity: .72; }
.cover--mini { position: relative; height: 100%; }
.cover--mini .cover-label { width: 100%; height: 100%; transform: none; padding: 7px; box-shadow: none; justify-content: center; text-align: center; }
.cover--mini .cover-label small, .cover--mini .cover-symbol { display: none; }
.cover--mini .cover-label strong { font-size: 11px; max-width: 100%; }
.cover--mini.has-image { padding: 0; }
.cover--mini.has-image img { box-shadow: none; width: 100%; height: 100%; object-fit: cover; }
.cover--detail .cover-label { width: 62%; height: 78%; transform: rotate(-4deg); padding: 26px 22px; }
.cover--detail .cover-label strong { font-size: clamp(24px, 3vw, 34px); }
.cover--detail .cover-label small { font-size: 10px; }
.cover--detail .cover-label em { font-size: 13px; margin-top: -24px; }
.cover--detail .cover-symbol { font-size: 38px; right: 30px; top: 20px; }
.cover--detail.has-image { padding: 26px; }
.product-badge { position: absolute; left: 8px; top: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.08); padding: 5px 8px; border-radius: 3px; background: var(--white); color: var(--teal); font-size: 10px; font-weight: 700; z-index: 2; letter-spacing: .02em; }
.product-info { padding: 0 2px; display: flex; flex-direction: column; flex: 1; }
.product-meta { color: var(--coral); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.product-title { font-family: var(--display); font-size: 18px; line-height: 1.08; margin: 5px 0 4px; letter-spacing: -.03em; }
.product-title a:hover { color: var(--teal); }
.product-author { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 4px; }
.product-desc { color: var(--muted); font-size: 12.5px; line-height: 1.4; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; flex-wrap: wrap; }
.product-price { font-size: 16px; font-weight: 700; }
.product-price small { font-size: 10.5px; font-weight: 500; color: #7d887f; }
.product-price s, .format-price s { font-size: 12px; color: var(--muted); font-weight: 500; }
.buy-button { color: var(--teal); border: 1px solid color-mix(in srgb, var(--teal) 35%, #fff); border-radius: 5px; background: transparent; padding: 8px 12px; font-size: 12.5px; font-weight: 700; transition: background .2s ease, color .2s ease; white-space: nowrap; }
.buy-button:hover, .buy-button.is-added { color: white; background: var(--teal); }
.buy-button:disabled { opacity: .6; }
.card-buy { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.card-select { width: 100%; border: 1px solid #d7dbd1; border-radius: 5px; background: var(--white); font-size: 12.5px; padding: 7px 8px; }
.sold-out { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Shop ---------- */
.shop-head { padding: 34px 0 26px; }
.shop-head h1 { font-size: clamp(34px, 4.6vw, 52px); margin: 8px 0 10px; }
.shop-head .lede { color: var(--ink-soft); max-width: 640px; margin: 0; }
.shop-head.has-photo { background: linear-gradient(90deg, var(--paper) 40%, color-mix(in srgb, var(--paper) 30%, transparent)), var(--banner) center/cover; border-radius: var(--radius); padding: 40px 30px; margin-top: 16px; }
.catalog-section { padding-top: 30px; }
.catalog-heading { align-items: center; flex-wrap: wrap; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-pill { background: color-mix(in srgb, var(--teal) 10%, #fff); color: var(--teal-deep); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; }
.filter-pill span { margin-left: 4px; color: var(--coral); }
.catalog-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.result-count { color: #7a877e; font-size: 13px; }
.sort-form select { border: 1px solid #d7dbd1; border-radius: 5px; padding: 7px 10px; background: #fff; font-size: 13px; }
.filter-toggle { color: var(--teal); background: transparent; border: 1px solid #c8d9d2; border-radius: 5px; padding: 8px 12px; font-size: 13px; display: none; }
.catalog-layout { display: grid; grid-template-columns: 200px 1fr; gap: 32px; }
.catalog-layout.no-filters { grid-template-columns: 1fr; }
.filter-panel { border-right: 1px solid var(--line); padding-right: 18px; align-self: start; position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; }
.filter-panel__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 14px; }
.filter-panel__header button { display: none; border: 0; background: none; font-size: 26px; color: var(--ink-soft); }
.filter-group { border-top: 1px solid var(--line); padding: 16px 0 18px; display: flex; flex-direction: column; gap: 3px; }
.filter-label { font-size: 10.5px; color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 6px; }
.filter-link { font-size: 13px; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: 5px; }
.filter-link small { color: #a5aea7; }
.filter-link:hover { background: var(--paper-dark); }
.filter-link.is-active { background: color-mix(in srgb, var(--coral) 12%, #fff); color: var(--coral); font-weight: 700; }
.price-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
.price-row input { width: 100%; border: 1px solid #d7dbd1; border-radius: 5px; padding: 7px 8px; font-size: 13px; background: #fff; }
.price-row .button { padding: 7px 10px; }
.clear-filters { color: var(--coral); background: none; border: 0; padding: 10px 0; font-size: 13px; font-weight: 600; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 36px; }
.pager a, .pager span { padding: 7px 12px; border-radius: 5px; border: 1px solid var(--line); font-size: 13px; background: #fff; }
.pager span[aria-current] { background: var(--teal); color: #fff; border-color: var(--teal); }
.empty-state { text-align: center; padding: 55px 20px; border: 1px dashed #c5d5cc; border-radius: 8px; }
.empty-state > span { color: var(--sun); font-size: 32px; }
.empty-state h1, .empty-state h3 { font-family: var(--display); font-size: 28px; margin: 8px 0; }
.empty-state p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 18px; }

/* ---------- Product page ---------- */
.product-page { padding: 20px 0 40px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--teal); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 46px; align-items: start; }
.product-gallery { position: sticky; top: 140px; }
.product-stage { position: relative; height: 470px; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--teal) 14%, #fff); }
.product-stage::before { content: ''; position: absolute; inset: 0; opacity: .2; background-image: repeating-linear-gradient(45deg, transparent, transparent 9px, rgba(255,255,255,.6) 10px, transparent 11px); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 64px; height: 64px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--paper-dark); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--coral); }
.try-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.product-copy h1 { font-size: clamp(32px, 4vw, 46px); margin: 8px 0 6px; }
.byline { color: var(--ink-soft); margin: 0 0 12px; }
.lede { color: var(--ink-soft); font-size: 16.5px; }
.buy-box { margin: 20px 0 18px; }
.formats { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.formats legend { font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; padding: 0; }
.format { display: flex; align-items: center; gap: 12px; border: 1px solid #d7dbd1; border-radius: 8px; padding: 12px 14px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.format:hover { border-color: var(--teal); }
.format:has(input:checked) { border-color: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 14%, transparent); }
.format input { accent-color: var(--coral); margin: 0; }
.format.is-out { opacity: .55; cursor: not-allowed; }
.format-body { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.format-name { font-weight: 700; }
.format-tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--paper-dark); color: var(--ink-soft); letter-spacing: .02em; white-space: nowrap; }
.format-tag--download, .format-tag--access, .format-tag--license { background: color-mix(in srgb, var(--teal) 12%, #fff); color: var(--teal-deep); }
.format-note { font-size: 12px; color: var(--coral); font-weight: 600; }
.format-price { font-weight: 700; font-size: 16px; white-space: nowrap; }
.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.qty { display: inline-flex; align-items: center; border: 1px solid #cedbd5; border-radius: 6px; background: #fff; }
.qty button { border: 0; background: transparent; color: var(--teal); width: 36px; height: 44px; font-size: 18px; }
.qty input { width: 46px; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.assurances { list-style: none; padding: 16px 0; margin: 0 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }
.assurances span { color: var(--teal); display: inline-block; width: 20px; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0; }
.detail-list div { display: flex; flex-direction: column; }
.detail-list dt { font-size: 10.5px; color: #7f8d83; text-transform: uppercase; letter-spacing: .1em; }
.detail-list dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.product-more { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 50px; max-width: 860px; }
.prose h2 { font-size: 26px; margin: 28px 0 10px; }
.prose h3 { font-size: 20px; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 15.5px; }
.prose a { color: var(--teal); text-decoration: underline; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 26px; position: relative; margin: 8px 0; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.media-block h2 { font-size: 26px; margin-bottom: 12px; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--teal-deep); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--demo { aspect-ratio: 16 / 10; }
.demo-start { position: absolute; inset: 0; width: 100%; border: 0; background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--sun) 70%, transparent) 0 18%, transparent 19%), var(--teal-deep); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.demo-play { width: 70px; height: 70px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; font-size: 26px; margin-bottom: 8px; box-shadow: 0 0 0 10px rgba(255,255,255,.12); }
.demo-start strong { font-family: var(--display); font-size: 22px; }
.demo-start small { opacity: .75; }

/* ---------- Editorial banner ---------- */
.editorial-banner { background: var(--teal-deep); color: var(--white); min-height: 304px; border-radius: 10px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; position: relative; margin: 20px 0 50px; }
.editorial-copy { padding: 45px 50px; z-index: 1; }
.editorial-copy .eyebrow { color: var(--sun); }
.editorial-copy h2 { font-size: clamp(34px, 4vw, 46px); margin: 10px 0 15px; }
.editorial-copy h2 em { color: var(--sun); font-style: italic; }
.editorial-copy p { color: rgba(255,255,255,.75); font-size: 14px; max-width: 390px; margin-bottom: 22px; }
.editorial-art { background: var(--coral); position: relative; overflow: hidden; min-height: 260px; }
.editorial-art--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.editorial-circle { width: 260px; height: 260px; border: 20px solid rgba(252,251,246,.23); border-radius: 50%; position: absolute; top: 18px; left: 70px; }
.editorial-card { position: absolute; width: 130px; height: 168px; padding: 19px; font-family: var(--display); font-size: 23px; line-height: .92; color: var(--teal-deep); box-shadow: 8px 10px 0 rgba(59,57,40,.14); }
.card-back { left: 103px; top: 53px; background: var(--sun); transform: rotate(-12deg); }
.card-front { left: 221px; top: 64px; background: #f4e9c9; transform: rotate(10deg); }
.editorial-scribble { position: absolute; bottom: 21px; left: 47px; color: #fff0cf; font-size: 12px; line-height: 1.2; font-weight: 700; transform: rotate(-8deg); }

/* ---------- Reassurance, schools, reviews, gallery ---------- */
.reassurance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 41px 0 48px; border-top: 1px solid var(--line); }
.reassurance-4 { grid-template-columns: repeat(4, 1fr); }
.reassurance-1, .reassurance-2 { grid-template-columns: repeat(2, 1fr); }
.reassurance-item { display: flex; align-items: center; gap: 13px; }
.reassurance-item > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, #fff); font-size: 20px; }
.reassurance-item:nth-child(3n+2) > span { color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, #fff); }
.reassurance-item:nth-child(3n+3) > span { color: var(--plum); background: color-mix(in srgb, var(--plum) 12%, #fff); }
.reassurance-item strong { font-size: 14px; }
.reassurance-item p { color: #829087; font-size: 12.5px; line-height: 1.35; margin: 3px 0 0; }
.schools { padding: 20px 0 50px; }
.schools-grid { background: color-mix(in srgb, var(--sun) 22%, #fff); border-radius: 12px; padding: 44px 50px; display: grid; gap: 40px; align-items: center; }
.schools-grid.has-photo { grid-template-columns: 1fr 1.2fr; }
.schools-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.schools-copy h2 { font-size: clamp(30px, 3.6vw, 40px); margin: 8px 0 12px; }
.schools-copy p { color: var(--ink-soft); max-width: 560px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.review-stars { color: var(--sun); letter-spacing: 2px; }
.review-stars span { color: #e2e2d8; }
.review blockquote { margin: 10px 0; }
.review blockquote p { color: var(--ink-soft); margin: 0; }
.review figcaption { font-size: 13px; }
.review figcaption span { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 12px 10px; color: #fff; font-size: 12.5px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.gallery-1 { grid-template-columns: 1fr; } .gallery-1 figure { aspect-ratio: 16/7; }

/* ---------- Slideshow ---------- */
.slider { position: relative; margin-top: 24px; margin-bottom: 20px; }
.slides { position: relative; min-height: 380px; border-radius: 12px; overflow: hidden; }
.slide { position: absolute; inset: 0; background: var(--slide); color: #fff; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; position: relative; }
.slide-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; align-items: center; }
.slide-copy { padding: 40px 50px; }
.slide-title { font-size: clamp(34px, 4.4vw, 54px); margin: 0 0 14px; color: #fff; }
.slide-sub { color: rgba(255,255,255,.82); font-size: 16px; max-width: 420px; margin-bottom: 22px; }
.slide-media { position: relative; height: 100%; min-height: 380px; }
.slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-sun { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: var(--sun); right: 60px; top: 50px; opacity: .9; }
.price-burst { position: absolute; left: 20px; bottom: 24px; background: var(--sun); color: var(--teal-deep); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; box-shadow: var(--shadow); }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.slider-arrow, .slider-pause { border: 1px solid var(--line); background: #fff; border-radius: 999px; width: 36px; height: 36px; font-size: 20px; line-height: 1; }
.slider-pause { width: auto; padding: 0 14px; font-size: 12px; }
.slider-dots { display: flex; gap: 6px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #d3d6cc; padding: 0; }
.slider-dots button[aria-selected="true"] { background: var(--coral); width: 24px; border-radius: 6px; }

/* ---------- Inner pages ---------- */
.page-head { padding: 40px 0 22px; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 52px); margin: 8px 0 10px; }
.page-head .lede { max-width: 680px; margin: 0; }
.page-body.has-photo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.page-photo { border-radius: 10px; width: 100%; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin: 0 0 16px; }
.panel h2 { font-size: 22px; margin-bottom: 12px; }
fieldset.panel { min-width: 0; }
.panel legend { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; padding: 0 6px; margin-left: -6px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label, .field .label { font-weight: 600; font-size: 14px; }
.field small { color: var(--muted); font-size: 12.5px; }
.field small.is-err { color: var(--err); }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea, .promo input, .track-row input { width: 100%; border: 1px solid #d0d6cc; border-radius: 6px; padding: 11px 12px; background: #fff; font-size: 15px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 12%, transparent); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -5000px; }
.zone-options { display: grid; gap: 8px; }
.zone { display: flex; align-items: center; gap: 12px; border: 1px solid #d7dbd1; border-radius: 8px; padding: 12px 14px; cursor: pointer; background: #fff; }
.zone:has(input:checked) { border-color: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 12%, transparent); }
.zone input { accent-color: var(--coral); margin: 0; }
.zone-name { flex: 1; font-weight: 600; font-size: 14px; display: flex; flex-direction: column; }
.zone-name small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.zone-fee { font-weight: 700; white-space: nowrap; }

/* ---------- Basket, checkout, summary ---------- */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-cover { width: 72px; height: 92px; border-radius: 5px; overflow: hidden; display: block; position: relative; }
.cart-line-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-line-info strong { font-family: var(--display); font-size: 17px; letter-spacing: -.02em; }
.cart-line-info .muted { font-size: 13px; }
.cart-line-info .link-btn { align-self: flex-start; margin-top: 4px; }
.cart-line-total { font-size: 16px; min-width: 80px; text-align: right; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.summary-sticky { position: sticky; top: 140px; }
.summary h2 { font-size: 22px; margin-bottom: 14px; }
.summary dl, .panel dl { margin: 0 0 16px; }
.summary dl > div, .panel dl:not(.kv) > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.summary dt, .summary dd { margin: 0; }
.summary .total, .panel .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; font-weight: 700; font-size: 18px !important; }
.summary .total dd, .panel .total dd { font-family: var(--display); font-size: 22px; }
.summary dd { margin: 0; }
.summary .button--text { display: flex; margin-top: 8px; justify-content: center; }
.summary-items { list-style: none; padding: 0; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; }
.summary-items small { display: block; color: var(--muted); font-size: 12px; }
.discount-row dd { color: var(--ok); }
.promo { margin-bottom: 16px; }
.promo label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 5px; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { padding: 9px 10px; font-size: 14px; }
.promo-msg { display: block; margin-top: 5px; font-size: 12.5px; }
.promo-msg.is-ok { color: var(--ok); } .promo-msg.is-err { color: var(--err); }
.pay-mode { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.pay-mode legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-error { background: #fbeceb; color: #8a1c15; border-radius: 6px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; }

/* ---------- Order page ---------- */
.order-wrap { max-width: 900px; margin: 0 auto; }
.order-status-card { background: var(--teal-deep); color: #fff; border-radius: 12px; padding: 30px 32px; margin: 10px 0 18px; position: relative; overflow: hidden; }
.order-status-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--sun); opacity: .9; }
.order-status-card > * { position: relative; z-index: 1; }
.order-status-card h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 6px 0 10px; max-width: 640px; }
.order-status-card p { color: rgba(255,255,255,.85); max-width: 640px; }
.order-status-card.is-unpaid, .order-status-card.is-failed { background: var(--plum); }
.order-number { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin: 0; }
.order-number a { text-decoration: underline; }
.library-order .order-number, .panel .order-number { color: var(--coral); }
.balance-due { background: rgba(255,255,255,.1); border-radius: 8px; padding: 14px 16px; margin: 14px 0; }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.3); border-top-color: var(--sun); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: s; }
.progress li { font-size: 12.5px; padding-top: 14px; border-top: 4px solid rgba(255,255,255,.25); color: rgba(255,255,255,.7); }
.progress li.is-done { border-color: var(--sun); color: #fff; }
.progress li.is-current { border-color: var(--sun); color: #fff; font-weight: 700; }
.panel .progress li { border-top-color: var(--line); color: var(--muted); }
.panel .progress li.is-done, .panel .progress li.is-current { border-top-color: var(--coral); color: var(--ink); }
.order-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.order-details .panel:last-child:nth-child(odd) { grid-column: span 2; }
.kv { display: grid; gap: 8px; margin: 0; }
.kv > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.history time { display: block; color: var(--muted); font-size: 12px; }
.history span { color: var(--ink-soft); }
.review-ask { text-align: center; margin: 20px 0; }

/* ---------- Digital items ---------- */
.digital-panel { border-color: color-mix(in srgb, var(--teal) 30%, #fff); }
.digital-list { list-style: none; padding: 0; margin: 0; }
.digital-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.digital-item:first-child { border-top: 0; }
.digital-cover { width: 56px; height: 72px; border-radius: 4px; overflow: hidden; position: relative; }
.digital-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.digital-main strong { font-family: var(--display); font-size: 17px; letter-spacing: -.02em; }
.digital-main .muted { font-size: 13px; }
.license-key { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--paper-dark); border-radius: 6px; padding: 6px 10px; font-size: 13px; }
.license-key span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.license-key code { font-size: 14px; font-weight: 700; word-break: break-all; }
.delivery-note { font-size: 13px; color: var(--ink-soft); background: color-mix(in srgb, var(--sun) 15%, #fff); border-radius: 6px; padding: 8px 10px; }
.delivery-note p { margin: 0 0 4px; } .delivery-note h2, .delivery-note h3 { font-size: 15px; margin: 4px 0; }
.digital-action { text-align: right; max-width: 220px; }
.library-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.library-order { margin-bottom: 18px; }
.library-order .order-number { margin-bottom: 8px; }

/* ---------- Track ---------- */
.track-form label { font-weight: 600; display: block; margin-bottom: 6px; }
.track-row { display: flex; gap: 8px; margin-bottom: 6px; }
.track-head { display: flex; justify-content: space-between; align-items: start; }
.track-head h2 { margin: 4px 0 6px; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); }
.status-dot.status-delivered { background: var(--ok); } .status-dot.status-cancelled, .status-dot.status-unpaid { background: #c9cdc4; }
.order-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.order-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; }
.pill-public { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--paper-dark); }
.pill-public.status-delivered { background: #e6f3ea; color: var(--ok); }

/* ---------- About, contact, team, review ---------- */
.about-grid, .contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about-photo { border-radius: 10px; margin-bottom: 20px; width: 100%; }
.team-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.team-list li { display: flex; gap: 14px; align-items: start; }
.team-list img, .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.avatar { display: grid; place-items: center; background: var(--teal); color: #fff; font-family: var(--display); font-size: 26px; }
.team-list strong { display: block; font-family: var(--display); font-size: 18px; }
.team-list p { color: var(--ink-soft); font-size: 14px; margin: 4px 0 0; }
.stars { border: 0; padding: 0; margin: 10px 0 18px; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars legend { font-weight: 600; margin-bottom: 6px; float: left; width: 100%; }
.stars input { position: absolute; opacity: 0; }
.stars label { font-size: 36px; color: #dcdcd2; cursor: pointer; line-height: 1; }
.stars label::before { content: '★'; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--sun); }
.stars input:focus-visible + label { outline: 2px solid var(--teal); }

/* ---------- Footer, drawer, WhatsApp ---------- */
.site-footer { background: color-mix(in srgb, var(--teal-deep) 85%, #000); color: rgba(255,255,255,.72); margin-top: 30px; }
.footer-main { padding: 44px 0 32px; display: flex; justify-content: space-between; gap: 40px; }
.footer-brand { max-width: 300px; }
.brand--footer { color: var(--white); min-width: 0; }
.brand--footer .brand-logo { width: 56px; height: 56px; }
.footer-brand p { font-size: 14px; margin: 16px 0 0; }
.footer-brand > p:first-of-type { font-family: var(--display); font-size: 16px; color: rgba(255,255,255,.62); }
.pay-note { font-size: 12.5px !important; color: rgba(255,255,255,.55); }
.socials { display: flex; gap: 14px; flex-wrap: wrap; }
.socials a { color: var(--sun); font-size: 13px; font-weight: 600; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links div { display: flex; flex-direction: column; gap: 8px; min-width: 130px; }
.footer-links strong { color: var(--sun); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.footer-links a, .footer-links span { font-size: 13.5px; color: rgba(255,255,255,.66); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: rgba(255,255,255,.45); }
.scrim { position: fixed; inset: 0; background: rgba(16,35,29,.45); z-index: 30; }
.drawer { position: fixed; z-index: 31; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); box-shadow: -8px 0 35px rgba(19,37,30,.2); transform: translateX(100%); transition: transform .3s ease; padding: 30px 26px 22px; display: flex; flex-direction: column; visibility: hidden; }
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer-header { display: flex; align-items: start; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 8px 0 0; font-size: 29px; }
.drawer-header h2 span { font-family: var(--body); font-size: 13px; letter-spacing: 0; color: var(--ink-soft); }
.drawer-close { border: 0; background: transparent; font-size: 30px; color: var(--ink-soft); line-height: 1; }
.basket-items { overflow-y: auto; padding: 8px 0; flex: 1; }
.basket-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mini-cover { width: 60px; height: 78px; border-radius: 4px; overflow: hidden; position: relative; display: block; }
.basket-row h3 { font-size: 15px; line-height: 1.1; margin: 3px 0; }
.basket-row small { font-size: 11px; color: var(--ink-soft); display: block; }
.basket-row strong { font-size: 14px; }
.quantity { display: inline-flex; align-items: center; border: 1px solid #cedbd5; border-radius: 5px; margin-top: 8px; }
.quantity button { border: 0; background: transparent; color: var(--teal); width: 28px; height: 26px; font-size: 15px; }
.quantity span { font-size: 12px; min-width: 20px; text-align: center; font-weight: 700; }
.remove-item { border: 0; background: transparent; color: #a0aaa3; font-size: 11.5px; margin-top: 4px; text-decoration: underline; }
.basket-row__price { display: flex; flex-direction: column; align-items: end; gap: 5px; }
.basket-empty { text-align: center; padding: 60px 20px 20px; }
.empty-basket-icon { margin: 0 auto 16px; width: 54px; height: 54px; border: 2px solid var(--teal); border-radius: 50%; color: var(--coral); display: grid; place-items: center; font-size: 28px; }
.basket-empty h3 { font-size: 22px; margin-bottom: 7px; }
.basket-empty p { color: var(--ink-soft); font-size: 13px; margin-bottom: 20px; }
.basket-footer { border-top: 1px solid var(--line); padding-top: 16px; }
.basket-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 13px; }
.basket-total strong { font-family: var(--display); font-size: 24px; }
.basket-view { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--teal); font-weight: 600; }
.basket-footer small { display: block; text-align: center; color: #87938a; font-size: 11.5px; margin-top: 10px; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 25; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
body.drawer-open { overflow: hidden; }

/* ---------- Scroll reveal ---------- */
.reveal-on [data-aos] { opacity: 0; transition: opacity .6s ease, transform .6s ease; }
.reveal-on [data-aos="fade-up"] { transform: translateY(18px); }
.reveal-on [data-aos="fade-left"] { transform: translateX(18px); }
.reveal-on [data-aos="fade-right"] { transform: translateX(-18px); }
.reveal-on [data-aos="zoom-in"] { transform: scale(.96); }
.reveal-on [data-aos].aos-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .header-main { gap: 18px; }
  .brand { min-width: 0; }
  .text-action { display: none; }
  .nav-link--mobile { display: inline-block; }
  .product-grid, .catalog-layout.no-filters .product-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-layout .product-grid { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-book--left { left: 83px; } .hero-book--right { left: 196px; } .arch { left: 45px; } .sun-disc { right: 45px; }
  .editorial-card.card-front { left: 165px; }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .stage-count-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .cart-layout, .checkout-layout, .library-layout { grid-template-columns: 1fr; }
  .summary-sticky { position: static; }
  .product-detail { grid-template-columns: 1fr; gap: 26px; }
  .product-gallery { position: static; }
  .product-stage { height: 380px; }
  .about-grid, .contact-grid, .page-body.has-photo { grid-template-columns: 1fr; }
  .order-details { grid-template-columns: 1fr; }
  .order-details .panel:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .shell { width: min(100% - 32px, 620px); }
  .top-strip__note { display: none; }
  .header-main { flex-wrap: wrap; padding: 12px 0; gap: 12px; min-height: 0; }
  .brand { flex: 1; }
  .brand-logo { width: 44px; height: 44px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { margin-left: 0; }
  .basket-label { display: none; }
  .nav-spacer { display: none; }
  .hero-section { grid-template-columns: 1fr; padding: 36px 0 40px; min-height: 0; }
  .hero-art { min-height: 312px; }
  .hero-book--left { left: calc(50% - 160px); } .hero-book--right { left: calc(50% - 43px); }
  .arch { left: calc(50% - 205px); } .sun-disc { right: calc(50% - 168px); }
  .hero-caption { right: 15px; }
  .stage-grid, .stage-count-3, .stage-count-5, .stage-count-6 { grid-template-columns: 1fr 1fr; }
  .section-heading, .catalog-heading { align-items: start; flex-direction: column; gap: 12px; }
  .catalog-tools { width: 100%; justify-content: space-between; margin-left: 0; }
  .filter-toggle { display: block; }
  .catalog-layout { display: block; }
  .filter-panel { position: fixed; z-index: 32; left: 0; top: 0; bottom: 0; width: min(320px, 88%); max-height: none; background: var(--paper); padding: 28px 22px; border: 0; box-shadow: 8px 0 35px rgba(19,37,30,.2); overflow-y: auto; transform: translateX(-105%); transition: transform .3s ease; visibility: hidden; }
  .filter-panel.is-open { transform: translateX(0); visibility: visible; }
  .filter-panel__header button { display: block; }
  .product-grid, .catalog-layout .product-grid, .catalog-layout.no-filters .product-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 13px; }
  .product-image { height: 200px; }
  .editorial-banner { grid-template-columns: 1fr; }
  .editorial-copy { padding: 36px 26px 30px; }
  .editorial-circle { left: 50%; transform: translateX(-50%); }
  .editorial-card.card-back { left: calc(50% - 111px); } .editorial-card.card-front { left: calc(50% + 5px); }
  .reassurance, .reassurance-4 { grid-template-columns: 1fr; gap: 16px; padding: 30px 0; }
  .schools-grid, .schools-grid.has-photo { grid-template-columns: 1fr; padding: 30px 24px; }
  .reviews { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .slide-grid { grid-template-columns: 1fr; }
  .slide-copy { padding: 30px 26px; }
  .slide-media { min-height: 220px; }
  .footer-main { flex-direction: column; gap: 30px; }
  .footer-links { gap: 24px; }
  .footer-bottom { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
  .detail-list { grid-template-columns: 1fr 1fr; }
  .cart-line { grid-template-columns: 60px 1fr; }
  .cart-cover { width: 60px; height: 78px; grid-row: span 2; }
  .cart-line .qty { justify-self: start; }
  .cart-line-total { text-align: left; }
  .digital-item { grid-template-columns: 48px 1fr; }
  .digital-action { grid-column: 1 / -1; text-align: left; max-width: none; }
  .digital-action .button { width: 100%; }
  .progress { grid-template-columns: repeat(2, 1fr); }
  .order-status-card { padding: 24px 22px; }
}
@media (max-width: 430px) {
  .hero-section h1 { font-size: 46px; }
  .hero-art { min-height: 280px; }
  .hero-book { width: 122px; height: 164px; padding: 24px 15px; }
  .hero-book span { font-size: 18px; }
  .hero-book--left { left: calc(50% - 131px); } .hero-book--right { left: calc(50% - 33px); }
  .arch { left: calc(50% - 164px); width: 205px; height: 220px; }
  .sun-disc { width: 165px; height: 165px; right: calc(50% - 128px); }
  .product-image { height: 172px; }
  .cover-label strong { font-size: 14px; }
  .product-title { font-size: 16px; }
  .product-desc { display: none; }
  .brand-copy strong { font-size: 16px; } .brand-copy em { font-size: 15px; }
  .buy-actions .button { flex: 1; }
  .drawer { padding: 24px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .top-strip, .site-footer, .wa-float, .drawer, .scrim { display: none !important; }
}
