/* PIR Nashr • responsive storefront. No external fonts or dependencies. */
:root {
  --ink:#092d48;
  --teal:#006c80;
  --teal-dark:#00576b;
  --teal-pale:#eaf5f7;
  --peach:#ed906b;
  --peach-dark:#d66f46;
  --peach-pale:#fff0e7;
  --paper:#fff;
  --cream:#f8f4ee;
  --muted:#62788a;
  --line:#e5ebee;
  --green:#128158;
  --red:#c64343;
  --star:#f6a20d;
  --radius:10px;
  --shadow:0 4px 18px rgba(18,49,66,.05);
  --max:1320px
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:24px
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:14px/1.55 Arial,Helvetica,sans-serif;
  -webkit-font-smoothing:antialiased
}

body.modal-open {
  overflow:hidden
}

button,input,select,textarea {
  font:inherit
}

button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent
}

button {
  cursor:pointer
}

button:disabled {
  cursor:not-allowed;
  opacity:.5
}

a {
  color:inherit;
  text-decoration:none
}

a:hover {
  color:var(--teal)
}

img {
  display:block;
  max-width:100%
}

h1,h2,h3,p {
  margin:0
}

h1,h2,.serif {
  font-family:Georgia,'Times New Roman',serif;
  font-weight:700;
  letter-spacing:-.035em
}

h1 {
  font-size:40px;
  line-height:1.13
}

h2 {
  font-size:27px;
  line-height:1.25
}

h3 {
  font-size:17px;
  line-height:1.35
}

ul {
  padding:0;
  margin:0;
  list-style:none
}

fieldset {
  padding:0;
  margin:0;
  border:0;
  min-width:0
}

legend {
  padding:0
}

hr {
  height:1px;
  border:0;
  background:var(--line);
  margin:20px 0
}

[hidden] {
  display:none!important
}

:focus-visible {
  outline:3px solid #d1794d;
  outline-offset:4px
}

::selection {
  background:#c9e8ed;
  color:var(--ink)
}

.container {
  width:min(var(--max),calc(100% - 64px));
  margin-inline:auto
}

.icon {
  width:21px;
  height:21px;
  display:inline-block;
  flex:0 0 auto;
  vertical-align:middle;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round
}

.icon.sm {
  width:16px;
  height:16px
}

.icon.lg {
  width:32px;
  height:32px
}

.muted {
  color:var(--muted)
}

.small {
  font-size:12px
}

.tiny {
  font-size:11px
}

.nowrap {
  white-space:nowrap
}

.teal {
  color:var(--teal)
}

.link {
  color:var(--teal);
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:13px;
  font-weight:600;
  background:none;
  border:0;
  padding:0
}

.link:hover {
  text-decoration:underline
}

.link.danger,.danger {
  color:var(--red)
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:42px;
  padding:10px 20px;
  border-radius:6px;
  border:1px solid var(--teal);
  background:var(--teal);
  color:white;
  font-size:14px;
  font-weight:600;
  line-height:1.3;
  transition:background .18s,box-shadow .18s,transform .18s;
  text-align:center
}

.btn:hover {
  background:var(--teal-dark);
  border-color:var(--teal-dark);
  color:white;
  box-shadow:0 4px 10px #006c8015
}

.btn.peach {
  background:var(--peach);
  border-color:var(--peach);
  color:#fff
}

.btn.peach:hover {
  background:var(--peach-dark);
  border-color:var(--peach-dark)
}

.btn.outline {
  background:white;
  border-color:#aac5cc;
  color:var(--teal)
}

.btn.outline:hover {
  background:var(--teal-pale);
  border-color:var(--teal)
}

.btn.soft {
  background:var(--teal-pale);
  border-color:var(--teal-pale);
  color:var(--teal)
}

.btn.small {
  min-height:34px;
  padding:7px 12px;
  font-size:12px
}

.btn.full {
  width:100%
}

.btn.big {
  min-height:48px;
  font-size:16px;
  padding:12px 24px
}

.icon-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  border:1px solid transparent;
  color:var(--teal);
  width:38px;
  height:38px;
  border-radius:7px;
  padding:6px;
  flex:0 0 auto
}

.icon-btn:hover {
  background:var(--teal-pale)
}

.icon-btn.bordered {
  border-color:var(--line);
  background:#fff
}

.icon-btn.active {
  background:var(--teal);
  color:white;
  border-color:var(--teal)
}

.icon-btn.round {
  border-radius:50%;
  background:white;
  box-shadow:var(--shadow)
}

.heart.is-saved {
  color:var(--peach-dark)
}

.heart.is-saved .icon {
  fill:var(--peach);
  stroke:var(--peach)
}

.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 9px;
  border-radius:5px;
  background:var(--teal-pale);
  color:var(--teal);
  font-size:11px;
  font-weight:600;
  line-height:1.4
}

.badge.peach {
  background:var(--peach-pale);
  color:#bb4b28
}

.badge.green {
  background:#e7f6ee;
  color:var(--green)
}

.badge.blue {
  background:#e9f4ff;
  color:#146aaa
}

.badge.red {
  background:#ffeded;
  color:var(--red)
}

.card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow)
}

.panel {
  padding:24px
}

.section {
  margin-top:34px
}

.section-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:18px
}

.section-head p {
  margin-top:4px;
  color:var(--muted);
  font-size:13px
}

.section-head .link {
  flex-shrink:0
}

.skip-link {
  position:fixed;
  left:16px;
  top:-60px;
  z-index:200;
  background:var(--teal);
  color:#fff;
  padding:12px 20px
}

.skip-link:focus {
  top:16px
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}

.page {
  padding-bottom:48px;
  min-height:56vh
}

.page-inner {
  padding-top:28px
}

.site-header {
  background:#fff;
  position:relative;
  z-index:30
}

.utility {
  background:#e7f0f2;
  font-size:11px;
  line-height:32px;
  color:#315369
}

.utility .container {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px
}

.utility-links {
  display:flex;
  gap:27px;
  align-items:center
}

.utility a {
  display:inline-flex;
  align-items:center;
  gap:6px
}

.utility select {
  background:none;
  border:0;
  color:var(--ink);
  padding:0;
  font-size:11px
}

.demo-badge {
  font:9px Arial,sans-serif;
  letter-spacing:1px;
  padding:3px 6px;
  border:1px solid #b8ced3;
  border-radius:3px;
  vertical-align:middle;
  color:#456776
}

.main-header {
  display:grid;
  grid-template-columns:238px minmax(220px,1fr) auto;
  gap:32px;
  align-items:center;
  min-height:83px
}

.brand {
  display:inline-block;
  width:222px;
  flex-shrink:0
}

.brand img {
  width:100%;
  height:auto;
  mix-blend-mode:multiply
}

.search-form {
  position:relative;
  display:flex;
  height:44px;
  border:1px solid #ced9de;
  border-radius:6px;
  background:#fff;
  min-width:0
}

.search-form:focus-within {
  border-color:var(--teal);
  box-shadow:0 0 0 3px #006c800d
}

.search-form input {
  background:none;
  border:0;
  min-width:0;
  flex:1;
  padding:0 17px;
  outline:0;
  font-size:12px
}

.search-form>button {
  width:50px;
  margin:-1px;
  background:var(--teal);
  border:0;
  color:#fff;
  border-radius:5px
}

.search-form>button:hover {
  background:var(--teal-dark)
}

.header-actions {
  display:flex;
  align-items:center;
  gap:28px
}

.header-action {
  display:flex;
  align-items:center;
  gap:9px;
  white-space:nowrap;
  font-size:12px
}

.header-action .icon {
  width:25px;
  height:25px;
  color:var(--teal)
}

.header-action small {
  display:block;
  line-height:1.3;
  font-size:10px
}

.cart-symbol {
  position:relative;
  display:inline-flex
}

.cart-badge {
  position:absolute;
  right:-8px;
  top:-8px;
  min-width:17px;
  height:17px;
  border-radius:50%;
  background:var(--teal);
  color:#fff;
  text-align:center;
  font-size:10px;
  line-height:17px;
  padding:0 4px;
  border:1px solid white
}

.mobile-menu-btn {
  display:none
}

.site-nav {
  border-top:1px solid #f0f3f4;
  border-bottom:1px solid var(--line)
}

.nav-inner {
  display:flex;
  align-items:center;
  min-height:45px;
  gap:27px;
  position:relative
}

.nav-inner>a,.catalog-menu-button {
  font-size:12px;
  white-space:nowrap;
  line-height:44px;
  position:relative
}

.nav-inner>a.active:after {
  position:absolute;
  bottom:0;
  height:2px;
  background:var(--teal);
  content:'';
  left:0;
  right:0
}

.catalog-menu-button {
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--teal);
  padding:0 22px 0 0;
  border:0;
  border-right:1px solid var(--line);
  background:#fff;
  font-weight:600
}

.mega-menu {
  position:absolute;
  top:46px;
  left:0;
  right:0;
  background:#fff;
  padding:28px;
  border:1px solid var(--line);
  border-radius:0 0 12px 12px;
  box-shadow:0 18px 28px #092d481c;
  z-index:40;
  display:grid;
  grid-template-columns:1fr 300px;
  gap:30px
}

.mega-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px
}

.mega-grid a {
  display:flex;
  align-items:center;
  gap:12px;
  border-radius:7px;
  padding:13px;
  background:#fafbfb
}

.mega-grid a:hover {
  background:var(--teal-pale)
}

.mega-grid img {
  width:55px;
  height:42px;
  object-fit:cover;
  border-radius:5px
}

.mega-promo {
  background:var(--cream);
  border-radius:8px;
  padding:22px
}

.mega-promo h3 {
  font-family:Georgia,serif;
  font-size:25px;
  margin:10px 0 16px
}

.search-suggestions {
  position:absolute;
  z-index:55;
  top:49px;
  left:-1px;
  right:-1px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 10px 22px #092d481a;
  padding:8px;
  max-height:400px;
  overflow:auto
}

.search-suggestion {
  display:flex;
  gap:13px;
  align-items:center;
  padding:9px;
  border-radius:5px
}

.search-suggestion:hover {
  background:var(--cream)
}

.search-suggestion img {
  width:31px;
  height:43px;
  object-fit:contain
}

.search-suggestion strong {
  font-size:12px;
  display:block
}

.search-suggestion small {
  font-size:11px;
  color:var(--muted)
}

/* Homepage */
.hero {
  position:relative;
  isolation:isolate;
  min-height:390px;
  overflow:hidden;
  background:var(--cream)
}

.hero-photo {
  position:absolute;
  right:0;
  top:0;
  width:54%;
  height:100%;
  object-fit:cover;
  object-position:center;
  z-index:-2
}

.hero:after {
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,#f8f4ee 0%,#f8f4ee 41%,#f8f4eecc 47%,#f8f4ee00 62%)
}

.hero-ornament {
  position:absolute;
  inset:0 auto 0 0;
  width:11%;
  opacity:.3;
  z-index:-1;
  background-image:radial-gradient(ellipse at 15% 42%,transparent 42%,#e9dac6 43%,#e9dac6 47%,transparent 48%),radial-gradient(ellipse at 50% 10%,transparent 40%,#e9dac6 41%,#e9dac6 45%,transparent 46%);
  background-size:90px 85px
}

.hero-copy {
  padding:60px 8% 25px;
  width:60%;
  max-width:700px
}

.hero h1 {
  font-size:46px;
  line-height:1.05;
  margin-bottom:15px;
  max-width:490px
}

.hero-copy>p {
  font-family:Georgia,serif;
  font-size:22px;
  line-height:1.35;
  max-width:400px;
  margin-bottom:23px
}

.hero-copy>.btn {
  padding-inline:26px;
  min-height:47px;
  font-size:16px;
  border-radius:8px
}

.hero-signature {
  position:absolute;
  left:45%;
  top:33%;
  color:var(--teal);
  font:italic 26px/1.2 Georgia,serif;
  max-width:125px
}

.hero-signature:after,.quote-line:after {
  content:'';
  width:43px;
  height:2px;
  background:var(--peach);
  display:block;
  margin-top:23px
}

.hero-controls {
  display:flex;
  align-items:center;
  gap:15px;
  margin-top:26px
}

.hero-dots {
  display:flex;
  align-items:center;
  gap:11px
}

.hero-dot {
  padding:0;
  width:9px;
  height:9px;
  border:1px solid #cbbd9f;
  border-radius:50%;
  background:transparent
}

.hero-dot.active {
  border-color:var(--teal);
  background:var(--teal)
}

.benefits {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  padding:22px 0;
  gap:0;
  border-bottom:1px solid var(--line)
}

.benefit {
  display:flex;
  align-items:center;
  gap:19px;
  padding:0 22px;
  border-right:1px solid var(--line)
}

.benefit:first-child {
  padding-left:12px
}

.benefit:last-child {
  border:0
}

.benefit .icon {
  color:var(--teal);
  width:32px;
  height:32px
}

.benefit strong {
  display:block;
  font-size:13px
}

.benefit p {
  font-size:12px;
  color:var(--muted);
  margin-top:3px
}

.category-grid {
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:16px
}

.category-card {
  border-radius:8px;
  overflow:hidden;
  background:#f6f2ed;
  text-align:center;
  transition:transform .18s,box-shadow .18s;
  border:1px solid transparent;
  min-width:0
}

.category-card:hover {
  transform:translateY(-3px);
  box-shadow:var(--shadow);
  border-color:#dcc8af
}

.category-card img {
  width:100%;
  height:91px;
  object-fit:cover
}

.category-card strong {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:33px;
  padding:7px 4px;
  font-size:12px;
  line-height:1.25
}

.category-card:last-child {
  background:#ffdeca
}

.editor-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:17px
}

.book-card {
  position:relative;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  overflow:hidden;
  transition:border .18s,box-shadow .18s,transform .18s;
  min-width:0;
  display:flex;
  flex-direction:column
}

.book-card:hover {
  border-color:#b4cdd3;
  box-shadow:var(--shadow);
  transform:translateY(-2px)
}

.book-card>.heart {
  position:absolute;
  right:7px;
  top:7px;
  z-index:2;
  width:30px;
  height:30px;
  color:#5b7384;
  background:#ffffffd9;
  border-radius:50%
}

.book-card>.heart.is-saved {
  color:var(--peach-dark)
}

.book-card>.discount-tag {
  position:absolute;
  top:13px;
  left:12px;
  z-index:2
}

