/* Kniha Svet — site stylesheet. Colors/type ported 1:1 from the KnihaSvet Claude Design. */

:root {
  --bg: #F6EFE4;
  --cream: #FFFDF8;
  --tan: #EFE2CE;
  --border: #E3D6C3;
  --border2: #D9C8B1;
  --ink: #2E2119;
  --ink2: #4A3A2C;
  --text2: #5C4B3C;
  --muted: #8A7867;
  --muted2: #7A6857;
  --brown: #6B4A2F;
  --brown-dark: #54381F;
  --rust: #B4642F;
  --rust-dark: #98501F;
  --dark-panel: #2E2119;
  --dark-panel2: #3A2A1E;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Karla, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-dark); text-decoration: underline; }
input, select, textarea, button { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: #E7C9A9; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { text-wrap: pretty; }

@keyframes ksFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.site-main { flex: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Promo bar */
.promo-bar {
  background: var(--ink); color: #F2E5D2; font-size: 13px; letter-spacing: .04em;
  text-align: center; padding: 9px 16px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255,253,248,.94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; background: var(--brown);
  display: flex; align-items: center; justify-content: center; color: var(--cream);
  font-family: Lora, serif; font-size: 20px; font-weight: 600; flex: 0 0 auto;
}
.brand-text { line-height: 1.05; }
.brand-name { font-family: Lora, serif; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.brand-sub { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 14.5px; font-weight: 500; margin-left: auto; }
.nav-link { color: var(--ink); }
.nav-link:hover { color: var(--rust); text-decoration: none; }
.nav-link-active { color: var(--rust); }
.cart-btn {
  cursor: pointer; display: flex; align-items: center; gap: 9px; background: var(--brown);
  color: var(--cream); padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; flex: 0 0 auto;
}
.cart-btn:hover { background: var(--brown-dark); text-decoration: none; }
.cart-count {
  background: var(--rust); min-width: 22px; height: 22px; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 12.5px; padding: 0 6px;
}
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Buttons */
.btn { cursor: pointer; border: none; font-weight: 600; border-radius: 10px; font-size: 15.5px; padding: 14px 26px; display: inline-block; text-align: center; }
.btn:hover { text-decoration: none; }
.btn-rust { background: var(--rust); color: var(--cream); }
.btn-rust:hover { background: var(--rust-dark); color: var(--cream); }
.btn-outline { background: var(--cream); color: var(--ink); border: 1px solid var(--border2); }
.btn-outline:hover { border-color: var(--rust); color: var(--ink); }
.btn-brown { background: var(--brown); color: var(--cream); }
.btn-brown:hover { background: var(--brown-dark); color: var(--cream); }
.btn-add { background: var(--brown); color: var(--cream); font-size: 13.5px; font-weight: 600; padding: 9px 14px; border-radius: 8px; }
.btn-add:hover { background: var(--brown-dark); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px; font-weight: 700; }

/* Forms */
.field {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--border2);
  background: var(--bg); outline: none;
}
.field:focus { border-color: var(--rust); }
label.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted2); line-height: 1.5; }

/* Hero */
.hero { max-width: 1200px; margin: 0 auto; padding: 64px 24px 48px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge { display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; background: var(--cream); }
.hero h1 { font-family: Lora, serif; font-size: 56px; line-height: 1.06; letter-spacing: -.02em; margin: 22px 0 18px; }
.hero p.lead { font-size: 17.5px; line-height: 1.65; color: var(--text2); margin: 0 0 30px; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-stat-num { font-family: Lora, serif; font-size: 26px; font-weight: 600; }
.hero-stat-label { font-size: 13px; color: var(--muted); }
.hero-books { background: var(--tan); border: 1px solid var(--border); border-radius: 20px; padding: 30px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

/* Book covers */
.book-cover { border-radius: 6px 10px 10px 6px; box-shadow: 0 10px 22px rgba(46,33,25,.18); overflow: hidden; aspect-ratio: 2/3; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 12px 12px 16px; border-left: 6px solid rgba(0,0,0,.18); }
.book-cover-title { font-family: Lora, serif; font-size: 15px; line-height: 1.2; color: #FFF8EC; }
.book-cover-author { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,248,236,.75); }

/* USP bar */
.usp-section { background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.usp-grid { max-width: 1200px; margin: 0 auto; padding: 30px 24px; display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.usp-item { display: flex; gap: 12px; align-items: flex-start; }
.usp-dot { width: 9px; height: 9px; border-radius: 2px; background: var(--rust); margin-top: 6px; flex: 0 0 auto; }
.usp-title { font-weight: 600; font-size: 15px; }
.usp-desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* Quiz */
.quiz-section { max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
.quiz-box { background: var(--ink); border-radius: 22px; padding: 44px; color: var(--bg); }
.quiz-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; }
.quiz-eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #C9A97F; }
.quiz-box h2 { font-family: Lora, serif; font-size: 34px; line-height: 1.12; margin: 14px 0 14px; }
.quiz-box p { font-size: 15.5px; line-height: 1.65; color: #CBBBA8; margin: 0 0 22px; }
.quiz-dots { display: flex; gap: 8px; margin-bottom: 8px; }
.quiz-dot { height: 4px; flex: 1; border-radius: 2px; background: #5B4433; }
.quiz-dot.done { background: var(--rust); }
.quiz-progress { font-size: 13px; color: #9C8B79; }
.quiz-panel { background: var(--dark-panel2); border-radius: 16px; padding: 30px; min-height: 300px; }
.quiz-question { font-family: Lora, serif; font-size: 22px; margin-bottom: 20px; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-opt { cursor: pointer; padding: 12px 18px; border-radius: 10px; border: 1px solid #5B4433; background: var(--ink); font-size: 14.5px; color: var(--bg); }
.quiz-opt:hover { border-color: var(--rust); background: #42301F; text-decoration: none; }
.quiz-back { cursor: pointer; margin-top: 24px; font-size: 13.5px; color: #9C8B79; background: none; border: none; padding: 0; }
.quiz-result-eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #C9A97F; }
.quiz-result-title { font-family: Lora, serif; font-size: 22px; margin: 10px 0 6px; }
.quiz-result-text { font-size: 14.5px; line-height: 1.6; color: #CBBBA8; margin: 0 0 18px; }
.quiz-result-list { display: grid; gap: 10px; }
.quiz-result-item { display: flex; gap: 14px; align-items: center; background: var(--ink); border-radius: 12px; padding: 12px 14px; }
.quiz-result-cover { width: 38px; height: 54px; border-radius: 3px 5px 5px 3px; flex: 0 0 auto; }
.quiz-result-book-title { font-family: Lora, serif; font-size: 16px; }
.quiz-result-book-meta { font-size: 12.5px; color: #9C8B79; }
.quiz-result-price { font-size: 15px; font-weight: 600; color: #E7C9A9; }
.quiz-footer { display: flex; gap: 16px; margin-top: 20px; align-items: center; }
.quiz-footer button { cursor: pointer; font-size: 13.5px; color: #C9A97F; text-decoration: underline; background: none; border: none; padding: 0; }
.quiz-footer a { font-size: 13.5px; color: #C9A97F; text-decoration: underline; }
[hidden] { display: none !important; }

/* Section heads */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-family: Lora, serif; font-size: 32px; margin: 0 0 6px; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }
.section-link { font-size: 14.5px; font-weight: 600; color: var(--rust); white-space: nowrap; }

/* Featured / grids */
.featured-section { max-width: 1200px; margin: 0 auto; padding: 8px 24px 60px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }

.book-card { background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.book-card:hover { border-color: #C9A97F; }
.book-card .book-cover { padding: 14px 12px; }
.book-genre { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.book-title { font-family: Lora, serif; font-size: 17px; line-height: 1.25; }
.book-author { font-size: 13.5px; color: var(--muted); margin-top: -6px; }
.book-blurb { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted2); }
.book-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.book-price { font-size: 18px; font-weight: 700; }

/* Genre cards */
.genre-section { background: var(--tan); border-top: 1px solid var(--border); }
.genre-section-inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px; }
.genre-card { cursor: pointer; background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: block; color: inherit; }
.genre-card:hover { border-color: var(--rust); text-decoration: none; }
.genre-bar { width: 26px; height: 6px; border-radius: 3px; margin-bottom: 16px; }
.genre-name { font-family: Lora, serif; font-size: 20px; margin-bottom: 8px; }
.genre-desc { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--muted2); }
.genre-count { font-size: 13px; color: var(--rust); font-weight: 600; }

/* Story / quote */
.story-section { max-width: 1200px; margin: 0 auto; padding: 66px 24px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.quote-card { background: var(--cream); border: 1px solid var(--border); border-radius: 18px; padding: 34px; }
.quote-photo { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; margin-bottom: 18px; }
.quote-eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.quote-text { font-family: Lora, serif; font-size: 21px; line-height: 1.5; margin: 0 0 18px; }
.quote-name { font-size: 14px; color: var(--muted); }
.story-copy h2 { font-family: Lora, serif; font-size: 32px; margin: 0 0 16px; }
.story-copy p { font-size: 16px; line-height: 1.7; color: var(--text2); margin: 0 0 14px; }

/* Magazine */
.magazine-section { background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.magazine-section-inner { max-width: 1200px; margin: 0 auto; padding: 60px 24px; }
.magazine-section-inner h2 { font-family: Lora, serif; font-size: 32px; margin: 0 0 26px; }
.post-card { display: block; color: inherit; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg); }
.post-card:hover { border-color: var(--rust); text-decoration: none; }
.post-card-img { height: 120px; width: 100%; object-fit: cover; }
.post-card-body { padding: 20px; }
.post-meta { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.post-title { font-family: Lora, serif; font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.post-excerpt { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted2); }

/* Reviews */
.reviews-section { max-width: 1200px; margin: 0 auto; padding: 60px 24px; }
.review-card { background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.review-stars { color: var(--rust); letter-spacing: .2em; font-size: 14px; margin-bottom: 12px; }
.review-text { margin: 0 0 16px; font-size: 15px; line-height: 1.65; color: var(--ink2); }
.review-meta { font-size: 13.5px; color: var(--muted); }

/* Newsletter */
.newsletter-section { max-width: 1200px; margin: 0 auto; padding: 0 24px 72px; }
.newsletter-box { background: var(--brown); border-radius: 20px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; color: var(--bg); }
.newsletter-box h2 { font-family: Lora, serif; font-size: 30px; margin: 0 0 10px; }
.newsletter-box p { margin: 0; font-size: 15.5px; line-height: 1.65; color: #E1CFB8; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 200px; padding: 14px 16px; border-radius: 10px; border: 1px solid #8A6A4A; background: #7C5738; color: #FFF8EC; outline: none; }
.newsletter-form input::placeholder { color: #D9C3AA; }
.newsletter-form button { cursor: pointer; background: var(--bg); color: var(--ink); padding: 14px 24px; border-radius: 10px; font-weight: 600; border: none; font-size: 15px; }
.newsletter-msg { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 12px; min-height: 1.4em; }

/* Generic inner page header */
.page-head { max-width: 1200px; margin: 0 auto; padding: 44px 24px 0; }
.page-head .crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.page-head h1 { font-family: Lora, serif; font-size: 40px; margin: 0 0 10px; }
.page-head p.lead { margin: 0 0 30px; font-size: 16px; color: var(--text2); max-width: 70ch; line-height: 1.6; }

/* Catalog */
.catalog-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 72px; }
.catalog-grid { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.filters { background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 22px; position: sticky; top: 96px; }
.filters .field { margin-bottom: 22px; }
.filter-label { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.filter-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.filter-pill { cursor: pointer; font-size: 14px; padding: 8px 11px; border-radius: 8px; display: flex; justify-content: space-between; background: var(--bg); color: var(--ink2); border: none; width: 100%; text-align: left; }
.filter-pill.active { background: var(--brown); color: var(--cream); }
.filter-pill .count { opacity: .6; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.filter-tag { cursor: pointer; font-size: 13px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--border2); background: var(--bg); color: var(--ink2); }
.filter-tag.active { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.filter-reset { cursor: pointer; margin-top: 20px; font-size: 13.5px; color: var(--rust); text-decoration: underline; background: none; border: none; padding: 0; }
.result-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 14px; color: var(--muted2); flex-wrap: wrap; gap: 8px; }
.no-results { text-align: center; padding: 60px 20px; color: var(--muted); }

/* Picks */
.collections-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-bottom: 44px; }
.collection-card { background: var(--cream); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.collection-bar { height: 10px; }
.collection-body { padding: 26px; }
.collection-name { font-family: Lora, serif; font-size: 22px; margin-bottom: 8px; }
.collection-desc { margin: 0 0 16px; font-size: 14.5px; line-height: 1.65; color: var(--muted2); }
.collection-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.collection-tag { font-size: 12.5px; padding: 6px 11px; border-radius: 999px; background: var(--tan); color: var(--text2); }
.age-guides { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.age-guide { background: var(--tan); border-radius: 14px; padding: 22px; }
.age-guide-age { font-family: Lora, serif; font-size: 20px; margin-bottom: 8px; }
.age-guide-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text2); }

/* About */
.about-wrap { max-width: 1000px; margin: 0 auto; padding: 44px 24px 72px; }
.about-wrap h1 { font-family: Lora, serif; font-size: 40px; margin: 0 0 16px; }
.about-wrap > p { font-size: 17px; line-height: 1.7; color: var(--ink2); margin: 0 0 16px; }
.about-banner { width: 100%; height: 320px; object-fit: cover; border-radius: 18px; margin: 30px 0; }
.about-banner-2 { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; margin: 8px 0 44px; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 44px; }
.value-card { background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.value-title { font-family: Lora, serif; font-size: 19px; margin-bottom: 10px; }
.value-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted2); }
.about-wrap h2 { font-family: Lora, serif; font-size: 30px; margin: 0 0 20px; }
.team-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-bottom: 44px; }
.team-card { display: flex; gap: 18px; background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.team-photo { width: 72px; height: 72px; border-radius: 12px; flex: 0 0 auto; object-fit: cover; }
.team-name { font-family: Lora, serif; font-size: 18px; }
.team-role { font-size: 13px; color: var(--rust); margin-bottom: 8px; }
.team-bio { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted2); }
.company-box { background: var(--tan); border-radius: 16px; padding: 30px; }
.company-box h2 { font-size: 24px; margin: 0 0 14px; }
.company-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 30px; font-size: 14.5px; line-height: 1.7; color: var(--text2); }

/* Contact */
.contact-wrap { max-width: 1100px; margin: 0 auto; padding: 44px 24px 72px; }
.contact-wrap h1 { font-family: Lora, serif; font-size: 40px; margin: 0 0 10px; }
.contact-wrap > p.lead { margin: 0 0 34px; font-size: 16px; color: var(--text2); max-width: 66ch; line-height: 1.65; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card { background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.contact-card-title { font-family: Lora, serif; font-size: 19px; margin-bottom: 12px; }
.contact-card-body { font-size: 15px; line-height: 1.8; color: var(--text2); }
.contact-photo { width: 100%; height: 170px; object-fit: cover; border-radius: 14px; margin-bottom: 16px; }
.hours-grid { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; font-size: 15px; color: var(--text2); }
.note-box { background: var(--tan); border-radius: 14px; padding: 24px; font-size: 14.5px; line-height: 1.7; color: var(--text2); }
.contact-form-card { background: var(--cream); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.contact-form-card h2 { font-family: Lora, serif; font-size: 22px; margin-bottom: 6px; }
.contact-form-card > p { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.form-grid { display: grid; gap: 12px; }
.form-msg { font-size: 13.5px; color: var(--brown); text-align: center; min-height: 1.4em; }
.form-msg.error { color: #A2302E; }

/* FAQ */
.faq-wrap { max-width: 860px; margin: 0 auto; padding: 44px 24px 72px; }
.faq-wrap h1 { font-family: Lora, serif; font-size: 40px; margin: 0 0 10px; }
.faq-wrap > p { margin: 0 0 30px; font-size: 16px; color: var(--text2); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--cream); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q { cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: Lora, serif; font-size: 17.5px; background: none; border: none; width: 100%; text-align: left; color: inherit; }
.faq-sign { color: var(--rust); font-size: 20px; flex: 0 0 auto; }
.faq-a { margin: 0; padding: 0 22px 20px; font-size: 15px; line-height: 1.7; color: var(--text2); }

/* Cart */
.cart-wrap { max-width: 1000px; margin: 0 auto; padding: 44px 24px 72px; }
.cart-wrap h1 { font-family: Lora, serif; font-size: 40px; margin: 0 0 24px; }
.cart-empty { background: var(--cream); border: 1px solid var(--border); border-radius: 16px; padding: 50px; text-align: center; }
.cart-empty p { margin: 0 0 20px; font-size: 16px; color: var(--text2); }
.cart-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 26px; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 12px; }
.cart-line { background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cart-line-cover { width: 52px; height: 74px; border-radius: 4px 7px 7px 4px; flex: 0 0 auto; }
.cart-line-info { flex: 1; min-width: 140px; }
.cart-line-title { font-family: Lora, serif; font-size: 17px; }
.cart-line-meta { font-size: 13px; color: var(--muted); }
.qty-control { display: flex; align-items: center; gap: 10px; }
.qty-btn { cursor: pointer; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; background: var(--cream); }
.qty-val { min-width: 20px; text-align: center; font-weight: 600; }
.cart-line-sum { min-width: 74px; text-align: right; font-weight: 700; }
.cart-line-remove { cursor: pointer; color: #A08571; font-size: 18px; background: none; border: none; }
.cart-summary { background: var(--tan); border-radius: 16px; padding: 26px; position: sticky; top: 96px; }
.cart-summary-title { font-family: Lora, serif; font-size: 20px; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 8px; }
.summary-total { border-top: 1px solid var(--border2); margin: 14px 0; padding-top: 14px; display: flex; justify-content: space-between; font-size: 19px; }
.ship-hint { font-size: 13px; color: var(--muted2); margin-bottom: 18px; }
.cart-legal { font-size: 12px; color: var(--muted2); margin-top: 12px; line-height: 1.5; }
.order-done { margin-top: 24px; background: var(--ink); color: var(--bg); border-radius: 16px; padding: 30px; }
.order-done .t { font-family: Lora, serif; font-size: 22px; margin-bottom: 8px; }
.order-done p { margin: 0; color: #CBBBA8; font-size: 15px; line-height: 1.6; }

/* Legal / doc pages */
.doc-wrap { max-width: 820px; margin: 0 auto; padding: 44px 24px 72px; }
.doc-wrap h1 { font-family: Lora, serif; font-size: 38px; margin: 0 0 8px; }
.doc-updated { font-size: 13.5px; color: var(--muted); margin-bottom: 30px; }
.doc-section { margin-bottom: 30px; }
.doc-section h2 { font-family: Lora, serif; font-size: 22px; margin: 0 0 12px; }
.doc-section p { font-size: 15.5px; line-height: 1.75; color: var(--ink2); margin: 0 0 12px; }

/* Article */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 44px 24px 72px; }
.article-back { cursor: pointer; font-size: 13.5px; color: var(--rust); margin-bottom: 18px; display: inline-block; }
.article-meta { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.article-wrap h1 { font-family: Lora, serif; font-size: 38px; line-height: 1.15; margin: 0 0 20px; }
.article-cover { width: 100%; height: 320px; object-fit: cover; border-radius: 16px; margin-bottom: 28px; }
.article-wrap p.body-p { font-size: 17px; line-height: 1.75; color: var(--ink2); margin: 0 0 20px; }
.article-footer { border-top: 1px solid var(--border); margin-top: 34px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.article-author { font-size: 14px; color: var(--muted); }

/* Blog listing */
.blog-wrap { max-width: 1100px; margin: 0 auto; padding: 44px 24px 72px; }
.blog-wrap h1 { font-family: Lora, serif; font-size: 40px; margin: 0 0 10px; }
.blog-wrap > p { margin: 0 0 34px; font-size: 16px; color: var(--text2); max-width: 70ch; line-height: 1.65; }
.post-card-lg .post-card-img { height: 140px; }
.post-card-lg .post-title { font-size: 21px; }
.post-read-more { font-size: 13.5px; font-weight: 600; color: var(--rust); }

/* Reviews page */
.reviews-wrap { max-width: 1100px; margin: 0 auto; padding: 44px 24px 72px; }
.reviews-wrap h1 { font-family: Lora, serif; font-size: 40px; margin: 0 0 10px; }
.reviews-wrap > p { margin: 0 0 30px; font-size: 16px; color: var(--text2); }

/* Cookie bar */
.cookie-bar { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 60; display: flex; justify-content: center; }
.cookie-inner { max-width: 880px; width: 100%; background: var(--cream); border: 1px solid var(--border2); border-radius: 16px; box-shadow: 0 18px 40px rgba(46,33,25,.22); padding: 22px 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 280px; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--ink); color: #CBBBA8; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { font-family: Lora, serif; font-size: 22px; color: var(--bg); margin-bottom: 12px; }
.footer-about p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.7; }
.footer-contact { font-size: 14px; line-height: 1.8; }
.footer-contact a { color: #E7C9A9; }
.footer-heading { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.footer-col a { color: #CBBBA8; }
.footer-col a:hover { color: #E7C9A9; text-decoration: none; }
.footer-bottom { border-top: 1px solid #433325; }
.footer-bottom-inner { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }

/* 404 */
.notfound-wrap { max-width: 700px; margin: 0 auto; padding: 100px 24px; text-align: center; }
.notfound-wrap h1 { font-family: Lora, serif; font-size: 64px; margin: 0 0 12px; }
.notfound-wrap p { font-size: 17px; color: var(--text2); margin: 0 0 26px; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr !important; padding-top: 40px; }
  .quiz-grid { grid-template-columns: 1fr !important; }
  .story-grid { grid-template-columns: 1fr !important; }
  .catalog-grid { grid-template-columns: 1fr !important; }
  .filters { position: static !important; }
  .cart-layout { grid-template-columns: 1fr !important; }
  .cart-summary { position: static !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .newsletter-box { grid-template-columns: 1fr !important; }
  .grid-4 { grid-template-columns: repeat(2,1fr) !important; }
  .usp-grid { grid-template-columns: repeat(2,1fr) !important; }
  .age-guides { grid-template-columns: repeat(2,1fr) !important; }
  .footer-inner { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 860px) {
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream);
    border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 8px 24px 16px;
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-inner { flex-wrap: wrap; }
  .cart-btn { margin-left: 8px; }
}
@media (max-width: 680px) {
  .hero h1 { font-size: 38px; }
  .hero-books { grid-template-columns: repeat(2,1fr); }
  .grid-4, .grid-3, .grid-2, .collections-grid, .team-grid, .values-grid, .age-guides, .company-grid { grid-template-columns: 1fr !important; }
  .usp-grid { grid-template-columns: 1fr !important; }
  .footer-inner { grid-template-columns: 1fr !important; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .quiz-box { padding: 26px; }
  .quiz-box h2 { font-size: 26px; }
  .cart-line { flex-wrap: wrap; }
  .cart-line-sum { text-align: left; }
  .about-banner { height: 200px; }
}
