:root {
  --ink: #17183b;
  --ink-2: #252756;
  --paper: #fbfaf6;
  --white: #ffffff;
  --muted: #6f7083;
  --line: #dedee7;
  --soft: #f1f1f7;
  --coral: #ff6f61;
  --coral-dark: #e54e41;
  --lime: #d9f99d;
  --lavender: #d9d5ff;
  --gold: #ffcf66;
  --shadow: 0 22px 60px rgba(27, 29, 65, .12);
  --radius: 22px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body, button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { cursor: pointer; }
button, input, select, textarea { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.035em; }
h1 { font-size: clamp(2.75rem, 6vw, 5.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { max-width: 880px; }
.section { padding: 100px 0; }
.section--soft { background: var(--soft); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 15px; top: -100px; z-index: 1000; padding: 10px 16px; background: var(--white); border: 2px solid var(--ink); }
.skip-link:focus { top: 15px; }
.eyebrow { margin-bottom: 14px; color: #696a88; font-size: .74rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow--accent { color: var(--coral-dark); }
.eyebrow--light { color: #cbcdef; }

.announcement { background: var(--ink); color: #f7f7ff; font-size: .82rem; }
.announcement__inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.announcement a { color: #d8daf3; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251,250,246,.94); border-bottom: 1px solid rgba(23,24,59,.09); backdrop-filter: blur(16px); }
.site-header__inner { min-height: 82px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; }
.brand__mark { position: relative; display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; color: var(--white); background: var(--coral); border-radius: 13px 13px 13px 3px; transform: rotate(-5deg); }
.brand__mark::after { content: ""; position: absolute; width: 28px; height: 45px; right: -14px; background: var(--gold); transform: rotate(24deg); opacity: .95; }
.brand__mark span { position: relative; z-index: 1; transform: rotate(5deg); font-family: Georgia, serif; font-size: 1.42rem; }
.brand__wordmark { font-size: 1.25rem; letter-spacing: -.04em; }
.brand__wordmark span { color: var(--coral-dark); }
.primary-nav { display: flex; justify-content: center; gap: clamp(18px, 3vw, 38px); font-size: .9rem; font-weight: 700; }
.primary-nav a { position: relative; padding: 30px 0; }
.primary-nav a::after { content: ""; position: absolute; left: 0; bottom: 22px; width: 100%; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.header-search-toggle { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 0; }
.header-search-toggle svg, .cart-link svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cart-link { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 7px 0 12px; border: 1px solid var(--ink); border-radius: 999px; font-size: .86rem; font-weight: 800; }
.cart-link b { display: grid; place-items: center; min-width: 27px; height: 27px; padding: 0 5px; background: var(--ink); color: var(--white); border-radius: 999px; font-size: .75rem; }
.cart-link b.has-items { background: var(--coral); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; background: transparent; border: 0; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }
.header-search { position: absolute; inset: 100% 0 auto; background: var(--white); box-shadow: 0 18px 40px rgba(23,24,59,.13); }
.header-search[hidden] { display: none; }
.header-search__inner { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding-block: 20px; }
.header-search input { min-width: 0; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; outline: none; }
.header-search input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,24,59,.08); }
.search-close { width: 48px; background: transparent; border: 0; font-size: 1.8rem; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 19px; border: 1px solid transparent; border-radius: 10px; font-size: .86rem; font-weight: 850; letter-spacing: -.01em; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--coral); color: var(--white); box-shadow: 0 8px 20px rgba(229,78,65,.22); }
.button--primary:hover { background: var(--coral-dark); box-shadow: 0 12px 28px rgba(229,78,65,.28); }
.button--large { min-height: 54px; padding: 14px 26px; border-radius: 12px; }
.button--outline { border-color: var(--ink); background: transparent; }
.button--outline:hover { background: var(--ink); color: var(--white); }
.button--light { background: var(--white); color: var(--ink); }
.button--full { width: 100%; }
.button--icon { min-height: 38px; padding: 8px 13px; background: var(--ink); color: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: .92rem; }
.text-link span { font-size: 1.25rem; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.hero { position: relative; overflow: hidden; background: #f6f5fb; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: radial-gradient(#a8a9bd 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, #000, transparent 50%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; min-height: 710px; }
.hero__content { padding: 92px 5vw 80px 0; }
.hero h1 { max-width: 770px; margin-bottom: 27px; font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
.hero h1 em { color: #5550e6; font-style: normal; }
.hero__lead { max-width: 650px; margin-bottom: 34px; color: #5e6075; font-size: 1.13rem; }
.hero__actions { display: flex; align-items: center; gap: 28px; }
.hero__stats { display: flex; gap: 34px; margin-top: 56px; padding-top: 28px; border-top: 1px solid #d7d7e1; }
.hero__stats div { display: grid; }
.hero__stats strong { font-size: 1.1rem; }
.hero__stats span { color: var(--muted); font-size: .75rem; }
.hero__visual { position: relative; min-height: 710px; background: linear-gradient(145deg, #dedbff 0%, #eceaff 54%, #e4f6d5 100%); }
.hero__visual::before { content: ""; position: absolute; inset: 10% 8%; border: 1px solid rgba(23,24,59,.14); border-radius: 50%; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb--one { width: 210px; height: 210px; right: -48px; top: 36px; background: rgba(255,207,102,.72); }
.orb--two { width: 160px; height: 160px; left: 20px; bottom: 40px; background: rgba(255,111,97,.34); }
.book-stack { position: absolute; inset: 70px 0 70px; perspective: 1000px; }
.book-cover { position: absolute; width: 290px; height: 408px; padding: 28px; display: flex; flex-direction: column; overflow: hidden; border-radius: 5px 15px 15px 5px; box-shadow: 0 34px 55px rgba(23,24,59,.22); transform-origin: bottom center; }
.book-cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 10px; background: rgba(0,0,0,.13); }
.book-cover span { font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.book-cover b { margin-top: auto; font-family: Georgia, serif; font-size: 2.35rem; line-height: .95; }
.book-cover small { margin-top: 16px; font-weight: 750; }
.book-cover--back { left: 8%; top: 32px; background: var(--lime); transform: rotate(-14deg) translateZ(-50px); }
.book-cover--mid { left: 30%; top: 8px; color: var(--white); background: #5550e6; transform: rotate(-2deg); }
.book-cover--front { right: 4%; top: 74px; background: var(--coral); transform: rotate(11deg) translateZ(40px); }
.instant-card { position: absolute; left: 8%; right: 8%; bottom: 28px; display: flex; align-items: center; gap: 14px; width: max-content; max-width: 84%; padding: 14px 20px; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.7); border-radius: 16px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.instant-card > span { display: grid; place-items: center; width: 35px; height: 35px; color: var(--white); background: var(--ink); border-radius: 50%; }
.instant-card div { display: grid; }
.instant-card small { color: var(--muted); }

.trust-strip { background: var(--white); border-block: 1px solid var(--line); }
.trust-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-strip__grid > div { display: flex; align-items: center; gap: 13px; min-height: 98px; padding: 20px 28px; border-right: 1px solid var(--line); }
.trust-strip__grid > div:first-child { border-left: 1px solid var(--line); }
.trust-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; background: var(--soft); border-radius: 50%; font-size: 1.35rem; }
.trust-strip__grid div div { display: grid; }
.trust-strip small { color: var(--muted); font-size: .75rem; }

.section-heading { margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 0; font-family: Georgia, serif; font-weight: 600; }
.section-heading--split { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading--split > p { max-width: 390px; margin-bottom: 7px; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card { position: relative; min-height: 390px; padding: 30px; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease; }
.category-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.category-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border: 1px solid currentColor; border-radius: 50%; opacity: .18; }
.category-card > span { align-self: flex-start; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; font-size: .72rem; font-weight: 800; }
.category-card h3 { margin: auto 0 18px; font-family: Georgia, serif; font-size: 2rem; font-weight: 600; }
.category-card p { min-height: 72px; margin-bottom: 20px; font-size: .9rem; opacity: .78; }
.category-card b { font-size: .8rem; }
.category-card--ink { background: var(--ink); color: var(--white); }
.category-card--coral { background: #ff968d; }
.category-card--lime { background: var(--lime); }
.category-card--lavender { background: var(--lavender); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { overflow: hidden; background: var(--white); border: 1px solid #e4e4eb; border-radius: 18px; transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(23,24,59,.1); }
.product-card__image { position: relative; display: grid; place-items: center; height: 300px; padding: 24px; overflow: hidden; background: linear-gradient(145deg, #ececf4, #f8f8fb); }
.product-card__image::after { content: ""; position: absolute; inset: 12% 15%; border: 1px solid rgba(23,24,59,.07); border-radius: 50%; }
.product-card__image img { position: relative; z-index: 1; width: auto; max-width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(23,24,59,.18)); transition: transform .3s ease; }
.product-card:hover .product-card__image img { transform: scale(1.035); }
.product-card__format { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 5px 9px; background: rgba(255,255,255,.9); border-radius: 999px; font-size: .66rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.product-card__body { padding: 23px; }
.product-card__body .eyebrow { margin-bottom: 8px; font-size: .65rem; }
.product-card h3 { min-height: 48px; margin-bottom: 10px; font-size: 1.1rem; letter-spacing: -.02em; }
.product-card h3 a:hover { color: var(--coral-dark); }
.product-card__summary { display: -webkit-box; min-height: 61px; margin-bottom: 20px; overflow: hidden; color: var(--muted); font-size: .83rem; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 17px; border-top: 1px solid var(--line); }
.product-card__footer strong { font-size: 1.12rem; }

.how-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 9vw; align-items: start; }
.how-intro { position: sticky; top: 130px; }
.how-intro h2 { font-family: Georgia, serif; font-weight: 600; }
.how-intro > p:not(.eyebrow) { margin-bottom: 30px; color: var(--muted); font-size: 1.05rem; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 33px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps > li > span { display: grid; place-items: center; width: 52px; height: 52px; background: var(--lavender); border-radius: 50%; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 700; }
.steps h3 { margin-bottom: 8px; font-size: 1.35rem; }
.steps p { margin-bottom: 0; color: var(--muted); }
.newsletter-panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 100px; padding: 55px 64px; color: var(--white); background: var(--ink); border-radius: 26px; }
.newsletter-panel h2 { max-width: 760px; margin-bottom: 0; font-family: Georgia, serif; font-weight: 600; }

.page-hero { padding: 110px 0 90px; text-align: center; background: linear-gradient(135deg, #efeff8, #f9f8f3); }
.page-hero h1 { margin-bottom: 18px; font-family: Georgia, serif; font-weight: 600; font-size: clamp(2.6rem, 5vw, 5rem); }
.page-hero p:not(.eyebrow) { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 1.06rem; }
.page-hero--shop { text-align: left; background: linear-gradient(135deg, #dcd9ff, #f1f0fa 62%, #e9f7d8); }
.page-hero--shop p:not(.eyebrow) { margin-left: 0; }
.page-hero--compact { padding: 65px 0; text-align: left; }
.page-hero--compact h1 { margin-bottom: 0; }
.page-hero--legal { padding-block: 76px; }
.page-hero--legal h1 { font-size: clamp(2.5rem, 4vw, 4.2rem); }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; }
.shop-search { display: grid; grid-template-columns: minmax(220px, 430px) 48px; }
.shop-search input, .sort-control select { min-height: 48px; padding: 10px 15px; background: var(--white); border: 1px solid var(--line); outline: none; }
.shop-search input { border-radius: 12px 0 0 12px; }
.shop-search button { background: var(--ink); color: var(--white); border: 0; border-radius: 0 12px 12px 0; font-size: 1.5rem; }
.shop-search input:focus, .sort-control select:focus { border-color: var(--ink); }
.sort-control { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; font-weight: 750; }
.sort-control select { min-width: 180px; color: var(--ink); border-radius: 10px; }
.category-pills { display: flex; gap: 9px; margin-bottom: 26px; overflow-x: auto; padding-bottom: 5px; }
.category-pills a { flex: 0 0 auto; padding: 9px 15px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 750; }
.category-pills a:hover, .category-pills a[aria-current="page"] { color: var(--white); background: var(--ink); border-color: var(--ink); }
.results-meta { margin-bottom: 24px; color: var(--muted); font-size: .86rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 54px; }
.pagination a { padding: 10px 17px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-weight: 750; }
.pagination span { color: var(--muted); font-size: .84rem; }
.empty-state { padding: 80px 20px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state > span { display: block; margin-bottom: 12px; font-size: 2rem; }
.empty-state h2 { margin-bottom: 10px; font-family: Georgia, serif; }
.empty-state p { color: var(--muted); }

.breadcrumbs { display: flex; gap: 10px; margin-bottom: 35px; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; }
.breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }
.product-detail__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 7vw; align-items: start; }
.product-detail__visual { position: sticky; top: 120px; }
.product-detail__image { display: grid; place-items: center; min-height: 610px; padding: 55px; background: linear-gradient(145deg, #e8e7f3, #f6f6fa); border-radius: 25px; }
.product-detail__image img { max-height: 500px; width: auto; object-fit: contain; filter: drop-shadow(0 25px 30px rgba(23,24,59,.22)); }
.product-mini-trust { display: flex; justify-content: space-between; gap: 12px; padding: 20px 10px 0; color: var(--muted); font-size: .76rem; font-weight: 700; }
.product-detail__content { padding: 30px 0; }
.product-detail__content h1 { margin-bottom: 18px; font-family: Georgia, serif; font-size: clamp(2.7rem, 5vw, 4.8rem); font-weight: 600; }
.product-rating { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: .78rem; }
.product-rating span { color: #f1ac27; letter-spacing: .08em; }
.product-price { margin: 28px 0 22px; font-size: 2rem; font-weight: 900; }
.product-price small { color: var(--muted); font-size: .72rem; font-weight: 700; }
.product-description { color: #56576c; font-size: 1.03rem; }
.product-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 28px 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 14px; }
.product-meta div { display: grid; padding: 15px; background: var(--white); }
.product-meta span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.product-meta strong { font-size: .8rem; }
.buy-now { width: 100%; margin-top: 10px; padding: 14px; background: transparent; border: 0; font-weight: 850; text-decoration: underline; text-underline-offset: 4px; }
.secure-note { display: flex; gap: 9px; margin: 20px 0; color: var(--muted); font-size: .76rem; }
.secure-note--center { justify-content: center; text-align: center; }
.product-accordion { border-top: 1px solid var(--line); }
.product-accordion:last-child { border-bottom: 1px solid var(--line); }
.product-accordion summary { padding: 18px 0; font-weight: 800; }
.product-accordion p { padding-bottom: 18px; color: var(--muted); font-size: .9rem; }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 390px; gap: 40px; align-items: start; }
.cart-items-panel, .checkout-card, .order-summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-items-panel { padding: 30px; }
.cart-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-heading h2, .order-summary h2 { margin: 0; font-size: 1.2rem; }
.cart-heading span { color: var(--muted); font-size: .8rem; }
.cart-item { display: grid; grid-template-columns: 115px 1fr auto; gap: 22px; align-items: center; padding: 25px 0; border-bottom: 1px solid var(--line); }
.cart-item__image { display: grid; place-items: center; height: 125px; padding: 10px; background: var(--soft); border-radius: 12px; }
.cart-item__image img { max-height: 100%; width: auto; }
.cart-item__content p { margin-bottom: 5px; color: var(--coral-dark); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cart-item__content h3 { margin-bottom: 6px; font-size: 1rem; }
.cart-item__content span { color: var(--muted); font-size: .76rem; }
.cart-item__content button { display: block; margin-top: 8px; padding: 0; color: var(--muted); background: transparent; border: 0; font-size: .73rem; text-decoration: underline; }
.order-summary { position: sticky; top: 120px; padding: 28px; box-shadow: 0 14px 40px rgba(23,24,59,.06); }
.order-summary h2 { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.summary-line, .summary-total { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; font-size: .86rem; }
.summary-line { color: var(--muted); }
.summary-total { margin: 6px 0 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 1.15rem; }
.summary-total strong { font-size: 1.35rem; }
.is-disabled { opacity: .45; pointer-events: none; }
.continue-shopping { display: block; text-align: center; font-size: .78rem; font-weight: 750; }
.empty-state--cart { border: 0; }
.loading-state { padding: 45px 10px; color: var(--muted); text-align: center; }

.checkout-main { display: grid; gap: 18px; }
.checkout-card { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 28px; }
.checkout-step { display: grid; place-items: center; width: 38px; height: 38px; color: var(--white); background: var(--ink); border-radius: 50%; font-weight: 850; }
.checkout-card h2 { margin: 5px 0 7px; font-size: 1.2rem; }
.checkout-card p { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.checkout-card__body { min-width: 0; }
.terms-check { display: flex; gap: 10px; margin: 25px 0 20px; padding: 15px; background: var(--soft); border-radius: 10px; font-size: .78rem; }
.terms-check input { margin-top: 4px; }
.terms-check a { text-decoration: underline; }
.setup-notice { padding: 18px; color: #65341a; background: #fff1dc; border: 1px solid #f3c988; border-radius: 12px; }
.setup-notice p { margin-top: 5px; color: inherit; }
.checkout-error, .form-errors { margin-top: 15px; padding: 14px; color: #80271f; background: #fff0ee; border: 1px solid #f1aaa3; border-radius: 10px; font-size: .82rem; }
.checkout-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checkout-item img { width: 48px; height: 58px; object-fit: contain; background: var(--soft); border-radius: 5px; }
.checkout-item div { display: grid; }
.checkout-item strong { font-size: .78rem; line-height: 1.3; }
.checkout-item span { color: var(--muted); font-size: .68rem; }
.checkout-item b { font-size: .78rem; }
.empty-checkout { padding: 20px 0; color: var(--muted); font-size: .82rem; }
.empty-checkout a { color: var(--ink); font-weight: 800; text-decoration: underline; }

.success-page { min-height: 65vh; }
.success-card { max-width: 880px; padding: 55px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.success-check { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; color: var(--white); background: #2c9c6b; border-radius: 50%; font-size: 2rem; }
.success-card h1 { margin-bottom: 15px; font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 600; }
.success-card > p { color: var(--muted); }
.success-order-meta { display: flex; justify-content: center; gap: 30px; margin: 28px 0; padding: 16px; background: var(--soft); border-radius: 12px; font-size: .82rem; }
.download-list { margin: 25px 0; text-align: left; }
.download-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.download-item:last-child { border-bottom: 1px solid var(--line); }
.download-item span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.download-item h2 { margin-bottom: 0; font-size: 1rem; }
.success-expiry { font-size: .78rem; }

.content-grid { display: grid; grid-template-columns: 1fr 390px; gap: 8vw; align-items: start; }
.prose { max-width: 790px; }
.prose h2 { margin: 2.2em 0 .55em; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 600; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #55566c; }
.prose a { color: var(--coral-dark); text-decoration: underline; }
.prose--legal { max-width: 870px; }
.prose--legal > p:first-child { padding: 20px; color: var(--ink); background: var(--soft); border-left: 4px solid var(--coral); }
.contact-card { position: sticky; top: 120px; padding: 30px; color: var(--white); background: var(--ink); border-radius: var(--radius); }
.contact-card h2 { font-family: Georgia, serif; }
.contact-card address { margin-bottom: 22px; color: #d5d6ea; font-style: normal; }
.contact-card a { display: block; margin-top: 8px; }
.faq-list { max-width: 900px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 23px 40px 23px 0; font-size: 1.08rem; font-weight: 800; }
.faq-list summary::after { content: "+"; position: absolute; right: 5px; font-size: 1.5rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { max-width: 750px; padding-bottom: 22px; color: var(--muted); }
.faq-list a { text-decoration: underline; }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; align-items: start; }
.contact-info h2 { font-family: Georgia, serif; font-weight: 600; }
.contact-info > p:not(.eyebrow) { margin-bottom: 32px; color: var(--muted); }
.contact-method { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.contact-method > span { display: grid; place-items: center; width: 40px; height: 40px; background: var(--lavender); border-radius: 50%; }
.contact-method div { display: grid; }
.contact-method small { color: var(--muted); }
.contact-method address { font-style: normal; }
.contact-form-card { padding: 35px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 45px rgba(23,24,59,.07); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: grid; gap: 7px; font-size: .78rem; font-weight: 800; }
.contact-form label:nth-of-type(4) { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 14px; background: #fbfbfd; border: 1px solid var(--line); border-radius: 9px; outline: none; font-weight: 400; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,24,59,.07); }
.contact-form textarea { resize: vertical; }
.contact-form small { color: var(--muted); font-weight: 500; }
.contact-form .button { justify-self: start; }
.honeypot { position: absolute; left: -9999px; }
.form-success { padding: 30px; color: #175f41; background: #e7f8f0; border-radius: 14px; }
.form-errors p { margin: 0; }

.site-footer { padding-top: 75px; color: #e7e7f2; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: 55px; padding-bottom: 60px; }
.brand--footer { color: var(--white); }
.footer-brand > p { max-width: 330px; margin-top: 22px; color: #c7c8dc; }
.footer-brand .footer-note { font-size: .75rem; }
.site-footer h2 { margin-bottom: 18px; color: var(--white); font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }
.site-footer .footer-grid > div:not(.footer-brand) > a { display: block; margin: 9px 0; color: #c7c8dc; font-size: .82rem; }
.site-footer a:hover { color: var(--white) !important; }
.footer-contact address { margin-bottom: 15px; color: #c7c8dc; font-size: .82rem; font-style: normal; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; min-height: 70px; color: #9fa1bd; border-top: 1px solid rgba(255,255,255,.11); font-size: .73rem; }
.toast { position: fixed; z-index: 1000; left: 50%; bottom: 25px; padding: 12px 20px; color: var(--white); background: var(--ink); border-radius: 999px; box-shadow: var(--shadow); font-size: .82rem; font-weight: 750; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1080px) {
  .primary-nav { gap: 16px; }
  .primary-nav a { font-size: .78rem; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { min-height: 330px; }
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .book-cover { width: 235px; height: 345px; }
  .book-cover b { font-size: 1.9rem; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr 330px; }
}

@media (max-width: 850px) {
  .announcement__inner { justify-content: center; }
  .announcement a { display: none; }
  .site-header__inner { grid-template-columns: auto 1fr auto; min-height: 70px; }
  .menu-toggle { display: block; justify-self: end; }
  .primary-nav { position: absolute; inset: 100% 0 auto; display: none; padding: 18px 20px 25px; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 35px rgba(23,24,59,.1); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 8px 0; }
  .primary-nav a::after { bottom: 3px; width: 35px; }
  .header-actions { grid-column: 3; grid-row: 1; }
  .menu-toggle { grid-column: 2; grid-row: 1; }
  .header-search-toggle { display: none; }
  .cart-link span { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { padding: 75px 0; }
  .hero__visual { min-height: 580px; }
  .book-stack { inset: 70px 8%; }
  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip__grid > div:nth-child(3) { border-left: 1px solid var(--line); }
  .section { padding: 75px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; gap: 50px; }
  .how-intro { position: static; }
  .newsletter-panel { margin-bottom: 75px; padding: 45px; }
  .product-detail__grid { grid-template-columns: 1fr; }
  .product-detail__visual { position: static; }
  .product-detail__image { min-height: 480px; }
  .cart-layout, .checkout-layout, .content-grid, .contact-layout { grid-template-columns: 1fr; }
  .order-summary, .contact-card { position: static; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .announcement { font-size: .7rem; }
  .brand__wordmark { font-size: 1.08rem; }
  .brand__mark { width: 36px; height: 36px; }
  .site-header__inner { gap: 10px; }
  .hero__content { padding: 58px 0; }
  .hero h1 { font-size: 3.4rem; }
  .hero__actions { align-items: flex-start; flex-direction: column; }
  .hero__stats { gap: 18px; justify-content: space-between; }
  .hero__stats strong { font-size: .9rem; }
  .hero__visual { min-height: 470px; }
  .book-cover { width: 180px; height: 275px; padding: 20px; }
  .book-cover b { font-size: 1.45rem; }
  .book-cover small { font-size: .65rem; }
  .book-cover--back { left: 2%; }
  .book-cover--mid { left: 23%; }
  .book-cover--front { right: 1%; }
  .instant-card { left: 5%; right: 5%; max-width: 90%; }
  .trust-strip__grid { grid-template-columns: 1fr; }
  .trust-strip__grid > div { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .section { padding: 62px 0; }
  .section-heading--split { align-items: flex-start; flex-direction: column; }
  .category-grid, .product-grid { grid-template-columns: 1fr; }
  .product-card__image { height: 330px; }
  .category-card { min-height: 310px; }
  .newsletter-panel { align-items: flex-start; flex-direction: column; padding: 34px 28px; border-radius: 18px; }
  .page-hero { padding: 75px 0 60px; }
  .page-hero--compact { padding: 45px 0; }
  .shop-toolbar { align-items: stretch; flex-direction: column; }
  .shop-search { grid-template-columns: 1fr 48px; }
  .sort-control { justify-content: space-between; }
  .sort-control select { flex: 1; min-width: 0; }
  .pagination { gap: 10px; font-size: .75rem; }
  .product-detail__image { min-height: 400px; padding: 34px; }
  .product-mini-trust { flex-direction: column; }
  .product-meta { grid-template-columns: 1fr; }
  .cart-items-panel { padding: 20px; }
  .cart-item { grid-template-columns: 82px 1fr; gap: 15px; }
  .cart-item__image { height: 100px; }
  .cart-item > strong { grid-column: 2; }
  .order-summary { padding: 22px; }
  .checkout-card { grid-template-columns: 1fr; }
  .success-card { padding: 35px 22px; }
  .success-order-meta { flex-direction: column; gap: 8px; }
  .download-item { align-items: flex-start; flex-direction: column; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form label:nth-of-type(4) { grid-column: auto; }
  .contact-form-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 25px; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
