/* Agaton redesign mock — "Lapis și foiță de aur" */
:root {
  --lapis: #1E3A6D;
  --night: #142849;
  --ochre: #C99A3B;
  --ochre-text: #8A6316;
  --ochre-on-dark: #E0B65A;
  --paper: #F8F6F1;
  --panel: #EFEBE3;
  --ink: #1C1B22;
  --ink-2: #3E3B37;
  --muted: #57534E;
  --line: #E2DDD3;
  --tint: #E6EBF4;
  --tint-2: #D7DFEE;
  --chip-line: #C9CED9;
  --input-line: #8C93A3;
  --on-dark: #DCE3F0;
  --on-dark-muted: #C9D3E6;
  --dark-line: #2E4670;
  --white: #FFFFFF;
  --mark: #F3E5C2;
  --serif: Alegreya, Georgia, 'Times New Roman', serif;
  --sans: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 10px;
  --shadow-cover: 0 10px 22px rgba(28, 27, 34, 0.22);
  --shadow-pop: 0 18px 40px rgba(20, 40, 73, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--lapis); text-underline-offset: 0.15em; }
a:hover { color: var(--night); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lapis); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--ochre-on-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 12px 18px; border-radius: 8px; background: var(--white); font-weight: 700; box-shadow: var(--shadow-pop); }
.skip-link:focus { top: 12px; }
.container { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ochre-text); font-weight: 700; }
.on-dark .eyebrow { color: var(--ochre-on-dark); }
.placeholder { color: var(--ochre-text); font-weight: 700; border-bottom: 2px dashed var(--ochre-text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius); font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.btn svg { flex: none; }
.btn-primary { background: var(--lapis); color: var(--white); }
.btn-primary:hover { background: var(--night); color: var(--white); }
.btn-gold { background: var(--ochre); color: var(--ink); }
.btn-gold:hover { background: var(--ochre-on-dark); color: var(--ink); }
.btn-outline { background: var(--white); color: var(--lapis); border: 1.5px solid var(--lapis); }
.btn-outline:hover { background: var(--tint); color: var(--night); }
.btn-ghost-light { background: transparent; color: var(--white); border: 1px solid var(--on-dark-muted); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.btn-quiet { background: transparent; color: var(--lapis); }
.btn-quiet:hover { background: var(--tint); color: var(--night); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 16px; border-radius: 8px; }
.btn-lg { min-height: 56px; font-size: 19px; }
.btn-block { width: 100%; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--chip-line); border-radius: 22px; background: var(--white); color: var(--lapis); font-weight: 500; font-size: 17px; text-decoration: none; }
.chip:hover { background: var(--tint); color: var(--lapis); }
.chip[aria-pressed="true"] { background: var(--lapis); border-color: var(--lapis); color: var(--white); font-weight: 700; }
.chip-count { font-size: 14px; opacity: 0.8; }

/* Utility strip */
.strip { background: var(--night); color: var(--on-dark); font-size: 15px; }
.strip .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 10px; }
.strip a, .strip strong { color: var(--white); }

