/* OLMA public UI.
   Compact current visual system after the Airbnb/editorial redesign pass. */

:root{
  --blue:#bf3349;
  --blue2:#a7273a;
  --blue-dk:#7f1f2d;
  --blue-lt:#fff0f3;
  --gold:#227c73;
  --gold2:#2e958a;
  --teal-lt:#eef8f6;
  --ink:#222;
  --text:#3f3f3f;
  --muted:#6a6a6a;
  --paper:#fbfaf8;
  --warm:#f7f7f4;
  --card:#fff;
  --line:#e3dfd8;
  --border:#e3dfd8;
  --rust:#b84a3a;
  --green:#227c55;
  --sans:"Segoe UI",Inter,-apple-system,BlinkMacSystemFont,Roboto,Arial,sans-serif;
  --serif:Georgia,"Times New Roman",serif;
  --display:Georgia,"Times New Roman",serif;
  --r:8px;
  --r2:14px;
  --r3:22px;
  --sh:0 0 0 1px rgba(34,34,34,.04),0 2px 8px rgba(34,34,34,.05);
  --sh2:0 0 0 1px rgba(34,34,34,.05),0 8px 24px rgba(34,34,34,.08);
  --sh3:0 0 0 1px rgba(34,34,34,.05),0 14px 40px rgba(34,34,34,.12);
  --nav-h:58px;
  --search-h:42px;
  --cat-nav-h:40px;
  --max:1440px;
  --chrome-gutter:max(16px,calc((100vw - var(--max))/2));
  --ease:.18s ease;
}