.book-cover {
  display:flex;
  align-items:center;
  justify-content:center;
  height:220px;
  padding:21px 21px 14px;
  background:linear-gradient(160deg,#faf9f7,#fff)
}

.book-cover img {
  height:100%;
  width:100%;
  object-fit:contain;
  filter:drop-shadow(2px 5px 3px #192c3821)
}

.book-body {
  padding:12px 14px 14px;
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0
}

.book-title {
  font-size:14px;
  font-weight:600;
  line-height:1.3;
  min-height:36px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-bottom:4px
}

.book-author {
  color:var(--muted);
  font-size:12px;
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:31px;
  margin-bottom:7px
}

.rating {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  white-space:nowrap;
  color:var(--muted)
}

.stars {
  color:var(--star);
  font-size:15px;
  letter-spacing:1px;
  line-height:1.4
}

.book-price {
  font-size:16px;
  font-weight:700;
  color:#092230;
  display:flex;
  align-items:baseline;
  gap:9px;
  flex-wrap:wrap;
  margin:4px 0 9px;
  line-height:1.3
}

.book-price del {
  font-weight:400;
  color:#85909c;
  font-size:10px
}

.book-body>.btn {
  margin-top:auto;
  min-height:35px;
  font-size:12px;
  padding:7px 6px;
  width:100%;
  gap:7px
}

.book-body>.btn .icon {
  width:18px;
  height:18px
}

.book-card.compact {
  flex-direction:row;
  padding:14px 12px;
  box-shadow:var(--shadow)
}

.book-card.compact .book-cover {
  width:94px;
  height:152px;
  padding:0 8px 0 0;
  flex:0 0 auto;
  background:transparent
}

.book-card.compact .book-body {
  padding:1px 0 0 5px;
  min-width:0
}

.book-card.compact .book-title {
  font-size:12px;
  padding-right:16px;
  min-height:32px;
  -webkit-line-clamp:3
}

.book-card.compact .book-author {
  font-size:10px;
  min-height:16px;
  margin-bottom:5px
}

.book-card.compact .book-price {
  font-size:14px;
  margin:4px 0 7px
}

.book-card.compact .rating {
  font-size:10px;
  gap:5px
}

.book-card.compact .stars {
  font-size:13px;
  letter-spacing:0
}

.book-card.compact .btn {
  font-size:11px;
  min-height:32px;
  padding:6px 3px;
  gap:5px
}

.book-card.compact>.heart {
  width:25px;
  height:25px;
  right:4px;
  top:5px
}

.book-card.compact>.heart .icon {
  width:17px;
  height:17px
}

.shelf-grid {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:17px
}

.shelf-grid .book-cover {
  height:200px
}

.split-promos {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-top:38px
}

.promo-panel {
  display:flex;
  position:relative;
  align-items:center;
  min-height:190px;
  border-radius:10px;
  padding:29px 34px;
  background:var(--cream);
  overflow:hidden
}

.promo-panel.blue {
  background:#edf5f7
}

.promo-panel>div {
  position:relative;
  z-index:1;
  width:70%
}

.promo-panel h2 {
  font-size:28px;
  margin:7px 0 9px
}

.promo-panel p {
  font-size:13px;
  color:var(--muted);
  margin-bottom:17px
}

.promo-panel>img {
  position:absolute;
  right:0;
  bottom:0;
  width:42%;
  height:100%;
  object-fit:cover;
  mix-blend-mode:multiply;
  opacity:.75
}

.newsletter {
  margin-top:40px;
  border-radius:10px;
  background:var(--cream);
  padding:32px 42px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:35px;
  align-items:center
}

.newsletter h2 {
  font-size:28px;
  margin-bottom:8px
}

.newsletter p {
  color:var(--muted);
  font-size:13px
}

.newsletter form {
  display:flex;
  gap:10px
}

.newsletter input {
  width:100%;
  min-width:0
}

.cover-design {
  height:100%;
  width:128px;
  max-width:100%;
  aspect-ratio:.68;
  background:var(--teal);
  color:#fff;
  padding:17px 10px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow:2px 5px 7px #092d4830;
  border-radius:2px;
  position:relative;
  border-left:6px solid #ffffff25;
  overflow:hidden
}

.cover-design:after {
  content:'';
  position:absolute;
  right:-30px;
  bottom:-50px;
  width:150px;
  height:150px;
  border:1px solid #ffffff50;
  border-radius:50%
}

.cover-design.coral {
  background:#ba5347
}

.cover-design strong {
  font-family:Georgia,serif;
  font-size:20px;
  line-height:1.2;
  z-index:1
}

.cover-design small {
  font-size:8px;
  text-transform:uppercase;
  letter-spacing:1.1px
}

.cover-design span {
  font-size:11px;
  z-index:1
}

.mini-breadcrumb {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  font-size:11px;
  color:var(--muted);
  padding:20px 0
}

.mini-breadcrumb .icon {
  width:14px;
  height:14px
}

.mini-breadcrumb a:hover {
  text-decoration:underline
}

.page-banner {
  position:relative;
  overflow:hidden;
  background:var(--cream);
  isolation:isolate;
  min-height:151px;
  padding:30px 42px;
  border-radius:0
}

.page-banner .mini-breadcrumb {
  padding:0 0 13px
}

.page-banner h1 {
  font-size:37px;
  max-width:73%;
  margin-bottom:8px
}

.page-banner>p {
  font-family:Georgia,serif;
  font-size:19px;
  max-width:64%;
  line-height:1.4
}

.page-banner>img {
  position:absolute;
  right:0;
  top:0;
  width:37%;
  height:100%;
  object-fit:cover;
  object-position:center 49%;
  z-index:-2
}

.page-banner:after {
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,var(--cream) 0%,var(--cream) 59%,#f8f4ee9e 71%,#f8f4ee00 100%)
}

.page-banner .hero-signature {
  left:auto;
  right:27%;
  top:21%;
  font-size:20px;
  width:110px
}

.page-banner .hero-signature:after {
  margin-top:11px
}

.catalog-layout {
  display:grid;
  grid-template-columns:222px minmax(0,1fr);
  gap:27px;
  margin-top:27px;
  align-items:start
}

.filters {
  border-right:1px solid var(--line);
  padding-right:22px
}

.filter-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:13px
}

.filter-heading h2 {
  font-size:21px
}

.filter-heading .link {
  font-size:10px
}

.filter-section {
  padding:15px 0;
  border-bottom:1px solid var(--line)
}

.filter-section:first-of-type {
  padding-top:4px
}

.filter-section summary {
  display:flex;
  justify-content:space-between;
  align-items:center;
  list-style:none;
  cursor:pointer;
  font-weight:600;
  font-size:13px
}

.filter-section summary::-webkit-details-marker {
  display:none
}

.filter-section summary:after {
  content:'⌄';
  font-size:18px;
  color:var(--teal)
}

.filter-section[open] summary:after {
  transform:rotate(180deg)
}

.filter-options {
  display:grid;
  gap:9px;
  margin-top:13px
}

.check-row {
  display:flex;
  gap:9px;
  align-items:center;
  font-size:12px;
  cursor:pointer;
  color:#34526b
}

.check-row input {
  accent-color:var(--teal);
  width:16px;
  height:16px;
  margin:0;
  flex:0 0 auto
}

.check-row small {
  color:#8995a1;
  margin-left:auto
}

.filter-options select {
  width:100%;
  font-size:12px
}

.price-inputs {
  display:flex;
  gap:7px;
  align-items:center
}

.price-inputs input {
  min-width:0;
  width:100%;
  height:32px;
  padding:5px 7px;
  font-size:11px
}

.range {
  width:100%;
  accent-color:var(--teal);
  margin-top:13px;
  height:5px
}

.catalog-top {
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:center;
  margin-bottom:15px
}

.catalog-top>p {
  font-size:14px
}

.sort-tools {
  display:flex;
  align-items:center;
  gap:8px
}

.sort-tools select {
  max-width:218px;
  font-size:12px;
  padding-block:9px;
  height:38px
}

.view-tools {
  display:flex;
  gap:5px
}

.view-tools .icon-btn {
  width:35px;
  height:35px
}

.chips {
  display:flex;
  gap:9px;
  overflow:auto;
  padding-bottom:6px;
  margin-bottom:16px;
  scrollbar-width:thin
}

.chip {
  padding:8px 16px;
  line-height:1.2;
  border:1px solid var(--line);
  background:#fff;
  border-radius:22px;
  font-size:12px;
  color:#34526b;
  white-space:nowrap;
  flex:0 0 auto
}

.chip.active {
  background:#d5ecf0;
  border-color:#d5ecf0;
  color:var(--teal);
  font-weight:600
}

.chip:hover {
  border-color:#a5c5cd
}

.product-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:17px
}

.product-grid.list-view {
  grid-template-columns:1fr 1fr
}

.product-grid.list-view .book-card {
  flex-direction:row;
  padding:16px;
  gap:15px
}

.product-grid.list-view .book-cover {
  width:110px;
  height:155px;
  padding:0;
  flex:0 0 auto
}

.product-grid.list-view .book-body {
  padding:4px 0
}

.product-grid.list-view .book-title {
  padding-right:10px
}

.product-grid.list-view .book-author {
  min-height:0
}

.pagination {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-top:26px
}

.pagination a,.pagination button {
  display:flex;
  justify-content:center;
  align-items:center;
  min-width:33px;
  height:34px;
  border:1px solid transparent;
  border-radius:5px;
  background:#fff;
  color:var(--ink);
  padding:0 8px
}

.pagination .active {
  background:var(--teal);
  color:white
}

.pagination button:hover {
  border-color:#b6ced4
}

.catalog-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between
}

.catalog-bottom .small {
  align-self:flex-end;
  margin-bottom:7px
}

.mobile-filter-button {
  display:none
}

.related-searches {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:25px;
  border-top:1px solid var(--line);
  padding-top:20px
}

.related-searches strong {
  font-family:Georgia,serif;
  font-size:16px;
  margin-right:8px
}

.all-categories {
  grid-template-columns:repeat(4,1fr);
  gap:22px;
  margin-top:32px
}

.all-categories .category-card img {
  height:160px
}

.all-categories .category-card strong {
  font-size:17px;
  padding:15px
}

.all-categories .category-card p {
  padding:0 8px 16px;
  color:var(--muted);
  font-size:12px
}

/* Product page */
.product-layout {
  display:grid;
  grid-template-columns:minmax(0,.93fr) minmax(0,1.07fr);
  gap:36px;
  align-items:start
}

.product-gallery {
  display:grid;
  grid-template-columns:73px 1fr;
  gap:16px;
  min-width:0
}

.gallery-thumbnails {
  display:grid;
  align-content:start;
  gap:13px
}

.gallery-thumb {
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--cream);
  height:88px;
  padding:5px;
  overflow:hidden;
  color:var(--teal)
}

.gallery-thumb img {
  height:100%;
  width:100%;
  object-fit:contain
}

.gallery-thumb.active {
  border-color:var(--teal);
  box-shadow:0 0 0 1px var(--teal)
}

.gallery-main {
  background:var(--cream);
  border-radius:9px;
  min-height:482px;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden
}

.gallery-main>img {
  width:100%;
  height:482px;
  object-fit:cover
}

.gallery-main>img.contain {
  width:67%;
  height:360px;
  object-fit:contain;
  filter:drop-shadow(6px 12px 10px #092d482b)
}

.gallery-main>.cover-design {
  height:350px;
  width:235px
}

.gallery-main>.cover-design strong {
  font-size:38px
}

.gallery-main .zoom {
  position:absolute;
  bottom:15px;
  right:15px
}

.product-details .title-row {
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:start;
  margin:9px 0
}

.product-details h1 {
  font-size:39px;
  margin-top:5px
}

.product-details .subtitle {
  font-family:Georgia,serif;
  font-size:24px;
  line-height:1.2;
  margin-top:4px
}

.product-details .author-link {
  color:var(--teal);
  font-size:15px;
  margin:8px 0;
  display:inline-block
}

.product-rating {
  display:flex;
  align-items:center;
  gap:15px;
  flex-wrap:wrap;
  margin:6px 0 15px
}

.product-rating .stars {
  font-size:19px
}

.product-rating .link {
  border-left:1px solid var(--line);
  padding-left:15px;
  font-weight:400;
  font-size:12px
}

.product-price {
  display:flex;
  gap:17px;
  align-items:center;
  flex-wrap:wrap;
  font-size:30px;
  line-height:1.25;
  font-weight:700;
  margin-bottom:10px
}

.product-price del {
  font-size:14px;
  font-weight:400;
  color:var(--muted)
}

.stock {
  display:flex;
  gap:7px;
  align-items:center;
  font-size:12px;
  color:var(--green);
  margin-bottom:14px
}

.stock:before {
  content:'';
  width:8px;
  height:8px;
  background:var(--green);
  border-radius:50%
}

.product-description {
  font-size:13px;
  line-height:1.7;
  color:#315068;
  margin:0 0 18px
}

.format-options {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin:8px 0 18px
}

.format-card {
  padding:11px 9px;
  border:1px solid var(--line);
  border-radius:5px;
  display:flex;
  align-items:center;
  gap:9px;
  cursor:pointer;
  background:#fff;
  text-align:left;
  position:relative;
  color:var(--ink);
  min-width:0
}

.format-card strong {
  font-size:11px;
  display:block;
  line-height:1.3
}

.format-card small {
  font-size:11px;
  display:block;
  font-weight:700;
  margin-top:3px
}

.format-card .icon {
  color:var(--teal)
}

.format-card.active {
  border-color:var(--teal);
  background:#f1f9fb;
  box-shadow:0 0 0 1px #006c8015
}

.product-purchase {
  display:flex;
  gap:11px;
  align-items:center;
  margin-bottom:16px
}

.quantity {
  display:inline-flex;
  height:35px;
  border:1px solid #cfdde2;
  border-radius:5px;
  align-items:center;
  background:#fff;
  overflow:hidden;
  flex:0 0 auto
}

.quantity button {
  width:31px;
  height:27px;
  border:0;
  background:#fff;
  color:var(--teal);
  font-size:18px;
  padding:0
}

.quantity button:hover {
  background:var(--teal-pale)
}

.quantity output {
  width:32px;
  text-align:center;
  font-size:12px;
  font-weight:600;
  border-inline:1px solid var(--line);
  line-height:22px
}

.product-purchase>.btn {
  flex:1;
  padding-inline:8px;
  min-height:44px;
  white-space:nowrap
}

.product-trust {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:12px
}

.product-trust>div {
  display:flex;
  align-items:center;
  gap:8px;
  line-height:1.4
}

.product-trust .icon {
  color:var(--teal);
  width:25px;
  height:25px
}

.product-trust strong {
  font-size:10px;
  display:block
}

.product-trust small {
  font-size:9px;
  color:var(--muted)
}

.detail-bottom {
  display:grid;
  grid-template-columns:1.6fr 1fr;
  gap:23px;
  margin-top:30px
}

.tab-buttons {
  display:flex;
  align-items:center;
  gap:5px;
  border-bottom:1px solid var(--line)
}

.tab-button {
  background:#fff;
  border:0;
  border-bottom:2px solid transparent;
  padding:15px 25px;
  color:var(--ink);
  font-family:Georgia,serif;
  font-size:16px
}

.tab-button.active {
  color:var(--teal);
  border-bottom-color:var(--teal)
}

.tab-content {
  padding:21px 23px;
  font-size:13px;
  line-height:1.8
}

.tab-content h3 {
  font-family:Georgia,serif;
  font-size:18px;
  margin-bottom:10px
}

.tab-content p+p {
  margin-top:13px
}

.specs {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 20px;
  margin-top:20px
}

.spec {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:9px 0;
  border-bottom:1px solid var(--line);
  font-size:12px
}

.spec span {
  color:var(--muted)
}

.delivery-card {
  padding:23px;
  background:#f8fafb;
  border:1px solid var(--line);
  border-radius:8px
}

.delivery-info {
  display:flex;
  gap:13px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  font-size:12px
}

.delivery-info:first-child {
  padding-top:0
}

.delivery-info:last-child {
  border:0;
  padding-bottom:0
}

.delivery-info .icon {
  color:var(--teal);
  width:25px;
  height:25px
}

.delivery-info strong {
  display:block
}

.delivery-info p {
  font-size:11px;
  color:var(--muted);
  margin-top:2px
}

.review {
  padding:15px 0;
  border-bottom:1px solid var(--line)
}

.review-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:7px
}

.book-preview {
  padding:28px 35px;
  min-height:300px;
  width:100%;
  background:#fffcf5;
  font-family:Georgia,serif;
  line-height:1.85
}

.book-preview h2 {
  font-size:28px;
  margin-bottom:18px
}

.book-preview .preview-label {
  font-family:Arial,sans-serif;
  color:var(--teal);
  font-size:10px;
  letter-spacing:2px;
  margin-bottom:12px
}

.book-preview p {
  margin-top:12px
}

/* Wishlist and cart */
.wishlist-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:18px
}

.wishlist-grid .stock {
  font-size:11px;
  margin-bottom:9px
}