/* Header */
.site-header { position: relative; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.hdr-top { display: flex; align-items: center; gap: 16px 40px; padding-top: 20px; }
.brand { flex: none; display: flex; flex-direction: column; color: var(--lapis); text-decoration: none; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 40px; font-weight: 700; }
.brand-tag { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.search { position: relative; flex: 1 1 380px; min-width: 0; }
.search-form { display: flex; }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; min-width: 0; padding: 0 16px; border: 1.5px solid var(--input-line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--white); color: var(--muted); }
.search-field:focus-within { border-color: var(--lapis); box-shadow: inset 0 0 0 1px var(--lapis); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 18px; color: var(--ink); }
.search-field input::placeholder { color: var(--muted); }
.search-btn { height: 52px; padding: 0 24px; border: 0; border-radius: 0 10px 10px 0; background: var(--lapis); color: var(--white); font-weight: 700; font-size: 17px; }
.search-btn:hover { background: var(--night); }
.search-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; max-height: min(72vh, 600px); overflow: auto; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop); }
.search-panel[hidden] { display: none; }
.sr-list { list-style: none; margin: 0; padding: 0; }
.sr-option { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; cursor: pointer; }
.sr-option img { width: 40px; height: 60px; object-fit: cover; border-radius: 2px; box-shadow: 0 3px 8px rgba(28, 27, 34, 0.18); }
.sr-option:hover, .sr-option[aria-selected="true"] { background: var(--tint); color: var(--ink); }
.sr-theme { grid-template-columns: 40px minmax(0, 1fr); }
.sr-theme-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--tint); display: inline-flex; align-items: center; justify-content: center; color: var(--lapis); }
.sr-title { display: block; font-family: var(--serif); font-size: 17px; line-height: 1.25; }
.sr-author { font-size: 14px; color: var(--muted); }
.sr-price { font-weight: 700; font-size: 16px; }
.sr-all { display: block; margin-top: 6px; padding: 12px 10px 6px; border-top: 1px solid var(--line); font-weight: 700; }
.sr-empty { display: flex; flex-direction: column; gap: 12px; padding: 14px 12px; }
.sr-empty .chip-row { gap: 8px; }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }
.hdr-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.hdr-link { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 10px; border-radius: 10px; color: var(--ink); font-weight: 500; text-decoration: none; }
.hdr-link:hover { background: var(--tint); color: var(--ink); }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: var(--tint); color: var(--ink); }
.fav-count { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ochre); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.fav-count[hidden] { display: none; }
.cart-btn { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px 0 16px; border: 0; border-radius: 10px; background: var(--tint); color: var(--lapis); font-weight: 700; }
.cart-btn:hover { background: var(--tint-2); color: var(--night); }
.cart-count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--white); color: var(--lapis); font-size: 15px; line-height: 26px; text-align: center; }
.cart-btn.has-items .cart-count { background: var(--lapis); color: var(--white); }
.cart-btn.bump .cart-count { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.3); } }
.menu-btn { display: none; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 18px; font-size: 17px; font-weight: 500; }
.cat-nav a { padding: 12px 0 9px; border-bottom: 3px solid transparent; color: var(--ink); text-decoration: none; }
.cat-nav a:hover { color: var(--lapis); border-bottom-color: var(--chip-line); }
.cat-nav a[aria-current="page"] { color: var(--lapis); font-weight: 700; border-bottom-color: var(--lapis); }
.cat-nav a.is-season { color: var(--ochre-text); font-weight: 700; }
.cat-nav a.is-season[aria-current="page"] { border-bottom-color: var(--ochre-text); }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 0; font-size: 16px; color: var(--muted); }
.crumb-back { display: none; }

