@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

:root {
  --ink: #17211c;
  --ink-soft: #3d4942;
  --muted: #6d756f;
  --green: #10271f;
  --green-2: #19372b;
  --paper: #fffdf8;
  --cream: #f6f1e7;
  --cream-deep: #ebe2d3;
  --gold: #d7aa72;
  --gold-dark: #8b633c;
  --line: #e4ded3;
  --success: #3b8558;
  --danger: #8c4a3c;
  --shadow-sm: 0 6px 20px rgba(24, 34, 28, .07);
  --shadow-md: 0 18px 50px rgba(24, 34, 28, .11);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: Manrope, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 160px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; }
body.filters-open { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: min(1440px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; top: 12px; left: 12px; padding: 10px 16px; background: white; border: 2px solid var(--green); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(139, 99, 60, .5); outline-offset: 3px; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 4px; padding: 11px 20px; font-weight: 700; transition: transform .2s, background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.button:hover { transform: translateY(-1px); }
.button-gold { background: var(--gold); color: var(--green); box-shadow: 0 8px 24px rgba(215, 170, 114, .15); }
.button-gold:hover { background: #e2b980; box-shadow: 0 10px 28px rgba(215, 170, 114, .25); }
.button-dark { background: var(--green); color: white; }
.button-dark:hover { background: var(--green-2); box-shadow: var(--shadow-sm); }
.button-cream { background: #f2dfc5; color: #382619; }
.eyebrow { display: block; margin-bottom: 6px; color: var(--gold-dark); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: #f0d3ad; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 26px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; }
.breadcrumbs a:hover { color: var(--gold-dark); }
.breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }

.trust-bar { background: var(--green); color: #f7f3eb; font-size: 12px; }
.trust-bar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.trust-bar-inner > span { opacity: .8; }
.trust-bar-inner > div { display: flex; gap: 26px; }
.trust-bar-inner > div span { display: inline-flex; gap: 7px; align-items: center; }
.trust-bar svg { width: 15px; height: 15px; }
.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255, 253, 248, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-main { min-height: 100px; display: grid; grid-template-columns: 270px minmax(360px, 1fr) 300px; gap: 42px; align-items: center; }
.brand { display: inline-flex; gap: 12px; align-items: center; width: max-content; }
.brand-mark { width: 64px; height: 50px; display: grid; place-items: center; color: var(--green); }
.brand-mark svg { width: 58px; height: 47px; stroke-width: 1.3; }
.brand strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: -.025em; text-transform: none; }
.brand small { display: block; margin-top: 7px; font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.header-search { height: 52px; display: flex; align-items: center; overflow: hidden; background: #f4f0e8; border: 1px solid transparent; border-radius: 8px; transition: background .2s, border .2s; }
.header-search:focus-within { background: white; border-color: #bca483; }
.header-search input { flex: 1; min-width: 0; height: 100%; padding: 0 20px; background: none; border: 0; outline: 0; font-size: 14px; }
.header-search button { width: 48px; height: 100%; display: grid; place-items: center; background: none; border: 0; }
.header-search svg { width: 23px; height: 23px; }
.header-actions { display: flex; justify-content: flex-end; gap: 30px; }
.header-actions a { position: relative; min-width: 50px; display: flex; flex-direction: column; gap: 5px; align-items: center; font-size: 11px; transition: color .2s; }
.header-actions a:hover { color: var(--gold-dark); }
.header-actions svg { width: 26px; height: 26px; }
.header-actions b { position: absolute; top: -7px; right: 1px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; color: white; background: var(--green); border: 2px solid var(--paper); border-radius: 20px; font-size: 9px; }
.mobile-menu-button { display: none; width: 44px; height: 44px; place-items: center; background: transparent; border: 0; }
.mobile-menu-button svg { width: 25px; height: 25px; }
.main-nav { border-top: 1px solid var(--line); }
.main-nav .wrap { height: 54px; display: flex; justify-content: center; gap: clamp(28px, 4vw, 58px); align-items: center; font-size: 13px; font-weight: 700; }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: var(--gold-dark); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover::after { transform: scaleX(1); }

.hero { position: relative; overflow: hidden; color: white; background: radial-gradient(circle at 76% 25%, rgba(196, 148, 91, .2), transparent 26%), linear-gradient(105deg, #0b1713 0%, #14241c 58%, #4b3324 100%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.hero-layout { min-height: 480px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; }
.hero-copy { position: relative; z-index: 2; max-width: 650px; padding: 66px 0 54px; }
.hero-kicker { margin-bottom: 14px; color: #d8bd99; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(47px, 5vw, 68px); font-weight: 500; line-height: .98; letter-spacing: -.025em; }
.hero h1 em { display: block; color: #efc48d; font-style: normal; }
.hero-intro { max-width: 570px; margin-bottom: 26px; color: rgba(255, 255, 255, .78); font-size: 16px; line-height: 1.7; }
.hero-copy .button { min-width: 205px; }
.hero-trust { display: flex; gap: 28px; margin-top: 43px; color: rgba(255, 255, 255, .85); font-size: 11px; }
.hero-trust span { display: flex; gap: 8px; align-items: center; }
.hero-trust svg { width: 22px; height: 22px; color: #ebd2b2; }
.hero-art { position: relative; align-self: stretch; }
.hero-orbit { position: absolute; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; }
.orbit-one { top: -80px; right: -90px; width: 480px; height: 480px; }
.orbit-two { top: 10px; right: 0; width: 300px; height: 300px; }
.book-stack { position: absolute; right: 30px; bottom: 65px; width: 470px; height: 280px; filter: drop-shadow(0 25px 25px rgba(0, 0, 0, .25)); }
.stack-book { position: absolute; right: 0; height: 58px; display: flex; align-items: center; padding: 0 28px; border-left: 14px solid rgba(255, 255, 255, .12); border-radius: 3px 8px 8px 3px; font-family: var(--serif); font-size: 18px; letter-spacing: .025em; box-shadow: inset 0 -4px rgba(0, 0, 0, .12), inset 0 2px rgba(255, 255, 255, .1); }
.stack-1 { bottom: 0; width: 395px; background: #8d693e; transform: rotate(2deg); }
.stack-2 { right: 35px; bottom: 57px; width: 430px; background: #384d3e; transform: rotate(-2deg); }
.stack-3 { right: 5px; bottom: 114px; width: 350px; background: #9c6036; transform: rotate(1deg); }
.stack-4 { right: 85px; bottom: 171px; width: 305px; background: #643832; transform: rotate(-2deg); }
.hero-art blockquote { position: absolute; right: -10px; bottom: 354px; width: 200px; margin: 0; color: #e8d4bb; font-family: var(--serif); font-size: 18px; font-style: italic; line-height: 1.45; }

.section { padding: 64px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 28px; }
.section-heading h2, .editorial-banner h2, .catalog-title-row h1, .page-title h1, .empty-cart h1, .product-panel h1, .book-information h2, .book-details h2, .order-summary h2, .form-section h2 { font-family: var(--serif); font-weight: 600; }
.section-heading h2 { margin: 0; font-size: 34px; line-height: 1.1; }
.text-link { font-size: 12px; font-weight: 700; }
.text-link span { margin-left: 4px; transition: margin .2s; }
.text-link:hover span { margin-left: 8px; }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 22px; }
.product-card { min-width: 0; }
.card-visual { position: relative; }
.cover-link { height: 315px; display: block; padding: 16px; background: var(--cream); border: 1px solid transparent; border-radius: 5px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.product-card:hover .cover-link { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow-md); }
.book-cover { position: relative; height: 100%; overflow: hidden; background: #ded5c5; border-radius: 2px 4px 4px 2px; box-shadow: -3px 8px 16px rgba(30, 30, 25, .2), inset 3px 0 rgba(255, 255, 255, .18); transform-origin: left center; }
.book-cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent); opacity: .5; }
.book-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.css-cover { display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 28px 17px 22px; text-align: center; font-family: var(--serif); }
.css-cover .cover-author { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.css-cover strong { min-width: 0; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.02; }
.css-cover i { font-family: var(--sans); font-size: 8px; font-style: normal; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.cover-rule { width: 34px; height: 1px; background: currentColor; opacity: .55; }
.cover-2 { color: #7d281f; background: linear-gradient(160deg, #fffdfa, #e7ddd1); }
.cover-3 { color: #f2dacd; background: radial-gradient(circle at 50% 35%, #872d25, #2e0d0d 62%, #150707); }
.cover-4 { color: #3f4c48; background: radial-gradient(circle at 26% 62%, #e4bb3c 0 3%, transparent 3.5%), #f3eddf; }
.cover-5 { color: #1d201f; background: linear-gradient(155deg, #fafafa, #dadbd8); }
.cover-6 { color: #80542d; background: linear-gradient(#f3ecdc, #e7dcc7); }
.cover-7 { color: #fff2d4; background: linear-gradient(145deg, #6f5632, #ad7f3f 50%, #663822); }
.cover-8 { color: #f7db3e; background: linear-gradient(145deg, #653d73, #32203b); }
.cover-9 { color: #b83f2d; background: #f0c62e; }
.cover-10 { color: #5e4a9b; background: linear-gradient(#fff, #f2f0e8); }
.cover-11 { color: #d6b36d; background: linear-gradient(150deg, #21362e, #101d19); }
.cover-12 { color: #543a28; background: #e4d7bf; }
.cover-13 { color: #f0d5b1; background: linear-gradient(150deg, #a65336, #5e251f); }
.cover-14 { color: #e6dcc7; background: linear-gradient(145deg, #1d4950, #0e292e); }
.cover-15 { color: #dbc69d; background: linear-gradient(160deg, #5d251f, #25110e); }
.cover-16 { color: #d73532; background: radial-gradient(circle at 75% 75%, #f1c83c 0 10%, transparent 10.5%), #92c9c3; }
.favorite-button { position: absolute; z-index: 2; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--green); background: rgba(255, 253, 248, .94); border: 0; border-radius: 50%; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s, color .2s; }
.product-card:hover .favorite-button, .favorite-button:focus-visible, .favorite-button.active { opacity: 1; transform: translateY(0); }
.favorite-button.active { color: #924839; }
.favorite-button.active svg { fill: currentColor; }
.sale-label { position: absolute; z-index: 2; top: 13px; left: 10px; padding: 5px 8px; color: white; background: #8d493d; border-radius: 2px; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.product-info { padding-top: 14px; }
.product-title { min-height: 2.6em; display: -webkit-box; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-title:hover, .product-author:hover { color: var(--gold-dark); }
.product-author { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.condition { display: flex; gap: 7px; align-items: center; margin-top: 11px; color: var(--ink-soft); font-size: 10px; }
.condition span, .condition-dot, .cart-condition i, .availability > span { width: 8px; height: 8px; flex: 0 0 auto; display: inline-block; background: #61a678; border-radius: 50%; }
.condition-добро span, .condition-приемливо span { background: #bd945e; }
.product-bottom { min-height: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 12px; }
.card-price { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: baseline; }
.card-price strong { font-size: 17px; }
.card-price del { color: var(--muted); font-size: 10px; }
.card-cart-button { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: white; background: var(--green); border: 1px solid var(--green); border-radius: 5px; transition: background .2s, transform .2s; }
.card-cart-button:hover:not(:disabled) { background: var(--green-2); transform: translateY(-2px); }
.card-cart-button.added { color: var(--green); background: white; }
.card-cart-button:disabled { width: auto; padding: 0 8px; color: var(--muted); background: #e5e1da; border-color: #e5e1da; }
.card-cart-button:disabled span { font-size: 9px; font-weight: 700; }

.categories-section { padding-top: 34px; background: linear-gradient(180deg, transparent, rgba(246, 241, 231, .55), transparent); }
.category-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 16px; }
.category-card { display: flex; flex-direction: column; align-items: center; padding: 12px 5px; text-align: center; transition: transform .2s, color .2s; }
.category-card:hover { color: var(--gold-dark); transform: translateY(-3px); }
.category-card > span { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 13px; color: #5a4029; background: var(--cream); border-radius: 50%; }
.category-card svg { width: 29px; height: 29px; stroke-width: 1.35; }
.category-card strong { min-height: 35px; font-family: var(--serif); font-size: 14px; font-weight: 600; line-height: 1.25; }
.category-card small { margin-top: 6px; color: var(--muted); font-size: 9px; }
.editorial-banner { min-height: 250px; display: grid; grid-template-columns: .9fr 1fr .65fr; gap: 30px; align-items: center; overflow: hidden; padding: 34px 45px; color: white; background: linear-gradient(115deg, #876a4d, #49392b 48%, #192820); border-radius: 5px; box-shadow: var(--shadow-sm); }
.editorial-copy { position: relative; z-index: 2; }
.editorial-banner h2 { margin-bottom: 24px; font-size: 34px; font-weight: 500; line-height: 1.12; }
.editorial-books { position: relative; height: 200px; transform: rotate(-1deg); }
.editorial-books span { position: absolute; right: 0; width: 320px; height: 42px; padding: 8px 22px; background: #1e352b; border-left: 9px solid rgba(255, 255, 255, .12); border-radius: 3px; box-shadow: 0 9px 15px rgba(0, 0, 0, .18); font-family: var(--serif); }
.editorial-books span:nth-child(1) { bottom: 0; right: 18px; }
.editorial-books span:nth-child(2) { bottom: 42px; right: -12px; color: #382a20; background: #c4aa82; }
.editorial-books span:nth-child(3) { bottom: 84px; right: 14px; background: #81563d; }
.editorial-books span:nth-child(4) { bottom: 126px; right: -4px; color: #e2bd81; background: #22392f; }
.editorial-quote { margin: 0; color: #f1dfc8; font-family: var(--serif); font-size: 18px; font-style: italic; line-height: 1.5; }

.catalog-page, .product-page, .cart-page, .checkout-page { min-height: 65vh; padding: 34px 0 80px; }
.catalog-title-row { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 28px; }
.catalog-title-row h1, .page-title h1 { margin: 0; font-size: 44px; line-height: 1; }
.catalog-title-row p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.result-count { color: var(--muted); font-size: 12px; }
.catalog-tools { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 26px; padding: 15px 0; border-block: 1px solid var(--line); }
.catalog-search { max-width: 430px; height: 42px; display: flex; align-items: center; background: var(--cream); border: 1px solid transparent; border-radius: 4px; }
.catalog-search:focus-within { background: white; border-color: #bca483; }
.catalog-search i { width: 43px; display: grid; place-items: center; }
.catalog-search svg { width: 18px; height: 18px; }
.catalog-search input { min-width: 0; flex: 1; height: 100%; padding: 0 12px 0 0; background: none; border: 0; outline: 0; font-size: 12px; }
.sort-control { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 11px; }
.sort-control select { min-width: 220px; padding: 10px 34px 10px 12px; background: white; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; }
.filter-toggle { display: none; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; background: white; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; font-weight: 700; }
.catalog-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 42px; }
.filters-panel { padding-right: 28px; border-right: 1px solid var(--line); }
.filters-header { display: none; align-items: center; justify-content: space-between; }
.filters-header h2 { font-family: var(--serif); font-size: 28px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; background: none; border: 0; }
.filters-panel fieldset { margin: 0; padding: 19px 0; border: 0; border-bottom: 1px solid var(--line); }
.filters-panel fieldset:first-child { padding-top: 0; }
.filters-panel legend { width: 100%; margin-bottom: 11px; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.filter-list { display: flex; flex-direction: column; gap: 9px; }
.filter-list label { display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; gap: 8px; align-items: start; color: var(--ink-soft); font-size: 11px; cursor: pointer; }
.filter-list input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--green); }
.filter-list small { color: #999f9b; font-size: 9px; }
.scroll-list { max-height: 145px; overflow: auto; padding-right: 5px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-inputs label { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.price-inputs label span { height: 37px; display: flex; align-items: center; margin-top: 5px; padding: 0 8px; border: 1px solid var(--line); border-radius: 3px; font-size: 10px; text-transform: none; }
.price-inputs input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; }
.filter-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; }
.filter-actions .button { display: none; }
.clear-filters { padding: 8px; color: var(--muted); background: none; border: 0; font-size: 10px; text-decoration: underline; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.active-chips:empty { display: none; }
.active-chips span { padding: 6px 9px; color: var(--ink-soft); background: var(--cream); border-radius: 20px; font-size: 9px; }
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-grid.is-sparse { grid-template-columns: repeat(auto-fit, minmax(245px, 300px)); justify-content: start; }
.catalog-grid .cover-link { height: 285px; }
.catalog-recommendations { margin-top: 62px; padding-top: 40px; border-top: 1px solid var(--line); }
.catalog-recommendations .section-heading h2 { font-size: 30px; }
.recommendation-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.empty-results { grid-column: 1 / -1; padding: 80px 20px; text-align: center; }
.empty-results > svg { width: 50px; height: 50px; color: var(--gold-dark); }
.empty-results h2 { margin: 18px 0 6px; font-family: var(--serif); font-size: 28px; }
.empty-results p { margin-bottom: 24px; color: var(--muted); }
.filter-backdrop { display: none; }

.product-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); gap: 68px; align-items: start; }
.product-gallery { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 16px; }
.main-product-image { position: relative; grid-column: 2; min-height: 620px; display: grid; place-items: center; padding: 48px; overflow: hidden; background: var(--cream); border-radius: 5px; }
.main-product-image .book-cover.large { width: min(390px, 80%); height: 540px; }
.thumbnail-row { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 12px; }
.thumbnail { height: 105px; display: flex; flex-direction: column; gap: 5px; padding: 5px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 3px; font-size: 8px; }
.thumbnail .book-cover { min-height: 72px; flex: 1; width: 100%; box-shadow: none; }
.thumbnail .css-cover { padding: 7px; }
.thumbnail .css-cover strong { font-size: 8px; }
.thumbnail .css-cover .cover-author, .thumbnail .css-cover i, .thumbnail .cover-rule { display: none; }
.thumbnail.active { border-color: var(--gold-dark); box-shadow: 0 0 0 1px var(--gold-dark); }
.product-panel { padding: 18px 0; }
.product-panel h1 { margin: 10px 0 2px; font-size: clamp(42px, 5vw, 60px); font-weight: 500; line-height: 1; }
.product-page-author { color: var(--muted); font-size: 17px; }
.availability { display: flex; gap: 8px; align-items: center; margin: 25px 0 4px; color: var(--success); font-size: 11px; font-weight: 700; }
.availability.unavailable { color: var(--danger); }
.availability.unavailable span { background: currentColor; }
.product-page-price { display: flex; gap: 12px; align-items: baseline; margin-bottom: 24px; font-size: 30px; font-weight: 700; }
.product-page-price del { color: var(--muted); font-size: 14px; font-weight: 400; }
.condition-card { padding: 20px; background: var(--cream); border-left: 3px solid #719278; }
.condition-grade { display: flex; gap: 11px; align-items: center; }
.condition-grade .condition-dot { width: 10px; height: 10px; }
.condition-grade div { display: flex; flex-direction: column; }
.condition-grade small { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.condition-grade strong { font-family: var(--serif); font-size: 20px; }
.condition-card p { margin: 12px 0 9px; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.condition-card a { color: var(--gold-dark); font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 20px; }
.product-actions .button { min-height: 54px; }
.add-product-button svg { width: 20px; height: 20px; }
.add-product-button:disabled { background: #a5a7a5; }
.favorite-wide { width: 54px; padding: 0; background: white; border-color: var(--line); }
.favorite-wide span { display: none; }
.favorite-wide.active { color: #924839; border-color: #b8796d; }
.favorite-wide.active svg { fill: currentColor; }
.buy-now-button { grid-column: 1 / -1; }
.buy-now-button:disabled { color: #777; background: #ddd7cd; }
.product-trust { display: grid; gap: 14px; margin-top: 27px; padding-top: 22px; border-top: 1px solid var(--line); }
.product-trust > div { display: flex; gap: 13px; align-items: center; }
.product-trust > div > svg { width: 23px; height: 23px; color: var(--gold-dark); }
.product-trust span { display: flex; flex-direction: column; }
.product-trust strong { font-size: 11px; }
.product-trust small { color: var(--muted); font-size: 9px; }
.book-information { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 70px; padding: 48px 0; border-block: 1px solid var(--line); }
.book-information article + article { padding-left: 70px; border-left: 1px solid var(--line); }
.book-information h2, .book-details h2 { margin-bottom: 13px; font-size: 30px; }
.book-information p { color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.condition-inline { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; color: var(--success); }
.book-details { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; padding: 46px 0 28px; }
.book-details dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0; }
.book-details dl div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.book-details dt { color: var(--muted); }
.book-details dd { margin: 0; text-align: right; font-weight: 700; }
.related-section { padding-bottom: 0; }
#sticky-product-action { display: none; }

.page-title { margin-bottom: 32px; }
.page-title h1 small { margin-left: 8px; color: var(--muted); font-family: var(--sans); font-size: 12px; font-weight: 500; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 55px; align-items: start; }
.cart-list { border-top: 1px solid var(--line); }
.cart-item { position: relative; min-height: 180px; display: grid; grid-template-columns: 105px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 25px 0; border-bottom: 1px solid var(--line); }
.cart-cover { height: 135px; padding: 7px; background: var(--cream); }
.cart-cover .book-cover { height: 100%; }
.cart-cover .css-cover { padding: 10px 7px; }
.cart-cover .css-cover strong { font-size: 13px; }
.cart-cover .css-cover .cover-author { font-size: 6px; }
.cart-item-info h2 { margin: 0; font-family: var(--serif); font-size: 22px; }
.cart-item-info p { margin: 3px 0 10px; color: var(--muted); font-size: 11px; }
.cart-item-info > small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.cart-condition { display: flex; gap: 7px; align-items: center; color: var(--ink-soft); font-size: 10px; }
.cart-price { align-self: start; margin-top: 12px; font-size: 16px; }
.remove-button { position: absolute; right: 0; bottom: 25px; display: flex; gap: 5px; align-items: center; padding: 0; color: var(--muted); background: none; border: 0; font-size: 9px; }
.remove-button:hover { color: var(--danger); }
.remove-button svg { width: 14px; height: 14px; }
.delivery-note { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 17px 20px; background: var(--cream); }
.delivery-note > svg { width: 28px; height: 28px; color: var(--gold-dark); }
.delivery-note strong { font-family: var(--serif); font-size: 15px; }
.delivery-note p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.order-summary { position: sticky; top: 180px; padding: 28px; background: var(--cream); border: 1px solid #e7dece; }
.order-summary h2 { margin-bottom: 24px; font-size: 25px; }
.summary-line { display: flex; justify-content: space-between; gap: 20px; margin: 13px 0; font-size: 11px; }
.summary-line b { font-size: 12px; }
.order-summary hr { height: 1px; margin: 20px 0; background: #d9cfbf; border: 0; }
.summary-total { align-items: baseline; font-size: 14px; }
.summary-total b { font-size: 22px; }
.order-summary > .button { width: 100%; margin-top: 14px; }
.summary-trust { display: flex; gap: 7px; justify-content: center; align-items: center; margin: 15px 0 0; color: var(--muted); font-size: 8px; }
.summary-trust svg { width: 14px; height: 14px; }
.empty-cart { max-width: 590px; margin: 0 auto; padding: 80px 20px 120px; text-align: center; }
.empty-cart > svg { width: 66px; height: 66px; margin-bottom: 22px; color: var(--gold-dark); stroke-width: 1.2; }
.empty-cart .eyebrow { margin-bottom: 9px; }
.empty-cart h1 { margin-bottom: 12px; font-size: 42px; }
.empty-cart p { margin-bottom: 25px; color: var(--muted); }

.checkout-body .site-header { position: static; }
.checkout-body .main-nav { display: none; }
.checkout-page { background: linear-gradient(90deg, var(--paper) 0 66%, #f8f4ec 66%); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 70px; align-items: start; }
.checkout-form { min-width: 0; }
.checkout-account-note { display: flex; gap: 9px; align-items: center; margin-bottom: 14px; padding: 11px 14px; color: #3b7250; background: #edf7f0; border: 1px solid #d2e8d9; border-radius: 4px; font-size: 9px; font-weight: 700; }
.checkout-account-note[hidden] { display: none; }
.checkout-account-note svg { width: 17px; height: 17px; }
.form-section { margin-bottom: 18px; padding: 28px; background: white; border: 1px solid var(--line); }
.form-section-title { display: flex; gap: 14px; margin-bottom: 23px; }
.form-section-title > span { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 10px; font-weight: 700; }
.form-section h2 { margin: 0; font-size: 23px; }
.form-section-title p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-form label:not(.choice-card) { display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.checkout-form input:not([type="radio"]), .checkout-form textarea { width: 100%; padding: 11px 12px; background: white; border: 1px solid var(--line); border-radius: 3px; outline: 0; font-size: 12px; font-weight: 400; }
.checkout-form input:focus, .checkout-form textarea:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 2px rgba(139, 99, 60, .1); }
.choice-grid, .payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card { position: relative; min-height: 70px; display: flex; align-items: center; padding: 13px 42px 13px 15px; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.choice-card input { position: absolute; opacity: 0; }
.choice-card span { display: flex; flex-direction: column; }
.choice-card strong { font-size: 12px; }
.choice-card small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.choice-card > i { position: absolute; right: 15px; width: 17px; height: 17px; border: 1px solid #aaa; border-radius: 50%; }
.choice-card:has(input:checked) > i { border: 5px solid var(--green); }
.choice-card.disabled { opacity: .55; cursor: not-allowed; }
.choice-card em { position: absolute; top: 8px; right: 8px; color: var(--muted); font-size: 8px; font-style: normal; text-transform: uppercase; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; margin: 15px 0; padding: 3px; background: var(--cream); }
.segmented-control label { cursor: pointer; }
.segmented-control input { position: absolute; opacity: 0; }
.segmented-control span { display: block; padding: 8px; text-align: center; font-size: 10px; }
.segmented-control input:checked + span { background: white; box-shadow: var(--shadow-sm); font-weight: 700; }
.order-note { margin-top: 15px; }
.order-note span { color: var(--muted); font-weight: 400; }
.place-order-button { width: 100%; min-height: 54px; }
.legal-note { margin: 10px 15px 0; color: var(--muted); font-size: 8px; text-align: center; }
.checkout-layout .order-summary { top: 25px; }
.checkout-mini-items { max-height: 280px; overflow: auto; margin-bottom: 22px; padding-bottom: 8px; border-bottom: 1px solid #d9cfbf; }
.checkout-mini-items > div { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.checkout-mini-items .book-cover { width: 42px; height: 58px; box-shadow: none; }
.checkout-mini-items .css-cover { padding: 4px 2px; }
.checkout-mini-items .css-cover strong { font-size: 6px; }
.checkout-mini-items .css-cover span, .checkout-mini-items .css-cover i { display: none; }
.checkout-mini-items > div > span { min-width: 0; display: flex; flex-direction: column; }
.checkout-mini-items strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.checkout-mini-items small { color: var(--muted); font-size: 8px; }
.checkout-mini-items b { font-size: 9px; white-space: nowrap; }
.order-success { max-width: 650px; margin: 30px auto 80px; padding: 60px 45px; background: white; border: 1px solid var(--line); text-align: center; }
.order-success > svg { width: 60px; height: 60px; color: var(--success); }
.order-success h1 { margin: 18px 0 8px; font-family: var(--serif); font-size: 40px; }
.order-success p { color: var(--muted); }

footer { padding: 58px 0 22px; color: #f4f0e8; background: var(--green); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 55px; }
.footer-brand { margin-bottom: 18px; color: white; }
.footer-brand .brand-mark { color: white; }
.footer-about > p { max-width: 330px; color: #bdc6c1; font-size: 11px; line-height: 1.8; }
.footer-note { display: flex; gap: 8px; align-items: center; margin-top: 22px; color: #d8bd99; font-size: 9px; }
.footer-note svg { width: 18px; height: 18px; }
.footer-grid h2 { margin: 5px 0 17px; color: white; font-family: var(--serif); font-size: 17px; }
.footer-grid > div > a:not(.brand), .footer-grid > div > p { display: block; margin: 8px 0; color: #bdc6c1; font-size: 10px; }
.footer-grid > div > a:not(.brand):hover { color: white; }
.footer-contacts address { color: #bdc6c1; font-size: 12px; font-style: normal; line-height: 1.8; }
.footer-contacts a { overflow-wrap: anywhere; }
.footer-contacts strong { color: #f4f0e8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 18px; color: #89968f; border-top: 1px solid rgba(255, 255, 255, .13); font-size: 9px; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 24px; max-width: calc(100% - 30px); padding: 12px 18px; color: white; background: var(--green); border: 1px solid rgba(255, 255, 255, .2); border-radius: 3px; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .2s, transform .2s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .header-main { grid-template-columns: 200px minmax(220px, 1fr) 225px; gap: 22px; }
  .header-actions { gap: 15px; }
  .hero-layout { min-height: 450px; }
  .book-stack { right: -55px; transform: scale(.88); }
  .hero-art blockquote { display: none; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid .product-card:nth-child(5) { display: none; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .editorial-banner { grid-template-columns: 1fr 1fr; }
  .editorial-quote { display: none; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-grid .product-card:nth-child(5) { display: block; }
  .product-layout { gap: 42px; }
  .main-product-image { min-height: 560px; padding: 35px; }
  .main-product-image .book-cover.large { height: 480px; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 110px; }
  .wrap { width: min(100% - 34px, 1220px); }
  .trust-bar-inner { justify-content: center; }
  .trust-bar-inner > span, .trust-bar-inner > div span:nth-child(n+2) { display: none; }
  .header-main { min-height: 76px; grid-template-columns: 1fr auto auto; gap: 8px 14px; padding: 12px 0; }
  .brand-mark { width: 42px; }
  .brand-mark svg { width: 39px; }
  .brand strong { font-size: 17px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; }
  .header-actions { gap: 11px; }
  .header-actions a:first-child { display: none; }
  .header-actions a { min-width: 34px; }
  .header-actions a span { display: none; }
  .mobile-menu-button { display: grid; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav .wrap { height: auto; flex-direction: column; gap: 0; align-items: stretch; padding: 8px 0 14px; }
  .main-nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .hero-layout { min-height: 500px; grid-template-columns: 1fr; }
  .hero-copy { max-width: 650px; }
  .hero-art { display: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid .product-card:nth-child(5) { display: none; }
  .editorial-banner { min-height: 240px; padding: 32px; }
  .editorial-books { transform: scale(.82); transform-origin: right center; }
  .catalog-tools { grid-template-columns: 1fr auto; }
  .catalog-search { max-width: none; }
  .filter-toggle { display: flex; }
  .sort-control { grid-column: 1 / -1; justify-content: flex-end; }
  .catalog-layout { display: block; }
  .filters-panel { position: fixed; z-index: 100; top: 0; bottom: 0; left: 0; width: min(390px, 90vw); overflow: auto; padding: 22px; background: var(--paper); border: 0; box-shadow: var(--shadow-md); transform: translateX(-105%); transition: transform .25s; }
  .filters-open .filters-panel { transform: translateX(0); }
  .filters-header { display: flex; }
  .filter-actions { position: sticky; bottom: -22px; margin: 0 -22px; padding: 14px 22px 20px; background: var(--paper); border-top: 1px solid var(--line); }
  .filter-actions .button { display: inline-flex; }
  .filter-backdrop { position: fixed; z-index: 90; inset: 0; display: block; visibility: hidden; background: rgba(10, 20, 16, .46); opacity: 0; transition: opacity .25s, visibility .25s; }
  .filters-open .filter-backdrop { visibility: visible; opacity: 1; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { max-width: 650px; width: 100%; margin: auto; }
  .product-panel { max-width: 650px; width: 100%; margin: auto; }
  .book-information { gap: 35px; }
  .book-information article + article { padding-left: 35px; }
  .cart-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .checkout-page { background: var(--paper); }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-layout .order-summary { grid-row: 1; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 580px) {
  body { font-size: 14px; }
  .wrap { width: min(100% - 28px, 1220px); }
  .brand small { margin-top: 4px; }
  .header-actions { gap: 4px; }
  .hero-layout { min-height: 460px; }
  .hero-copy { padding: 50px 0 45px; }
  .hero h1 { font-size: 43px; }
  .hero-intro { font-size: 14px; }
  .hero-trust { flex-direction: column; gap: 9px; margin-top: 30px; }
  .hero-trust svg { width: 18px; height: 18px; }
  .section { padding: 45px 0; }
  .section-heading { align-items: flex-end; margin-bottom: 22px; }
  .section-heading h2 { font-size: 28px; }
  .text-link { font-size: 10px; }
  .product-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .product-grid .product-card:nth-child(5) { display: block; }
  .cover-link, .catalog-grid .cover-link { height: 255px; padding: 10px; }
  .css-cover { padding: 20px 10px 16px; }
  .css-cover strong { font-size: 20px; }
  .favorite-button { opacity: 1; transform: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card > span { width: 62px; height: 62px; }
  .editorial-banner { grid-template-columns: 1fr; min-height: 280px; margin-top: 10px; padding: 30px 25px; background: linear-gradient(125deg, #775a40, #28352b); }
  .editorial-banner h2 { font-size: 29px; }
  .editorial-books { display: none; }
  .catalog-page, .product-page, .cart-page, .checkout-page { padding-top: 24px; }
  .catalog-title-row { align-items: flex-end; }
  .catalog-title-row h1, .page-title h1 { font-size: 34px; }
  .catalog-title-row p { display: none; }
  .catalog-tools { grid-template-columns: 1fr auto; gap: 10px; }
  .sort-control { justify-content: stretch; }
  .sort-control span { display: none; }
  .sort-control select { width: 100%; }
  .product-gallery { display: flex; flex-direction: column; }
  .main-product-image { order: 1; min-height: 430px; padding: 25px; }
  .main-product-image .book-cover.large { width: min(285px, 88%); height: 390px; }
  .thumbnail-row { order: 2; flex-direction: row; }
  .thumbnail { width: 80px; height: 85px; }
  .thumbnail .book-cover { min-height: 54px; }
  .product-panel { padding-top: 8px; }
  .product-panel h1 { font-size: 41px; }
  .product-actions { grid-template-columns: 1fr 54px; }
  .book-information { grid-template-columns: 1fr; gap: 0; margin-top: 50px; padding: 0; border-top: 1px solid var(--line); }
  .book-information article { padding: 35px 0; border-bottom: 1px solid var(--line); }
  .book-information article + article { padding-left: 0; border-left: 0; }
  .book-details { grid-template-columns: 1fr; gap: 15px; padding-bottom: 10px; }
  .book-details dl { grid-template-columns: 1fr; }
  #sticky-product-action.visible:not(:empty) { position: fixed; z-index: 45; right: 0; bottom: 0; left: 0; display: block; padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); background: rgba(255, 253, 248, .97); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  #sticky-product-action > div { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
  #sticky-product-action span { min-width: 0; display: flex; flex-direction: column; }
  #sticky-product-action small { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  #sticky-product-action strong { font-size: 14px; }
  #sticky-product-action .button { min-height: 42px; padding: 8px 18px; }
  body[data-page="product"] { padding-bottom: 66px; }
  .cart-item { min-height: 150px; grid-template-columns: 82px minmax(0, 1fr); gap: 15px; }
  .cart-cover { height: 115px; }
  .cart-item-info h2 { font-size: 19px; }
  .cart-price { position: absolute; right: 0; top: 24px; margin: 0; }
  .cart-item-info { padding-right: 65px; }
  .remove-button { left: 97px; right: auto; bottom: 20px; }
  .delivery-note { align-items: flex-start; }
  .order-summary { padding: 23px; }
  .empty-cart { padding: 55px 10px 85px; }
  .empty-cart h1 { font-size: 34px; }
  .checkout-layout { gap: 22px; }
  .form-section { padding: 22px 17px; }
  .form-grid, .choice-grid, .payment-options { grid-template-columns: 1fr; }
  .page-title { margin-bottom: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 25px; }
  .footer-about, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-row: auto; }
  .footer-bottom { flex-direction: column; }
  .toast { font-size: 11px; white-space: normal; text-align: center; }
}

@media (max-width: 370px) {
  .brand-mark { display: none; }
  .brand strong { font-size: 15px; }
  .header-actions a { min-width: 30px; }
  .hero h1 { font-size: 38px; }
  .cover-link, .catalog-grid .cover-link { height: 225px; }
  .product-title { font-size: 12px; }
  .card-price strong { font-size: 14px; }
}

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

/* Homepage visual correction: follows the approved photographic reference. */
.hero { position: relative; overflow: hidden; color: white; background-image: linear-gradient(90deg, rgba(7, 18, 14, .44), rgba(7, 18, 14, .08) 52%, rgba(7, 18, 14, .03)), url("assets/editorial/hero-bookstore-v2.png"); background-position: center; background-size: cover; }
.hero::after { display: none; content: none; }
.hero-layout { min-height: clamp(475px, 34vw, 555px); grid-template-columns: minmax(650px, 1.08fr) .92fr; }
.hero-copy { max-width: 760px; padding: 62px 0 54px; }
.hero h1 { margin-bottom: 18px; font-size: clamp(54px, 4.15vw, 68px); line-height: 1.02; letter-spacing: -.018em; }
.hero h1 em { display: block; }
.hero-intro { max-width: none; margin-bottom: 27px; font-size: 17px; line-height: 1.5; }
.hero-copy .button { min-width: 218px; min-height: 52px; }
.hero-trust { gap: 32px; margin-top: 38px; font-size: 11px; }
.hero-art { position: relative; display: block; align-self: stretch; }
.hero-art::after, .hero-orbit, .book-stack, .hero-art blockquote { display: none; content: none; }
.hero-handwriting { position: absolute; top: 40px; right: 18px; display: block; margin: 0; color: #f2ddc4; font-family: "Segoe Script", "Bradley Hand", cursive; font-size: 23px; line-height: 1.45; text-align: center; transform: rotate(-2deg); text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.hero-handwriting span { color: #fff; }
.section { padding: 48px 0; }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { font-size: 37px; }
.product-grid { gap: 32px 26px; }
.cover-link { height: auto; aspect-ratio: .72; padding: 15px; }
.product-title { font-size: 15px; }
.product-author { font-size: 12px; }
.condition { margin-top: 9px; font-size: 11px; }
.product-bottom { margin-top: 10px; }
.card-price strong { font-size: 19px; }
.card-cart-button { width: 42px; height: 42px; }
.categories-section { padding-top: 34px; }
.category-grid { gap: 22px; }
.category-card { padding: 8px 5px; }
.category-card > span { width: 82px; height: 82px; margin-bottom: 14px; }
.category-card svg { width: 34px; height: 34px; }
.category-card strong { min-height: 0; font-family: var(--sans); font-size: 12px; font-weight: 600; }
.category-card small { display: none; }
.editorial-banner { position: relative; min-height: 270px; grid-template-columns: 1fr .6fr; gap: 50px; padding: 40px 50px; background-image: linear-gradient(90deg, rgba(30, 21, 15, .62), rgba(30, 21, 15, .08) 52%, rgba(17, 27, 22, .58)), url("assets/editorial/classics-banner-v2.png"); background-position: center; background-size: cover; }
.editorial-banner h2 { max-width: 480px; margin-bottom: 23px; font-size: 39px; }
.editorial-copy { z-index: 2; }
.editorial-books { display: none; }
.editorial-quote { position: relative; z-index: 2; justify-self: end; font-size: 20px; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }

@media (min-width: 1505px) {
  .hero-layout { min-height: 555px; }
  .hero-copy { padding-left: 8px; }
}

@media (max-width: 820px) {
  .hero { background-position: 65% center; }
  .hero-layout { min-height: 480px; grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; padding: 54px 0 48px; }
  .hero h1 { font-size: 48px; }
  .hero-art, .hero-handwriting { display: none; }
  .editorial-banner { grid-template-columns: 1fr; }
  .editorial-quote { display: none; }
}

@media (max-width: 580px) {
  .hero { background-position: 64% center; }
  .hero-layout { min-height: 465px; }
  .hero-copy { padding: 48px 0 42px; }
  .hero h1 { font-size: 42px; line-height: 1.03; }
  .hero-intro { max-width: 330px; font-size: 14px; }
  .hero-trust { gap: 10px; margin-top: 30px; }
  .section { padding: 42px 0; }
  .section-heading h2 { font-size: 30px; }
  .category-card > span { width: 70px; height: 70px; }
  .category-more { grid-column: 1 / -1; }
  body[data-page="home"] .product-grid { grid-template-columns: none; grid-auto-columns: minmax(210px, 64vw); grid-auto-flow: column; overflow-x: auto; overscroll-behavior-inline: contain; padding: 4px 2px 16px; scroll-snap-type: inline mandatory; scrollbar-width: thin; }
  body[data-page="home"] .product-card { scroll-snap-align: start; }
  .catalog-grid.is-sparse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-recommendations { margin-top: 42px; padding-top: 32px; }
  .recommendation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-banner { min-height: 280px; padding: 30px 25px; }
  .editorial-banner h2 { font-size: 30px; }
}

/* Readability pass: keep the editorial feel without relying on tiny UI copy. */
:root {
  --muted: #59635d;
}

body { font-size: 16px; }
.eyebrow, .breadcrumbs, .trust-bar, .hero-kicker, .text-link { font-size: 13px; }
.brand small { font-size: 10px; }
.header-actions a { font-size: 12px; }
.hero-trust { font-size: 13px; }
.product-title { font-size: 16px; line-height: 1.4; }
.product-author, .condition { font-size: 13px; }
.card-price del, .category-card strong { font-size: 12px; }
.catalog-title-row p, .result-count,
.catalog-search input, .sort-control, .sort-control select, .filter-toggle { font-size: 13px; }
.filter-list label { font-size: 13px; }
.filter-list small, .price-inputs label, .active-chips span { font-size: 11px; }
.price-inputs label span, .clear-filters { font-size: 12px; }
.availability { font-size: 13px; }
.condition-grade small, .condition-card p, .condition-card a { font-size: 13px; }
.product-trust strong, .product-trust small,
.book-details dl div { font-size: 13px !important; }
.cart-item-info p, .cart-item-info > small, .cart-condition,
.remove-button, .delivery-note p, .summary-line, .summary-line b,
.summary-trust { font-size: 13px; }
.checkout-account-note, .form-section-title p,
.checkout-form label:not(.choice-card), .choice-card small,
.segmented-control span, .legal-note { font-size: 12px; }
.checkout-form input:not([type="radio"]), .checkout-form textarea,
.choice-card strong { font-size: 14px; }
.checkout-mini-items strong, .checkout-mini-items small,
.checkout-mini-items b { font-size: 12px; }
.footer-about > p, .footer-note,
.footer-grid > div > a:not(.brand), .footer-grid > div > p,
.footer-bottom { font-size: 12px; }

@media (max-width: 580px) {
  body { font-size: 16px; }
  .text-link { font-size: 12px; }
  .product-title { font-size: 15px; }
}

/* Client revisions: left category discovery, buyback and current offers. */
.brand strong { font-size: 34px; }
/* The directory and merchandising share the full desktop page shell. */
.home-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 28px; align-items: start; padding-block: 28px; }
.home-first-books { grid-column: 2; grid-row: 1; min-width: 0; width: 100%; padding: 0 0 32px; }
.home-first-books .wrap { width: 100%; }
.home-first-books h1 { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); font-weight: 500; line-height: 1.15; }
.home-first-books .section-heading { margin-bottom: 24px; gap: 12px; }
.home-category-jump { display: none; }
.home-content { grid-column: 2; grid-row: 2; min-width: 0; }
.home-content .wrap { width: 100%; }
.home-shell .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 18px; }
.home-content .editorial-banner { padding: 32px; gap: 24px; }
.category-rail { grid-column: 1; grid-row: 1 / span 2; min-width: 0; padding: 24px 20px; background: var(--cream); border: 1px solid var(--line); border-radius: 6px; }
.category-rail h2, .catalog-category-panel > h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 29px; font-weight: 500; }
.category-rail .eyebrow { font-size: 11px; letter-spacing: .09em; }
.directory-all, .directory-popular, .directory-skip { display: block; padding-block: 10px; font-size: 14px; font-weight: 700; color: var(--gold-dark); }
.directory-popular { margin-block: 3px; padding: 11px 12px; color: var(--paper); background: var(--green); border-radius: 3px; }
.directory-popular:hover { background: var(--green-2); color: white; }
.directory-skip { font-size: 13px; font-weight: 500; }
.directory-group { padding-top: 22px; margin-top: 18px; border-top: 1px solid #d5caba; }
.directory-group h3, .category-filter-group h3 { margin: 0 0 10px; color: var(--green); font-size: 15px; font-weight: 700; line-height: 1.5; }
.directory-group ul { list-style: none; margin: 0; padding: 0; }
.directory-group a { display: block; padding: 7px 5px; margin-inline: -5px; border-radius: 3px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.directory-group a:hover { color: var(--gold-dark); background: #e9dfcf; }
.directory-group a:focus-visible { outline: 2px solid var(--gold-dark); background: var(--paper); }
.catalog-layout { grid-template-columns: 290px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 28px; align-items: start; }
.catalog-category-panel { grid-column: 1; grid-row: 1 / span 2; min-width: 0; padding: 22px 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 6px; }
.category-search-label { display: block; margin-top: 16px; font-size: 14px; }
#category-search { width: 100%; min-width: 0; margin-top: 8px; padding: 12px; border: 1px solid #cfc2ae; border-radius: 4px; background: var(--paper); font-size: 14px; }
.category-search-status { margin-block: 12px; font-size: 13px; color: var(--muted); }
.category-filter-group { display: grid; gap: 10px; padding-top: 22px; margin-top: 12px; border-top: 1px solid #d5caba; }
.category-filter-group label { font-size: 14px; line-height: 1.55; padding-block: 4px; }
.category-filter-group[hidden], .category-filter-group label[hidden] { display: none !important; }
.catalog-layout .filters-panel { grid-column: 2; grid-row: 1; padding: 18px; border: 1px solid var(--line); border-radius: 5px; }
.catalog-layout .catalog-results { grid-column: 2; grid-row: 2; min-width: 0; }
.catalog-layout #filter-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.catalog-layout #filter-form fieldset { min-width: 0; padding-block: 0; border: 0; }
.catalog-category-jump { display: none; }

@media (min-width: 1024px) and (max-width: 1200px) {
  .home-shell { grid-template-columns: 260px minmax(0, 1fr); gap: 0 22px; }
  .home-shell .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .home-shell { display: flex; flex-direction: column; gap: 24px; }
  .home-first-books, .category-rail, .home-content { width: 100%; }
  .home-first-books { order: 0; padding-bottom: 0; }
  .home-category-jump { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0 12px; color: var(--gold-dark); }
  .category-rail { order: 1; }
  .home-content { order: 2; }
  .home-shell .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-shell .product-grid .product-card:nth-child(5) { display: block; }
  #discovery-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
  .directory-group { break-inside: avoid; }
}
@media (max-width: 820px) {
  .catalog-layout { display: flex; flex-direction: column; }
  .catalog-layout .catalog-results { width: 100%; order: 0; }
  .catalog-category-panel { width: 100%; order: 1; }
  .catalog-layout .filters-panel { border-radius: 0; padding: 22px; }
  .catalog-layout #filter-form { display: block; }
  .catalog-layout #filter-form fieldset { padding-block: 18px; border-bottom: 1px solid var(--line); }
  #category-filters { display: block; columns: 2; column-gap: 24px; }
  .category-filter-group { break-inside: avoid; }
  .catalog-category-jump { display: inline-block; margin-bottom: 22px; padding-block: 8px; }
}
@media (max-width: 580px) {
  .brand strong { font-size: 25px; }
  .catalog-tools { grid-template-columns: minmax(0, 1fr) auto; }
  .catalog-search, .catalog-search input, .sort-control, .sort-control select { min-width: 0; }
  .home-shell { padding-block: 16px; gap: 16px; }
  .category-rail { padding: 20px 16px; }
  #discovery-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .directory-group h3 { font-size: 14px; }
  .directory-group a { font-size: 13px; min-height: 40px; }
  body[data-page="home"] .home-shell .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; gap: 24px 12px; padding: 0; }
  .home-first-books .section-heading { align-items: center; margin-bottom: 12px; }
  .home-first-books .eyebrow { font-size: 10px; letter-spacing: .06em; }
  .home-first-books .text-link { font-size: 12px; }
  .home-first-books .section-heading > .text-link { flex-shrink: 0; }
  .home-content .editorial-banner { padding: 26px 20px; }
  #category-filters { columns: 1; }
}

.main-nav .wrap { justify-content: flex-start; gap: 28px; min-height: 62px; height: auto; }
.nav-links { display: flex; gap: clamp(18px, 2.2vw, 32px); align-items: center; }
.main-nav .nav-buyback::after { display: none; }
.mobile-catalog-link { display: none; }
.main-nav .nav-buyback { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto; padding: 9px 14px; color: var(--green); background: var(--cream-deep); border: 0; border-radius: 4px; font-size: 14px; white-space: nowrap; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.hero-buyback { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; color: #f7e6d1; border-bottom: 1px solid #b59a7c; font-size: 15px; font-weight: 700; }
.hero-buyback:hover { color: white; }
.hero-trust { flex-wrap: wrap; gap: 16px 26px; }
.section-intro { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.cover-link { width: 100%; }
.promotions-section { margin-top: 6px; background: #f6f0e6; border-block: 1px solid var(--line); }
.promotions-section .card-visual { background: var(--paper); }
.merchandising-empty { grid-column: 1 / -1; color: var(--muted); font-size: 16px; }
.buyback-section { padding-block: 72px; }
.thumbnail { min-height: 112px; font-size: 12px; }

/* A labeled cart stays visible at every width, including when empty. */
.header-actions { align-items: center; gap: 18px; }
.header-actions .header-cart { min-height: 48px; flex-direction: row; gap: 9px; padding: 10px 14px; color: white; background: var(--green); border-radius: 5px; font-size: 14px; font-weight: 700; }
.header-actions .header-cart:hover { background: #284b3d; }
.header-actions .header-cart span { display: inline; }
.header-actions .header-cart b { position: static; min-width: 23px; height: 23px; border: 0; background: #fff2; color: white; font-size: 12px; }
.header-actions b[hidden] { display: none; }
@media (max-width: 820px) {
  .header-main { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .header-main > .brand { grid-column: 1; grid-row: 1; }
  .header-main > .mobile-menu-button { grid-column: 2; grid-row: 1; }
  .header-main > .header-search { grid-column: 1 / -1; grid-row: 2; height: 44px; }
  .header-actions { display: none; }
  .main-nav .wrap { min-height: 48px; }
  .main-nav .mobile-catalog-link { min-height: 48px; }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .main-nav .wrap { gap: 18px; }
  .nav-links { gap: 16px; font-size: 12px; }
  .main-nav .nav-buyback { padding-inline: 9px; font-size: 13px; }
}

@media (max-width: 820px) {
  .main-nav { display: block; }
  .main-nav .wrap { position: relative; display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 0; padding: 0; }
  .main-nav .nav-buyback { position: static; min-height: 44px; margin-block: 9px; }
  .mobile-catalog-link { display: inline-flex; align-items: center; min-height: 62px; border-bottom: 0 !important; font-size: 14px; }
  .nav-links { display: none; flex: 1 0 100%; order: 2; padding-bottom: 12px; }
  .main-nav.open .nav-links { display: grid; gap: 0; }
  .nav-links a { min-height: 44px; }
  .buyback-section { padding-block: 48px; }
  .thumbnail-row { flex-wrap: wrap; }
}

@media (max-width: 580px) {
  .main-nav .nav-buyback { font-size: 12px; padding-inline: 10px; gap: 5px; }
  .hero-actions { gap: 14px; }
  .hero-intro { font-size: 16px; }
  .hero-trust { gap: 12px; }
}

/* Mobile browsing: compact header, reachable navigation, and complete cards. */
@media (max-width: 820px) {
  html { scroll-padding-top: 180px; scroll-padding-bottom: 90px; }
  .trust-bar { display: none; }
  .header-main { padding-block: 8px; gap: 8px; }
  .header-main .brand-mark { width: 36px; height: 38px; }
  .header-main .brand-mark svg { height: 34px; }
  .header-main .brand strong { font-size: 26px; }
  .header-main .brand small { font-size: 8px; margin-top: 4px; }
  .header-search input, .checkout-form input, .checkout-form textarea, #category-search { font-size: 16px; }
  .main-nav .nav-buyback { margin-block: 2px; padding-block: 8px; }
  .home-first-books .eyebrow { display: none; }
  .home-first-books .section-heading { margin-bottom: 16px; align-items: center; }
  .home-first-books .section-heading > div { min-width: 0; }
  .home-first-books h1 { font-size: clamp(22px, 6.7vw, 30px); }
  .home-first-books .section-heading > .text-link { display: inline-flex; align-items: center; min-height: 44px; }
  .home-category-jump { display: none; }
  .home-shell .category-rail { order: 3; }
  .home-shell .home-content { order: 1; }
  .home-content .editorial-banner { min-height: 145px; padding: 20px; margin-top: 8px; }
  .home-content .editorial-banner h2 { font-size: 26px; margin-bottom: 12px; }
  .home-content .editorial-banner .button { min-height: 44px; padding: 10px 14px; font-size: 13px; }
  .home-content .section { padding-block: 30px; }
  .home-content .section-heading h2 { font-size: 28px; }
  .product-card { min-width: 0; }
  .card-cart-button, .favorite-button { min-width: 44px; min-height: 44px; }
  .directory-group a { min-height: 44px; }
}
@media (max-width: 580px) {
  .home-shell { padding-top: 10px; }
  .cover-link, .catalog-grid .cover-link { height: clamp(165px, 51vw, 225px); aspect-ratio: auto; padding: 12px; }
  .product-info { padding-top: 10px; }
  .product-title { font-size: 14px; }
  .product-author { font-size: 12px; }
  .product-bottom { gap: 6px; margin-top: 8px; align-items: center; }
  .card-price strong { font-size: 17px; white-space: nowrap; }
  .card-price del { font-size: 11px; }
  .card-cart-button:disabled { min-width: 0; padding-inline: 4px; }
  .card-cart-button:disabled span { font-size: 8px; }
}
@media (max-width: 580px) and (max-height: 640px) {
  .cover-link, .catalog-grid .cover-link { height: 145px; padding: 10px; }
  .home-first-books .section-heading { margin-bottom: 8px; }
}

/* The same category directory lives in a modal drawer on smaller screens. */
.mobile-shop-bar { display: none; }
.mobile-shop-menu { width: min(360px, calc(100vw - 28px)); max-width: none; height: 100dvh; max-height: 100dvh; margin: 0 auto 0 0; padding: 0 20px calc(24px + env(safe-area-inset-bottom)); border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; box-shadow: 10px 0 35px #10271f30; }
.mobile-shop-menu::backdrop { background: #0e251faa; }
.shop-menu-open { position: fixed; top: var(--menu-scroll-y); width: 100%; overflow: hidden; }
.mobile-menu-heading { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.mobile-menu-heading .eyebrow { font-size: 10px; margin-bottom: 5px; }
.mobile-menu-heading h2 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.mobile-menu-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 5px; background: var(--cream); color: var(--green); }
.mobile-menu-close svg { width: 22px; height: 22px; }
.mobile-shop-links { display: grid; padding-block: 10px; }
.mobile-shop-links a { display: flex; justify-content: space-between; align-items: center; min-height: 46px; padding-block: 10px; font-size: 15px; font-weight: 600; }
.mobile-shop-links svg { width: 20px; height: 20px; }
.mobile-account-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-block: 10px; border-block: 1px solid var(--line); }
.mobile-account-links a { display: flex; align-items: center; gap: 7px; min-height: 44px; font-size: 14px; }
.mobile-account-links svg { width: 20px; height: 20px; }
.mobile-account-links b { color: var(--green); font-size: 12px; }
.mobile-menu-categories > h2 { margin-block: 24px 18px; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.mobile-shop-menu .directory-group { margin-bottom: 22px; }
.mobile-shop-menu .directory-group a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; }
@media (max-width: 820px) {
  html { scroll-padding-top: 180px; scroll-padding-bottom: 16px; }
  .header-main { grid-template-columns: minmax(0, 1fr); }
  .header-main > .brand { justify-self: center; }
  .main-nav { display: none; }
  .mobile-shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 6px; border-top: 1px solid var(--line); }
  .mobile-shop-bar .mobile-menu-button { display: inline-flex; align-items: center; gap: 10px; width: auto; min-width: 106px; height: 44px; padding: 8px 12px; background: var(--cream); border-radius: 5px; font-size: 16px; font-weight: 700; }
  .mobile-shop-bar .mobile-cart { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; background: var(--green); color: white; border-radius: 5px; font-size: 14px; font-weight: 700; }
  .mobile-cart svg { width: 22px; height: 22px; }
  .mobile-cart b { display: grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 4px; border-radius: 20px; background: #fff2; font-size: 12px; }
  .home-shell > .category-rail { display: none; }
}

/* A centered bookseller's masthead and a grouped, in-flow catalog. */
.buyback-announcement { display: flex; justify-content: center; align-items: center; gap: 12px; padding-block: 9px; text-align: center; font-size: 12px; }
.header-main { grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr); gap: 28px; min-height: 142px; }
.header-main > .header-search { grid-column: 1; grid-row: 1; min-width: 0; width: 100%; }
.header-main > .masthead-brand { grid-column: 2; grid-row: 1; justify-self: center; text-align: center; }
.header-main .masthead-brand strong { display: block; font-family: var(--serif); font-size: 76px; font-weight: 500; line-height: .92; letter-spacing: -.035em; }
.header-main .masthead-brand strong > span { display: block; margin-bottom: 8px; font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; }
.header-actions { grid-column: 3; grid-row: 1; justify-content: flex-end; gap: 18px; }
.main-nav > .wrap { flex-wrap: wrap; column-gap: 24px; row-gap: 0; }
.catalog-trigger { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border: 0; border-radius: 3px; background: var(--green); color: white; font: inherit; font-weight: 700; }
.catalog-trigger svg { width: 21px; height: 21px; }
.catalog-trigger:focus-visible, .catalog-mega-close:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.catalog-mega { flex: 0 0 100%; width: 100%; padding: 24px 0 32px; border-top: 1px solid var(--line); }
.catalog-mega[hidden] { display: none; }
.catalog-mega-heading { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.catalog-mega-heading h2 { margin: 0; font: 500 30px/1.2 var(--serif); }
.catalog-mega-heading > a { color: var(--gold-dark); font-weight: 700; }
.catalog-mega-heading > a:first-of-type { margin-left: auto; }
.catalog-mega-popular { padding: 10px 14px; color: var(--paper) !important; background: var(--green); border-radius: 3px; }
.catalog-mega-popular:hover { background: var(--green-2); color: white !important; }
.catalog-mega-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); background: var(--cream); border-radius: 3px; }
.catalog-mega-close svg { width: 22px; height: 22px; }
.catalog-mega-groups { columns: 4; column-gap: 36px; }
.catalog-mega .directory-group { display: inline-block; width: 100%; break-inside: avoid; margin: 0 0 24px; padding-top: 15px; }
.catalog-mega .directory-group h3 { font-size: 14px; }
.catalog-mega .directory-group a { font-size: 13px; font-weight: 400; line-height: 1.5; min-height: 32px; padding-block: 6px; }
.catalog-mega a::after { display: none; }
.footer-brand { gap: 10px; }
.footer-brand strong { font-size: 25px; white-space: normal; }
.home-content > .section { padding-block: 32px; }
.home-content > .section:first-child { padding-top: 0; }
.home-content .section-heading h2 { font-size: clamp(28px, 3vw, 42px); }
.home-content .promotions-section { background: transparent; border: 0; margin: 0; }
.home-content .buyback-section { padding-top: 28px; }
.buyback-banner { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 460px; background: var(--green); color: var(--paper); margin-bottom: 40px; }
.buyback-banner-copy { padding: 44px 36px; align-self: center; }
.buyback-banner .eyebrow { color: var(--gold); font-size: 11px; letter-spacing: .1em; }
.buyback-banner h2 { margin: 16px 0 22px; font: 500 clamp(44px, 4.8vw, 72px)/1.02 var(--serif); letter-spacing: -.025em; }
.buyback-banner p { max-width: 380px; margin: 0 0 26px; font-size: 16px; line-height: 1.7; color: #e0e3db; }
.buyback-contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.buyback-contacts a { color: var(--paper); font-size: 17px; text-decoration: underline; text-underline-offset: 4px; }
.buyback-contacts a:hover { color: var(--gold); }
.buyback-banner-image { width: 100%; height: 100%; min-height: 460px; object-fit: cover; object-position: 65% center; }
.home-content .editorial-banner { margin-block: 24px 40px; }
@media (min-width: 821px) and (max-width: 1100px) {
  .header-main { grid-template-columns: minmax(0, 1fr) 250px minmax(0, 1fr); gap: 16px; }
  .header-main .masthead-brand strong { font-size: 66px; }
  .header-main .masthead-brand strong > span { font-size: 14px; }
  .header-actions { gap: 12px; }
  .header-actions > a:not(.header-cart) span { display: none; }
  .header-actions .header-cart { padding-inline: 10px; gap: 6px; }
  .catalog-mega-groups { columns: 3; column-gap: 28px; }
  .buyback-banner { grid-template-columns: 1fr; }
  .buyback-banner-image { height: 240px; min-height: 0; }
}
@media (max-width: 820px) {
  .trust-bar { display: block; }
  .buyback-announcement { min-height: 30px; padding: 5px 12px; font-size: 11px; line-height: 1.35; white-space: nowrap; }
  .header-main { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 14px 8px; }
  .header-main > .masthead-brand { grid-column: 1; grid-row: 1; }
  .header-main .masthead-brand strong { font-size: 60px; }
  .header-main .masthead-brand strong > span { margin-bottom: 6px; font-size: 12px; }
  .header-main > .header-search { grid-column: 1; grid-row: 2; }
  .main-nav { display: none; }
  .buyback-banner { grid-template-columns: 1fr 1fr; min-height: 0; margin-bottom: 28px; }
  .buyback-banner-copy { padding: 30px 24px; }
  .buyback-banner h2 { font-size: 48px; }
  .buyback-banner-image { min-height: 0; }
  .buyback-banner .eyebrow { line-height: 1.6; }
  .home-content > .section { padding-block: 26px; }
  .home-content .section-heading h2 { font-size: 28px; }
}
@media (max-width: 580px) {
  .header-main .masthead-brand strong { font-size: 54px; }
  .buyback-banner { grid-template-columns: 1fr; grid-template-rows: auto 240px; }
  .buyback-banner h2 { font-size: clamp(44px, 13.3vw, 52px); }
  .buyback-banner-image { height: 240px; object-position: right center; }
  .buyback-banner-copy { align-self: auto; padding: 32px 24px; }
  .buyback-banner p { font-size: 15px; }
  .home-content .section-heading { gap: 10px; }
  .home-content .section-heading h2 { font-size: 26px; }
}

.masthead-brand { gap: 18px; }
.teo-brand-mark { display: block; flex: 0 0 auto; }
.teo-logo-mark { width: 80px; height: 80px; }
.catalog-mega-groups { columns: 3; }
.home-first-books .antique-banner { min-height: 170px; grid-template-columns: minmax(0, 1fr) 1fr; padding: 20px 28px; margin-top: 30px; background: #24251d url('assets/editorial/classics-banner-v2.png') right center / cover no-repeat; border-radius: 0; box-shadow: none; }
.antique-banner .editorial-copy { padding: 24px; background: #10271ff2; }
.home-first-books .antique-banner .editorial-copy { display: flex; align-items: center; gap: 18px; padding: 18px 22px; }
.home-first-books .antique-banner h2 { margin: 0; font-size: clamp(32px, 3vw, 46px); white-space: nowrap; }
.antique-banner p { max-width: 400px; margin-bottom: 22px; color: #e0e3db; font-size: 15px; line-height: 1.7; }
.antique-banner .eyebrow { font-size: 10px; line-height: 1.7; }
@media (min-width: 821px) and (max-width: 1100px) {
  .teo-logo-mark { width: 68px; height: 68px; }
  .masthead-brand { gap: 12px; }
  .home-first-books .antique-banner { grid-template-columns: 1fr; padding: 16px; }
  .antique-banner .editorial-copy { max-width: 420px; }
}
@media (max-width: 820px) {
  .teo-logo-mark { width: 62px; height: 62px; }
  .masthead-brand { gap: 14px; }
  .home-first-books .antique-banner { grid-template-columns: minmax(0, 1fr) .7fr; padding: 12px; }
}
@media (max-width: 580px) {
  .teo-logo-mark { width: 58px; height: 58px; }
  .home-first-books .antique-banner { display: block; padding: 110px 0 0; margin-top: 20px; background-position: right top; background-size: auto 150px; }
  .antique-banner .editorial-copy { padding: 26px 22px; background: var(--green); }
  .home-first-books .antique-banner .editorial-copy { display: block; padding: 18px 20px; }
  .home-first-books .antique-banner h2 { margin-bottom: 14px; font-size: 36px; white-space: normal; }
  .antique-banner .button { padding-inline: 12px; }
}