.remove-favorite {
  font-size:10px;
  margin:10px auto 0;
  gap:5px
}

.remove-favorite .icon {
  width:14px;
  height:14px
}

.empty-state {
  grid-column:1/-1;
  text-align:center;
  max-width:640px;
  margin:30px auto;
  padding:48px 24px;
  display:flex;
  flex-direction:column;
  align-items:center
}

.empty-state>.icon {
  color:var(--teal);
  width:65px;
  height:65px;
  margin:0 0 24px;
  stroke-width:1
}

.empty-state h2 {
  font-size:28px
}

.empty-state p {
  color:var(--muted);
  margin:12px 0 24px;
  font-size:14px;
  max-width:400px
}

.cart-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:28px;
  margin-top:28px;
  align-items:start
}

.cart-list {
  padding:0 20px;
  box-shadow:none
}

.cart-table-head {
  display:grid;
  grid-template-columns:minmax(0,1fr) 90px 100px 90px 105px 30px;
  gap:12px;
  font-size:11px;
  font-weight:600;
  padding:16px 0;
  border-bottom:1px solid var(--line)
}

.cart-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) 90px 100px 90px 105px 30px;
  gap:12px;
  align-items:center;
  padding:20px 0;
  border-bottom:1px solid var(--line)
}

.cart-book {
  display:flex;
  gap:18px;
  align-items:center;
  min-width:0
}

.cart-book>a {
  flex:0 0 72px;
  height:100px;
  display:flex;
  align-items:center;
  justify-content:center
}

.cart-book>a>img {
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(1px 3px 2px #092d4815)
}

.cart-book>a>.cover-design {
  width:65px;
  height:94px;
  padding:6px
}

.cart-book>a>.cover-design strong {
  font-size:10px
}

.cart-book>a>.cover-design small {
  font-size:5px
}

.cart-book>a>.cover-design span {
  font-size:6px
}

.cart-book h3 {
  font-family:Georgia,serif;
  font-size:14px;
  line-height:1.35
}

.cart-book p {
  font-size:12px;
  color:var(--muted);
  margin:4px 0 8px
}

.cart-book .stock {
  font-size:11px;
  margin:0
}

.cart-format {
  display:flex;
  gap:8px;
  align-items:center;
  font-size:11px;
  line-height:1.5;
  color:var(--muted)
}

.cart-format .icon {
  color:var(--teal)
}

.cart-unit,.cart-subtotal {
  font-weight:600;
  font-size:13px;
  white-space:nowrap
}

.cart-row .quantity {
  height:32px
}

.cart-row .quantity button {
  width:26px
}

.cart-row .quantity output {
  width:29px
}

.cart-row .icon-btn {
  width:28px;
  padding:3px
}

.promo-code {
  padding:16px;
  margin:16px 0;
  display:flex;
  align-items:center;
  gap:13px;
  border-radius:6px;
  background:#f3f7f8;
  flex-wrap:wrap
}

.promo-code label {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px;
  font-weight:600;
  color:var(--teal)
}

.promo-code form {
  display:flex;
  gap:7px;
  flex:1;
  min-width:160px
}

.promo-code input {
  flex:1;
  min-width:0;
  font-size:12px;
  height:36px
}

.promo-code button {
  height:36px;
  min-height:36px;
  font-size:12px;
  padding:7px 13px
}

.coupon-feedback {
  font-size:11px;
  color:var(--green);
  flex-basis:100%
}

.summary-card {
  padding:23px;
  position:sticky;
  top:20px
}

.summary-card h2 {
  font-size:25px;
  margin-bottom:22px
}

.summary-line {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:12px 0;
  font-size:13px;
  align-items:center
}

.summary-line>span:first-child {
  color:var(--muted)
}

.summary-line strong {
  white-space:nowrap
}

.summary-total {
  padding:18px 0;
  margin-top:20px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  font:700 23px/1.25 Georgia,serif
}

.summary-card>.btn {
  margin:4px 0 14px
}

.notice {
  background:#edf7fa;
  border-radius:6px;
  padding:14px;
  display:flex;
  gap:11px;
  align-items:flex-start;
  color:var(--teal);
  font-size:12px;
  line-height:1.6
}

.notice>.icon {
  width:25px;
  height:25px;
  margin-top:2px
}

.notice.peach {
  background:#fff2e9;
  color:#8a5336
}

.notice.neutral {
  background:#f3f6f7;
  color:var(--muted)
}

.demo-note {
  color:var(--muted);
  font-size:11px;
  line-height:1.6;
  margin-top:13px
}

.free-progress {
  height:4px;
  background:#cde2e7;
  border-radius:8px;
  overflow:hidden;
  margin-top:9px
}

.free-progress>span {
  height:100%;
  background:var(--teal);
  display:block;
  border-radius:8px
}

.quote-banner {
  margin-top:30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;
  background:var(--cream);
  border-radius:9px;
  min-height:156px;
  overflow:hidden;
  padding:28px 38px;
  isolation:isolate
}

.quote-banner p {
  font:italic 28px/1.3 Georgia,serif;
  color:var(--teal);
  max-width:260px
}

.quote-banner>img {
  position:absolute;
  right:22%;
  width:38%;
  height:100%;
  top:0;
  object-fit:cover;
  z-index:-1;
  opacity:.75
}

.quote-banner>span {
  font:italic 20px/1.4 Georgia,serif;
  max-width:270px;
  text-align:right
}

/* Checkout and authentication */
.checkout-stepper {
  display:flex;
  align-items:center;
  justify-content:center;
  max-width:820px;
  margin:25px auto 29px
}

.checkout-step {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  flex:1;
  font-size:11px;
  color:var(--muted);
  gap:8px
}

.checkout-step:before {
  position:absolute;
  top:19px;
  left:0;
  right:0;
  height:2px;
  background:var(--line);
  content:'';
  z-index:0
}

.checkout-step:first-child:before {
  left:50%
}

.checkout-step:last-child:before {
  right:50%
}

.checkout-step>span:first-child {
  border-radius:50%;
  background:#e7eef1;
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1;
  outline:7px solid white
}

.checkout-step.complete>span:first-child,.checkout-step.current>span:first-child {
  background:var(--teal);
  color:white
}

.checkout-step.current {
  color:var(--ink);
  font-weight:600
}

.checkout-step.complete:before {
  background:var(--teal)
}

.checkout-layout {
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);
  gap:24px;
  align-items:start
}

.checkout-form {
  padding:26px
}

.form-section+.form-section {
  margin-top:25px
}

.form-heading {
  display:flex;
  gap:10px;
  align-items:center;
  font-family:Georgia,serif;
  font-size:21px;
  font-weight:700;
  margin-bottom:17px
}

.form-heading .icon {
  color:var(--teal);
  width:25px;
  height:25px
}

.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:17px
}

.field {
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0
}

.field.full {
  grid-column:1/-1
}

.field label {
  font-size:12px;
  font-weight:600;
  display:block
}

.required {
  color:#ca4d38
}

.field small {
  font-size:11px;
  color:var(--muted)
}

input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea {
  border:1px solid #d7e0e6;
  border-radius:5px;
  background:#fff;
  color:var(--ink);
  padding:10px 13px;
  min-height:41px;
  outline:none;
  max-width:100%
}

input::placeholder,textarea::placeholder {
  color:#8a9aa9;
  opacity:1
}

input:focus,select:focus,textarea:focus {
  border-color:var(--teal)!important;
  box-shadow:0 0 0 3px #006c800d
}

textarea {
  resize:vertical;
  min-height:81px
}

select {
  cursor:pointer;
  padding-right:26px
}

.check-label {
  display:flex;
  align-items:flex-start;
  gap:9px;
  font-size:12px;
  line-height:1.5;
  margin-top:15px
}

.check-label input {
  accent-color:var(--teal);
  width:16px;
  height:16px;
  flex:0 0 auto;
  margin:1px 0 0
}

.choice-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:11px;
  margin-top:10px
}

.choice-card {
  position:relative;
  padding:16px 13px;
  border-radius:6px;
  border:1px solid var(--line);
  cursor:pointer;
  display:flex;
  gap:11px;
  align-items:center;
  background:#fff
}

.choice-card:has(input:checked) {
  background:#f2f9fb;
  border-color:var(--teal);
  box-shadow:0 0 0 1px #006c8020
}

.choice-card input {
  position:absolute;
  right:9px;
  top:9px;
  width:12px;
  height:12px;
  accent-color:var(--teal);
  margin:0
}

.choice-card>.icon {
  width:27px;
  height:27px;
  color:var(--teal)
}

.choice-card strong {
  font-size:12px;
  line-height:1.4;
  display:block;
  padding-right:8px
}

.choice-card small {
  font-size:10px;
  color:var(--muted);
  display:block;
  margin-top:3px
}

.choice-card b {
  font-size:13px;
  display:block;
  margin-top:6px
}

.checkout-actions {
  display:flex;
  justify-content:space-between;
  gap:14px;
  margin-top:26px
}

.checkout-actions .btn:last-child {
  min-width:180px
}

.order-mini {
  display:flex;
  gap:13px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  align-items:center
}

.order-mini>.mini-image {
  width:43px;
  height:60px;
  flex:0 0 auto
}

.order-mini img {
  width:100%;
  height:100%;
  object-fit:contain
}

.order-mini .cover-design {
  height:60px;
  width:43px;
  padding:4px;
  border-left-width:3px
}

.order-mini .cover-design strong {
  font-size:6px
}

.order-mini .cover-design small {
  font-size:3px
}

.order-mini .cover-design span {
  display:none
}

.order-mini>div:not(.mini-image) {
  min-width:0;
  flex:1
}

.order-mini h3 {
  font-size:12px
}

.order-mini small {
  font-size:10px;
  color:var(--muted)
}

.order-mini>strong {
  font-size:12px;
  white-space:nowrap
}

.checkout-summary h2 {
  font-size:21px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px
}

.checkout-summary .promo-code {
  padding:10px;
  gap:8px
}

.checkout-summary .promo-code label {
  font-size:11px
}

.checkout-summary .summary-total {
  font-family:Arial,sans-serif;
  font-size:21px
}

.secure-note {
  display:flex;
  gap:7px;
  align-items:center;
  justify-content:center;
  font-size:10px;
  color:var(--muted);
  padding-top:10px
}

.review-box {
  background:#f7f9f9;
  border-radius:6px;
  padding:18px;
  display:flex;
  align-items:start;
  gap:12px;
  line-height:1.8;
  margin-bottom:15px
}

.review-box>.icon {
  color:var(--teal);
  margin-top:4px
}

.review-box>div {
  flex:1
}

.review-box strong {
  display:block
}

.review-box p {
  font-size:13px;
  color:var(--muted)
}

.auth-layout {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  min-height:575px;
  margin-bottom:22px
}

.auth-art {
  background:var(--cream);
  position:relative;
  overflow:hidden;
  padding:46px 48px;
  isolation:isolate
}

.auth-art>img {
  position:absolute;
  right:0;
  bottom:0;
  height:68%;
  width:54%;
  object-fit:cover;
  z-index:-1
}

.auth-art:after {
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,var(--cream) 0%,#f8f4eeef 30%,#f8f4ee00 83%)
}

.auth-art h1 {
  font-size:44px;
  max-width:340px;
  margin-bottom:17px
}

.auth-art>p {
  font:20px/1.4 Georgia,serif;
  max-width:330px
}

.auth-benefits {
  display:grid;
  gap:23px;
  margin-top:40px;
  max-width:255px
}

.auth-benefits>div {
  display:flex;
  gap:18px;
  align-items:center
}

.auth-benefits>div>.icon {
  width:50px;
  height:50px;
  background:white;
  border-radius:50%;
  padding:12px;
  color:var(--teal);
  stroke-width:1.6
}

.auth-benefits strong {
  font:700 17px Georgia,serif;
  display:block
}

.auth-benefits small {
  font-size:11px;
  color:var(--muted)
}

.auth-quote {
  margin-top:42px;
  font:italic 25px/1.3 Georgia,serif;
  color:var(--teal);
  max-width:230px
}

.auth-box {
  padding:29px 43px 34px;
  background:#fff
}

.auth-tabs {
  display:flex;
  border-bottom:1px solid var(--line);
  margin-bottom:30px
}

.auth-tabs>a {
  flex:1;
  padding:13px 8px;
  text-align:center;
  border-bottom:2px solid transparent;
  font-weight:600
}

.auth-tabs>a.active {
  border-bottom-color:var(--teal);
  color:var(--teal)
}

.auth-box h2 {
  font-size:34px;
  margin-bottom:7px
}

.auth-box>p {
  font:18px/1.4 Georgia,serif;
  margin-bottom:24px
}

.auth-form {
  display:grid;
  gap:15px
}

.input-with-icon {
  display:flex;
  align-items:center;
  border:1px solid #d7e0e6;
  border-radius:7px;
  padding:0 15px;
  height:52px;
  color:var(--teal)
}

.input-with-icon:focus-within {
  border-color:var(--teal);
  box-shadow:0 0 0 3px #006c800c
}

.input-with-icon input {
  border:0!important;
  box-shadow:none!important;
  flex:1;
  min-width:0;
  padding:12px 13px!important;
  height:49px;
  background:transparent!important
}

.input-with-icon .icon-btn {
  width:28px;
  padding:3px
}

.auth-options {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  margin:0 0 7px
}

.auth-options .check-label {
  margin:0;
  font-size:12px;
  align-items:center
}

.auth-options .link {
  font-size:12px
}

.social-divider {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--muted);
  font-size:12px;
  margin:25px 0 16px
}

.social-divider:before,.social-divider:after {
  content:'';
  height:1px;
  background:var(--line);
  flex:1
}

.social-buttons {
  display:flex;
  gap:10px
}

.social-buttons button {
  flex:1;
  min-height:43px;
  background:white;
  border:1px solid var(--line);
  color:var(--ink);
  border-radius:6px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:9px;
  font-size:11px
}

.social-buttons button:hover {
  background:var(--cream)
}

.social-monogram {
  font:bold 21px Georgia,serif;
  color:var(--teal)
}

.auth-switch {
  margin-top:24px;
  text-align:center;
  font-size:12px
}

.auth-switch .link {
  font-size:12px
}

.auth-reset {
  max-width:540px;
  margin:20px auto;
  padding:32px
}

.auth-reset h1 {
  font-size:31px;
  margin:18px 0 13px
}

.auth-reset p {
  color:var(--muted);
  margin-bottom:20px;
  font-size:13px
}

/* Account, orders, tracking */
.account-layout {
  display:grid;
  grid-template-columns:270px minmax(0,1fr);
  gap:30px;
  margin-top:26px;
  align-items:start
}

.account-sidebar {
  overflow:hidden;
  box-shadow:none
}

.profile-mini {
  display:flex;
  gap:13px;
  align-items:center;
  padding:20px 17px;
  border-bottom:1px solid var(--line)
}

.avatar {
  width:57px;
  height:57px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#e6f0f7;
  color:#6d9dbe;
  flex:0 0 auto
}

.avatar .icon {
  width:35px;
  height:35px;
  stroke-width:1.4
}

.profile-mini strong {
  font-size:13px;
  display:block
}

.profile-mini small {
  font-size:11px;
  color:var(--muted);
  display:block;
  overflow-wrap:anywhere
}

.profile-mini .link {
  font-size:11px;
  margin-top:4px
}

.account-nav {
  display:grid;
  gap:3px;
  padding:10px
}

.account-nav>a,.account-nav>button {
  display:flex;
  align-items:center;
  gap:15px;
  background:transparent;
  border:0;
  border-radius:6px;
  padding:13px 14px;
  font-size:14px;
  color:var(--ink);
  text-align:left
}