/* Book card */
.grid-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 32px 24px; }
.book { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.book-cover { display: flex; align-items: center; justify-content: center; height: 260px; margin-bottom: 4px; padding: 20px; border-radius: 12px; background: var(--panel); transition: background-color .15s; }
.book-cover:hover { background: #E7E1D5; }
.book-cover img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; box-shadow: var(--shadow-cover); transition: transform .2s; }
.book-cover:hover img { transform: translateY(-3px); }
.book-author { font-size: 15px; color: var(--muted); }
.book-title { font-family: var(--serif); font-size: 19px; line-height: 1.25; font-weight: 500; min-height: 72px; }
.book-title a { color: var(--ink); text-decoration: none; }
.book-title a:hover { color: var(--lapis); text-decoration: underline; }
.book-meta { font-size: 15px; color: var(--muted); }
.book-price { font-size: 21px; font-weight: 700; }
.book .btn { margin-top: auto; }
.book-bundle .book-cover { gap: 0; }
.fan { display: flex; align-items: flex-end; }
.fan > * { display: block; flex: none; }
.fan img { display: block; width: 70px; height: 105px; object-fit: cover; box-shadow: 0 8px 18px rgba(20, 40, 73, 0.28); border-radius: 2px; }
.fan > :nth-child(1) { transform: rotate(-7deg); margin-right: -22px; }
.fan > :nth-child(2) { position: relative; z-index: 1; }
.fan > img:nth-child(2), .fan > :nth-child(2) img { width: 84px; height: 126px; }
.fan > :nth-child(3) { transform: rotate(7deg); margin-left: -22px; }

/* Home: hero */
.hero { display: flex; flex-wrap: wrap; background: var(--night); }
.hero-media { position: relative; flex: 1 1 560px; min-height: 420px; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero-body { flex: 1 1 440px; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(32px, 5vw, 72px) clamp(20px, 5vw, 80px) clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px); color: var(--white); }
.hero-body h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; }
.hero-body p { max-width: 520px; font-size: 20px; color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-actions a:not(.btn) { color: var(--white); font-weight: 500; }
.hero-picks { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.hero-picks-label { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero-picks-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-picks-row img { display: block; width: 76px; height: 114px; object-fit: cover; border-radius: 3px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); transition: transform .2s; }
.hero-picks-row a:hover img { transform: translateY(-4px); }

.theme-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 36px; padding-bottom: 8px; }
.theme-bar > strong { margin-right: 8px; }

/* Home: seasonal tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: 28px; padding-top: 28px; }
.tile { display: flex; flex-wrap: wrap; overflow: hidden; border-radius: 18px; }
.tile-body { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; padding: 40px 36px; }
.tile-body h2 { font-size: 36px; }
.tile-body p { color: var(--ink-2); }
.tile-body .btn { align-self: flex-start; margin-top: 6px; }
.tile-arsenie { background: var(--tint); }
.tile-art { flex: 0 1 270px; min-height: 260px; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.tile-art .fan img { width: 84px; height: 126px; }
.tile-art .fan > :nth-child(1) { margin-right: -24px; }
.tile-art .fan > :nth-child(2) img { width: 108px; height: 162px; }
.tile-art .fan > :nth-child(3) { margin-left: -24px; }
.tile-art .fan a:hover img { transform: translateY(-4px); }
.tile-art .fan img { transition: transform .2s; }
.tile-nicolae { background: var(--white); border: 1px solid var(--line); }
.tile-photo { position: relative; flex: 1 1 240px; min-height: 260px; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.section { padding-top: 72px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 28px; }
.section-head h2 { font-size: 40px; }
.section-head a { font-weight: 700; }

/* Home: story band */
.story { margin: 88px 0 0; background: var(--night); color: var(--white); }
.story-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 48px 80px; align-items: start; padding-block: 80px; }
.story-copy { display: flex; flex-direction: column; gap: 20px; }
.story-copy h2 { font-size: clamp(36px, 4vw, 48px); line-height: 1.08; }
.story-copy p { font-size: 20px; color: var(--on-dark); }
.story-copy .btn { align-self: flex-start; }
.facts-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--dark-line); }
.facts-row strong { font-family: var(--serif); font-size: 40px; font-weight: 500; color: var(--ochre-on-dark); }
.facts-row span { color: var(--on-dark); }
.author-links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 22px; font-size: 17px; }
.author-links a { color: var(--white); }