/* Featured homepage switch: Book of Day / Dogs Detectives promo */
.home-promo-banner{width:min(100%,var(--home-grid-width,1136px));max-width:1136px;margin:18px auto 24px;overflow:hidden;background:#2b1712;box-shadow:0 10px 26px rgba(43,23,18,.18)}
.home-promo-banner__link{display:block;color:#f6e8cd;text-decoration:none}
.home-promo-banner__custom{display:block;width:100%;height:auto;max-height:360px;object-fit:cover}
.home-promo-banner__scene{position:relative;min-height:0;height:200px;display:grid;grid-template-columns:150px minmax(0,1fr) 254px;align-items:center;gap:18px;padding:10px 4%;overflow:hidden;background:linear-gradient(90deg,#14362a 0%,#3b2017 100%)}
.home-promo-banner__background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.22;mix-blend-mode:screen}
.home-promo-banner__companions{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:4px;min-width:0}
.home-promo-banner__companions img{display:block;width:72px;height:112px;object-fit:contain;filter:drop-shadow(0 5px 5px rgba(0,0,0,.5))}
.home-promo-banner__copy{position:relative;z-index:1;grid-column:2;display:flex;flex-direction:column;align-items:center;justify-self:center;width:100%;text-align:center;max-width:690px}
.home-promo-banner__copy small{font:600 11px/1.2 Georgia,serif;letter-spacing:.12em;text-transform:uppercase;color:#edbd67}
.home-promo-banner__copy strong{margin-top:5px;font:400 clamp(22px,2.4vw,34px)/1.05 Georgia,serif;color:#f6d39b}
.home-promo-banner__copy em{margin-top:8px;font:italic 14px/1.2 Georgia,serif;color:#fff1d2}
.home-promo-banner__brand{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.home-promo-banner__logo{display:block;width:156px;height:auto;filter:drop-shadow(0 5px 5px rgba(0,0,0,.5))}
.home-promo-banner__cover{display:block;width:72px;height:154px;object-fit:contain;filter:drop-shadow(10px 14px 10px rgba(0,0,0,.55));transform:rotate(1.5deg)}
@media(max-width:1000px) and (min-width:761px){.home-promo-banner__scene{grid-template-columns:118px minmax(0,1fr) 210px;gap:10px;padding-left:24px;padding-right:24px}.home-promo-banner__companions img{width:60px;height:100px}.home-promo-banner__logo{width:126px}.home-promo-banner__cover{width:62px;height:142px}.home-promo-banner__copy strong{font-size:28px}.home-promo-banner__copy em{font-size:13px}}
@media(max-width:760px){.home-promo-banner{margin:12px auto 18px}.home-promo-banner__scene{height:160px;min-height:0;grid-template-columns:94px minmax(0,1fr) 116px;gap:8px;padding:8px 10px}.home-promo-banner__companions img{width:44px;height:84px}.home-promo-banner__brand{gap:5px}.home-promo-banner__logo{width:72px}.home-promo-banner__cover{width:38px;height:132px}.home-promo-banner__copy strong{font-size:20px}.home-promo-banner__copy em{font-size:11px}.home-promo-banner__copy small{font-size:9px}}
@media (hover:hover) and (pointer:fine){.home-promo-banner__link:hover .home-promo-banner__cover{transform:rotate(0) translateY(-3px)}}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  min-height:100vh;
  overflow-x:clip;
  background:var(--paper);
  color:var(--text);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.55;
  letter-spacing:0;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
h1,h2,h3,.s-title,.book-title,.footer-brand .fb-name,.logo-text .main{letter-spacing:0}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.public-skip-link{
  position:fixed;z-index:1000;top:8px;left:8px;
  padding:9px 14px;color:#fff;background:var(--ink);
  border-radius:var(--r);transform:translateY(-150%);
}
.public-skip-link:focus{transform:translateY(0)}
.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}
.catalog-filter-heading{margin:0 0 14px;font-family:"Playfair Display",Georgia,serif;font-size:1.45rem;font-weight:700;color:#222;line-height:1.2}

/* Header */
.topbar{
  position:fixed;
  top:0;
  right:0;
  left:0;
  z-index:400;
  display:flex;
  align-items:center;
  min-width:0;
  gap:12px;
  height:var(--nav-h);
  min-height:var(--nav-h);
  padding:0 var(--chrome-gutter);
  color:var(--ink);
  background:rgba(255,255,255,.94);
  border-bottom:0;
  box-shadow:none;
  backdrop-filter:saturate(140%) blur(14px);
}
.topbar-has-image{padding:0 var(--chrome-gutter)}
.header-banner{display:flex;align-items:center;height:100%;padding:7px 0;overflow:hidden}
.header-banner img,.header-banner svg{width:auto;max-height:100%;object-fit:contain}
.brand-cluster{display:flex;align-items:center;gap:12px;min-width:0}
.header-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  height:44px;
  min-width:72px;
  flex:0 0 72px;
  padding:0;
  background:transparent;
  border:0;
  border-radius:8px;
  box-shadow:none;
  overflow:hidden;
}
.header-logo-prosv{min-width:98px;flex-basis:98px}
.header-logo-olma{min-width:58px;flex-basis:58px}
.header-logo img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}
.logo-block{min-width:190px;text-align:left}
.logo-text{color:var(--ink)}
.logo-text .main{font-family:var(--serif);font-size:1.18rem;font-weight:700;line-height:1.05}
.logo-text .sub{margin-top:2px;color:var(--muted);font-size:.58rem;line-height:1.25;text-transform:uppercase}
.main-nav{display:flex;align-items:center;gap:4px;margin-left:auto;min-width:0}
.nav-search-btn{
  display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;
  color:var(--ink);
  background:transparent;
  border:1px solid var(--line);
  border-radius:var(--r);
  cursor:pointer;
  transition:background var(--ease),color var(--ease),border-color var(--ease);
}
.nav-search-btn:hover,.nav-search-btn.active{color:#fff;background:var(--blue);border-color:var(--blue)}
.nav-search-btn svg{display:block;pointer-events:none}
/* ── Permanent search bar ─────────────────────────── */
.site-search-bar{
  position:fixed;
  top:var(--nav-h);
  left:0;right:0;
  z-index:490;
  height:var(--search-h);
  background:var(--warm);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  padding:0 var(--chrome-gutter);
}
.site-search-form{
  position:relative;
  display:flex;align-items:center;
  width:100%;
  height:38px;
  background:#fff;
  border:1.5px solid var(--line);
  border-radius:6px;
  padding:0 4px 0 14px;
  gap:8px;
  transition:border-color .18s,box-shadow .18s;
}
.site-search-form:focus-within{
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(216,74,95,.08);
}
.site-search-form svg{flex-shrink:0;color:var(--muted)}
.site-search-form input[type=search]{
  flex:1;min-width:0;
  border:0;outline:0;background:transparent;
  color:var(--ink);font-size:.9rem;
}
.site-search-form input[type=search]::-webkit-search-cancel-button{display:none}
.site-search-form input[type=search]::placeholder{color:var(--muted)}
.site-search-submit{
  display:flex;align-items:center;justify-content:center;gap:5px;
  padding:0 16px;height:30px;flex-shrink:0;
  background:var(--blue);color:#fff;
  border:0;border-radius:999px;
  font-size:.82rem;font-weight:700;
  cursor:pointer;
  transition:background .18s;
}
.site-search-submit svg{display:block;flex-shrink:0}
.site-search-submit:hover{background:var(--blue2)}
.search-suggest{
  position:absolute;
  left:0;right:0;top:calc(100% + 8px);
  z-index:610;
  display:none;
  max-height:min(420px,70vh);
  overflow:auto;
  padding:6px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 18px 40px rgba(34,34,34,.14);
}
.search-suggest.open{display:block}
.search-suggest-item{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  align-items:center;
  gap:10px;
  width:100%;
  padding:8px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--ink);
  text-align:left;
  cursor:pointer;
}
.search-suggest-item:hover,
.search-suggest-item:focus{background:var(--warm);outline:0}
.search-suggest-item:active{transform:scale(.99)}
.search-suggest-item img,
.search-suggest-icon{
  width:38px;height:52px;
  border-radius:4px;
  background:#f2eee9;
  object-fit:contain;
}
.search-suggest-icon{
  display:flex;align-items:center;justify-content:center;
  height:38px;
  color:var(--muted);
  font-weight:700;
}
.search-suggest-copy{display:flex;min-width:0;flex-direction:column;gap:2px}
.search-suggest-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.9rem;
  line-height:1.25;
}
.search-suggest-copy em{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:.78rem;
  font-style:normal;
}
.main-nav a{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:7px 13px;
  border-radius:999px;
  color:var(--ink);
  font-size:.84rem;
  font-weight:700;
}
.main-nav a:hover,.main-nav a.active{background:var(--warm)}
.main-nav a.nav-home{width:36px;justify-content:center;padding:0;border:1px solid var(--line)}
.main-nav a.nav-home svg{display:block}
.topbar-socials{display:flex;gap:6px;margin-left:8px}
.topbar-socials a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  color:var(--ink);
  background:#fff;
  border:1px solid var(--line);
  border-radius:50%;
}
.topbar-socials a:hover{color:#fff;background:var(--blue);border-color:var(--blue)}
.topbar-socials svg{width:14px;height:14px;fill:currentColor}

/* Shared public navigation */
.global-category-nav{
  position:fixed;
  top:calc(var(--nav-h) + var(--search-h));
  right:0;
  left:0;
  z-index:310;
  display:flex;
  align-items:center;
  gap:5px;
  min-height:var(--cat-nav-h);
  max-height:var(--cat-nav-h);
  padding:5px var(--chrome-gutter);
  overflow-x:auto;
  overflow-y:hidden;
  background:rgba(255,255,255,.96);
  border:0;
  box-shadow:0 8px 22px rgba(34,34,34,.055);
  backdrop-filter:saturate(140%) blur(14px);
  white-space:nowrap;
  scrollbar-width:none;
}
.global-category-nav::-webkit-scrollbar{display:none}
.category-nav-toggle{display:none}
.global-category-nav .gcat{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
  min-height:34px;
  padding:6px 12px;
  color:var(--muted);
  border:1px solid transparent;
  border-radius:999px;
  font-size:.8rem;
  font-weight:700;
}
.global-category-nav .gcat:hover{color:var(--ink);background:var(--warm)}
.global-category-nav .gcat.on{color:#fff;background:var(--blue);border-color:var(--blue)}
.global-category-nav .gcat span{font-size:.72rem;opacity:.7}
.public-shell{
  display:block;
  gap:36px;
  max-width:var(--max);
  min-height:70vh;
  margin:calc(var(--nav-h) + var(--search-h) + var(--cat-nav-h)) auto 0;
  padding:32px 48px 40px;
  background:var(--paper);
}
.public-shell-with-series{
  display:grid;
  grid-template-columns:minmax(210px,248px) minmax(0,1fr);
}
.public-main{min-width:0}
.global-series-nav{
  position:sticky;
  top:calc(var(--nav-h) + var(--search-h) + var(--cat-nav-h) + 24px);
  align-self:start;
  max-height:calc(100vh - var(--nav-h) - var(--search-h) - var(--cat-nav-h) - 48px);
  padding:18px 16px 18px 0;
  overflow:auto;
  background:transparent;
  border-right:1px solid var(--line);
}
.global-series-title{margin:0 0 12px;color:var(--ink);font-size:.78rem;font-weight:800;text-transform:uppercase}
.global-series-nav .gseries{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:38px;
  padding:9px 12px;
  color:var(--muted);
  border-radius:999px;
  font-size:.9rem;
  font-weight:600;
  line-height:1.25;
}
.global-series-nav .gseries:hover{color:var(--ink);background:#fff}
.global-series-nav .gseries.on{color:#fff;background:var(--blue);font-weight:700}
.global-series-nav .gseries em{flex:0 0 auto;color:inherit;font-style:normal;font-size:.72rem;opacity:.66}

/* Search and controls */
.home-search-wrap,.catalog-controls{padding:0 0 26px;background:transparent;border:0}
.home-search-form,.search-box{
  position:relative;
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  box-shadow:var(--sh);
}
.home-search-form{
  display:flex;
  align-items:center;
  gap:0;
  max-width:540px;
  min-height:48px;
  margin:0 auto;
  padding:0 6px 0 18px;
  transition:border-color .18s,box-shadow .18s;
}
.home-search-form:focus-within{
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(216,74,95,.1);
}
.hs-icon,.search-box svg{flex-shrink:0;color:var(--muted);margin-right:2px}
.home-search-input,.search-box input{
  flex:1;
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  font-size:.95rem;
}
.home-search-input{padding:10px 10px 10px 10px}
.home-search-input::placeholder,.search-box input::placeholder{color:var(--muted)}
.home-search-btn,.btn-load-more,.btn-primary{
  min-height:36px;
  padding:0 18px;
  color:#fff;
  background:var(--blue);
  border:1px solid var(--blue);
  border-radius:999px;
  font-size:.85rem;
  font-weight:700;
}
.home-search-btn:hover,.btn-load-more:hover,.btn-primary:hover{background:var(--blue2);border-color:var(--blue2)}
.catalog-controls{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  gap:12px;
  align-items:center;
  padding:16px 18px;
  background:var(--warm);
  border:1px solid var(--line);
  border-radius:18px;
}
.catalog-controls>*{min-width:0}
.catalog-filter-panel{min-width:0}
.catalog-filter-panel>summary{display:none}
.catalog-filter-fields{display:flex;align-items:center;gap:12px;min-width:0}
.filter-series-mobile{display:none}
.search-box{position:relative;display:flex;align-items:center;min-height:54px;padding:0 16px}
.search-box svg{margin-right:10px}
.ctrl-sel,.fg input,.fg select,.fg textarea{
  min-height:48px;
  padding:10px 13px;
  color:var(--ink);
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  outline:0;
  box-shadow:none;
}
.ctrl-sel{width:100%;min-width:0;max-width:270px;cursor:pointer}
.ctrl-sel:focus,.fg input:focus,.fg select:focus,.fg textarea:focus{border-color:var(--ink)}
.ctrl-sort{font-weight:700}

/* Buttons, forms and small shared UI */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:40px;
  padding:9px 16px;
  border:1px solid transparent;
  border-radius:999px;
  font-size:.9rem;
  font-weight:800;
  line-height:1.2;
  cursor:pointer;
}
.btn-sm{min-height:34px;padding:7px 12px;font-size:.82rem}
.btn-ghost{color:var(--ink);background:#fff;border-color:var(--line)}
.btn-ghost:hover{color:var(--blue2);background:var(--blue-lt);border-color:#ffd8df}
.btn-success{color:#fff;background:var(--green)}
.btn-danger{color:#fff;background:#b3261e}
.btn-gold{color:#fff;background:var(--blue)}
.fg{display:flex;flex-direction:column;gap:7px}
.fg label{color:var(--muted);font-size:.78rem;font-weight:800;text-transform:uppercase}
.fg textarea{min-height:110px;resize:vertical;line-height:1.55}
.toast{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:9999;
  padding:12px 20px;
  color:#fff;
  background:var(--ink);
  border-radius:999px;
  box-shadow:var(--sh3);
  opacity:0;
  transform:translateY(80px);
  transition:transform .3s, opacity .3s;
}
.toast.show{opacity:1;transform:translateY(0)}

/* Home sections and cards */
.public-page-home{--home-grid-width:1136px}
.home-collections-anchor{height:0;scroll-margin-top:calc(var(--nav-h) + var(--search-h) + var(--cat-nav-h) + 16px)}
.section{position:relative;padding:30px 0 50px;background:transparent}
.public-page-home .section + .section{border-top:1px solid rgba(227,223,216,.78)}
.public-page-home .section.alt{background:linear-gradient(180deg,rgba(247,247,244,.72),rgba(251,250,248,0))}
.s-inner{max-width:var(--max);margin:0 auto;padding:0}
.public-page-home .section .s-inner{max-width:var(--home-grid-width);margin-left:auto;margin-right:auto}
.s-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.s-title{position:relative;color:var(--ink);font-family:var(--serif);font-size:2rem;font-weight:700;line-height:1.18}
.s-title::after{content:"";display:block;width:52px;height:3px;margin-top:10px;background:var(--blue);border-radius:999px}
.s-more{color:var(--blue);font-weight:800}
.book-strip,#catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,184px),1fr));gap:32px 24px}
.public-page-home .book-strip{
  grid-template-columns:repeat(auto-fill,minmax(min(100%,184px),208px));
  justify-content:start;
}
.public-page-home .bc-title{
  font-size:.96rem;
  line-height:1.3;
  -webkit-line-clamp:4;
}
.book-card{
  display:block;
  min-width:0;
  color:var(--ink);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r2);
  overflow:hidden;
  box-shadow:0 1px 2px rgba(34,34,34,.03);
  transition:transform .2s cubic-bezier(.23,1,.32,1),box-shadow .2s ease,border-color .2s ease;
  cursor:pointer;
}
.book-info,.book-images,.book-facts{min-width:0}
.book-title,.bc-title,.bs-title{overflow-wrap:anywhere}
.book-card:focus-visible,.bs-card:focus-visible{
  outline:3px solid var(--blue);
  outline-offset:4px;
}
.bc-cover,.bs-cover{
  position:relative;
  aspect-ratio:2/3;
  min-height:0;
  overflow:hidden;
  background:#f2f0ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4bcb0' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E") center/38% no-repeat;
  border-bottom:1px solid var(--line);
  box-shadow:none;
}
.bc-cover img,.bs-cover img{width:100%;height:100%;object-fit:contain;transition:opacity .18s ease,transform .24s cubic-bezier(.23,1,.32,1)}
.book-card:hover .bc-cover,.bs-card:hover .bs-cover{box-shadow:none}
.bc-body{display:flex;min-height:148px;flex-direction:column;min-width:0;padding:12px 13px 14px}
.bc-rubric,.bs-rubric{
  margin-bottom:5px;
  color:var(--muted);
  font-size:.66rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bc-series{
  margin-bottom:5px;
  color:var(--muted);
  font-size:.74rem;
  font-style:italic;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bc-title,.bs-title{
  color:var(--ink);
  font-family:var(--display);
  font-size:1.08rem;
  font-weight:700;
  line-height:1.28;
  letter-spacing:-.01em;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.bc-author,.bs-author{
  margin-top:auto;
  color:var(--muted);
  font-size:.78rem;
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Compact editorial lead: one book of the day + the first three-book selection. */
.home-lead-section{padding:28px 0 48px}
.home-lead{
  display:grid;
  grid-template-columns:repeat(4,minmax(172px,208px));
  justify-content:start;
  gap:24px;
  max-width:var(--home-grid-width);
  margin-left:auto;
  margin-right:auto;
}
.home-lead-group{display:flex;min-width:0;flex-direction:column}
.home-lead-day{grid-column:span 1}
.home-lead-collection{grid-column:span 3}
.home-lead-head{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:58px;
  margin-bottom:18px;
}
.home-lead-title{
  position:relative;
  color:var(--ink);
  font-family:var(--serif);
  font-size:2rem;
  font-weight:700;
  line-height:1.18;
}
.home-lead-title::after{
  content:"";
  display:block;
  width:52px;
  height:3px;
  margin-top:10px;
  background:var(--blue);
  border-radius:999px;
}
.home-lead-books{
  display:grid;
  flex:1;
  grid-template-columns:repeat(3,minmax(0,208px));
  gap:24px;
}
.home-lead .book-card{height:100%}
.home-lead-day-card{flex:0 0 auto}
.home-lead-day-card .book-card{
  display:flex;
  flex-direction:column;
  height:auto;
  min-height:0;
  border-color:rgba(190,43,68,.24);
  background:#f7eee9;
  box-shadow:0 8px 24px rgba(82,48,38,.09);
}
.home-lead-day-card .bc-cover{
  display:flex;
  align-items:center;
  aspect-ratio:3/4;
  max-height:230px;
  border-bottom:1px solid rgba(190,43,68,.18);
  background:#efe3d8;
}
.home-lead-day-card .bc-cover img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.home-lead-day-card .bc-body{
  display:flex;
  flex-direction:column;
  flex:0 0 auto;
  padding:12px 12px 14px;
  background:#f7eee9;
}
.day-card-occasion{
  display:grid;
  gap:5px;
  margin-bottom:9px;
  padding-bottom:9px;
  border-bottom:1px solid rgba(190,43,68,.17);
}
.day-card-occasion-label{
  color:var(--blue);
  font-size:.66rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.day-card-event{
  color:#68483d;
  font-size:.72rem;
  line-height:1.32;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.day-card-action{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:auto;
  padding-top:9px;
  color:var(--blue);
  font-size:.74rem;
  font-weight:800;
}
@media (hover:hover) and (pointer:fine){
  .book-card--day:hover{
    border-color:rgba(190,43,68,.38);
    box-shadow:0 12px 28px rgba(82,48,38,.14);
  }
}

.collection-more-row{
  display:none;
  justify-content:flex-end;
  margin-top:12px;
}
.has-collapsed-items .collection-more-row{display:flex}
.collection-more-button{
  min-width:72px;
  min-height:44px;
  padding:8px 0 8px 16px;
  color:var(--blue);
  background:transparent;
  border:0;
  font:inherit;
  font-size:.9rem;
  font-weight:800;
  text-align:right;
  cursor:pointer;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}
.collection-more-button:hover{color:var(--blue2)}
.collection-more-button:focus-visible{outline:3px solid rgba(190,43,68,.25);outline-offset:2px;border-radius:6px}
.collection-more-button[hidden]{display:none}

@media(max-width:1180px){
  .home-lead{grid-template-columns:repeat(3,minmax(160px,208px));max-width:none}
  .home-lead-day{grid-column:span 1}
  .home-lead-collection{grid-column:1/-1}
  .home-lead-books{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:760px){
  .home-lead-section{padding:20px 0 34px}
  .home-lead{grid-template-columns:1fr;gap:34px}
  .home-lead-day,.home-lead-collection{grid-column:auto}
  .home-lead-head{min-height:0;margin-bottom:16px}
  .home-lead-day-card{max-width:440px}
}

@media(max-width:560px){
  .home-lead-title{font-size:1.45rem}
  .home-lead-books{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}
}

@media(max-width:380px){
  .home-lead-books{grid-template-columns:1fr}
  .home-lead-books .book-card{max-width:240px}
}
.badge-new,.badge-rpr,.badge-out,.badge-low{
  position:absolute;
  z-index:2;
  top:9px;
  left:9px;
  max-width:calc(100% - 18px);
  padding:4px 8px;
  color:#fff;
  border-radius:5px;
  font-size:.59rem;
  font-weight:700;
  line-height:1.1;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.badge-new{background:rgba(191,51,73,.9)}
.badge-rpr{background:rgba(34,124,115,.88)}
.badge-out{background:rgba(70,70,70,.82)}
.badge-low{left:auto;right:9px;background:rgba(130,95,25,.88)}
.book-card-out .bc-cover img{opacity:.55;filter:grayscale(.35)}
.bs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px}
.bs-card{display:grid;grid-template-columns:112px minmax(0,1fr);gap:18px;min-width:0;padding:18px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:16px;transition:transform .2s cubic-bezier(.23,1,.32,1),box-shadow .2s ease,border-color .2s ease}
.bs-cover{aspect-ratio:2/3;min-width:0}
.bs-desc{margin-top:8px;color:var(--muted);font-size:.9rem;line-height:1.55;overflow-wrap:anywhere}

/* Catalog */
.catalog-layout{display:block;width:100%;max-width:var(--max);margin:0 auto;padding:0}
.catalog-content{min-width:0}
.results-bar{padding:20px 0 14px;color:var(--muted);border-bottom:1px solid var(--line);font-size:.9rem}
.results-bar strong{color:var(--blue)}
#catalog-grid{padding:24px 0 64px;align-items:start}
.load-more-wrap{text-align:center;padding:0 0 40px}
.catalog-loading{grid-column:1/-1;padding:40px;text-align:center;color:var(--muted)}
.catalog-empty{
  grid-column:1/-1;
  max-width:520px;
  margin:22px auto 40px;
  padding:34px 28px;
  text-align:center;
  color:var(--muted);
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--sh);
}
.catalog-empty-mark{display:inline-flex;align-items:center;justify-content:center;min-width:70px;min-height:42px;margin-bottom:18px;color:var(--gold);border:1px solid #cde7e3;border-radius:14px;font-family:var(--serif);font-weight:700}
.catalog-empty-title{margin-bottom:8px;color:var(--ink);font-size:1.1rem;font-weight:800}
.catalog-empty-text{font-size:.95rem}
.catalog-empty-text a{color:var(--blue);font-weight:800}

/* Book page */
.book-page{max-width:var(--max);margin:0 auto;padding:32px 0 64px}
.book-page-nav{display:flex;align-items:center;gap:8px;margin-bottom:16px}
.book-page-nav-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:7px 12px;
  color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:999px;
  box-shadow:var(--sh);font-size:.84rem;font-weight:700;cursor:pointer;
}
.book-page-nav-btn:hover{color:var(--blue);border-color:#efb5bf;background:var(--blue-lt)}
.book-page-nav-home{width:40px;padding:0}
.book-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px;color:var(--muted);font-size:.9rem}
.book-breadcrumb a{text-decoration:underline;text-underline-offset:2px}
.book-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(320px,1fr) 250px;gap:36px;align-items:start}
.book-images{position:sticky;top:calc(var(--nav-h) + var(--search-h) + var(--cat-nav-h) + 24px)}
.book-gallery-shell{display:grid;grid-template-columns:76px minmax(0,1fr);gap:18px;align-items:start}
.book-thumbs-rail{display:flex;flex-direction:column;gap:10px;max-height:560px;overflow:auto;padding-right:2px}
.spread-thumb{
  width:64px;
  height:86px;
  padding:0;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
}
.spread-thumb:hover,.spread-thumb.active{border-color:var(--blue);box-shadow:0 0 0 3px rgba(216,74,95,.16)}
.spread-thumb-stack{display:flex;flex-direction:column;gap:3px;width:100%;height:100%;padding:4px}
.spread-thumb-stack img{flex:1;min-height:0;width:100%;height:auto;object-fit:contain;background:#fff;border-radius:5px}
.spread-thumb.is-cover .spread-thumb-stack{padding:0}
.spread-thumb.is-cover .spread-thumb-stack img{object-fit:contain;border-radius:13px;background:#f2f0ec}
.book-cover-main{
  width:100%;
  overflow:hidden;
  background:transparent;
  border:0;
  border-radius:10px;
  box-shadow:none;
  cursor:zoom-in;
}
.book-main-stack{display:flex;flex-direction:column;gap:10px;width:100%}
.book-cover-main img{width:100%;height:auto;display:block;object-fit:contain;background:transparent;border-radius:8px;box-shadow:var(--sh2)}
.yd-links,.mkt-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.mkt-btn,.genre-tag{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 13px;
  color:var(--ink);
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:.88rem;
  font-weight:700;
}
.mkt-btn:hover,.genre-tag:hover,.series-tag{color:var(--blue2);background:var(--blue-lt);border-color:#ffd8df}
.book-info{min-width:0;max-width:760px}
.book-rubric,.section-lbl{margin-bottom:10px;color:var(--gold);font-size:.78rem;font-weight:800;text-transform:uppercase}
.book-rubric a{color:inherit;text-decoration:none}
.book-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:12px}
.book-title{flex:1;min-width:0;color:var(--ink);font-family:var(--serif);font-size:2.55rem;font-weight:700;line-height:1.1}
.book-title.is-long{font-size:2.2rem;line-height:1.12}
.price-list-badge,.specs-grid{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--sh)}
.price-list-badge{width:100%;padding:16px;text-align:center}
.price-list-badge-title{flex:0 0 190px;width:190px;padding:14px}
.book-facts .price-list-badge{background:var(--warm);border:0;border-radius:12px;box-shadow:none}
.price-list-label{color:var(--muted);font-size:.68rem;font-weight:800;text-transform:uppercase;line-height:1.3}
.price-list-value{margin-top:4px;color:var(--blue);font-size:1.3rem;font-weight:800}
.price-list-note{margin-top:3px;color:var(--muted);font-size:.68rem;line-height:1.3}
.book-contributors{margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.book-contributor{display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px 8px;margin:5px 0;line-height:1.65}
.book-contributor a,.card-contrib-row a{display:inline-block;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.book-author-label{color:var(--muted);font-weight:800}
.contributor-sep{color:var(--muted)}
.contributor-more{color:var(--muted);font-size:.86em}
.genre-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.genre-tag-age{color:var(--text);background:var(--warm);border-color:var(--line)}
.yd-link{font-size:.8rem}
.stock-note{display:inline-flex;align-items:center;min-height:34px;margin-bottom:16px;padding:7px 13px;border-radius:14px;font-size:.86rem;font-weight:800}
.stock-note-out{color:#9d2b2b;background:#fbecec}
.stock-note-low{color:#7a4a0b;background:#fbf0dd}
.book-summary,.book-annotation,.five-reasons,.book-about-authors{max-width:76ch;color:var(--text);font-size:1rem;line-height:1.74}
.book-summary{margin-bottom:18px}
.book-annotation{position:relative;margin-bottom:8px;overflow:hidden}
.book-annotation.is-collapsed{max-height:17.4em}
.book-annotation.is-collapsed::after{content:"";position:absolute;right:0;bottom:0;left:0;height:4em;background:linear-gradient(to bottom,rgba(251,250,248,0),var(--paper))}
.text-expand{padding:5px 0;color:var(--blue);background:transparent;border:0;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.book-facts{position:sticky;top:calc(var(--nav-h) + var(--search-h) + var(--cat-nav-h) + 24px);display:flex;flex-direction:column;gap:14px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--sh)}
.book-facts .stock-note{align-self:flex-start;margin:0}
.book-facts .mkt-buttons{margin:0}
.book-facts .mkt-btn{width:100%;justify-content:center}
.quick-specs{border-top:1px solid var(--line)}
.quick-specs .spec-item{display:block;padding:9px 0}
.quick-specs .spec-l,.quick-specs .spec-v{display:block;text-align:left}
.quick-specs .spec-v{margin-top:2px}
.book-details{display:grid;gap:10px;max-width:900px;margin:34px 0 0 min(396px,28vw)}
.book-accordion{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.book-accordion summary{position:relative;padding:16px 48px 16px 18px;color:var(--ink);cursor:pointer;font-size:1rem;font-weight:800;list-style:none}
.book-accordion summary::-webkit-details-marker{display:none}
.book-accordion summary::after{content:"+";position:absolute;right:18px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:1.2rem}
.book-accordion[open] summary::after{content:"−"}
.book-accordion[open] summary{border-bottom:1px solid var(--line)}
.book-accordion .book-about-authors,.book-accordion .five-reasons{margin:0;padding:18px}
.book-accordion .five-reasons{border:0;border-radius:0}
.book-accordion .specs-grid{max-width:none;border:0;border-radius:0;box-shadow:none}
.five-reasons{margin-bottom:22px;padding:16px 18px;background:#eef8f6;border-left:3px solid var(--gold);border-radius:0 14px 14px 0}
.five-reasons .five-item{display:flex;align-items:baseline;gap:8px;margin:12px 0 4px;color:var(--ink)}
.five-reasons .five-item:first-child{margin-top:0}
.five-reasons .five-head{font-weight:800}
.five-reasons .five-body{margin:0 0 10px 28px;color:var(--text)}
.book-about-authors{margin-bottom:22px}
.book-related{margin-top:48px}
.book-related-compact{margin-top:36px}
.book-related .s-head{margin-bottom:20px}
.specs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;max-width:880px;padding:14px 16px}
.spec-item{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid var(--line)}
.spec-l{color:var(--muted);font-size:.84rem}
.spec-v{color:var(--ink);font-weight:700;text-align:right}
.spec-v a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
.image-lightbox{position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(10,18,28,.82)}
.image-lightbox-stack{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:min(96vw,1280px);max-height:92vh;overflow:auto;overscroll-behavior:contain}
.image-lightbox-stack img{display:block;max-width:100%;max-height:44vh;object-fit:contain;border-radius:14px;box-shadow:0 18px 70px rgba(0,0,0,.35)}
.image-lightbox-close{position:absolute;top:18px;right:18px;width:40px;height:40px;color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);border-radius:50%}

/* Contacts */
.contacts-page{max-width:880px;margin:0 auto;padding:28px 0 64px}
.contacts-page h1{margin-bottom:24px;color:var(--ink);font-family:var(--serif);font-size:2.4rem;line-height:1.15}
.contact-block{margin-bottom:18px;padding:22px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--sh)}
.contact-block h2{margin-bottom:12px;color:var(--ink);font-size:1.1rem}
.contact-item{margin:8px 0;color:var(--text)}
.contact-item a,.contact-block a{color:var(--blue);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.contact-note{color:var(--text);font-size:.92rem;line-height:1.75}

/* Utility pages */
.not-found-page{padding:80px 24px;text-align:center}
.not-found-mark{margin-bottom:16px;font-size:5rem;line-height:1}
.not-found-page h1{margin-bottom:12px;color:var(--ink);font-family:var(--serif);font-size:2rem;line-height:1.2}
.not-found-page p{margin-bottom:28px;color:var(--muted)}
.not-found-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 24px;color:#fff;background:var(--blue);border-radius:999px;font-size:.9rem;font-weight:800}
.not-found-link:hover{background:var(--blue2)}

/* Modal and PHP-rendered book card */
#book-modal{font-family:var(--sans)}
.book-modal{position:fixed;inset:0;z-index:1000;display:none;align-items:flex-start;justify-content:center;padding:20px;overflow-y:auto;background:rgba(24,24,24,.52)}
.book-modal-dialog{position:relative;width:100%;max-width:900px;margin:auto;padding:28px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--sh3)}
.book-modal-close{position:absolute;top:12px;right:12px;display:flex;align-items:center;justify-content:center;width:34px;height:34px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:50%;font-size:16px;line-height:1}
.book-modal-close:hover{color:var(--ink);background:var(--warm)}
.book-modal-body{min-height:200px}
.book-modal-state{display:flex;align-items:center;justify-content:center;min-height:200px;padding:40px;text-align:center;color:var(--muted);font-size:.9rem}
.book-modal-error a{color:var(--blue);font-weight:800;text-decoration:underline;text-underline-offset:2px}
.card-inner{display:flex;gap:28px;min-height:0;font-family:var(--sans)}
.card-left{flex:0 0 200px;display:flex;flex-direction:column;gap:8px}
.card-cover-wrap a,.card-cover-wrap img{display:block}
.card-cover-wrap img{
  width:100%;
  height:auto;
  object-fit:contain;
  background:#f2f0ec;
  border-radius:10px;
  box-shadow:0 4px 20px rgba(34,34,34,.12),0 1px 4px rgba(34,34,34,.06);
  transition:box-shadow .22s ease;
}
.card-cover-wrap a:hover img{box-shadow:0 8px 30px rgba(34,34,34,.18),0 2px 6px rgba(34,34,34,.08)}
.card-spreads{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.card-spread-link{display:block;width:100%;overflow:hidden;border:1px solid var(--line);border-radius:7px;transition:border-color .18s,box-shadow .18s}
.card-spread-link:hover{border-color:var(--blue);box-shadow:0 3px 10px rgba(216,74,95,.12)}
.card-spread-link img{display:block;width:100%;height:auto}
.card-spread-yd{display:flex;align-items:center;justify-content:center;min-height:52px;padding:8px;background:var(--warm);text-decoration:none}
.card-spread-fallback-icon{color:var(--muted);font-size:.72rem;font-weight:700}
.card-right{flex:1;max-height:80vh;overflow-y:auto;padding-right:6px}
.card-title{
  margin:0 0 12px;
  color:var(--ink);
  font-family:var(--display);
  font-size:1.6rem;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.02em;
}
.card-series{margin-bottom:8px}
.card-series-link{
  display:inline-flex;
  padding:4px 12px;
  color:var(--gold);
  background:var(--teal-lt);
  border:1px solid rgba(34,124,115,.2);
  border-radius:999px;
  font-size:.8rem;
  font-weight:600;
  transition:background .18s,color .18s;
}
.card-series-link:hover{color:#fff;background:var(--gold)}
.card-tag{
  display:inline-flex;
  margin-bottom:4px;
  padding:3px 10px;
  color:var(--blue2);
  background:var(--blue-lt);
  border:1px solid rgba(216,74,95,.15);
  border-radius:999px;
  font-size:.78rem;
  font-weight:600;
  transition:background .18s,color .18s;
}
.card-tag:hover{color:#fff;background:var(--blue)}
.card-meta-tags{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-bottom:12px}
.card-tag-age{color:var(--ink);background:var(--warm);border-color:var(--line)}
.card-tag-rubric{font-weight:600}
.card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 0 12px}
.card-title-row .card-title{flex:1;min-width:0;margin:0}
.card-price-list-badge{
  flex:0 0 auto;
  min-width:144px;
  padding:10px 14px;
  text-align:right;
  background:linear-gradient(145deg,var(--teal-lt) 0%,#f0faf8 100%);
  border:1px solid rgba(34,124,115,.18);
  border-left:3px solid var(--gold);
  border-radius:10px;
  cursor:default;
}
.card-price-list-label{
  color:var(--muted);
  font-size:.58rem;
  font-weight:700;
  line-height:1.25;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.card-price-list-value{
  margin-top:4px;
  color:var(--ink);
  font-family:var(--display);
  font-size:1.18rem;
  font-weight:700;
  line-height:1.15;
}
.card-price-list-note{margin-top:3px;color:var(--muted);font-size:.58rem;line-height:1.25}
.card-authors{margin-bottom:12px;line-height:1.7}
.card-authors,.card-anno,.card-five{font-size:.9rem}
.card-author-list a{
  display:block;
  color:var(--blue);
  font-size:.95rem;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:2px;
}
.card-author-list a:hover{color:var(--blue2)}
.card-author-collection{color:var(--ink);font-size:.95rem;font-weight:600}
.card-more{color:var(--muted);font-size:.8rem}
.card-contrib-row{margin-top:3px;color:var(--ink);font-size:.82rem}
.card-illustrators{margin-top:4px;color:var(--muted);font-size:.78rem}
.card-illustrators .card-contrib-row a{color:var(--muted);text-decoration:underline;text-underline-offset:1px}
.card-anno,.card-five{line-height:1.68}
.card-five .five-item{margin:0 0 3px}
.card-five .five-head{color:var(--ink)}
.card-five .five-body{margin:0 0 4px;color:var(--muted);font-size:.83rem}
.card-marketplaces{margin-bottom:16px}
.card-section-label{
  margin:18px 0 9px;
  padding-bottom:5px;
  color:var(--muted);
  border-bottom:1px solid var(--line);
  font-size:.65rem;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.card-specs{width:100%;border-collapse:collapse;font-size:.84rem}
.card-specs tr:nth-child(even) td{background:var(--warm)}
.card-specs td{padding:5px 6px;vertical-align:top}
.card-specs td:first-child{padding-left:0}
.spec-k{width:114px;padding-right:12px;color:var(--muted);font-size:.82rem;white-space:nowrap}
.five-num{color:var(--blue);font-weight:800}
.card-full-link{margin-top:18px;font-size:.78rem}
.card-full-link a{color:var(--muted);text-decoration:underline;text-underline-offset:2px}

/* Footer */
.site-footer{margin-top:0;padding:46px 48px 22px;background:#fff;border-top:1px solid var(--line)}
.footer-inner{display:grid;grid-template-columns:1fr auto;gap:40px;align-items:start;max-width:var(--max);margin:0 auto}
.footer-brand .fb-name{margin-bottom:8px;color:var(--ink);font-family:var(--serif);font-size:1.35rem}
.footer-brand .fb-desc{max-width:680px;color:var(--muted);font-size:.95rem;line-height:1.7}
.footer-brand .fb-tagline{margin:5px 0 8px;color:var(--ink);font-family:var(--serif);font-size:1rem;font-style:italic}
.footer-brand a,.footer-copy a{color:var(--ink);font-weight:700}
.footer-socials{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.soc-lbl{color:var(--muted);font-size:.78rem;font-weight:800;text-transform:uppercase}
.soc-links{display:flex;gap:8px;flex-wrap:wrap}
.soc-btn{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:8px 14px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:999px;font-weight:700}
.soc-btn:hover{background:var(--warm)}
.soc-btn svg{width:16px;height:16px;fill:currentColor}
.footer-copy{max-width:var(--max);margin:26px auto 0;padding-top:18px;color:var(--muted);border-top:1px solid var(--line);font-size:.86rem}
.footer-copy a{margin-left:14px}

/* Cookie consent banner (152-ФЗ) */
.cookie-consent{position:fixed;left:0;right:0;bottom:0;z-index:999;display:flex;flex-wrap:wrap;align-items:center;gap:16px;justify-content:space-between;padding:16px 24px;background:var(--ink);color:#fff;box-shadow:0 -2px 12px rgba(0,0,0,.15)}
.cookie-consent[hidden]{display:none}
.cookie-consent-text{max-width:820px;font-size:.88rem;line-height:1.5}
.cookie-consent-text a{color:#fff;text-decoration:underline}
.cookie-consent-accept{flex:0 0 auto;min-height:44px;padding:10px 22px;background:#fff;color:var(--ink);border:none;border-radius:999px;font-weight:700;cursor:pointer}
.cookie-consent-accept:hover{background:var(--warm)}
.privacy-page .contact-block{max-width:760px}

/* Login page support */
.login-box .fg label{margin-bottom:2px}
.login-box .btn-primary{width:100%}

@media(max-width:1180px){
  .topbar{gap:12px}
  .logo-block{min-width:180px}
  .catalog-controls{grid-template-columns:minmax(240px,1fr) auto}
  .book-layout{grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:40px}
  .book-facts{position:relative;top:auto;grid-column:2;display:grid;grid-template-columns:minmax(180px,220px) minmax(0,1fr)}
  .book-facts .mkt-buttons{grid-column:1/-1}
  .book-details{margin-left:min(420px,34vw)}
}
@media(max-width:900px){
  :root{--nav-h:54px;--cat-nav-h:40px}
  .topbar{padding:0 16px}
  .topbar-socials{display:none}
  .header-banner{min-width:0;flex:1}
  .header-banner img,.header-banner svg{max-width:100%}
  .header-logo{height:40px;min-width:58px;flex-basis:58px;padding:5px}
  .header-logo-prosv{min-width:86px;flex-basis:86px}
  .logo-text .main{font-size:1.05rem}
  .logo-text .sub{display:none}
  .main-nav a:not(.nav-home){padding-left:12px;padding-right:12px}
  .public-shell{display:block;padding:0 16px 48px}
  .global-series-nav{display:none}
  .catalog-controls{grid-template-columns:1fr;padding-top:18px}
  .catalog-controls{gap:10px}
  .catalog-filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .filter-series-mobile{display:block}
  .ctrl-sel{max-width:none}
  .book-layout{grid-template-columns:1fr;gap:30px}
  .book-info{order:1}
  .book-images{order:2}
  .book-facts{order:3}
  .book-images{position:relative;top:auto}
  .book-facts{grid-column:auto;display:flex;max-width:620px}
  .book-details{max-width:760px;margin-left:0}
  .book-title,.book-title.is-long{font-size:2.15rem}
  .s-title{font-size:1.7rem}
  .book-gallery-shell{max-width:460px}
  .footer-inner{grid-template-columns:1fr}
  .footer-socials{align-items:flex-start}
  .section{padding-top:26px;padding-bottom:42px}
}
@media(max-width:560px){
  :root{--nav-h:52px;--search-h:36px;--cat-nav-h:40px}
  .home-lead-day-card .book-card{display:block;max-width:none}
  .home-lead-day-card .bc-cover{
    border-right:0;
    border-bottom:1px solid rgba(190,43,68,.18);
    aspect-ratio:16/9;
    max-height:220px;
  }
  .home-lead-day-card .bc-cover img{object-fit:contain;background:#efe3d8}
  .home-lead-day-card .bc-body{padding:16px}
  .brand-cluster{gap:8px}
  .header-logo-prosv{display:none}
  .header-logo-olma{height:38px;min-width:50px;flex-basis:50px}
  .logo-block{min-width:0}
  .logo-text .main{font-size:.95rem}
  .main-nav a:not(.nav-home),.topbar-socials{display:none}
  .category-nav-toggle{
    position:fixed;z-index:310;top:calc(var(--nav-h) + var(--search-h));right:0;left:0;
    display:flex;align-items:center;justify-content:space-between;
    min-height:var(--cat-nav-h);padding:0 16px;color:var(--ink);background:rgba(255,255,255,.97);
    border:0;border-bottom:1px solid var(--line);font-size:.82rem;font-weight:700;
  }
  .category-nav-toggle::after{content:"+";color:var(--muted);font-size:1.1rem}
  .category-nav-open .category-nav-toggle::after{content:"−"}
  .global-category-nav{display:none;padding:4px 16px}
  .category-nav-open .global-category-nav{display:flex;top:calc(var(--nav-h) + var(--search-h) + var(--cat-nav-h))}
  .category-nav-open .public-shell{padding-top:var(--cat-nav-h)}
  .catalog-filter-panel{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
  .catalog-filter-panel>summary{
    display:flex;align-items:center;justify-content:space-between;
    min-height:48px;padding:10px 14px;color:var(--ink);font-weight:700;cursor:pointer;
  }
  .catalog-filter-panel>summary::after{content:"+";color:var(--muted);font-size:1.1rem}
  .catalog-filter-panel[open]>summary::after{content:"−"}
  .catalog-filter-fields{grid-template-columns:1fr;padding:0 12px 12px}
  .catalog-controls{padding:12px}
  .search-box{min-height:50px}
  .home-search-form{min-height:46px;padding:4px 4px 4px 14px;border-radius:999px}
  .home-search-btn{min-height:32px;padding:0 14px;font-size:.82rem}
  .site-search-bar{padding:0 12px}
  #catalog-grid,.book-strip{grid-template-columns:repeat(2,minmax(150px,1fr));gap:22px 14px}
  .public-page-home .book-strip{grid-template-columns:repeat(2,minmax(150px,1fr))}
  .book-title,.book-title.is-long{font-size:1.85rem}
  .s-title{font-size:1.45rem}
  .s-head{align-items:flex-start;margin-bottom:18px}
  .s-title{max-width:100%;overflow-wrap:anywhere}
  .book-title-row{flex-direction:column}
  .book-page-nav{margin-bottom:14px}
  .book-page-nav-btn{min-height:44px}
  .book-page-nav-home{width:44px}
  .price-list-badge,.price-list-badge-title{width:100%;text-align:left;flex-basis:auto}
  .book-breadcrumb span:last-child,.book-breadcrumb span:nth-last-child(2){display:none}
  .book-gallery-shell{grid-template-columns:1fr}
  .book-thumbs-rail{order:2;flex-direction:row;overflow-x:auto}
  .spread-thumb{flex:0 0 64px}
  .specs-grid{grid-template-columns:1fr}
  .card-inner{flex-direction:column}
  .card-left{flex:none}
  .card-title-row{flex-direction:column}
  .card-price-list-badge{width:100%;min-width:0;text-align:left}
  .site-footer{padding-left:16px;padding-right:16px}
  .nav-home{width:44px;height:44px}
  .global-category-nav .gcat,.global-series-nav .gseries,.mkt-btn,.genre-tag{min-height:44px}
}
@media(max-width:380px){
  #catalog-grid,.book-strip{grid-template-columns:1fr}
  .home-promo-banner__scene{height:178px;grid-template-columns:1fr 92px;grid-template-rows:auto 1fr;gap:2px 6px;padding:8px}
  .home-promo-banner__companions{grid-column:2;grid-row:1 / span 2;flex-direction:column;gap:0}
  .home-promo-banner__companions img{width:38px;height:76px}
  .home-promo-banner__copy{grid-column:1;grid-row:1 / span 2;align-self:center}
  .home-promo-banner__copy strong{font-size:19px}
  .home-promo-banner__copy em{font-size:10px}
  .home-promo-banner__brand{display:none}
}

@media (hover:hover) and (pointer:fine){
  .book-card:hover,.bs-card:hover{transform:translateY(-4px);box-shadow:var(--sh3)}
}
.book-card:active,.bs-card:active{transform:scale(.99)}
.book-card,.bs-card{-webkit-tap-highlight-color:transparent}

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

/* ── Блок «Книга дня» ────────────────────────────────────────────────────── */
.book-of-day{
  position:relative;
  width:min(var(--home-grid-width),100%);
  padding:20px 22px;
  margin:24px 0 34px;
  border:1px solid rgba(190,43,68,.12);
  border-radius:12px;
  background:#f7f1e7;
  box-shadow:0 8px 22px rgba(82,48,38,.08);
  overflow:hidden;
}
.book-of-day__slides{}
.book-of-day__slide{
  display:none;
  grid-template-columns:minmax(0,1fr) minmax(132px,178px);
  gap:22px;
  align-items:center;
}
.book-of-day__slide.is-active{display:grid}
.book-of-day__label{
  font-size:.68rem;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--blue);
  font-weight:700;
  margin-bottom:8px;
}
.book-of-day__event{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  font-size:.78rem;
  line-height:1.3;
  color:#6b4b3c;
  margin-bottom:10px;
  padding:3px 10px;
  border-radius:999px;
  background:rgba(216,74,95,.09);
}
.book-of-day__summary{
  font-size:.82rem;
  line-height:1.45;
  color:#6b5a4f;
  margin-bottom:10px;
  max-width:48ch;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.book-of-day__title{
  font-size:clamp(18px,1.7vw,24px);
  line-height:1.18;
  font-family:var(--serif);
  margin:0 0 6px;
  color:var(--ink);
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.book-of-day__author{
  font-size:.78rem;
  color:var(--muted);
  margin-bottom:12px;
}
.book-of-day__button{
  display:inline-block;
  padding:8px 16px;
  border-radius:999px;
  background:var(--blue);
  color:#fff;
  font-size:.8rem;
  font-weight:600;
  text-decoration:none;
  transition:background var(--ease);
}
.book-of-day__button:hover{background:var(--blue2)}
.book-of-day__cover{display:block}
.book-of-day__cover img{
  width:100%;
  max-height:222px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 10px 16px rgba(0,0,0,.16));
}
.book-of-day__controls{
  position:absolute;
  right:14px;
  bottom:14px;
  display:flex;
  gap:8px;
}
.book-of-day__controls button{
  width:36px;
  height:36px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.85);
  font-size:1.1rem;
  line-height:1;
  cursor:pointer;
  transition:background var(--ease);
}
.book-of-day__controls button:hover{background:#fff}
.book-of-day:not(.has-multiple) .book-of-day__controls{display:none}

/* Режим коллекции */
.book-of-day--collection{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,420px);
  gap:20px;
  align-items:center;
}
.book-of-day__collection{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  align-items:end;
}
.book-of-day__collection-item{
  display:grid;
  gap:8px;
  text-decoration:none;
  color:inherit;
  text-align:center;
}
.book-of-day__collection-item img{
  width:100%;
  max-height:280px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 8px 14px rgba(0,0,0,.18));
  transition:filter var(--ease);
}
.book-of-day__collection-item:hover img{filter:drop-shadow(0 12px 20px rgba(0,0,0,.28))}
.book-of-day__collection-item span{
  font-size:.8rem;
  line-height:1.25;
  color:var(--text);
}

.book-of-day--multi{
  padding:18px 18px 52px;
}
.book-of-day__multi-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.book-of-day--multi .book-of-day__label{
  margin-bottom:6px;
}
.book-of-day--multi .book-of-day__event{
  margin-bottom:0;
}
.book-of-day__count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  flex:0 0 auto;
  border-radius:50%;
  background:#fff;
  color:var(--blue);
  font-size:.78rem;
  font-weight:800;
  box-shadow:0 6px 16px rgba(82,48,38,.08);
}
.book-of-day--multi .book-of-day__slide{
  grid-template-columns:1fr;
  align-items:stretch;
}
.book-of-day__multi-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.book-of-day__mini-card{
  display:grid;
  grid-template-columns:86px minmax(0,1fr);
  gap:12px;
  min-height:198px;
  padding:10px;
  color:inherit;
  text-decoration:none;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(190,43,68,.11);
  border-radius:8px;
  transition:border-color var(--ease),box-shadow var(--ease),transform .16s ease-out;
}
.book-of-day__mini-cover{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  min-width:0;
}
.book-of-day__mini-cover img{
  display:block;
  width:100%;
  max-height:122px;
  object-fit:contain;
  filter:drop-shadow(0 7px 10px rgba(0,0,0,.14));
}
.book-of-day__mini-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding-top:2px;
}
.book-of-day__mini-event{
  margin-bottom:6px;
  color:#765448;
  font-size:.68rem;
  line-height:1.3;
  min-height:2.6em;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.book-of-day__mini-summary{
  margin-bottom:8px;
  color:#8d6b5f;
  font-size:.68rem;
  line-height:1.38;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.book-of-day__mini-title{
  color:var(--ink);
  font-family:var(--serif);
  font-size:1rem;
  font-weight:700;
  line-height:1.18;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.book-of-day__mini-author{
  margin-top:7px;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.3;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media (hover:hover) and (pointer:fine){
  .book-of-day__mini-card:hover{
    border-color:rgba(190,43,68,.28);
    box-shadow:0 10px 22px rgba(82,48,38,.1);
    transform:translateY(-1px);
  }
}
.book-of-day--multi .book-of-day__controls{
  right:18px;
  bottom:12px;
}

@media(max-width:760px){
  .book-of-day{
    padding:16px;
    margin:18px 0 28px;
  }
  .book-of-day__slide{
    grid-template-columns:1fr 120px;
    gap:16px;
  }
  .book-of-day__cover img{max-height:176px}
  .book-of-day__button{padding:7px 14px}
  .book-of-day__multi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .book-of-day__mini-card{
    grid-template-columns:76px minmax(0,1fr);
    min-height:220px;
  }
  .book-of-day__mini-cover img{max-height:112px}
}

@media(max-width:520px){
  .book-of-day__slide{
    grid-template-columns:1fr;
  }
  .book-of-day__cover{
    width:132px;
    margin:0 auto;
  }
  .book-of-day__cover img{max-height:176px}
  .book-of-day--collection{
    grid-template-columns:1fr;
  }
  .book-of-day__multi-head{
    display:block;
  }
  .book-of-day__count{
    display:none;
  }
  .book-of-day__multi-grid{
    grid-template-columns:1fr;
  }
  .book-of-day__mini-card{
    grid-template-columns:80px minmax(0,1fr);
    min-height:210px;
  }
}

/* Collection and series landing pages */
.landing-list-page,.landing-page{width:min(var(--max),100%);margin:0 auto;padding:28px 20px 56px}
.landing-list-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
.landing-list-head h1,.landing-hero h1{margin:0;color:var(--ink);font-size:clamp(2rem,3.8vw,3.8rem);line-height:1.04;font-weight:800;letter-spacing:0}
.landing-list-head p,.landing-hero p{max-width:760px;margin:12px 0 0;color:var(--muted);font-size:1.05rem;line-height:1.65}
.landing-list-grid,.series-list-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.landing-tile,.series-tile{display:flex;min-height:190px;padding:18px;color:inherit;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:8px;transition:border-color .18s ease,transform .16s ease-out,box-shadow .18s ease}
.landing-tile{gap:18px}
.series-tile{flex-direction:column;justify-content:space-between}
@media (hover:hover) and (pointer:fine){
  .landing-tile:hover,.series-tile:hover{border-color:#d7c9b8;transform:translateY(-2px);box-shadow:0 14px 28px rgba(36,28,20,.08)}
}
.landing-tile:active,.series-tile:active{transform:scale(.99)}
.landing-tile-covers{display:grid;grid-template-columns:repeat(2,44px);gap:8px;align-content:start;min-width:96px}
.landing-tile-covers img,.landing-hero-covers img{width:44px;aspect-ratio:3/4;object-fit:contain;background:#f4f1ec;border-radius:4px}
.landing-tile-body{display:flex;flex-direction:column;gap:10px;min-width:0}
.landing-tile-title,.series-tile-title{color:var(--ink);font-size:1.15rem;font-weight:800;line-height:1.22}
.landing-tile-desc,.series-tile-desc{color:var(--muted);font-size:.95rem;line-height:1.5}
.landing-tile-meta,.series-tile-meta,.landing-hero-meta{color:var(--gold);font-size:.78rem;font-weight:800;text-transform:uppercase}
.landing-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,360px);gap:32px;align-items:end;margin:8px 0 34px;padding:clamp(24px,4vw,48px);background:linear-gradient(135deg,#fff 0%,#f7f4ef 100%);border:1px solid var(--line);border-radius:22px;box-shadow:0 12px 34px rgba(36,28,20,.06)}
.landing-hero-copy{min-width:0}
.landing-hero-media{min-width:0}
.landing-hero-media img{display:block;width:100%;max-height:360px;object-fit:contain;border-radius:12px;background:#f4f1ec;box-shadow:0 8px 22px rgba(36,28,20,.08)}
.landing-hero-covers{display:grid;grid-template-columns:repeat(4,minmax(52px,1fr));gap:12px;align-items:end}
.landing-hero-covers img{width:100%;max-height:220px}
.landing-book-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));align-items:start}
.landing-book-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:18px;align-items:start}
.landing-layout-editorial .landing-book-grid .book-card:first-child{grid-column:span 2}
.landing-layout-compact .landing-book-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.s-title a,.home-lead-title a{color:inherit;text-decoration:none}
.s-title a:hover,.home-lead-title a:hover{color:var(--blue2)}
@media (max-width:760px){
  .landing-list-page,.landing-page{padding:20px 16px 42px}
  .landing-list-head,.landing-hero{display:block}
  .landing-hero{padding:22px 18px;border-radius:16px}
  .landing-hero-media,.landing-hero-covers{margin-top:20px}
  .landing-hero-covers{grid-template-columns:repeat(4,1fr)}
  .landing-layout-editorial .landing-book-grid .book-card:first-child{grid-column:auto}
}

/* Адаптив */
@media(max-width:760px){
  .book-of-day{padding:24px 20px}
  .book-of-day__slide{
    grid-template-columns:1fr;
    gap:20px;
  }
  .book-of-day__cover{max-width:220px;margin:0 auto}
  .book-of-day--collection{grid-template-columns:1fr;gap:16px}
  .book-of-day__collection{gap:10px}
  .book-of-day__collection-item img{max-height:200px}
  .book-of-day__controls{right:12px;bottom:12px}
}