.account-nav .icon {
  width:23px;
  height:23px;
  color:var(--teal)
}

.account-nav>a.active {
  background:#e5f1f4;
  color:var(--teal)
}

.account-nav>a:hover {
  background:#f2f7f8
}

.account-nav>button {
  color:var(--red)
}

.account-nav>button .icon {
  color:var(--red)
}

.account-content {
  min-width:0
}

.account-content>h2 {
  font-size:28px;
  margin-bottom:6px
}

.account-content>.muted {
  font-size:13px;
  margin-bottom:20px
}

.order-tabs {
  display:flex;
  overflow-x:auto;
  gap:13px;
  border-bottom:1px solid var(--line);
  margin:13px 0 15px
}

.order-tabs>button {
  background:white;
  border:0;
  border-bottom:2px solid transparent;
  color:#426076;
  padding:12px 15px;
  font-size:12px;
  white-space:nowrap
}

.order-tabs>button.active {
  border-bottom-color:var(--teal);
  color:var(--teal);
  font-weight:600
}

.order-card {
  display:grid;
  grid-template-columns:155px minmax(100px,1fr) 140px 145px;
  gap:19px;
  padding:20px 18px;
  align-items:center;
  margin-bottom:14px;
  box-shadow:none
}

.order-card h3 {
  font-size:13px;
  margin-bottom:4px;
  overflow-wrap:anywhere
}

.order-card time {
  font-size:11px;
  color:var(--muted);
  display:block;
  margin-bottom:13px
}

.order-thumbnails {
  display:flex;
  gap:8px;
  align-items:center;
  min-width:0;
  overflow:hidden
}

.order-thumbnails img {
  width:47px;
  height:66px;
  object-fit:contain;
  border-radius:2px
}

.order-thumbnails>.more-books {
  display:flex;
  align-items:center;
  justify-content:center;
  background:#edf4f6;
  border-radius:6px;
  width:38px;
  height:60px;
  font-size:12px
}

.order-sum strong {
  font-size:18px;
  display:block;
  margin:2px 0
}

.order-sum small,.order-sum span {
  font-size:11px;
  color:var(--muted)
}

.order-actions {
  display:grid;
  gap:7px
}

.order-actions>.btn {
  font-size:12px;
  min-height:34px;
  padding:7px
}

.profile-form {
  padding:25px
}

.profile-form .btn {
  margin-top:23px
}

.address-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}

.address-card {
  padding:24px;
  min-height:220px
}

.address-card h3 {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px
}

.address-card p {
  font-size:13px;
  color:var(--muted);
  line-height:1.9
}

.address-actions {
  display:flex;
  gap:20px;
  margin-top:19px
}

.add-address {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  border:1px dashed #a2bdc5;
  border-radius:10px;
  background:#f8fbfc;
  min-height:200px;
  color:var(--teal);
  font-size:14px
}

.payment-history {
  width:100%;
  border-collapse:collapse;
  font-size:12px
}

.payment-history td,.payment-history th {
  padding:16px 13px;
  text-align:left;
  border-bottom:1px solid var(--line)
}

.payment-history th {
  background:#f8fafb;
  font-size:11px
}

.success-hero {
  display:flex;
  gap:30px;
  align-items:center;
  min-height:243px;
  padding-left:50px
}

.success-icon {
  width:90px;
  height:90px;
  background:#d7eee0;
  border-radius:50%;
  color:var(--green);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  box-shadow:0 0 0 14px #eaf5ec88
}

.success-icon .icon {
  width:47px;
  height:47px;
  stroke-width:2
}

.success-hero h1 {
  max-width:600px;
  font-size:36px;
  line-height:1.13
}

.success-hero .success-copy>p {
  font:17px/1.5 Georgia,serif;
  max-width:530px;
  margin:12px 0
}

.success-hero .order-number {
  font-size:14px;
  margin-top:16px
}

.success-hero .order-number strong {
  font-size:17px;
  margin-left:6px
}

.success-hero .success-copy {
  max-width:72%;
  position:relative;
  z-index:1
}

.success-layout {
  display:grid;
  grid-template-columns:1.15fr 1.65fr;
  gap:21px;
  margin-top:24px;
  align-items:start
}

.success-layout h2 {
  font-size:22px;
  margin-bottom:13px
}

.success-side {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:19px
}

.success-side>.card {
  padding:21px;
  box-shadow:none;
  min-width:0
}

.success-side h3 {
  display:flex;
  gap:9px;
  align-items:center;
  font:700 18px Georgia,serif;
  margin-bottom:15px
}

.success-side h3 .icon {
  color:var(--teal)
}

.success-side p {
  font-size:13px;
  line-height:1.8;
  color:var(--muted)
}

.payment-success {
  grid-column:1/-1;
  display:flex;
  justify-content:space-between;
  gap:15px;
  flex-wrap:wrap
}

.payment-success>h3 {
  flex-basis:100%;
  margin-bottom:0
}

.payment-success strong {
  font-size:21px;
  display:block
}

.tracking-card {
  padding:26px;
  margin-top:22px
}

.tracking-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:23px
}

.tracking-heading h2 {
  font-size:24px
}

.tracking-timeline {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin:10px 0 30px
}

.tracking-step {
  position:relative;
  text-align:center;
  padding:0 6px
}

.tracking-step:before {
  content:'';
  height:2px;
  left:0;
  right:0;
  top:19px;
  background:var(--line);
  position:absolute
}

.tracking-step:first-child:before {
  left:50%
}

.tracking-step:last-child:before {
  right:50%
}

.tracking-step.complete:before {
  background:var(--teal)
}

.tracking-step>.step-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:39px;
  height:39px;
  border:1px solid #c5d2d8;
  border-radius:50%;
  background:#fff;
  position:relative;
  margin:0 auto 12px;
  color:#9aabb6;
  outline:7px solid white
}

.tracking-step.complete>.step-icon {
  background:var(--teal);
  border-color:var(--teal);
  color:#fff
}

.tracking-step.current>.step-icon {
  background:var(--teal);
  border-color:var(--teal);
  color:#fff;
  box-shadow:0 0 0 4px #006c801a
}

.tracking-step strong {
  font-size:12px;
  display:block
}

.tracking-step small {
  font-size:11px;
  color:var(--muted);
  display:block;
  margin-top:6px
}

.tracking-buttons {
  display:flex;
  gap:18px
}

.tracking-buttons>.btn {
  flex:1;
  min-height:45px
}

.tracking-form {
  display:flex;
  gap:10px;
  max-width:650px;
  margin:28px auto
}

.tracking-form .field {
  flex:1
}

.tracking-form .btn {
  align-self:flex-end
}

.tracking-form input {
  width:100%
}

.tracking-info-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:20px
}

/* Content pages, footer and overlays */
.editorial-layout {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:45px;
  margin-top:33px;
  align-items:start
}

.editorial-copy h2 {
  margin:10px 0 18px
}

.editorial-copy p {
  font-size:15px;
  color:#506a7c;
  line-height:1.9;
  margin-bottom:17px
}

.editorial-photo {
  border-radius:10px;
  width:100%;
  height:330px;
  object-fit:cover
}

.value-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-top:30px
}

.value-grid .card {
  padding:27px
}

.value-grid .card>.icon {
  width:33px;
  height:33px;
  color:var(--teal);
  margin-bottom:15px
}

.value-grid h3 {
  font-family:Georgia,serif;
  font-size:21px;
  margin-bottom:10px
}

.value-grid p {
  font-size:13px;
  color:var(--muted);
  line-height:1.8
}

.info-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-top:30px
}

.info-grid>.card {
  padding:26px;
  box-shadow:none
}

.info-grid>.card>.icon {
  width:33px;
  height:33px;
  color:var(--teal);
  margin-bottom:13px
}

.info-grid h2 {
  font-size:24px;
  margin-bottom:12px
}

.info-grid p {
  font-size:13px;
  color:var(--muted);
  line-height:1.8
}

.info-grid strong {
  display:block;
  font-size:17px;
  margin:15px 0 7px
}

.faq-list {
  max-width:940px;
  margin:30px auto
}

.faq-item {
  border:1px solid var(--line);
  border-radius:8px;
  margin-bottom:11px;
  overflow:hidden
}

.faq-item summary {
  padding:19px 22px;
  list-style:none;
  cursor:pointer;
  font-size:15px;
  font-weight:600;
  display:flex;
  justify-content:space-between;
  gap:14px
}

.faq-item summary:after {
  content:'+';
  color:var(--teal);
  font-size:20px;
  font-weight:400
}

.faq-item[open] summary:after {
  content:'−'
}

.faq-item p {
  padding:0 22px 21px;
  color:var(--muted);
  font-size:13px;
  line-height:1.8
}

.contact-layout {
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:30px;
  margin-top:30px
}

.contact-info {
  background:var(--cream);
  border-radius:10px;
  padding:33px
}

.contact-info h2 {
  margin-bottom:15px
}

.contact-info>p {
  color:var(--muted);
  font-size:14px;
  margin-bottom:25px;
  line-height:1.8
}

.contact-option {
  display:flex;
  gap:15px;
  padding:19px 0;
  border-bottom:1px solid #e6dfd5
}

.contact-option>.icon {
  color:var(--teal);
  width:27px;
  height:27px
}

.contact-option h3 {
  font-size:15px;
  margin-bottom:5px
}

.contact-option p {
  color:var(--muted);
  font-size:12px
}

.store-placeholder {
  background:#eef4f3;
  border-radius:8px;
  margin-top:24px;
  padding:25px;
  display:flex;
  gap:15px;
  align-items:center;
  color:var(--teal)
}

.author-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-top:30px
}

.author-card {
  padding:27px;
  text-align:center
}

.author-initial {
  width:85px;
  height:85px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--teal);
  background:#ebf3f4;
  margin:0 auto 17px;
  font:30px Georgia,serif;
  border:6px solid #f5f8f8
}

.author-card h2 {
  font-size:22px;
  margin-bottom:8px
}

.author-card p {
  font-size:12px;
  color:var(--muted);
  margin-bottom:17px
}

.author-card .btn {
  font-size:12px
}

.author-bio {
  display:flex;
  gap:23px;
  align-items:center;
  padding:28px 0
}

.author-bio .author-initial {
  margin:0;
  flex:0 0 auto;
  width:95px;
  height:95px
}

.author-bio h2 {
  font-size:28px;
  margin-bottom:8px
}

.author-bio p {
  font-size:13px;
  color:var(--muted);
  max-width:650px
}

.document-content {
  max-width:820px;
  margin:35px auto
}

.document-content h2 {
  font-size:23px;
  margin:28px 0 12px
}

.document-content p {
  line-height:1.85;
  color:var(--muted);
  font-size:14px;
  margin-bottom:14px
}

.document-content .notice {
  margin-bottom:25px
}

.site-footer {
  border-top:1px solid var(--line);
  background:#f8fafb;
  margin-top:10px
}

.footer-main {
  padding:40px 0 31px;
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1.2fr;
  gap:35px
}

.footer-brand .brand {
  width:200px;
  margin-bottom:15px
}

.footer-brand p {
  font-size:12px;
  max-width:280px;
  color:var(--muted);
  line-height:1.8
}

.footer-main h3 {
  font-family:Georgia,serif;
  font-size:19px;
  margin:7px 0 17px
}

.footer-links {
  display:grid;
  gap:9px;
  font-size:12px;
  color:#4f697a
}

.footer-socials {
  display:flex;
  gap:8px;
  margin-top:15px
}

.footer-socials a {
  width:33px;
  height:33px;
  border:1px solid var(--line);
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:white;
  color:var(--teal)
}

.footer-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  padding:17px 0;
  font-size:11px;
  color:var(--muted)
}

.footer-payments {
  display:flex;
  gap:9px;
  align-items:center
}

.payment-label {
  font-weight:700;
  font-size:10px;
  border:1px solid #dce6ea;
  background:#fff;
  padding:3px 8px;
  border-radius:4px;
  color:#396071
}

.mobile-bottom-nav {
  display:none
}

.toast-region {
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  z-index:120;
  display:flex;
  flex-direction:column;
  gap:10px;
  pointer-events:none;
  max-width:calc(100% - 32px);
  width:max-content
}

.toast {
  background:var(--ink);
  color:#fff;
  display:flex;
  gap:14px;
  align-items:center;
  border-radius:9px;
  padding:14px 18px;
  box-shadow:0 7px 30px #092d4840;
  pointer-events:auto;
  font-size:13px;
  max-width:510px;
  animation:toast-in .25s ease
}

.toast .icon {
  color:#ade3d6
}

.toast a {
  color:#ffcfb3;
  text-decoration:underline;
  white-space:nowrap
}

.toast.error {
  background:#894334
}

.toast button {
  border:0;
  background:none;
  color:white;
  padding:0
}

.toast .toast-message {
  flex:1;
  min-width:0
}

.modal {
  border:0;
  border-radius:12px;
  background:white;
  color:var(--ink);
  padding:0;
  width:min(560px,calc(100% - 30px));
  max-height:calc(100dvh - 50px);
  box-shadow:0 22px 65px #092d4835
}

.modal::backdrop {
  background:#08223666;
  backdrop-filter:blur(3px)
}

.modal-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:19px 24px;
  gap:20px
}

.modal-head h2 {
  font-size:23px
}

.modal-body {
  padding:24px
}

.modal-body>p {
  font-size:13px;
  line-height:1.7;
  color:var(--muted);
  margin-bottom:20px
}

.modal-body .field+.field {
  margin-top:15px
}

.modal-body>.btn {
  margin-top:18px
}

.modal-actions {
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:20px
}

.zoom-dialog {
  width:min(720px,calc(100% - 30px))
}

.zoom-dialog .modal-body {
  display:flex;
  justify-content:center;
  background:var(--cream)
}

.zoom-dialog img {
  height:min(65vh,680px);
  object-fit:contain;
  max-width:100%
}

.drawer {
  height:100dvh;
  max-height:none;
  margin:0;
  width:330px;
  max-width:calc(100% - 35px);
  border:0;
  border-radius:0;
  position:fixed;
  left:0;
  top:0;
  background:white;
  color:var(--ink);
  padding:0;
  box-shadow:5px 0 35px #092d4830
}

.drawer::backdrop {
  background:#08223666
}

.drawer-body {
  padding:14px 22px
}

.drawer-links {
  display:grid
}

.drawer-links a {
  padding:12px 0;
  border-bottom:1px solid var(--line);
  font-size:14px;
  display:flex;
  gap:12px;
  align-items:center
}

.drawer-links a .icon {
  color:var(--teal);
  width:19px;
  height:19px
}

.drawer-links a span {
  margin-left:auto
}

.drawer-note {
  padding:18px 0;
  font-size:11px;
  color:var(--muted)
}

.filter-drawer .filters {
  padding-right:0;
  border:0
}

.filter-drawer .drawer-body {
  padding-bottom:24px
}

.drawer-bottom {
  padding:16px 22px;
  position:sticky;
  bottom:0;
  background:#fff;
  border-top:1px solid var(--line)
}

.no-js {
  margin:30px;
  padding:25px;
  background:var(--cream);
  text-align:center
}

.boot-placeholder {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  min-height:45vh;
  color:var(--teal)
}

.spinner {
  border:2px solid var(--line);
  border-top-color:var(--teal);
  width:23px;
  height:23px;
  border-radius:50%;
  animation:spin .7s linear infinite
}

@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}