/* Footer */
.newsletter { background: var(--panel); }
.newsletter .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding-block: 56px; }
.newsletter-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.newsletter-copy h2 { font-size: 32px; }
.newsletter-copy span { color: var(--ink-2); }
.newsletter-form { flex: 1 1 420px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.newsletter-done { flex: 1 1 420px; padding: 18px 20px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 700; }
.field input, .field select, .field textarea { min-height: 52px; padding: 0 14px; border: 1.5px solid var(--input-line); border-radius: 10px; background: var(--white); font-size: 18px; font-weight: 400; }
.field textarea { min-height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lapis); box-shadow: inset 0 0 0 1px var(--lapis); }
.field-hint { font-size: 15px; font-weight: 400; color: var(--muted); }
.field-error { font-size: 15px; font-weight: 700; color: #A3261B; }
.newsletter-form .field { flex: 1 1 240px; }
.site-footer { background: var(--night); color: var(--on-dark); font-size: 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 36px; padding-block: 56px 32px; }
.footer-cols > div, .footer-cols nav { display: flex; flex-direction: column; gap: 10px; }
.footer-cols strong { color: var(--white); font-size: 17px; }
.footer-cols a { color: var(--on-dark); }
.footer-cols a:hover { color: var(--white); }
.footer-cols a.is-strong { color: var(--white); font-weight: 700; }
.footer-cols button.link { padding: 0; border: 0; background: none; color: var(--on-dark); text-align: left; text-decoration: underline; text-underline-offset: 0.15em; }
.footer-cols button.link:hover { color: var(--white); }
.footer-brand { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 32px; border-top: 1px solid var(--dark-line); font-size: 15px; color: var(--on-dark-muted); }
.mock-note { color: var(--ochre-on-dark); }

/* Catalog */
.catalog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; padding: 18px 0 26px; border-bottom: 1px solid var(--line); }
.catalog-head > div { flex: 1 1 560px; display: flex; flex-direction: column; gap: 10px; }
.catalog-head h1 { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05; }
.catalog-head p { max-width: 760px; font-size: 19px; color: var(--ink-2); }
.catalog-total { font-family: var(--serif); font-size: 22px; color: var(--muted); }
.catalog-chips { padding: 22px 0 6px; }
.catalog-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; padding-top: 24px; padding-bottom: 72px; }
.catalog-body.is-bundles .filters, .catalog-body.is-bundles .toolbar-right { display: none; }
.filters { flex: 1 1 250px; max-width: 100%; display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; }
.filters-head strong { font-family: var(--serif); font-size: 24px; }
.filters-head button { border: 0; background: none; padding: 8px 0; color: var(--lapis); font-size: 16px; text-decoration: underline; text-underline-offset: 0.15em; }
.filters-close, .filters-apply { display: none; }
.filters fieldset { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 14px 0 12px; border: 0; border-top: 1px solid var(--line); }
.filters legend { float: left; width: 100%; padding-bottom: 6px; font-weight: 700; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--lapis); flex: none; }
.check .n { margin-left: auto; font-size: 15px; color: var(--muted); }
.more-authors { align-self: flex-start; padding: 6px 0; border: 0; background: none; color: var(--lapis); font-size: 16px; text-decoration: underline; text-underline-offset: 0.15em; }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.toolbar-count { color: var(--ink-2); }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.sort { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.sort select { height: 48px; padding: 0 14px; border: 1.5px solid var(--input-line); border-radius: 10px; background: var(--white); font-size: 17px; font-weight: 400; }
.filters-open { display: none; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.active-filters[hidden] { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 8px 0 14px; border-radius: 20px; border: 0; background: var(--tint); color: var(--lapis); font-weight: 500; font-size: 16px; }
.pill:hover { background: var(--tint-2); }
.clear-all { border: 0; background: none; padding: 8px; color: var(--lapis); font-size: 16px; text-decoration: underline; text-underline-offset: 0.15em; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding-top: 24px; }
.pager button, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 14px; border-radius: 10px; font-size: 17px; }
.pager button { border: 1px solid var(--chip-line); background: var(--white); color: var(--lapis); }
.pager button:hover { background: var(--tint); }
.pager button[aria-current="page"] { background: var(--lapis); border-color: var(--lapis); color: var(--white); font-weight: 700; }
.pager .pager-step { border: 0; background: none; font-weight: 700; }
.pager .pager-step:disabled { color: var(--muted); font-weight: 400; cursor: default; background: none; }
.pager span { color: var(--muted); min-width: 0; padding: 0 4px; }
.empty-state { display: flex; flex-direction: column; gap: 14px; padding: 36px; border: 1px dashed #B9B2A4; border-radius: 14px; background: var(--white); }
.empty-state h2 { font-size: 28px; }

/* Product page */
.pdp { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; padding-top: 24px; }
.pdp-media { position: relative; flex: 1 1 420px; min-width: 0; display: flex; align-items: center; justify-content: center; height: 600px; padding: 40px; border-radius: 18px; background: var(--panel); }
.pdp-media img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 3px; box-shadow: 0 22px 44px rgba(28, 27, 34, 0.28); }
.pdp-media .toc-link { position: absolute; right: 16px; bottom: 16px; }
.pdp-buy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pdp-title { display: flex; flex-direction: column; gap: 10px; }
.pdp-title h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; }
.pdp-sub { font-family: var(--serif); font-size: 21px; color: var(--ink-2); font-style: italic; }
.pdp-by { font-size: 19px; }
.pdp-specs { font-size: 16px; color: var(--muted); }
.pdp-box { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.price-big { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.stock { display: inline-flex; align-items: center; gap: 8px; color: var(--lapis); font-weight: 700; }
.variant { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.variant legend { width: 100%; padding-bottom: 6px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.variant label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--chip-line); border-radius: 10px; background: var(--white); cursor: pointer; }
.variant label:has(input:checked) { border-color: var(--lapis); box-shadow: inset 0 0 0 1px var(--lapis); }
.variant input { accent-color: var(--lapis); width: 18px; height: 18px; margin: 0; }
.buy-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.qty-wrap { display: flex; flex-direction: column; gap: 6px; }
.qty-label { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.qty { display: flex; align-items: center; height: 56px; border: 1.5px solid var(--input-line); border-radius: 10px; background: var(--white); }
.qty button { width: 48px; height: 52px; border: 0; background: transparent; color: var(--lapis); font-size: 24px; line-height: 1; }
.qty button:hover { background: var(--tint); }
.qty button:first-child { border-radius: 9px 0 0 9px; }
.qty button:last-child { border-radius: 0 9px 9px 0; }
.qty input { width: 40px; height: 52px; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 19px; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 44px; }
.qty-sm button { width: 40px; height: 40px; font-size: 20px; }
.qty-sm input { width: 30px; height: 40px; font-size: 17px; }
.buy-row .btn-add { flex: 1 1 220px; }
.fav-btn { width: 56px; height: 56px; border: 1.5px solid var(--input-line); border-radius: 10px; background: var(--white); color: var(--lapis); display: inline-flex; align-items: center; justify-content: center; }
.fav-btn:hover { background: var(--tint); }
.fav-btn[aria-pressed="true"] svg path { fill: var(--lapis); }
.facts { list-style: none; margin: 0; padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; font-size: 17px; }
.facts li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; }
.facts svg { color: var(--lapis); }
.pdp-more { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; padding-top: 80px; }
.about { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.about h2 { font-size: 38px; }
.about > p { max-width: 720px; font-size: 19px; }
.quote { position: relative; max-width: 680px; margin: 8px 0; padding: 4px 0 4px 28px; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.3; color: var(--lapis); }
.quote::before { content: "„"; position: absolute; left: 0; top: -6px; font-size: 56px; font-style: normal; color: var(--ochre); }
.quote footer { margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: 16px; color: var(--muted); }
.toc-title { margin-top: 16px; font-size: 26px; font-weight: 700; }
.toc { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.toc li { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.toc li span:last-child { text-align: right; color: var(--muted); }
.pdp-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.card { padding: 24px 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.card h2 { margin-bottom: 12px; font-size: 24px; font-weight: 700; }
.spec-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 0; font-size: 17px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; }
.saint { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 24px; border-radius: 14px; background: var(--tint); }
.saint h2 { font-size: 26px; font-weight: 700; line-height: 1.15; }
.saint p { font-size: 17px; color: var(--ink-2); }
.saint a { font-weight: 700; font-size: 17px; }
.bundle { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; margin-top: 80px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 18px; background: var(--white); scroll-margin-top: 16px; }
.bundle-copy { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.bundle-copy h2 { font-size: 36px; }
.bundle-copy p { font-size: 17px; color: var(--ink-2); }
.bundle-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: 6px; font-size: 17px; }
.bundle-price .muted { color: var(--muted); }
.bundle-copy { min-width: 0; }
.bundle-copy .btn { align-self: flex-start; max-width: 100%; margin-top: 6px; white-space: normal; text-align: center; }
.bundle-covers { flex: 2 1 520px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-self: center; }
.bundle-covers a { display: block; }
.bundle-covers img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 8px 18px rgba(28, 27, 34, 0.2); transition: transform .2s; }
.bundle-covers a:hover img { transform: translateY(-3px); }
.reviews { display: flex; flex-direction: column; gap: 18px; margin-top: 64px; }
.reviews h2, .related h2 { font-size: 38px; }
.reviews-empty { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding: 28px 32px; border: 1px dashed #B9B2A4; border-radius: 14px; background: var(--white); }
.reviews-empty div { display: flex; flex-direction: column; gap: 4px; }
.reviews-empty strong { font-size: 19px; }
.reviews-empty span { color: var(--ink-2); }
.related { margin-top: 72px; padding-bottom: 80px; }
@media (min-width: 721px) { .related .grid-books { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.related h2 { margin-bottom: 28px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; gap: 12px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(28, 27, 34, 0.08); }
.sticky-buy-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sticky-buy-info span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; color: var(--ink-2); }
.sticky-buy-info strong { font-size: 20px; }

/* Panels (cart, added-to-cart, menu) */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(20, 40, 73, 0.55); }
.panel { position: fixed; inset: 0 0 0 auto; width: min(460px, 100%); height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--white); box-shadow: -12px 0 40px rgba(20, 40, 73, 0.2); }
.panel[open] { display: flex; flex-direction: column; animation: slide-in-right .22s ease-out; }
.panel-left { inset: 0 auto 0 0; width: min(380px, 88%); box-shadow: 12px 0 40px rgba(20, 40, 73, 0.2); }
.panel-left[open] { animation-name: slide-in-left; }
@keyframes slide-in-right { from { transform: translateX(40px); opacity: 0; } }
@keyframes slide-in-left { from { transform: translateX(-40px); opacity: 0; } }
@keyframes slide-up { from { transform: translateY(60px); opacity: 0; } }
.panel-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 12px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; }
.ok-dot { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--lapis); color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.panel-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 18px; padding: 18px 22px; }
.panel-foot { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 14px 22px 20px; border-top: 1px solid var(--line); }
.grab { display: none; }
.line-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.line-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
.line-item img { width: 56px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 4px 10px rgba(28, 27, 34, 0.2); }
.line-item-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.line-item-title { font-size: 16px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.line-item-title:hover { text-decoration: underline; }
.line-item-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.remove-btn { border: 0; background: none; padding: 8px 4px; color: var(--muted); font-size: 15px; text-decoration: underline; text-underline-offset: 0.15em; }
.remove-btn:hover { color: var(--ink); }
.ship-progress { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--tint); font-size: 16px; line-height: 1.35; }
.bar { height: 8px; border-radius: 4px; background: var(--white); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 4px; background: var(--lapis); transition: width .3s; }
.ship-meta { font-size: 14px; color: var(--ink-2); }
.suggest h3 { margin-bottom: 10px; font-family: var(--sans); font-size: 17px; font-weight: 700; }
.suggest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.suggest-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.suggest-card > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; }
.suggest-card img { width: 44px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; }
.suggest-card a { font-size: 14px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.suggest-card a:hover { text-decoration: underline; }
.suggest-card strong { display: block; font-size: 15px; }
.summary { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; font-size: 17px; }
.summary dd { margin: 0; text-align: right; }
.summary .total { font-weight: 700; font-size: 20px; padding-top: 6px; border-top: 1px solid var(--line); }
.note { font-size: 15px; color: var(--muted); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 19px; font-weight: 500; text-decoration: none; }
.menu-list a[aria-current="page"] { color: var(--lapis); font-weight: 700; }
.menu-list a.is-season { color: var(--ochre-text); font-weight: 700; }
.menu-contact { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: var(--paper); font-size: 16px; }

/* Modal dialogs (cookies, withdrawal) */
.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 0; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-pop); }
.modal[open] { display: flex; flex-direction: column; animation: slide-up .2s ease-out; }
.modal form { display: flex; flex-direction: column; min-height: 0; }
.toggle-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.toggle-row strong { display: block; }
.toggle-row span { font-size: 15px; color: var(--muted); }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 15px; background: var(--input-line); transition: background-color .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); transition: transform .15s; }
.switch input:checked + span { background: var(--lapis); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:disabled + span { opacity: 0.55; }
.switch input:focus-visible + span { outline: 3px solid var(--lapis); outline-offset: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 160px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }

/* Cookie bar */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--white); border-top: 3px solid var(--lapis); box-shadow: 0 -12px 32px rgba(20, 40, 73, 0.16); animation: slide-up .25s ease-out; }
.cookie-bar[hidden] { display: none; }
.cookie-bar { max-height: 70vh; overflow-y: auto; }
/* Keep focused controls clear of the fixed cookie bar and sticky buy bar (WCAG 2.4.11). */
html:has(.cookie-bar:not([hidden])) { scroll-padding-bottom: 260px; }
html:has(body.has-sticky-buy) { scroll-padding-bottom: 96px; }
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 20px; }
.cookie-text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 4px; }
.cookie-text strong { font-family: var(--serif); font-size: 22px; }
.cookie-text p { font-size: 16px; color: var(--ink-2); }
.cookie-actions { flex: 1 1 360px; display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 140px; }

/* Toast */
.toast { position: fixed; inset: auto auto 24px 50%; margin: 0; border: 0; overflow: visible; z-index: 400; max-width: min(520px, calc(100% - 32px)); padding: 14px 20px; border-radius: 12px; background: var(--ink); color: var(--white); font-size: 16px; box-shadow: var(--shadow-pop); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Tablet and phone */
@media (max-width: 900px) {
  .strip .container { justify-content: center; padding-block: 8px; font-size: 14px; }
  .strip-phone, .strip-abroad { display: none; }
  .hdr-top { flex-wrap: wrap; gap: 2px; padding-top: 6px; padding-bottom: 12px; }
  .menu-btn { display: inline-flex; order: 0; margin-left: -10px; }
  .brand { order: 1; flex: 1; padding-left: 4px; }
  .brand-name { font-size: 30px; }
  .brand-tag { display: none; }
  .hdr-actions { order: 2; gap: 2px; margin-right: -6px; }
  .hdr-account, .cart-lbl { display: none; }
  .cart-btn { padding: 0 10px; background: none; }
  .search { order: 3; flex: 1 1 100%; margin-top: 6px; }
  .search-field { height: 48px; }
  .search-btn { height: 48px; padding: 0 16px; }
  .cat-nav { display: none; }
  .filters { display: none; }
  .filters.is-open { position: fixed; inset: 0; z-index: 120; display: flex; overflow: auto; padding: 0 20px 0; border: 0; border-radius: 0; animation: slide-up .2s ease-out; }
  .filters.is-open .filters-head { position: sticky; top: 0; z-index: 1; margin: 0 -20px; padding: 10px 12px 10px 20px; background: var(--white); border-bottom: 1px solid var(--line); }
  .filters.is-open .filters-close { display: inline-flex; }
  .filters.is-open .filters-apply { display: block; position: sticky; bottom: 0; margin: auto -20px 0; padding: 12px 20px 16px; background: var(--white); border-top: 1px solid var(--line); }
  .filters-open { display: inline-flex; }
  .toolbar-right { flex: 1 1 100%; justify-content: space-between; }
  .sort > span { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .crumbs { padding-top: 10px; font-size: 15px; }
  .crumbs .crumb-full { display: none; }
  .crumbs .crumb-back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-weight: 500; text-decoration: none; }
  .grid-books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .book-cover { height: 210px; padding: 16px; }
  .book-title { font-size: 17px; min-height: 0; }
  .book-price { font-size: 19px; }
  .book .btn { padding: 0 8px; font-size: 15px; }
  .hero-media { min-height: 220px; flex-basis: 100%; }
  .hero-body h1 { font-size: 38px; }
  .hero-body p { font-size: 18px; }
  .hero-picks-row img { width: 60px; height: 90px; }
  .theme-bar { padding-top: 24px; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .theme-bar > strong { display: none; }
  .theme-bar .chip { flex: none; }
  .tile-body { padding: 28px 22px; }
  .tile-body h2 { font-size: 30px; }
  .tile-art { min-height: 220px; }
  .section { padding-top: 56px; }
  .section-head h2 { font-size: 32px; }
  .story { margin-top: 64px; }
  .story-inner { padding-block: 56px; }
  .facts-row { grid-template-columns: 84px minmax(0, 1fr); }
  .facts-row strong { font-size: 32px; }
  .catalog-head { padding-top: 6px; }
  .catalog-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .catalog-chips .chip { flex: none; }
  .pdp { gap: 18px; padding-top: 4px; }
  .pdp-media { height: 240px; padding: 18px; border-radius: 14px; flex-basis: 100%; }
  .pdp-media img { max-height: 204px; }
  .pdp-media .toc-link { right: 10px; bottom: 10px; min-height: 44px; padding: 0 14px; font-size: 15px; }
  .pdp-buy { gap: 16px; }
  .pdp-title { gap: 4px; }
  .pdp-title .eyebrow { font-size: 13px; }
  .pdp-title h1 { font-size: 26px; line-height: 1.15; }
  .pdp-sub { font-size: 18px; }
  .pdp-by { font-size: 16px; }
  .pdp-specs { display: none; }
  .pdp-box { padding: 14px 0 16px; gap: 14px; }
  .price-big { font-size: 32px; }
  .buy-row { flex-wrap: nowrap; gap: 10px; }
  .buy-row .qty-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .qty { height: 52px; }
  .qty button { width: 42px; height: 48px; }
  .qty input { width: 28px; height: 48px; }
  .buy-row .btn-add { flex: 1 1 auto; min-height: 52px; min-width: 0; padding: 0 12px; font-size: 18px; }
  .fav-btn { width: 52px; height: 52px; flex: none; }
  .facts { padding: 16px 18px; gap: 12px; font-size: 16px; }
  .pdp-more { padding-top: 48px; gap: 36px; }
  .about h2, .reviews h2, .related h2 { font-size: 30px; }
  .quote { font-size: 24px; }
  .bundle { margin-top: 48px; }
  .bundle-copy h2 { font-size: 30px; }
  .bundle-copy .btn { align-self: stretch; padding: 10px 16px; }
  .bundle-covers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .reviews-empty { padding: 22px; }
  .sticky-buy.is-visible { display: flex; }
  body.has-sticky-buy { padding-bottom: 76px; }
  .panel:not(.panel-left) { inset: auto 0 0 0; width: 100%; height: auto; max-height: 92%; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 32px rgba(20, 40, 73, 0.25); }
  .panel:not(.panel-left)[open] { animation-name: slide-up; }
  .panel:not(.panel-left) .grab { display: block; align-self: center; width: 40px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--chip-line); }
  .panel:not(.panel-left) .panel-head { border-bottom: 0; padding-top: 6px; padding-bottom: 0; }
  .panel-body { padding: 14px 16px; gap: 14px; }
  .panel-foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 0; }
  .cookie-inner { padding-block: 16px; gap: 12px; }
  .cookie-text strong { font-size: 20px; }
  .cookie-text p { font-size: 15px; }
  .cookie-actions .btn { flex: 1 1 120px; padding: 0 12px; }
  .cookie-actions .btn-quiet { flex-basis: 100%; }
  .toast { bottom: 88px; }
}

/* Very narrow phones (320 px): the add button gets its own row. */
@media (max-width: 360px) {
  .buy-row { flex-wrap: wrap; }
  .buy-row .btn-add { order: 3; flex: 1 1 100%; }
  .buy-row .fav-btn { margin-left: auto; }
}