@keyframes toast-in {
  from {
    opacity:0;
    transform:translateY(8px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}

@media(min-width:1550px) {
  .hero {
    min-height:420px
  }
  .hero-copy {
    padding-top:68px
  }
  .hero h1 {
    font-size:49px
  }
  .hero-signature {
    font-size:28px;
    left:44%
  }
  .main-header {
    min-height:91px
  }
  .category-card img {
    height:98px
  }
}

@media(max-width:1260px) {
  .container {
    width:calc(100% - 42px)
  }
  .main-header {
    grid-template-columns:205px minmax(200px,1fr) auto;
    gap:22px
  }
  .brand {
    width:199px
  }
  .header-actions {
    gap:21px
  }
  .header-action {
    gap:7px
  }
  .nav-inner {
    gap:20px
  }
  .nav-inner>a,.catalog-menu-button {
    font-size:11px
  }
  .catalog-menu-button {
    padding-right:15px
  }
  .hero {
    min-height:360px
  }
  .hero-copy {
    padding-left:7%;
    padding-top:52px
  }
  .hero h1 {
    font-size:41px
  }
  .hero-copy>p {
    font-size:20px
  }
  .hero-signature {
    font-size:23px;
    left:45%
  }
  .category-grid {
    gap:12px
  }
  .category-card strong {
    font-size:11px
  }
  .editor-grid {
    gap:12px
  }
  .book-card.compact {
    padding:12px 9px
  }
  .book-card.compact .book-cover {
    width:83px;
    height:147px
  }
  .book-card.compact .book-price {
    font-size:13px
  }
  .book-card.compact .book-title {
    font-size:11px
  }
  .book-card.compact .btn {
    font-size:10px
  }
  .benefit {
    gap:13px;
    padding-inline:17px
  }
  .benefit strong {
    font-size:12px
  }
  .benefit p {
    font-size:11px
  }
  .catalog-layout {
    grid-template-columns:200px minmax(0,1fr);
    gap:22px
  }
  .filters {
    padding-right:17px
  }
  .product-grid {
    gap:13px
  }
  .book-cover {
    height:197px;
    padding-inline:14px
  }
  .cart-layout {
    grid-template-columns:minmax(0,1fr) 305px;
    gap:20px
  }
  .cart-table-head,.cart-row {
    grid-template-columns:minmax(0,1fr) 80px 78px 90px 30px;
    gap:9px
  }
  .cart-table-head .cart-format,.cart-row .cart-format {
    display:none
  }
  .cart-unit,.cart-subtotal {
    font-size:11px
  }
  .cart-book {
    gap:11px
  }
  .cart-book h3 {
    font-size:12px
  }
  .cart-book>a {
    flex-basis:60px;
    height:86px
  }
  .cart-book p {
    font-size:11px
  }
  .cart-list {
    padding-inline:16px
  }
  .summary-card {
    padding:21px
  }
  .summary-total {
    font-size:21px
  }
  .product-layout {
    gap:28px
  }
  .product-gallery {
    grid-template-columns:60px 1fr;
    gap:11px
  }
  .gallery-main,.gallery-main>img {
    height:445px;
    min-height:445px
  }
  .product-details h1 {
    font-size:34px
  }
  .product-details .subtitle {
    font-size:22px
  }
  .product-purchase {
    gap:8px
  }
  .product-purchase>.btn {
    font-size:12px
  }
  .format-card {
    gap:6px;
    padding:11px 8px
  }
  .format-card .icon {
    width:19px;
    height:19px
  }
  .format-card strong,.format-card small {
    font-size:10px
  }
  .auth-box {
    padding:27px 32px
  }
  .auth-art {
    padding:42px 34px
  }
  .account-layout {
    grid-template-columns:240px minmax(0,1fr);
    gap:24px
  }
  .order-card {
    grid-template-columns:140px minmax(95px,1fr) 128px 126px;
    gap:13px;
    padding:18px 15px
  }
  .order-thumbnails img {
    width:36px;
    height:55px
  }
  .order-sum strong {
    font-size:16px
  }
  .order-card h3 {
    font-size:12px
  }
  .order-actions>.btn {
    font-size:11px
  }
  .checkout-form {
    padding:22px
  }
  .choice-card {
    gap:7px;
    padding:15px 10px
  }
  .choice-card>.icon {
    width:22px;
    height:22px
  }
  .choice-card strong {
    font-size:11px
  }
  .choice-card b {
    font-size:12px
  }
  .choice-card small {
    font-size:9px
  }
  .checkout-layout {
    grid-template-columns:minmax(0,1.65fr) minmax(285px,1fr)
  }
}

@media(max-width:1050px) {
  .header-action .action-label {
    display:none
  }
  .main-header {
    grid-template-columns:205px 1fr auto;
    gap:22px
  }
  .nav-inner {
    justify-content:space-between;
    gap:12px
  }
  .nav-inner>a {
    font-size:10px
  }
  .catalog-menu-button {
    font-size:11px
  }
  .utility-links {
    gap:18px
  }
  .hero-copy {
    padding-left:5%
  }
  .hero h1 {
    font-size:37px
  }
  .hero-copy>p {
    font-size:19px;
    max-width:315px
  }
  .hero-signature {
    font-size:21px;
    left:44%
  }
  .hero-photo {
    width:56%
  }
  .hero:after {
    background:linear-gradient(90deg,#f8f4ee 0%,#f8f4ee 39%,#f8f4eeaa 46%,#f8f4ee00 67%)
  }
  .hero {
    min-height:350px
  }
  .category-card img {
    height:78px
  }
  .category-card strong {
    font-size:10px
  }
  .benefit {
    padding-inline:14px;
    gap:11px
  }
  .benefit .icon {
    width:27px;
    height:27px
  }
  .benefit strong {
    font-size:11px
  }
  .benefit p {
    font-size:10px
  }
  .editor-grid {
    grid-template-columns:repeat(2,1fr);
    gap:16px
  }
  .book-card.compact .book-cover {
    width:98px;
    height:149px
  }
  .book-card.compact .book-title {
    font-size:14px
  }
  .book-card.compact .book-author {
    font-size:11px
  }
  .book-card.compact .book-price {
    font-size:16px
  }
  .book-card.compact .btn {
    font-size:12px
  }
  .book-card.compact .rating {
    font-size:11px
  }
  .shelf-grid {
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
  .shelf-grid>.book-card:nth-child(n+5) {
    display:none
  }
  .page-banner {
    padding:26px 30px
  }
  .page-banner h1 {
    font-size:32px
  }
  .page-banner>p {
    font-size:17px
  }
  .product-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .product-grid .book-title {
    font-size:13px
  }
  .product-grid .book-price {
    font-size:15px
  }
  .catalog-layout {
    grid-template-columns:185px minmax(0,1fr);
    gap:18px
  }
  .wishlist-grid {
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
  .gallery-thumbnails {
    grid-template-columns:repeat(4,1fr);
    order:2
  }
  .product-gallery {
    grid-template-columns:1fr
  }
  .gallery-main,.gallery-main>img {
    height:390px;
    min-height:390px
  }
  .gallery-thumb {
    height:74px
  }
  .product-details h1 {
    font-size:30px
  }
  .product-details .subtitle {
    font-size:20px
  }
  .product-purchase {
    flex-wrap:wrap
  }
  .product-purchase>.quantity {
    flex:0 0 100%;
    width:max-content;
    max-width:100px;
    margin:0 0 4px
  }
  .product-description {
    font-size:12px
  }
  .product-price {
    font-size:26px
  }
  .product-trust strong {
    font-size:9px
  }
  .product-trust small {
    font-size:8px
  }
  .product-trust .icon {
    width:21px;
    height:21px
  }
  .product-trust {
    gap:7px
  }
  .format-options {
    gap:7px
  }
  .format-card .icon {
    display:none
  }
  .cart-layout {
    grid-template-columns:1fr 285px;
    gap:16px
  }
  .cart-unit,.cart-table-head .cart-unit {
    display:none
  }
  .cart-row,.cart-table-head {
    grid-template-columns:minmax(0,1fr) 80px 86px 25px;
    gap:10px
  }
  .cart-row {
    padding-block:16px
  }
  .cart-book>a {
    flex-basis:52px;
    height:75px
  }
  .cart-row .quantity button {
    width:23px
  }
  .cart-row .quantity output {
    width:27px
  }
  .cart-book .stock {
    font-size:10px
  }
  .cart-book h3 {
    font-size:12px
  }
  .summary-card h2 {
    font-size:22px
  }
  .checkout-layout {
    grid-template-columns:1.6fr 1fr;
    gap:17px
  }
  .choice-grid {
    gap:8px
  }
  .choice-card {
    display:block;
    text-align:center;
    padding:13px 8px
  }
  .choice-card>.icon {
    margin-bottom:6px
  }
  .choice-card strong {
    padding:0
  }
  .form-heading {
    font-size:19px
  }
  .checkout-form {
    padding:20px
  }
  .checkout-summary {
    padding:18px
  }
  .checkout-summary h2 {
    font-size:19px;
    gap:5px
  }
  .checkout-summary h2 .link {
    font-size:10px
  }
  .checkout-summary .summary-line {
    font-size:12px
  }
  .checkout-summary .order-mini {
    gap:9px
  }
  .order-mini>strong {
    font-size:10px
  }
  .auth-art h1 {
    font-size:37px
  }
  .auth-art>p {
    font-size:18px
  }
  .auth-art {
    padding:40px 29px
  }
  .auth-box {
    padding-inline:26px
  }
  .auth-benefits {
    gap:20px
  }
  .auth-benefits strong {
    font-size:15px
  }
  .auth-art>img {
    width:59%
  }
  .auth-options {
    font-size:11px
  }
  .auth-options .link,.auth-options .check-label {
    font-size:11px
  }
  .account-layout {
    grid-template-columns:220px minmax(0,1fr);
    gap:20px
  }
  .order-card {
    grid-template-columns:125px 1fr 140px;
    gap:12px
  }
  .order-actions {
    grid-column:3;
    grid-row:1/3;
    align-self:center
  }
  .order-thumbnails {
    grid-row:2;
    grid-column:1/3
  }
  .order-sum {
    grid-row:1;
    grid-column:2
  }
  .order-card time {
    margin-bottom:7px
  }
  .order-sum strong {
    font-size:16px
  }
  .author-grid {
    grid-template-columns:repeat(3,1fr)
  }
  .success-hero {
    padding-left:35px;
    gap:23px
  }
  .success-icon {
    width:72px;
    height:72px
  }
  .success-hero h1 {
    font-size:30px
  }
  .success-hero .success-copy>p {
    font-size:15px
  }
  .success-hero .hero-signature {
    display:none
  }
  .success-layout {
    grid-template-columns:1fr 1.35fr;
    gap:16px
  }
  .success-side {
    gap:13px
  }
  .success-side>.card {
    padding:18px
  }
  .success-side h3 {
    font-size:16px
  }
  .success-side p {
    font-size:12px
  }
  .footer-main {
    gap:25px;
    grid-template-columns:1.3fr 1fr 1fr 1fr
  }
  .footer-brand .brand {
    width:180px
  }
}

@media(max-width:800px) {
  .container {
    width:calc(100% - 32px)
  }
  .utility {
    display:none
  }
  .main-header {
    grid-template-columns:36px 1fr auto;
    grid-template-rows:60px 44px;
    gap:0 12px;
    min-height:122px;
    padding-bottom:14px
  }
  .mobile-menu-btn {
    display:inline-flex;
    width:33px;
    grid-column:1;
    grid-row:1;
    padding-left:0;
    justify-content:flex-start
  }
  .brand {
    width:179px;
    grid-column:2;
    grid-row:1;
    justify-self:start
  }
  .header-actions {
    grid-column:3;
    grid-row:1;
    gap:15px;
    padding-right:6px
  }
  .header-action.login-action,.header-action.favorites-action {
    display:none
  }
  .main-header>.search-form {
    grid-column:1/-1;
    grid-row:2;
    height:43px
  }
  .search-form input {
    font-size:12px;
    padding:0 13px
  }
  .search-form>button {
    width:45px
  }
  .site-nav {
    display:none
  }
  .hero {
    min-height:324px
  }
  .hero-copy {
    padding:39px 30px 25px;
    width:65%
  }
  .hero h1 {
    font-size:35px;
    max-width:360px
  }
  .hero-copy>p {
    font-size:17px;
    max-width:310px
  }
  .hero-signature {
    display:none
  }
  .hero-photo {
    width:59%;
    object-position:55% center
  }
  .hero:after {
    background:linear-gradient(90deg,#f8f4ee 0%,#f8f4ee 34%,#f8f4eedd 46%,#f8f4ee22 72%,transparent 100%)
  }
  .hero-controls {
    margin-top:19px
  }
  .hero-copy>.btn {
    font-size:14px;
    min-height:41px;
    padding-inline:18px
  }
  .benefits {
    padding:20px 0
  }
  .benefit {
    gap:10px;
    padding:0 14px;
    flex-direction:column;
    text-align:center
  }
  .benefit:first-child {
    padding-left:10px
  }
  .benefit strong {
    font-size:11px;
    line-height:1.4
  }
  .benefit p {
    display:none
  }
  .benefit .icon {
    width:28px;
    height:28px
  }
  .section {
    margin-top:29px
  }
  .section-head {
    margin-bottom:16px
  }
  .section-head h2 {
    font-size:25px
  }
  .section-head .link {
    font-size:12px
  }
  .category-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:13px
  }
  .category-card img {
    height:99px
  }
  .category-card strong {
    font-size:12px;
    min-height:37px
  }
  .all-categories {
    grid-template-columns:repeat(3,1fr);
    gap:17px
  }
  .all-categories .category-card img {
    height:130px
  }
  .all-categories .category-card strong {
    font-size:16px
  }
  .split-promos {
    gap:16px
  }
  .promo-panel {
    padding:22px;
    min-height:210px
  }
  .promo-panel h2 {
    font-size:25px
  }
  .promo-panel>div {
    width:85%
  }
  .newsletter {
    padding:28px;
    grid-template-columns:1fr;
    gap:20px
  }
  .newsletter h2 {
    font-size:26px
  }
  .page-banner {
    padding:25px 26px;
    min-height:139px
  }
  .page-banner h1 {
    font-size:31px;
    max-width:79%
  }
  .page-banner>p {
    font-size:16px;
    max-width:72%
  }
  .page-banner>.hero-signature {
    display:none
  }
  .catalog-layout {
    grid-template-columns:minmax(0,1fr);
    margin-top:22px
  }
  .catalog-layout>.filters {
    display:none
  }
  .mobile-filter-button {
    display:inline-flex;
    min-height:38px;
    padding:7px 13px;
    font-size:12px
  }
  .catalog-top {
    flex-wrap:wrap;
    gap:12px
  }
  .catalog-top>p {
    font-size:12px;
    flex:1;
    order:1
  }
  .sort-tools {
    order:2
  }
  .sort-tools select {
    font-size:11px;
    max-width:177px
  }
  .product-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px
  }
  .book-cover {
    height:205px
  }
  .book-title {
    font-size:14px
  }
  .product-grid .book-author {
    font-size:11px
  }
  .filters .filter-heading h2 {
    font-size:24px
  }
  .filter-drawer .check-row {
    font-size:13px
  }
  .filter-drawer .filter-section summary {
    font-size:14px
  }
  .filter-drawer .filter-heading>.link {
    font-size:11px
  }
  .product-layout {
    gap:23px
  }
  .product-gallery {
    gap:12px
  }
  .gallery-main,.gallery-main>img {
    height:364px;
    min-height:364px
  }
  .gallery-main>img.contain {
    height:310px;
    min-height:0;
    width:78%
  }
  .product-details h1 {
    font-size:29px
  }
  .product-details .subtitle {
    font-size:18px
  }
  .product-details .author-link {
    font-size:13px;
    margin-top:4px
  }
  .product-rating {
    gap:8px;
    margin-bottom:11px
  }
  .product-rating .stars {
    font-size:15px
  }
  .product-rating .link {
    font-size:10px;
    padding-left:8px
  }
  .product-price {
    font-size:24px;
    gap:10px
  }
  .product-price del {
    font-size:12px
  }
  .product-description {
    margin-bottom:13px;
    line-height:1.6
  }
  .format-card strong,.format-card small {
    font-size:9px
  }
  .format-options {
    margin-bottom:14px
  }
  .product-trust {
    display:none
  }
  .detail-bottom {
    grid-template-columns:1fr;
    margin-top:25px
  }
  .delivery-card {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px 23px
  }
  .delivery-info {
    border:0;
    padding:0
  }
  .tab-content {
    padding:20px
  }
  .wishlist-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .cart-layout {
    grid-template-columns:minmax(0,1fr);
    gap:22px;
    margin-top:22px
  }
  .summary-card {
    position:static
  }
  .cart-table-head,.cart-row {
    grid-template-columns:minmax(0,1fr) 86px 92px 30px;
    gap:16px
  }
  .cart-book>a {
    flex-basis:68px;
    height:89px
  }
  .cart-book h3 {
    font-size:15px
  }
  .cart-book p {
    font-size:12px
  }
  .cart-subtotal {
    font-size:14px
  }
  .cart-row .quantity button {
    width:27px
  }
  .cart-row .quantity output {
    width:30px
  }
  .cart-book .stock {
    font-size:11px
  }
  .summary-card h2 {
    font-size:24px
  }
  .summary-total {
    font-size:25px
  }
  .cart-layout>.summary-card {
    padding:24px
  }
  .summary-card>.btn {
    min-height:47px;
    font-size:15px
  }
  .cart-layout>.summary-card .notice {
    margin-top:5px
  }
  .quote-banner {
    padding:25px
  }
  .quote-banner p {
    font-size:24px;
    max-width:200px
  }
  .quote-banner>span {
    font-size:18px;
    max-width:230px
  }
  .checkout-layout {
    grid-template-columns:1fr;
    gap:22px
  }
  .choice-card {
    display:flex;
    text-align:left;
    padding:18px 15px
  }
  .choice-card strong {
    font-size:12px;
    padding-right:7px
  }
  .choice-card small {
    font-size:11px
  }
  .choice-card>.icon {
    width:27px;
    height:27px;
    margin:0
  }
  .choice-card b {
    font-size:13px
  }
  .checkout-form {
    padding:26px
  }
  .checkout-summary {
    padding:24px
  }
  .checkout-summary h2 {
    font-size:24px
  }
  .checkout-summary h2 .link {
    font-size:12px
  }
  .checkout-summary .summary-line {
    font-size:13px
  }
  .checkout-summary .order-mini {
    gap:14px
  }
  .order-mini>strong {
    font-size:13px
  }
  .auth-layout {
    grid-template-columns:1fr 1fr;
    min-height:575px
  }
  .auth-art {
    padding:40px 25px
  }
  .auth-art h1 {
    font-size:33px
  }
  .auth-art>p {
    font-size:16px
  }
  .auth-benefits>div>.icon {
    width:39px;
    height:39px;
    padding:8px
  }
  .auth-benefits>div {
    gap:12px
  }
  .auth-benefits strong {
    font-size:14px
  }
  .auth-benefits small {
    font-size:10px
  }
  .auth-quote {
    font-size:23px
  }
  .auth-box {
    padding:20px 23px
  }
  .auth-box h2 {
    font-size:29px
  }
  .auth-box>p {
    font-size:16px
  }
  .auth-tabs>a {
    font-size:12px
  }
  .auth-tabs {
    margin-bottom:26px
  }
  .auth-options {
    flex-wrap:wrap;
    gap:8px
  }
  .auth-form {
    gap:13px
  }
  .social-buttons {
    gap:7px
  }
  .social-buttons button {
    font-size:10px;
    gap:6px
  }
  .social-divider {
    font-size:10px;
    gap:8px
  }
  .auth-switch .link,.auth-switch {
    font-size:11px
  }
  .account-layout {
    grid-template-columns:1fr;
    gap:25px
  }
  .account-sidebar {
    border:0;
    border-radius:0
  }
  .profile-mini {
    border:1px solid var(--line);
    border-radius:9px;
    box-shadow:var(--shadow);
    padding:16px
  }
  .profile-mini strong {
    font-size:14px
  }
  .profile-mini small {
    font-size:12px
  }
  .profile-mini .link {
    font-size:12px
  }
  .account-nav {
    grid-template-columns:repeat(6,minmax(0,1fr));
    padding:14px 0 0;
    gap:7px
  }
  .account-nav>a,.account-nav>button {
    flex-direction:column;
    justify-content:center;
    gap:9px;
    padding:12px 7px;
    font-size:11px;
    text-align:center
  }
  .account-nav .icon {
    width:23px;
    height:23px
  }
  .order-card {
    grid-template-columns:140px minmax(100px,1fr) 135px 145px;
    gap:14px;
    padding:19px 17px
  }
  .order-actions {
    grid-column:4;
    grid-row:auto
  }
  .order-thumbnails {
    grid-row:auto;
    grid-column:auto
  }
  .order-sum {
    grid-row:auto;
    grid-column:auto
  }
  .order-thumbnails img {
    width:40px;
    height:61px
  }
  .order-sum strong {
    font-size:17px
  }
  .order-card h3 {
    font-size:12px
  }
  .order-actions>.btn {
    font-size:12px
  }
  .success-hero {
    gap:23px;
    padding:30px
  }
  .success-hero .success-copy {
    max-width:79%
  }
  .success-hero h1 {
    font-size:29px;
    max-width:100%
  }
  .success-hero .success-copy>p {
    font-size:15px;
    max-width:90%
  }
  .success-hero>img {
    opacity:.3
  }
  .success-layout {
    grid-template-columns:1fr 1.2fr
  }
  .success-side {
    grid-template-columns:1fr;
    gap:15px
  }
  .success-side>.card {
    padding:20px
  }
  .success-side>.payment-success {
    grid-column:auto
  }
  .tracking-heading {
    align-items:start
  }
  .tracking-heading .notice {
    font-size:10px;
    max-width:270px;
    padding:10px
  }
  .editorial-layout {
    gap:25px
  }
  .editorial-photo {
    height:320px
  }
  .editorial-copy h2 {
    font-size:25px
  }
  .editorial-copy p {
    font-size:13px
  }
  .value-grid,.info-grid {
    gap:14px
  }
  .value-grid .card,.info-grid>.card {
    padding:23px
  }
  .value-grid h3 {
    font-size:19px
  }
  .info-grid h2 {
    font-size:22px
  }
  .value-grid p,.info-grid p {
    font-size:12px
  }
  .contact-layout {
    gap:22px;
    grid-template-columns:1fr 1.1fr
  }
  .contact-info {
    padding:25px
  }
  .contact-info h2 {
    font-size:27px
  }
  .contact-layout>.panel {
    padding:24px
  }
  .contact-layout .form-grid {
    grid-template-columns:1fr
  }
  .contact-layout .field.full {
    grid-column:auto
  }
  .author-grid {
    grid-template-columns:repeat(3,1fr);
    gap:15px
  }
  .author-card {
    padding:24px 16px
  }
  .author-card h2 {
    font-size:20px
  }
  .footer-main {
    grid-template-columns:1.2fr 1fr 1fr;
    gap:25px;
    padding-top:33px
  }
  .footer-main>div:last-child {
    grid-column:1/-1;
    border-top:1px solid var(--line);
    padding-top:16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px
  }
  .footer-main>div:last-child h3 {
    margin:0
  }
  .footer-main>div:last-child .footer-links {
    display:flex;
    flex-wrap:wrap;
    gap:17px
  }
  .footer-main>div:last-child .footer-payments {
    margin:0!important
  }
  .footer-brand .brand {
    width:175px
  }
  .footer-main h3 {
    font-size:18px
  }
  .site-footer {
    padding-bottom:64px
  }
  .mobile-bottom-nav {
    display:flex;
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:#fffffffa;
    backdrop-filter:blur(15px);
    border-top:1px solid var(--line);
    box-shadow:0 -4px 20px #092d4807;
    align-items:center;
    justify-content:space-around;
    padding:9px 8px max(9px,env(safe-area-inset-bottom));
    z-index:35;
    min-height:63px
  }
  .mobile-bottom-nav a {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:3px;
    font-size:9px;
    position:relative;
    flex:1;
    color:#4e6477
  }
  .mobile-bottom-nav .icon {
    width:21px;
    height:21px
  }
  .mobile-bottom-nav a.active {
    color:var(--teal);
    font-weight:700
  }
  .mobile-bottom-nav a.active:before {
    content:'';
    width:24px;
    height:2px;
    background:var(--teal);
    position:absolute;
    top:-9px
  }
  .mobile-bottom-nav .nav-count {
    position:absolute;
    top:-4px;
    left:calc(50% + 5px);
    background:var(--teal);
    color:white;
    border-radius:50%;
    font-size:8px;
    min-width:13px;
    text-align:center;
    line-height:13px;
    padding:0 3px
  }
  .toast-region {
    bottom:80px
  }
  .page {
    padding-bottom:35px
  }
}

@media(max-width:600px) {
  h1 {
    font-size:31px
  }
  h2 {
    font-size:25px
  }
  .container {
    width:calc(100% - 28px)
  }
  .main-header {
    grid-template-columns:29px 1fr auto;
    gap:0 11px
  }
  .main-header>.brand {
    width:174px
  }
  .hero {
    min-height:264px;
    border-radius:6px
  }
  .hero-copy {
    padding:28px 17px 20px;
    width:69%;
    max-width:none
  }
  .hero h1 {
    font-size:30px;
    line-height:1.07;
    max-width:240px;
    margin-bottom:12px
  }
  .hero-copy>p {
    font-size:15px;
    line-height:1.4;
    max-width:216px;
    margin-bottom:17px
  }
  .hero-photo {
    width:65%;
    object-position:61% center
  }
  .hero:after {
    background:linear-gradient(90deg,#f8f4ee 0%,#f8f4ee 26%,#f8f4eeed 41%,#f8f4ee11 70%,transparent 100%)
  }
  .hero-copy>.btn {
    min-height:38px;
    font-size:12px;
    padding:9px 13px;
    gap:7px;
    border-radius:5px
  }
  .hero-copy>.btn .icon {
    width:16px;
    height:16px
  }
  .hero-controls {
    margin-top:20px;
    gap:16px
  }
  .hero-controls>.icon-btn {
    display:none
  }
  .hero-dot {
    width:8px;
    height:8px
  }
  .hero-dots {
    gap:9px
  }
  .hero-ornament {
    display:none
  }
  .benefits {
    padding:18px 0;
    gap:0
  }
  .benefit {
    padding:0 7px;
    gap:8px
  }
  .benefit:first-child {
    padding-left:5px
  }
  .benefit .icon {
    width:25px;
    height:25px
  }
  .benefit strong {
    font-size:10px;
    line-height:1.4;
    max-width:85px
  }
  .section {
    margin-top:26px
  }
  .section-head {
    gap:9px;
    margin-bottom:14px;
    align-items:center
  }
  .section-head h2 {
    font-size:23px
  }
  .section-head p {
    font-size:11px;
    line-height:1.4;
    margin-top:4px
  }
  .section-head .link {
    font-size:11px;
    gap:4px
  }
  .section-head .link .icon {
    width:14px;
    height:14px
  }
  .category-grid {
    gap:10px
  }
  .category-card img {
    height:75px
  }
  .category-card strong {
    font-size:10px;
    min-height:40px;
    padding:7px 4px
  }
  .home-categories .category-card:nth-child(n+5) {
    display:none
  }
  .home-categories .category-card {
    background:#f7f3ed
  }
  .editor-grid {
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    gap:13px;
    padding:0 1px 9px;
    scrollbar-width:thin
  }
  .editor-grid>.book-card.compact {
    min-width:100%;
    scroll-snap-align:start;
    box-shadow:0 3px 9px #092d4808;
    padding:14px
  }
  .book-card.compact .book-cover {
    width:107px;
    height:157px;
    padding-right:14px
  }
  .book-card.compact .book-body {
    padding-left:0
  }
  .book-card.compact .book-title {
    font-size:14px;
    min-height:35px;
    padding-right:21px;
    -webkit-line-clamp:3
  }
  .book-card.compact .book-author {
    font-size:11px
  }
  .book-card.compact .stars {
    font-size:15px
  }
  .book-card.compact .book-price {
    font-size:17px;
    margin-top:4px
  }
  .book-card.compact .btn {
    font-size:12px;
    min-height:35px
  }
  .book-card.compact>.heart {
    right:9px;
    top:10px;
    width:27px;
    height:27px
  }
  .book-card.compact>.heart .icon {
    width:19px;
    height:19px
  }
  .shelf-grid {
    display:flex;
    overflow-x:auto;
    gap:12px;
    scroll-snap-type:x mandatory;
    padding-bottom:9px;
    scrollbar-width:thin
  }
  .shelf-grid>.book-card {
    flex:0 0 162px;
    scroll-snap-align:start
  }
  .shelf-grid>.book-card:nth-child(n+5) {
    display:flex
  }
  .shelf-grid .book-cover {
    height:180px;
    padding:17px 15px 9px
  }
  .shelf-grid .book-body {
    padding:9px 11px 12px
  }
  .shelf-grid .book-title {
    font-size:13px
  }
  .shelf-grid .book-author {
    font-size:10px;
    min-height:27px;
    margin-bottom:3px
  }
  .shelf-grid .book-price {
    font-size:14px
  }
  .shelf-grid .book-body>.btn {
    font-size:11px
  }
  .split-promos {
    grid-template-columns:1fr;
    gap:15px;
    margin-top:27px
  }
  .promo-panel {
    min-height:174px;
    padding:23px
  }
  .promo-panel>div {
    width:69%
  }
  .promo-panel h2 {
    font-size:26px
  }
  .promo-panel p {
    font-size:12px;
    margin-bottom:14px
  }
  .promo-panel>img {
    width:43%;
    opacity:.65
  }
  .newsletter {
    padding:24px 20px;
    gap:18px;
    margin-top:28px
  }
  .newsletter h2 {
    font-size:25px
  }
  .newsletter p {
    font-size:12px
  }
  .newsletter form {
    gap:7px
  }
  .newsletter input {
    font-size:12px;
    padding:10px!important
  }
  .newsletter .btn {
    font-size:12px;
    padding-inline:13px
  }
  .page-inner {
    padding-top:20px
  }
  .mini-breadcrumb {
    padding:14px 0;
    font-size:10px;
    gap:6px;
    line-height:1.7
  }
  .page-banner {
    border-radius:5px;
    padding:23px 19px;
    min-height:133px
  }
  .page-banner h1 {
    font-size:31px;
    max-width:88%;
    margin-bottom:8px
  }
  .page-banner>p {
    font-size:15px;
    max-width:81%;
    line-height:1.45
  }
  .page-banner>img {
    width:51%;
    opacity:.62;
    object-position:62% center
  }
  .page-banner:after {
    background:linear-gradient(90deg,var(--cream) 0%,var(--cream) 40%,#f8f4eedd 59%,#f8f4ee22 100%)
  }
  .page-banner .mini-breadcrumb {
    font-size:9px;
    padding:0 0 11px
  }
  .catalog-top {
    gap:10px;
    margin-bottom:14px
  }
  .catalog-top>p {
    flex:1 1 auto;
    order:1
  }
  .catalog-top>.sort-tools {
    display:contents
  }
  .mobile-filter-button {
    order:2;
    margin-left:auto;
    padding:7px 10px;
    font-size:11px;
    min-height:34px;
    gap:5px
  }
  .catalog-top select {
    order:3;
    flex:1;
    height:36px;
    min-height:36px;
    max-width:none;
    font-size:11px;
    padding:7px 10px
  }
  .view-tools {
    order:4
  }
  .view-tools .icon-btn {
    width:35px;
    height:35px
  }
  .chips {
    gap:8px;
    margin-bottom:13px;
    padding-bottom:5px
  }
  .chip {
    font-size:11px;
    padding:8px 13px;
    border-radius:7px
  }
  .product-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }
  .product-grid .book-cover {
    height:181px;
    padding:15px 17px 8px
  }
  .book-body {
    padding:10px 11px 12px
  }
  .product-grid .book-title {
    font-size:13px;
    min-height:35px
  }
  .product-grid .book-author {
    font-size:10px;
    min-height:27px;
    margin-bottom:4px
  }
  .product-grid .book-price {
    font-size:15px;
    gap:5px;
    margin-bottom:9px
  }
  .product-grid .book-price del {
    font-size:9px
  }
  .product-grid .rating {
    font-size:10px;
    gap:4px
  }
  .product-grid .stars {
    font-size:13px;
    letter-spacing:.2px
  }
  .product-grid .book-body>.btn {
    font-size:11px;
    gap:5px;
    min-height:34px;
    padding-inline:5px
  }
  .product-grid .book-body>.btn .icon {
    width:15px;
    height:15px
  }
  .product-grid .book-card>.heart {
    right:4px;
    top:5px;
    width:28px;
    height:28px
  }
  .product-grid .book-card>.heart .icon {
    width:19px;
    height:19px
  }
  .product-grid .discount-tag {
    font-size:9px;
    padding:3px 6px;
    left:9px;
    top:10px
  }
  .product-grid.list-view {
    grid-template-columns:1fr
  }
  .product-grid.list-view .book-card {
    gap:16px;
    padding:14px
  }
  .product-grid.list-view .book-cover {
    height:150px;
    width:101px;
    padding:0
  }
  .product-grid.list-view .book-body {
    padding:3px 0 0
  }
  .product-grid.list-view .book-title {
    font-size:14px;
    min-height:33px;
    padding-right:15px
  }
  .product-grid.list-view .book-author {
    font-size:11px;
    min-height:0
  }
  .product-grid.list-view .book-body>.btn {
    font-size:12px
  }
  .catalog-bottom {
    flex-wrap:wrap;
    justify-content:center;
    gap:9px
  }
  .catalog-bottom .small {
    font-size:10px;
    margin:0 0 0 auto;
    align-self:auto
  }
  .pagination {
    margin-top:22px
  }
  .related-searches {
    gap:7px;
    margin-top:20px
  }
  .related-searches strong {
    width:100%;
    font-size:19px;
    margin-bottom:5px
  }
  .related-searches .chip {
    font-size:10px;
    border-radius:18px
  }
  .all-categories {
    grid-template-columns:repeat(2,1fr);
    gap:15px
  }
  .all-categories .category-card img {
    height:119px
  }
  .all-categories .category-card strong {
    font-size:16px;
    padding:14px 7px 7px;
    min-height:0
  }
  .all-categories .category-card p {
    font-size:11px;
    padding:0 10px 15px
  }
  .product-layout {
    grid-template-columns:1fr;
    gap:21px
  }
  .product-gallery {
    grid-template-columns:1fr;
    gap:11px
  }
  .gallery-main,.gallery-main>img {
    height:348px;
    min-height:348px
  }
  .gallery-main>img {
    object-fit:cover;
    object-position:center 43%;
    width:100%
  }
  .gallery-main>img.contain {
    height:300px;
    min-height:0;
    width:70%
  }
  .gallery-main>.cover-design {
    height:285px;
    width:195px
  }
  .gallery-main>.cover-design strong {
    font-size:31px
  }
  .gallery-thumbnails {
    display:flex;
    justify-content:center;
    gap:10px
  }
  .gallery-thumb {
    width:48px;
    height:55px;
    padding:3px
  }
  .gallery-thumb .icon {
    width:21px;
    height:21px
  }
  .product-details h1 {
    font-size:32px;
    margin-top:4px
  }
  .product-details .subtitle {
    font-size:21px;
    line-height:1.2
  }
  .product-details .author-link {
    font-size:14px;
    margin-top:7px
  }
  .product-rating {
    margin:5px 0 12px;
    gap:14px
  }
  .product-rating .stars {
    font-size:18px
  }
  .product-rating .rating {
    font-size:11px
  }
  .product-rating .link {
    font-size:11px;
    padding-left:14px
  }
  .product-price {
    font-size:28px;
    gap:15px
  }
  .product-price del {
    font-size:13px
  }
  .product-details .stock {
    font-size:11px;
    margin-bottom:12px
  }
  .product-description {
    font-size:13px
  }
  .format-options {
    gap:8px;
    margin:9px 0 16px
  }
  .format-card {
    padding:12px 9px
  }
  .format-card strong {
    font-size:10px
  }
  .format-card small {
    font-size:11px;
    margin-top:6px
  }
  .format-card .icon {
    display:none
  }
  .product-purchase {
    flex-wrap:wrap;
    gap:9px
  }
  .product-purchase>.quantity {
    flex:none;
    max-width:none;
    height:36px;
    order:0;
    margin-right:calc(100% - 104px);
    margin-bottom:6px
  }
  .product-purchase>.quantity button {
    width:33px
  }
  .product-purchase>.quantity output {
    width:34px
  }
  .product-purchase>.btn {
    font-size:12px;
    min-height:43px;
    gap:6px;
    padding-inline:9px
  }
  .product-purchase>.btn .icon {
    width:19px;
    height:19px
  }
  .product-trust {
    display:grid;
    padding-top:16px
  }
  .product-trust strong {
    font-size:9px
  }
  .product-trust small {
    font-size:8px
  }
  .product-trust .icon {
    width:24px;
    height:24px
  }
  .tab-buttons {
    gap:0
  }
  .tab-button {
    flex:1;
    font-size:15px;
    padding:13px 10px
  }
  .tab-content {
    padding:19px 17px;
    font-size:12px
  }
  .specs {
    grid-template-columns:1fr
  }
  .spec {
    font-size:11px
  }
  .delivery-card {
    grid-template-columns:1fr 1fr;
    gap:17px;
    padding:20px 16px
  }
  .delivery-info {
    gap:9px;
    font-size:11px
  }
  .delivery-info .icon {
    width:23px;
    height:23px
  }
  .delivery-info p {
    font-size:10px
  }
  .wishlist-toolbar .section-head {
    margin-bottom:17px
  }
  .wishlist-grid {
    grid-template-columns:1fr;
    gap:14px
  }
  .wishlist-grid .book-card {
    flex-direction:row;
    padding:15px;
    gap:15px
  }
  .wishlist-grid .book-cover {
    width:95px;
    height:147px;
    padding:0;
    flex:0 0 auto;
    background:transparent
  }
  .wishlist-grid .book-body {
    padding:0;
    display:flex
  }
  .wishlist-grid .book-title {
    font-size:14px;
    min-height:35px;
    padding-right:18px;
    margin-bottom:4px
  }
  .wishlist-grid .book-author {
    font-size:11px;
    min-height:0;
    margin-bottom:5px
  }
  .wishlist-grid .book-price {
    font-size:16px;
    margin:4px 0 5px
  }
  .wishlist-grid .stock {
    font-size:11px;
    margin-bottom:7px
  }
  .wishlist-grid .book-body>.btn {
    font-size:12px;
    min-height:34px;
    padding:6px 8px
  }
  .wishlist-grid .remove-favorite {
    font-size:10px;
    margin-top:9px;
    margin-left:0
  }
  .wishlist-grid .book-card>.heart {
    right:8px;
    top:10px
  }
  .empty-state {
    padding:30px 15px;
    margin:20px auto
  }
  .empty-state h2 {
    font-size:25px
  }
  .empty-state p {
    font-size:13px
  }
  .cart-layout {
    margin-top:22px
  }
  .cart-list {
    padding:0;
    border:0;
    box-shadow:none
  }
  .cart-table-head {
    display:none
  }
  .cart-row {
    display:grid;
    grid-template-columns:1fr 92px 27px;
    gap:12px 9px;
    padding:15px 13px;
    border:1px solid var(--line);
    border-radius:8px;
    box-shadow:var(--shadow);
    margin-bottom:12px
  }
  .cart-book {
    grid-column:1/3;
    gap:13px;
    align-items:start
  }
  .cart-book>a {
    flex-basis:67px;
    height:87px
  }
  .cart-book h3 {
    font-size:14px;
    padding-top:2px
  }
  .cart-book p {
    font-size:11px;
    margin:5px 0 7px;
    line-height:1.4
  }
  .cart-book .stock {
    font-size:10px
  }
  .cart-row>.icon-btn {
    grid-column:3;
    grid-row:1;
    align-self:start;
    width:25px;
    height:30px
  }
  .cart-row>.quantity {
    grid-row:2;
    grid-column:1;
    width:max-content;
    height:32px
  }
  .cart-row>.quantity button {
    width:28px
  }
  .cart-row>.quantity output {
    width:29px
  }
  .cart-row>.cart-subtotal {
    grid-row:2;
    grid-column:2/4;
    text-align:right;
    font-size:14px
  }
  .promo-code {
    padding:13px;
    margin:0;
    gap:9px;
    background:#f1f6f8
  }
  .promo-code label {
    font-size:12px;
    flex-basis:100%
  }
  .promo-code form {
    min-width:0
  }
  .promo-code input {
    font-size:11px
  }
  .cart-layout>.summary-card {
    padding:21px 18px
  }
  .summary-card h2 {
    font-size:25px;
    margin-bottom:18px
  }
  .summary-line {
    font-size:12px;
    margin:12px 0
  }
  .summary-total {
    font-size:24px;
    margin-top:17px;
    padding:17px 0
  }
  .summary-card>.btn {
    font-size:15px;
    min-height:44px
  }
  .notice {
    font-size:11px;
    padding:13px;
    gap:9px
  }
  .demo-note {
    font-size:10px
  }
  .quote-banner {
    min-height:150px;
    padding:23px;
    gap:20px
  }
  .quote-banner p {
    font-size:22px;
    max-width:175px
  }
  .quote-banner>span {
    font-size:16px;
    max-width:180px
  }
  .quote-banner>img {
    opacity:.2;
    right:0;
    width:65%
  }
  .checkout-stepper {
    margin:21px 0 25px
  }
  .checkout-step {
    font-size:10px;
    gap:9px
  }
  .checkout-step>span:first-child {
    width:34px;
    height:34px;
    outline-width:6px
  }
  .checkout-step:before {
    top:17px
  }
  .checkout-step>.icon {
    width:19px;
    height:19px
  }
  .checkout-form {
    padding:20px 16px
  }
  .form-heading {
    font-size:21px;
    margin-bottom:19px;
    gap:9px
  }
  .form-grid {
    grid-template-columns:1fr;
    gap:16px
  }
  .field.full {
    grid-column:auto
  }
  .field label {
    font-size:12px
  }
  .field input,.field select,.field textarea {
    font-size:12px
  }
  .field .small {
    font-size:10px
  }
  .choice-grid {
    gap:8px
  }
  .choice-card {
    display:block;
    padding:16px 7px 13px;
    text-align:center
  }
  .choice-card>.icon {
    width:28px;
    height:28px;
    margin-bottom:7px
  }
  .choice-card strong {
    font-size:11px;
    padding-right:0;
    line-height:1.4
  }
  .choice-card small {
    font-size:10px;
    line-height:1.4;
    margin-top:5px
  }
  .choice-card b {
    font-size:12px;
    margin-top:8px
  }
  .choice-card input {
    width:11px;
    height:11px;
    right:5px;
    top:5px
  }
  .check-label {
    font-size:11px;
    gap:8px
  }
  .checkout-actions {
    gap:10px;
    margin-top:22px
  }
  .checkout-actions .btn {
    font-size:12px;
    min-height:41px;
    padding-inline:12px
  }
  .checkout-actions .btn:last-child {
    min-width:0;
    flex:1
  }
  .checkout-summary {
    padding:21px 18px
  }
  .checkout-summary h2 {
    font-size:23px
  }
  .checkout-summary h2 .link {
    font-size:10px
  }
  .checkout-summary .order-mini {
    gap:12px
  }
  .order-mini h3 {
    font-size:12px
  }
  .order-mini>strong {
    font-size:12px
  }
  .checkout-summary .summary-line {
    font-size:12px
  }
  .checkout-summary .summary-total {
    font-size:23px
  }
  .checkout-summary .promo-code {
    margin:14px 0
  }
  .checkout-summary .promo-code label {
    flex-basis:100%
  }
  .review-box {
    padding:16px 14px;
    font-size:12px;
    gap:10px
  }
  .review-box p {
    font-size:12px
  }
  .auth-layout {
    grid-template-columns:1fr;
    border:0;
    min-height:0;
    margin-bottom:10px;
    gap:15px;
    overflow:visible
  }
  .auth-art {
    padding:22px 25px;
    border-radius:7px;
    min-height:142px;
    overflow:hidden
  }
  .auth-art h1 {
    font-size:28px;
    max-width:235px;
    position:relative;
    z-index:1;
    margin-bottom:10px
  }
  .auth-art>p {
    font-size:14px;
    max-width:240px;
    position:relative;
    z-index:1
  }
  .auth-art>img {
    height:100%;
    width:43%;
    object-position:center 70%
  }
  .auth-art:after {
    background:linear-gradient(90deg,var(--cream) 0%,var(--cream) 34%,#f8f4eeaa 52%,transparent 100%)
  }
  .auth-benefits,.auth-quote {
    display:none
  }
  .auth-box {
    padding:18px 21px 26px;
    border:1px solid var(--line);
    border-radius:9px;
    box-shadow:var(--shadow)
  }
  .auth-tabs {
    margin-bottom:26px
  }
  .auth-tabs>a {
    font-size:14px;
    padding:12px 4px
  }
  .auth-box h2 {
    font-size:32px
  }
  .auth-box>p {
    font:14px Arial,sans-serif;
    margin:9px 0 24px
  }
  .auth-form {
    gap:15px
  }
  .auth-options {
    justify-content:space-between;
    gap:8px
  }
  .auth-options .link,.auth-options .check-label {
    font-size:11px
  }
  .input-with-icon {
    height:48px;
    padding-inline:12px
  }
  .input-with-icon input {
    height:45px;
    font-size:12px;
    padding-inline:11px!important
  }
  .auth-form>.btn {
    min-height:43px;
    font-size:15px
  }
  .social-divider {
    font-size:11px;
    margin-top:24px
  }
  .social-buttons button {
    font-size:11px;
    min-height:43px
  }
  .auth-switch {
    font-size:12px;
    margin-top:23px
  }
  .auth-switch .link {
    font-size:12px
  }
  .auth-reset {
    padding:26px 22px;
    margin-top:15px
  }
  .auth-reset h1 {
    font-size:29px
  }
  .account-layout {
    margin-top:19px;
    gap:23px
  }
  .profile-mini {
    padding:16px 14px;
    gap:14px
  }
  .avatar {
    width:56px;
    height:56px
  }
  .profile-mini strong {
    font-size:14px
  }
  .profile-mini small,.profile-mini .link {
    font-size:11px
  }
  .account-nav {
    grid-template-columns:repeat(3,1fr);
    gap:5px;
    padding-top:12px
  }
  .account-nav>a,.account-nav>button {
    padding:13px 7px 11px;
    gap:8px;
    font-size:11px;
    border-radius:6px
  }
  .account-content>h2 {
    font-size:26px
  }
  .account-content>.muted {
    font-size:12px;
    margin-bottom:15px;
    line-height:1.6
  }
  .order-tabs {
    gap:7px;
    margin:12px 0 17px
  }
  .order-tabs>button {
    padding:10px 8px;
    font-size:10px
  }
  .order-card {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    padding:16px 14px;
    margin-bottom:14px
  }
  .order-card .order-meta {
    grid-row:1;
    grid-column:1/-1;
    padding-right:95px;
    position:relative
  }
  .order-card .order-meta .badge {
    position:absolute;
    right:0;
    top:2px;
    font-size:10px;
    max-width:100px
  }
  .order-card h3 {
    font-size:13px;
    margin-bottom:4px
  }
  .order-card time {
    font-size:10px;
    margin-bottom:0
  }
  .order-thumbnails {
    grid-column:1/-1;
    grid-row:2;
    margin-top:2px
  }
  .order-thumbnails img {
    width:50px;
    height:72px
  }
  .order-thumbnails>.more-books {
    height:68px;
    width:47px
  }
  .order-sum {
    grid-column:1/-1;
    grid-row:3;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px
  }
  .order-sum>span {
    display:none
  }
  .order-sum strong {
    font-size:17px;
    order:2;
    margin:0
  }
  .order-sum small {
    font-size:11px
  }
  .order-actions {
    grid-column:1/-1;
    grid-row:4;
    display:flex;
    gap:9px
  }
  .order-actions>.btn {
    flex:1;
    font-size:12px;
    min-height:34px
  }
  .profile-form {
    padding:21px 18px
  }
  .address-grid {
    grid-template-columns:1fr;
    gap:16px
  }
  .address-card {
    padding:23px;
    min-height:210px
  }
  .add-address {
    min-height:120px
  }
  .payment-history {
    font-size:10px;
    table-layout:fixed;
    word-break:break-word
  }
  .payment-history td,.payment-history th {
    padding:13px 8px
  }
  .payment-history .badge {
    font-size:8px;
    padding:4px 5px
  }
  .success-hero {
    align-items:flex-start;
    gap:17px;
    padding:27px 19px;
    min-height:0
  }
  .success-icon {
    width:53px;
    height:53px;
    box-shadow:0 0 0 7px #eaf5ec99;
    margin-top:4px
  }
  .success-icon .icon {
    width:30px;
    height:30px
  }
  .success-hero .success-copy {
    max-width:none;
    flex:1
  }
  .success-hero h1 {
    font-size:26px;
    line-height:1.15;
    max-width:100%
  }
  .success-hero .success-copy>p {
    font:12px/1.6 Arial,sans-serif;
    max-width:100%;
    margin:12px 0
  }
  .success-hero .order-number {
    font-size:11px;
    margin-top:12px
  }
  .success-hero .order-number strong {
    display:block;
    font-size:14px;
    margin:4px 0 0;
    overflow-wrap:anywhere
  }
  .success-hero .small {
    font-size:10px
  }
  .success-hero>img {
    display:none
  }
  .success-layout {
    grid-template-columns:1fr;
    gap:18px;
    margin-top:20px
  }
  .success-layout>.panel {
    padding:21px 18px
  }
  .success-side {
    grid-template-columns:1fr 1fr;
    gap:12px
  }
  .success-side>.card {
    padding:18px 14px
  }
  .success-side h3 {
    font-size:17px;
    gap:8px;
    margin-bottom:10px
  }
  .success-side h3 .icon {
    width:22px;
    height:22px
  }
  .success-side p {
    font-size:11px;
    line-height:1.8
  }
  .success-side>.payment-success {
    grid-column:1/-1
  }
  .payment-success {
    font-size:12px;
    gap:13px
  }
  .payment-success strong {
    font-size:21px
  }
  .success-side h3 .icon {
    flex-shrink:0
  }
  .tracking-card {
    padding:22px 18px;
    margin-top:20px
  }
  .tracking-heading {
    flex-direction:column;
    gap:14px;
    align-items:stretch;
    margin-bottom:21px
  }
  .tracking-heading h2 {
    font-size:24px
  }
  .tracking-heading .notice {
    font-size:11px;
    max-width:none
  }
  .tracking-timeline {
    grid-template-columns:1fr;
    gap:0;
    margin:0 0 21px
  }
  .tracking-step {
    display:grid;
    grid-template-columns:33px 1fr;
    text-align:left;
    gap:0 14px;
    padding:0 0 22px
  }
  .tracking-step:before {
    left:16px!important;
    right:auto!important;
    top:0;
    bottom:0;
    width:2px;
    height:auto
  }
  .tracking-step:last-child:before {
    height:15px
  }
  .tracking-step:last-child {
    padding-bottom:0
  }
  .tracking-step>.step-icon {
    grid-row:1/3;
    grid-column:1;
    margin:0;
    width:33px;
    height:33px;
    outline-width:4px
  }
  .tracking-step .icon {
    width:18px;
    height:18px
  }
  .tracking-step strong {
    grid-row:1;
    grid-column:2;
    font-size:12px;
    line-height:1.4;
    padding-top:0
  }
  .tracking-step small {
    grid-column:2;
    grid-row:2;
    font-size:10px;
    margin-top:5px
  }
  .tracking-buttons {
    flex-direction:column;
    gap:10px
  }
  .tracking-buttons>.btn {
    font-size:13px;
    min-height:41px
  }
  .tracking-form {
    gap:8px;
    flex-wrap:wrap
  }
  .tracking-form label {
    font-size:11px
  }
  .tracking-form input {
    font-size:12px
  }
  .tracking-form .btn {
    font-size:12px;
    padding-inline:13px;
    min-height:41px
  }
  .tracking-info-grid {
    grid-template-columns:1fr;
    gap:14px
  }
  .tracking-info-grid .panel {
    padding:20px
  }
  .editorial-layout {
    grid-template-columns:1fr;
    gap:20px;
    margin-top:22px
  }
  .editorial-copy h2 {
    font-size:27px
  }
  .editorial-copy p {
    font-size:14px;
    line-height:1.85
  }
  .editorial-photo {
    height:268px
  }
  .value-grid,.info-grid {
    grid-template-columns:1fr;
    gap:15px;
    margin-top:23px
  }
  .value-grid .card,.info-grid>.card {
    padding:24px
  }
  .value-grid h3 {
    font-size:24px
  }
  .value-grid p,.info-grid p {
    font-size:13px
  }
  .value-grid .card>.icon,.info-grid>.card>.icon {
    width:30px;
    height:30px;
    margin-bottom:12px
  }
  .info-grid h2 {
    font-size:26px
  }
  .faq-list {
    margin-top:23px
  }
  .faq-item summary {
    font-size:13px;
    padding:17px 18px
  }
  .faq-item p {
    font-size:12px;
    padding:0 18px 19px
  }
  .contact-layout {
    grid-template-columns:1fr;
    gap:20px;
    margin-top:23px
  }
  .contact-info {
    padding:25px
  }
  .contact-layout .form-grid {
    grid-template-columns:1fr
  }
  .contact-layout>.panel {
    padding:25px 20px
  }
  .contact-layout .btn {
    margin-top:19px
  }
  .author-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:13px;
    margin-top:23px
  }
  .author-card {
    padding:21px 13px
  }
  .author-initial {
    width:66px;
    height:66px;
    font-size:24px;
    border-width:4px;
    margin-bottom:15px
  }
  .author-card h2 {
    font-size:19px;
    min-height:44px;
    line-height:1.25
  }
  .author-card p {
    font-size:11px;
    margin-bottom:14px
  }
  .author-card .btn {
    font-size:10px;
    min-height:34px;
    padding:7px 10px
  }
  .author-bio {
    gap:17px;
    padding-block:25px
  }
  .author-bio .author-initial {
    width:74px;
    height:74px;
    font-size:25px
  }
  .author-bio h2 {
    font-size:25px
  }
  .author-bio p {
    font-size:12px
  }
  .document-content {
    margin-top:26px
  }
  .document-content h2 {
    font-size:22px
  }
  .document-content p {
    font-size:13px
  }
  .footer-main {
    grid-template-columns:1fr 1fr;
    gap:25px 23px;
    padding:30px 0 25px
  }
  .footer-brand {
    grid-column:1/-1
  }
  .footer-brand .brand {
    width:192px;
    margin-bottom:12px
  }
  .footer-brand p {
    max-width:none;
    font-size:12px
  }
  .footer-socials {
    margin-top:12px
  }
  .footer-main h3 {
    font-size:19px;
    margin:0 0 16px
  }
  .footer-links {
    font-size:12px;
    gap:10px
  }
  .footer-main>div:last-child {
    grid-column:1/-1;
    display:block;
    padding-top:20px
  }
  .footer-main>div:last-child h3 {
    margin-bottom:14px
  }
  .footer-main>div:last-child .footer-links {
    display:flex;
    gap:16px;
    flex-wrap:wrap
  }
  .footer-main>div:last-child .footer-payments {
    margin-top:16px!important;
    flex-wrap:wrap
  }
  .footer-bottom {
    font-size:10px;
    gap:12px;
    padding:16px 0
  }
  .footer-bottom .link {
    font-size:10px
  }
  .toast {
    padding:12px 14px;
    font-size:12px;
    gap:10px;
    max-width:100%;
    line-height:1.5
  }
  .toast .icon {
    width:19px;
    height:19px
  }
  .toast a {
    font-size:11px
  }
  .toast-region {
    bottom:78px;
    width:calc(100% - 28px);
    max-width:460px
  }
  .modal-head {
    padding:18px 19px
  }
  .modal-head h2 {
    font-size:22px
  }
  .modal-body {
    padding:22px 19px
  }
  .modal-body>p {
    font-size:12px
  }
  .modal-actions .btn {
    font-size:12px
  }
  .modal {
    max-height:calc(100dvh - 30px)
  }
  .zoom-dialog img {
    height:auto;
    max-height:65vh
  }
  .book-preview {
    padding:24px
  }
  .book-preview h2 {
    font-size:27px
  }
  .book-preview p {
    font-size:12px
  }
}

@media(max-width:370px) {
  .container {
    width:calc(100% - 24px)
  }
  .main-header>.brand {
    width:157px
  }
  .header-actions {
    padding-right:5px
  }
  .hero {
    min-height:257px
  }
  .hero-copy {
    padding:25px 14px;
    width:72%
  }
  .hero h1 {
    font-size:28px;
    max-width:210px
  }
  .hero-copy>p {
    font-size:14px;
    max-width:194px
  }
  .hero-copy>.btn {
    font-size:11px;
    padding:9px 11px
  }
  .hero-photo {
    width:66%;
    object-position:64% center
  }
  .hero-controls {
    margin-top:17px
  }
  .benefit strong {
    font-size:9px
  }
  .category-card img {
    height:65px
  }
  .category-card strong {
    font-size:9px
  }
  .section-head h2 {
    font-size:21px
  }
  .section-head .link {
    font-size:10px
  }
  .product-grid {
    gap:10px
  }
  .product-grid .book-cover {
    height:161px;
    padding:13px 14px 7px
  }
  .book-body {
    padding:9px
  }
  .product-grid .book-title {
    font-size:12px;
    min-height:32px
  }
  .product-grid .book-body>.btn {
    font-size:10px;
    gap:4px;
    padding:7px 3px
  }
  .product-grid .book-price {
    font-size:13px
  }
  .product-grid .rating {
    font-size:9px
  }
  .product-grid .stars {
    font-size:12px
  }
  .product-grid .book-price del {
    font-size:8px
  }
  .book-card.compact .book-cover {
    width:88px;
    height:153px;
    padding-right:12px
  }
  .book-card.compact .book-title {
    font-size:13px
  }
  .book-card.compact .book-price {
    font-size:15px
  }
  .book-card.compact .btn {
    font-size:11px
  }
  .page-banner h1 {
    font-size:28px
  }
  .page-banner>p {
    font-size:14px
  }
  .wishlist-grid .book-cover {
    width:80px;
    height:140px
  }
  .wishlist-grid .book-title {
    font-size:13px
  }
  .wishlist-grid .book-body>.btn {
    font-size:11px
  }
  .auth-box {
    padding-inline:17px
  }
  .auth-options .link,.auth-options .check-label {
    font-size:10px
  }
  .auth-tabs>a {
    font-size:13px
  }
  .social-buttons button {
    font-size:10px
  }
  .choice-grid {
    gap:6px
  }
  .choice-card strong {
    font-size:10px
  }
  .choice-card small {
    font-size:9px
  }
  .choice-card b {
    font-size:11px
  }
  .checkout-form {
    padding-inline:14px
  }
  .form-heading {
    font-size:19px
  }
  .success-hero {
    padding:25px 15px;
    gap:14px
  }
  .success-icon {
    width:42px;
    height:42px
  }
  .success-icon .icon {
    width:25px;
    height:25px
  }
  .success-hero h1 {
    font-size:24px
  }
  .success-side {
    grid-template-columns:1fr
  }
  .success-side>.payment-success {
    grid-column:auto
  }
  .order-tabs {
    gap:3px
  }
  .order-tabs>button {
    font-size:9px;
    padding-inline:6px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*:before,*:after {
    animation:none!important;
    transition:none!important
  }
  .book-card:hover,.category-card:hover {
    transform:none
  }
}

@media print {
  .site-header,.site-footer,.mobile-bottom-nav,.toast-region,.btn,.mini-breadcrumb,.tracking-form,.checkout-stepper {
    display:none!important
  }
  body {
    font-size:11px
  }
  .container {
    width:100%;
    max-width:none
  }
  .page {
    padding:0
  }
  .card {
    box-shadow:none;
    break-inside:avoid
  }
  .page-banner {
    background:#fff;
    padding:15px 0
  }
  .page-banner>img,.page-banner:after,.hero-signature {
    display:none
  }
  .success-layout {
    grid-template-columns:1fr 1.5fr
  }
  .tracking-timeline {
    grid-template-columns:repeat(4,1fr)
  }
  .tracking-step {
    display:block;
    text-align:center
  }
  .tracking-step>.step-icon {
    margin:0 auto 10px
  }
  .tracking-step:before {
    display:none
  }
  .success-side {
    grid-template-columns:1fr 1fr
  }
  .success-side>.payment-success {
    grid-column:1/-1
  }
  .page-banner h1 {
    font-size:26px
  }
  .demo-note {
    font-size:10px
  }
}

/* Final specificity adjustments for shared input styles. */
.search-form input[type="search"] {
  border:0!important;
  box-shadow:none!important;
  min-height:0!important;
  padding:0 15px!important;
  background:transparent!important;
  border-radius:5px 0 0 5px!important
}

.filters .price-inputs input[type="number"] {
  min-height:33px!important;
  height:33px!important;
  padding:5px 7px!important;
  font-size:11px!important
}

.auth-box .input-with-icon input {
  min-height:0!important
}

@media(max-width:800px) {
  .catalog-layout>#desktop-filters {
    display:none
  }
}

@media(max-width:600px) {
  body[data-page="kabinet"] .info-grid {
    grid-template-columns:1fr!important
  }
  .newsletter form {
    width:100%
  }
  .newsletter form .btn {
    flex-shrink:0
  }
  .cart-layout .quote-banner {
    margin-top:20px
  }
}

.gallery-main>img:not(.contain) {
  object-fit:contain;
  object-position:center;
  background:var(--cream)
}

.choice-card:has(input:disabled) {
  opacity:.5;
  cursor:not-allowed
}

@media(max-width:600px) {
  .hero-photo {
    width:68%;
    height:100%;
    object-fit:contain;
    object-position:right bottom
  }
  .hero:after {
    background:linear-gradient(90deg,#f8f4ee 0%,#f8f4ee 26%,#f8f4eee8 40%,#f8f4ee00 72%,transparent 100%)
  }
}

.checkout-layout>* {
  min-width:0
}

@media(max-width:800px) {
  .checkout-layout {
    grid-template-columns:minmax(0,1fr)
  }
}
