:root {
  --green-950: #0c2d20;
  --green-800: #155f3d;
  --green-700: #1c764c;
  --green-100: #e8f4ec;
  --lime: #d5e95b;
  --cream: #fbf8ef;
  --ink: #17211b;
  --muted: #657068;
  --line: #dce3de;
  --white: #fff;
  --shadow: 0 18px 50px rgba(12, 45, 32, .09);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: var(--green-800); text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; color: var(--green-950); line-height: 1.1; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 600; letter-spacing: -.045em; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; letter-spacing: -.03em; }
h3 { font-size: 1.05rem; }
p { margin: .5rem 0 0; }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-tint { background: var(--cream); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--white); }
.skip-link:focus { top: 1rem; }
.announcement {
  display: flex; justify-content: center; gap: .8rem; padding: .55rem 1rem;
  background: var(--green-950); color: var(--white); font-size: .9rem; text-align: center;
}
.announcement a { color: var(--lime); font-weight: 700; }
.site-header {
  position: sticky; z-index: 40; top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 24px rgba(12, 45, 32, .07);
  backdrop-filter: blur(12px);
}
.header-row { display: grid; grid-template-columns: 130px minmax(260px, 1fr) auto; gap: clamp(1rem, 2.5vw, 2rem); align-items: center; min-height: 76px; }
.brand img { width: 108px; height: auto; }
.header-search { position: relative; display: flex; max-width: 650px; justify-self: center; width: 100%; border: 1px solid var(--line); border-radius: 999px; background: #f4f5f4; }
.search-symbol { position: relative; flex: 0 0 42px; }
.search-symbol::before { content: ""; position: absolute; left: 17px; top: 50%; width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 50%; transform: translateY(-60%); }
.search-symbol::after { content: ""; position: absolute; left: 28px; top: 52%; width: 7px; height: 2px; background: var(--ink); transform: rotate(45deg); transform-origin: left center; }
.header-search input {
  min-width: 0; flex: 1; padding: .72rem .5rem .72rem 0;
  border: 0; outline: 0; background: transparent; box-shadow: none;
  -webkit-appearance: none; appearance: none;
}
.header-search input:focus { border: 0; outline: 0; box-shadow: none; }
.header-search button { margin: 4px; border: 0; border-radius: 999px; padding: .55rem 1.25rem; background: var(--green-800); color: var(--white); cursor: pointer; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.65rem, 1.5vw, 1.2rem); }
.header-action { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink); font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.customer-menu { position: relative; }
.customer-menu summary { cursor: pointer; list-style: none; }
.customer-menu summary::-webkit-details-marker { display: none; }
.customer-menu summary:focus-visible { border-radius: 7px; outline: 2px solid var(--green-700); outline-offset: 4px; }
.customer-menu-chevron { margin-left: .1rem; font-size: .65rem; transition: transform .18s ease; }
.customer-menu[open] .customer-menu-chevron { transform: rotate(180deg); }
.customer-menu-panel { position: absolute; z-index: 80; top: calc(100% + .8rem); right: 0; width: min(280px, calc(100vw - 2rem)); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 45px rgba(12,45,32,.18); }
.customer-menu-identity { display: grid; padding: 1rem; border-bottom: 1px solid var(--line); }
.customer-menu-identity strong { overflow: hidden; color: var(--green-950); font-size: .95rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.customer-menu-identity small { overflow: hidden; color: var(--muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.customer-menu-panel nav { display: grid; padding: .4rem; }
.customer-menu-panel nav a, .customer-menu-panel button { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 42px; border: 0; border-radius: 9px; padding: .65rem .7rem; background: transparent; color: var(--ink); font-size: .88rem; font-weight: 400; text-align: left; text-decoration: none; cursor: pointer; }
.customer-menu-panel nav a:hover, .customer-menu-panel button:hover { background: var(--green-100); color: var(--green-950); }
.customer-menu-panel nav i, .customer-menu-panel button i { width: 1.1rem; color: var(--green-700); font-size: 1rem; text-align: center; }
.customer-menu-panel form { margin: 0; padding: .4rem; border-top: 1px solid var(--line); }
.action-icon { position: relative; display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; font-size: 1.25rem; line-height: 1; }
.account-icon::before { content: ""; position: absolute; top: .08rem; left: 50%; width: .52rem; height: .52rem; border: 1.8px solid currentColor; border-radius: 50%; transform: translateX(-50%); }
.account-icon::after { content: ""; position: absolute; bottom: .08rem; left: 50%; width: 1.05rem; height: .65rem; border: 1.8px solid currentColor; border-bottom: 0; border-radius: .8rem .8rem 0 0; transform: translateX(-50%); }
.cart-icon::before { content: ""; position: absolute; top: .25rem; left: .25rem; width: .95rem; height: .65rem; border: 1.8px solid currentColor; border-top: 0; transform: skew(-8deg); }
.cart-icon::after { content: "••"; position: absolute; bottom: -.25rem; left: .24rem; letter-spacing: .27rem; font-size: .85rem; }
.cart-link b { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding-inline: .3rem; border-radius: 999px; background: var(--green-800); color: var(--white); font-size: .72rem; font-weight: 400; }
.search-suggestions {
  position: absolute; z-index: 60; top: calc(100% + .55rem); left: 0; right: 0;
  max-height: min(65vh, 520px); overflow-y: auto; padding: .45rem;
  border: 1px solid var(--line); border-radius: 16px; background: var(--white);
  box-shadow: 0 20px 48px rgba(12,45,32,.18);
}
.search-suggestions[hidden] { display: none; }
.search-suggestions a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .72rem .85rem; border-radius: 11px; color: var(--ink); text-decoration: none; }
.search-suggestions a:hover, .search-suggestions a[aria-selected="true"] { background: var(--green-100); }
.search-suggestions a > span:first-child { display: grid; min-width: 0; }
.search-suggestions strong { overflow: hidden; font-size: .94rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestions small { color: var(--muted); font-size: .77rem; }
.suggestion-type { flex: 0 0 auto; color: var(--green-700); font-size: .72rem; }
.search-suggestions .search-all-results { justify-content: center; margin-top: .3rem; border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; color: var(--green-800); font-weight: 700; }
.suggestion-empty { margin: 0; padding: .9rem; color: var(--muted); font-size: .9rem; }

.hero { overflow: hidden; background: var(--green-950); }
.hero-grid { position: relative; height: 610px; }
.hero-copy {
  position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end;
  width: min(760px, calc(100% - 2rem)); height: 610px;
  margin-left: max(1rem, calc((100vw - var(--container)) / 2));
  padding: 3rem 2rem 3.5rem 0; color: var(--white);
}
.hero-copy .eyebrow { color: var(--lime); }
.hero-copy > p:not(.eyebrow) { display: flex; align-items: flex-end; height: 3.8em; overflow: hidden; max-width: 620px; margin: 0; color: var(--white); font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 600; text-shadow: 0 2px 12px rgba(0,0,0,.9); }
.hero-copy .button.secondary { border-color: var(--white); background: rgba(8,38,27,.22); color: var(--white); }
.hero-copy .button-row { margin-top: .65rem; }
.eyebrow { margin: 0 0 .85rem; color: var(--green-700); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  border: 1px solid transparent; border-radius: 999px; padding: .72rem 1.25rem;
  font-weight: 800; text-align: center; text-decoration: none; cursor: pointer;
}
.button.primary { background: var(--green-800); color: var(--white); }
.button.primary:hover, .button.primary:focus-visible { background: var(--green-950); }
.button.secondary { border-color: var(--green-800); background: transparent; color: var(--green-800); }
.button.light { background: var(--white); color: var(--green-950); }
.button:disabled { cursor: not-allowed; opacity: .62; }
.slider-dots { display: flex; gap: .55rem; margin-top: 1.6rem; }
.hero .slider-dots button {
  width: .72rem; height: .72rem; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.58); cursor: pointer;
}
.hero .slider-dots button[aria-pressed="true"] { background: var(--lime); }
.hero-media { position: absolute; inset: 0; z-index: 0; padding: 0; }
.hero-slide-frame {
  position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--green-950);
}
.hero-slide-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease;
}
.hero-slide-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slide-image.is-active { opacity: 1; visibility: visible; }
.hero-slide-placeholder {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-800), var(--green-950));
  color: var(--white); font: 700 clamp(1.6rem, 4vw, 3rem)/1.1 Georgia, serif; text-align: center;
}

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-heading a { flex: 0 0 auto; font-weight: 800; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.category-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  gap: .15rem 1rem; min-height: 130px; padding: 1.3rem; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-icon {
  grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--green-100); color: var(--green-800);
  font: 700 1.2rem Georgia, serif;
}
.category-card strong { align-self: end; font-size: 1.05rem; }
.category-card > span:last-child { color: var(--muted); font-size: .9rem; }
.book-type-carousel { position: relative; }
.book-type-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
  gap: 1rem; overflow-x: auto; padding: .5rem .6rem 1rem;
  scroll-padding-inline: .6rem; scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.category-scroll-arrows { display: contents; }
.category-scroll-arrows button {
  position: absolute; z-index: 5; top: 50%;
  display: flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; padding: 0 0 .08rem;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.96); color: #111;
  box-shadow: 0 8px 24px rgba(8,38,27,.2); font: 500 1.7rem/1 Arial, sans-serif; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(-50%); transition: opacity .18s ease, border-color .18s ease;
}
.category-scroll-arrows button:first-child { left: .35rem; }
.category-scroll-arrows button:last-child { right: .35rem; }
.category-scroll-arrows button[hidden] { display: none; }
.book-type-carousel:hover .category-scroll-arrows button, .category-scroll-arrows button:focus-visible { opacity: 1; pointer-events: auto; }
.category-scroll-arrows button:hover, .category-scroll-arrows button:focus-visible { border-color: var(--green-700); color: var(--green-700); }
.book-type-card {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .3rem;
  min-height: 112px; padding: 1.1rem; border: 1px solid #cbdcd2; border-radius: var(--radius);
  background: #e8f1ec; color: var(--green-950);
  text-decoration: none; scroll-snap-align: start;
}
.book-type-card:hover { border-color: var(--green-700); box-shadow: var(--shadow); }
.book-type-card strong { font-size: 1.05rem; }
.book-type-card > span:last-child { color: var(--muted); font-size: .85rem; }
#categories { padding-top: clamp(1.75rem, 4vw, 3.5rem); padding-bottom: 0; }
#categories .section-heading { margin-bottom: 1rem; }
.class-shelves { padding-block: 0 clamp(1.5rem, 3vw, 2.5rem); }
.printing-section {
  padding-top: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 2.25rem);
}
.book-shelf { position: relative; padding-top: 2rem; }
.hot-deals-shelf { padding-top: 2rem; }
.shelf-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid rgba(13,81,56,.2);
}
.shelf-heading h3 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); }
.shelf-heading-actions { display: flex; align-items: center; gap: .65rem; }
.shelf-arrows { display: contents; }
.shelf-heading-actions > a { color: var(--green-800); font-weight: 400; text-decoration: none; white-space: nowrap; }
.shelf-arrows button {
  position: absolute; z-index: 5; top: clamp(10rem, 13vw, 12.5rem);
  display: flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; padding: 0 0 .08rem;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.96); color: #111;
  box-shadow: 0 8px 24px rgba(8,38,27,.2); font: 500 1.7rem/1 Arial, sans-serif; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(-50%); transition: opacity .18s ease, border-color .18s ease;
}
.shelf-arrows button:first-child { left: .35rem; }
.shelf-arrows button:last-child { right: .35rem; }
.shelf-arrows button[hidden] { display: none; }
.book-shelf:hover .shelf-arrows button, .shelf-arrows button:focus-visible { opacity: 1; pointer-events: auto; }
.shelf-arrows button:hover, .shelf-arrows button:focus-visible { border-color: var(--green-700); color: var(--green-700); }
.shelf-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(145px, 15vw, 190px);
  gap: 1rem; overflow-x: auto; overscroll-behavior-inline: contain; padding: .2rem .15rem 1rem;
  scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.book-type-strip::-webkit-scrollbar, .shelf-track::-webkit-scrollbar { display: none; }
.shelf-scroll-indicator, .category-scroll-indicator {
  position: relative; width: 100%; height: 5px; margin: .15rem 0 0;
  overflow: hidden; border-radius: 999px; background: #d9e2dc;
}
.shelf-scroll-indicator[hidden], .category-scroll-indicator[hidden] { display: none; }
.shelf-scroll-indicator span, .category-scroll-indicator span {
  position: absolute; inset-block: 0; left: 0; min-width: 36px;
  border-radius: inherit; background: var(--green-800); transform: translateX(0);
}
.shelf-book-card, .shelf-view-more-card { min-width: 0; scroll-snap-align: start; }
.shelf-cover {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5.2; overflow: hidden; border-radius: 12px;
  background: var(--white); color: var(--muted); text-align: center; text-decoration: none;
  box-shadow: 0 8px 24px rgba(8,38,27,.1);
}
.shelf-cover img { width: 100%; height: 100%; padding: .55rem; object-fit: contain; transition: transform .2s ease; }
.shelf-book-card:hover .shelf-cover img { transform: scale(1.025); }
.shelf-book-card h4 { margin: .25rem 0; font: 400 .98rem/1.25 Inter, Segoe UI, Arial, sans-serif; }
.shelf-book-card h4 a {
  display: block; overflow: hidden; color: #111; text-decoration: none;
  text-overflow: ellipsis; white-space: nowrap;
}
.shelf-book-meta { overflow: hidden; margin: .65rem 0 0; color: var(--muted); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.shelf-price, .book-price { display: flex; flex-direction: column; align-items: flex-start; gap: .12rem; }
.shelf-price strong, .book-price strong { color: #111; font-size: .9rem; font-weight: 800; }
.shelf-price del, .book-price del { color: #7b827e; font-size: .74rem; font-weight: 400; text-decoration-thickness: 1.5px; }
.shelf-cart-form { margin-top: .65rem; }
.shelf-cart-form .button { width: 100%; min-height: 40px; padding: .5rem .65rem; font-size: .82rem; font-weight: 400; }
.shelf-view-more-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 4 / 5.2;
  padding: 1.2rem; border: 2px dashed rgba(23,115,79,.35); border-radius: 12px;
  background: var(--green-100); color: var(--green-950); text-align: center; text-decoration: none;
}
.shelf-view-more-card > span {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1rem;
  border-radius: 50%; background: var(--green-800); color: var(--white); font-size: 1.8rem;
}
.shelf-view-more-card strong { font-size: 1.05rem; }
.shelf-view-more-card small { margin-top: .35rem; color: var(--muted); }
.shelf-view-more-card:hover { border-color: var(--green-700); background: #deeddf; }
.cover-frame { position: relative; }
.new-ribbon {
  position: absolute; z-index: 2; top: .6rem; left: -.25rem; padding: .35rem .75rem;
  border-radius: 0 999px 999px 0; background: #075c42; color: #e6f36a;
  font-size: .68rem; font-weight: 900; letter-spacing: .08em; line-height: 1; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(7,92,66,.28);
}
.discount-ribbon {
  position: absolute; z-index: 2; top: .6rem; right: -.25rem; padding: .35rem .7rem;
  border-radius: 999px 0 0 999px; background: #f2b84b; color: #352400;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; line-height: 1;
  box-shadow: 0 4px 12px rgba(122,79,0,.22);
}
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.product-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cover-frame { display: grid; place-items: center; aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--green-100); color: var(--muted); text-decoration: none; }
.cover-frame img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.product-copy { padding: 1rem; }
.product-meta { color: var(--muted); font-size: .83rem; }
.product-card h3 { margin-top: .35rem; font-weight: 400; }
.product-card h3 a {
  display: block; overflow: hidden; color: var(--green-950); text-decoration: none;
  font-weight: 400; text-overflow: ellipsis; white-space: nowrap;
}
.book-rating { display: flex; align-items: center; gap: .4rem; margin: .25rem 0 0; color: #a87900; font-size: .82rem; letter-spacing: .03em; }
.book-rating small { color: var(--muted); font-size: .75rem; letter-spacing: 0; }
.product-footer { display: flex; align-items: center; justify-content: flex-start; gap: .7rem; margin-top: .25rem; }
.printing-banner {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  padding: clamp(2rem, 5vw, 4rem); border-radius: calc(var(--radius) * 1.4);
  background: var(--green-950); color: var(--white);
}
.printing-banner h2 { color: var(--white); }
.printing-banner p:not(.eyebrow) { max-width: 700px; color: #d3e4da; }
.printing-banner .eyebrow { color: var(--lime); }
.printing-services-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem 2rem; max-width: 760px; margin: 1rem 0 0; padding-left: 1.2rem; color: #fff; }
.homepage-about {
  display: grid; grid-template-columns: minmax(220px, .45fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 7vw, 7rem); align-items: start;
  padding-top: clamp(1.25rem, 2.5vw, 2.25rem);
  padding-bottom: clamp(2.75rem, 6vw, 5rem);
}
.homepage-about h2 { margin: 0; }
.homepage-about-copy { max-width: 75ch; color: #303a35; font-size: 1.08rem; line-height: 1.75; }

.page-hero { padding-block: clamp(4rem, 9vw, 8rem); background: var(--cream); text-align: center; }
.page-hero.compact { padding-block: clamp(3rem, 6vw, 5rem); }
.page-hero p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.page-hero .button { margin-top: 1.5rem; }
.catalogue-section { padding-top: clamp(1.5rem, 4vw, 3rem); }
.listing-intro { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.listing-intro h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.listing-intro p { max-width: 760px; margin: .4rem 0 0; color: var(--muted); line-height: 1.55; }
.filter-panel {
  display: grid; grid-template-columns: 1.35fr repeat(3, 1fr) auto; gap: .8rem;
  align-items: end; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream);
}
.header-catalogue-filters { padding-bottom: .75rem; }
.catalogue-filter-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; margin-inline: auto;
  padding: 0; border: 0; background: transparent;
}
.mobile-filter-rows { display: none; }
.catalogue-results { transition: opacity .16s ease; }
.catalogue-results.is-loading { opacity: .45; pointer-events: none; }
.catalogue-load-sentinel {
  display: grid; place-items: center; min-height: 64px; margin-top: 1rem;
  color: var(--muted); font-size: .82rem; text-align: center;
}
.catalogue-load-sentinel span::before {
  content: ""; display: inline-block; width: .65rem; height: .65rem; margin-right: .5rem;
  border: 2px solid #b9c8bf; border-top-color: var(--green-800); border-radius: 50%;
  animation: catalogue-loading .8s linear infinite;
}
@keyframes catalogue-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .catalogue-load-sentinel span::before { animation: none; }
}
.filter-panel label, .quote-form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 700; }
input, select, textarea {
  width: 100%; border: 1px solid #bcc8c0; border-radius: 10px;
  padding: .72rem .8rem; background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(28, 118, 76, .18); border-color: var(--green-700); }
.empty-state { padding: 3rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.book-detail { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.book-detail-back { display: flex; justify-content: flex-start; margin-bottom: 2rem; }
.book-detail-back .button {
  min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  color: var(--green-800); font-weight: 400; box-shadow: none;
}
.book-detail-back .button:hover, .book-detail-back .button:focus-visible { background: transparent; color: var(--green-950); }
.detail-cover { position: relative; display: grid; place-items: center; min-height: 520px; overflow: hidden; padding: 2rem; border-radius: var(--radius); background: var(--cream); color: var(--muted); }
.detail-cover img { max-height: 560px; object-fit: contain; box-shadow: var(--shadow); }
.detail-copy { padding-top: 1rem; }
.detail-copy h1 { font-size: clamp(1.25rem, 2.5vw, 2.25rem); }
.detail-copy .lead { margin: .25rem 0 .3rem; color: var(--muted); font-size: 1.15rem; }
.detail-price { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; margin: .3rem 0 0; color: #111; font-size: 1.65rem; font-weight: 400; }
.detail-price strong { font-weight: 400; }
.detail-price del { color: var(--muted); font-size: 1rem; font-weight: 500; }
.prose { margin-top: 1.5rem; max-width: 70ch; }
.review-summary { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.review-summary h2 { font-size: 1.067rem; }
.rating-large { margin-block: .8rem 1.2rem; }
.review-form { display: grid; gap: .85rem; margin-top: 1.2rem; padding: 1.2rem; border-radius: 12px; background: var(--cream); }
.review-form label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 700; }
.review-form small { color: var(--muted); }
.review-form .button { font-weight: 400; }
.review-submission-status { margin: 1rem 0 0; color: var(--muted); font-size: .9rem; }
.star-rating-field { max-height: none; overflow: visible; margin: 0; padding: 0; border: 0; }
.star-rating-field legend { margin-bottom: .25rem; padding: 0; font-size: .85rem; font-weight: 600; }
.star-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; width: max-content; }
.star-rating-input input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.star-rating-input label, .review-form .star-rating-input label { display: block; padding: 0 .08rem; color: #b6b8b6; font-size: 2rem; font-weight: 400; line-height: 1; cursor: pointer; transition: color .12s ease, transform .12s ease; }
.star-rating-input label:hover, .star-rating-input label:hover ~ label, .star-rating-input input:checked ~ label { color: #d49a00; }
.star-rating-input input:focus-visible + label { outline: 2px solid var(--green-700); outline-offset: 2px; border-radius: 4px; }
.star-rating-input label:hover { transform: scale(1.08); }
.reviews-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.reviews-list article { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.review-heading { display: flex; justify-content: space-between; gap: 1rem; }
.review-heading span { color: #8a6900; letter-spacing: .08em; }
.reviews-list footer { margin-top: .8rem; color: var(--muted); font-size: .82rem; }
.verified-badge { color: var(--green-800); font-weight: 800; }
.printing-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.service-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.service-list article { padding: 1.2rem; border-left: 4px solid var(--lime); background: var(--cream); }
.service-list p { color: var(--muted); }
.quote-form { padding: clamp(1.3rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.quote-form h2 { margin-bottom: 1.5rem; font-size: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid small, .form-note { color: var(--muted); font-size: .8rem; font-weight: 400; }
.quote-form .button { margin-top: 1.2rem; }
.form-alert { margin-bottom: 1.25rem; padding: 1rem; border-radius: 12px; }
.form-alert p { margin-top: .2rem; }
.form-alert ul { margin-bottom: 0; padding-left: 1.2rem; }
.form-alert.success { border: 1px solid #8cc59f; background: #edf8f0; color: #174d2a; }
.form-alert.error { border: 1px solid #d9a09a; background: #fff3f1; color: #792d26; }
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.offer-card {
  display: flex; flex-direction: column; align-items: flex-start; min-height: 320px;
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); background: var(--cream);
}
.offer-card:nth-child(2) { background: var(--green-100); }
.offer-card:nth-child(3) { background: var(--green-950); color: #d3e4da; }
.offer-card:nth-child(3) h2 { color: var(--white); }
.offer-card:nth-child(3) .eyebrow { color: var(--lime); }
.offer-card h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.offer-card .button { margin-top: auto; }
.price-list-note { margin-bottom: 1.5rem; padding: 1rem 1.2rem; border-left: 4px solid var(--lime); background: var(--cream); }
.price-list-note p { color: var(--muted); }
.price-list-page { padding-top: clamp(2rem, 5vw, 4rem); }
.price-list-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.price-list-heading .listing-intro { margin-bottom: 0; }
.price-list-heading .button { font-weight: 400; }
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: .9rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table th { color: var(--muted); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.price-table a { color: var(--green-950); font-weight: 700; text-decoration: none; }
.price-table a:hover, .price-table a:focus-visible { text-decoration: none; }
.price-cell { white-space: nowrap; font-weight: 800; }
.card-cart-form { margin-top: .9rem; }
.card-cart-form .button { width: 100%; min-height: 42px; padding-block: .55rem; font-weight: 400; }
.quantity-field { display: grid; grid-template-columns: auto 75px; gap: .5rem; align-items: center; font-size: .85rem; font-weight: 700; }
.quantity-field input { padding: .65rem; }
.book-detail .button-row > form { display: flex; align-items: end; gap: .65rem; }
.book-detail .button-row .button { font-weight: 400; }
.book-preview { margin-top: clamp(3rem, 7vw, 6rem); padding-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 3px solid var(--green-700); scroll-margin-top: 8rem; }
.book-preview .section-heading { align-items: end; }
.book-preview .section-heading p { margin: .35rem 0 0; color: var(--muted); }
.book-preview-frame { display: block; width: 100%; height: min(78vh, 880px); min-height: 560px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.cart-section { padding-top: clamp(1.25rem, 3vw, 2.25rem); }
.cart-topbar { display: flex; margin-bottom: 1.5rem; }
.cart-topbar .button { min-height: 42px; padding-block: .55rem; font-weight: 500; }
.cart-update-status { min-height: 1.4rem; margin: -.8rem 0 .7rem; color: var(--green-700); font-size: .82rem; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .5fr); gap: 2rem; align-items: start; }
.cart-items { display: grid; gap: 1rem; }
.cart-item {
  position: relative;
  display: grid; grid-template-columns: 90px minmax(0, 1fr) 150px auto;
  gap: 1rem; align-items: center; padding: 1rem 1rem 2.7rem; border: 1px solid var(--line); border-radius: var(--radius);
}
.cart-item img { width: 90px; height: 120px; object-fit: contain; background: var(--cream); }
.cart-item h2 { font-size: 1.2rem; font-weight: 400; }
.cart-item-copy > p { color: var(--muted); font-size: .85rem; }
.cart-item-copy .cart-item-meta { color: var(--green-700); }
.cart-item-copy .cart-unit-price { color: #111; font-weight: 700; }
.cart-item form { display: block; }
.cart-item form label { display: grid; gap: .25rem; font-size: .78rem; font-weight: 700; }
.cart-quantity-stepper {
  display: grid; grid-template-columns: 34px 46px 34px; align-items: center;
  width: max-content; overflow: hidden; border: 1px solid var(--line); border-radius: 9px;
}
.cart-quantity-stepper button {
  display: grid; place-items: center; width: 34px; height: 38px; padding: 0;
  border: 0; color: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer;
  transition: background-color .15s ease;
}
.cart-quantity-stepper button[data-quantity-step="-1"] { background: #c23d35; }
.cart-quantity-stepper button[data-quantity-step="-1"]:hover { background: #a92d27; }
.cart-quantity-stepper button[data-quantity-step="1"] { background: #18784b; }
.cart-quantity-stepper button[data-quantity-step="1"]:hover { background: #0f603a; }
.cart-quantity-stepper button:focus-visible { position: relative; z-index: 1; outline: 3px solid #f2b84b; outline-offset: -3px; }
.cart-quantity-stepper input {
  width: 46px; height: 38px; padding: .3rem; border: 0; border-inline: 1px solid var(--line);
  border-radius: 0; color: #111; font-weight: 400; text-align: center; -moz-appearance: textfield;
}
.cart-quantity-stepper input::-webkit-outer-spin-button,
.cart-quantity-stepper input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.cart-quantity-notice {
  max-width: 190px; margin: .4rem 0 0; color: #9f241e; font-size: .75rem; line-height: 1.35;
}
.cart-remove-item {
  position: absolute; right: .75rem; bottom: .65rem;
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 7px; background: transparent;
  color: #c23d35; cursor: pointer;
}
.cart-remove-item span::before { content: "×"; font-size: 1.35rem; line-height: 1; }
.cart-remove-item:hover, .cart-remove-item:focus-visible { background: #fff0ee; color: #9f241e; }
.cart-remove-item::after {
  content: attr(data-tooltip);
  position: absolute; right: 0; bottom: calc(100% + 7px); z-index: 2;
  width: max-content; max-width: 180px; padding: .35rem .5rem;
  border-radius: 5px; background: #242824; color: #fff;
  font-size: .72rem; font-weight: 500; line-height: 1.25; white-space: nowrap;
  opacity: 0; visibility: hidden; transform: translateY(3px); pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.cart-remove-item:hover::after, .cart-remove-item:focus-visible::after {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.order-summary { position: sticky; top: 1rem; padding: 1.4rem; border-radius: var(--radius); background: var(--cream); }
.order-summary h2 { margin-bottom: 1rem; font-size: 1.6rem; }
.order-summary > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .55rem; }
.order-summary p { color: var(--muted); font-size: .87rem; }
.order-summary .button { width: 100%; margin-top: 1rem; font-weight: 400; }
.order-summary .order-choice { display: block; margin: .65rem 0 -.35rem; color: var(--muted); font-size: .85rem; text-align: center; }
.order-summary .whatsapp-button { border-color: #18784b; background: #18784b; color: #fff; }
.order-summary .whatsapp-button:hover { background: #0f603a; }
.order-summary .clear-cart-form { margin: 0; }
.order-summary .clear-cart-button { border-color: #c23d35; background: #c23d35; color: #fff; }
.order-summary .clear-cart-button:hover { background: #a92d27; }
.order-summary hr { border: 0; border-top: 1px solid var(--line); }
.auth-shell { display: grid; grid-template-columns: 1fr minmax(340px, .8fr); gap: clamp(2rem, 8vw, 7rem); align-items: center; max-width: 1050px; }
.login-shell { padding-top: clamp(1.25rem, 3vw, 2.25rem); }
.auth-intro p:not(.eyebrow) { max-width: 550px; color: var(--muted); font-size: 1.1rem; }
.auth-form { display: grid; gap: 1rem; padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-form h2 { font-size: 2rem; }
.auth-form label { display: grid; gap: .35rem; font-weight: 700; }
.auth-form small { color: var(--muted); font-weight: 400; }
.customer-account { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.account-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.account-navigation { display: flex; align-items: center; gap: 1.25rem; }
.account-navigation a { padding: .55rem 0; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; }
.account-navigation a:hover, .account-navigation a.active { border-bottom-color: var(--green-700); color: var(--green-900); }
.account-signout { margin-left: auto; }
.account-signout button { display: inline-flex; align-items: center; gap: .45rem; border: 0; padding: .55rem .2rem; background: transparent; color: var(--green-800); font-weight: 400; cursor: pointer; }
.account-signout button:hover { text-decoration: underline; }
.checkout-account-heading { margin: clamp(2rem, 5vw, 3.5rem) 0 1.25rem; }
.checkout-account-heading .eyebrow { margin-bottom: .4rem; }
.checkout-account-heading h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.delivery-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.delivery-fields[hidden] { display: none; }
.checkout-payment-note { margin: 1.15rem 0 0; padding: .8rem 1rem; border-left: 3px solid var(--green-700); background: var(--green-100); color: var(--green-950); font-size: .9rem; }
.account-profile { margin: 1.25rem 0 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.account-profile h2 { font-size: 1.25rem; }
.account-profile > div > p { margin: .2rem 0 .8rem; color: var(--muted); font-size: .88rem; }
.account-profile form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: .8rem; }
.account-profile label { display: grid; gap: .35rem; font-size: .84rem; }
.account-profile .button { min-height: 45px; font-weight: 400; }
.account-section-heading { margin: 1.4rem 0 1rem; }
.account-section-heading h1 { margin: 0; font-size: clamp(1.55rem, 3vw, 2rem); }
.account-section-heading p { margin: .3rem 0 0; color: var(--muted); }
.account-review-list { display: grid; gap: 1rem; }
.account-review-card { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.account-review-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.account-review-card-heading h2 { margin: 0 0 .25rem; font-size: 1.15rem; font-weight: 500; }
.account-review-card-heading a { color: var(--green-800); font-size: .82rem; }
.account-review-card form { display: grid; gap: .8rem; }
.account-review-card form > label { display: grid; gap: .35rem; font-size: .85rem; }
.account-review-card form .button { justify-self: start; min-height: 43px; font-weight: 400; }
.account-review-card form > small { color: var(--muted); font-size: .78rem; }
.account-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.25rem 0 2.25rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.account-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; min-width: 0; padding: .8rem 1rem; }
.account-summary > div + div { border-left: 1px solid var(--line); }
.account-summary span { color: var(--muted); font-size: .82rem; }
.account-summary strong { color: var(--green-950); font-size: 1rem; white-space: nowrap; }
.account-orders-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.account-orders-heading h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.account-orders-heading p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.account-orders-heading > a { color: var(--green-800); text-decoration: none; white-space: nowrap; }
.account-orders-heading > a:hover { text-decoration: underline; }
.orders-list { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.orders-list article { display: grid; grid-template-columns: minmax(140px, 1.25fr) minmax(70px, .6fr) minmax(120px, 1fr) minmax(100px, .8fr) minmax(120px, 1fr) auto; gap: 1rem; align-items: center; min-height: 84px; padding: .85rem 1rem; }
.orders-list article + article { border-top: 1px solid var(--line); }
.order-reference, .order-detail, .order-total { display: grid; gap: .18rem; min-width: 0; }
.order-reference strong { font-size: 1.08rem; }
.order-reference small, .order-label { color: var(--muted); font-size: .74rem; }
.order-detail > span:last-child { overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.order-total { justify-items: end; }
.order-total strong { font-size: .95rem; }
.status-pill { padding: .2rem .55rem; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: .72rem; font-weight: 400; }
.order-view-link { justify-self: end; padding: .5rem .75rem; border: 1px solid var(--green-700); border-radius: 999px; color: var(--green-800); font-size: .82rem; text-decoration: none; white-space: nowrap; }
.order-view-link:hover { background: var(--green-100); }
.order-back-link { display: inline-block; margin: 1.25rem 0 1rem; color: var(--green-800); text-decoration: none; }
.order-back-link:hover { text-decoration: underline; }
.order-detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.order-detail-heading span, .order-detail-heading small, .order-detail-statuses span { color: var(--muted); font-size: .78rem; }
.order-detail-heading h1 { margin: .15rem 0; font-size: clamp(1.65rem, 4vw, 2.5rem); }
.order-detail-heading > strong { font-size: clamp(1.15rem, 3vw, 1.65rem); }
.order-detail-statuses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.order-detail-statuses section { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.order-detail-statuses strong { display: block; margin: .25rem 0; font-size: 1rem; }
.order-detail-statuses p, .order-information p { margin: 0; color: var(--muted); font-size: .86rem; }
.order-items, .order-information { margin-top: 1.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.order-items h2, .order-information h2 { margin-bottom: .8rem; font-size: 1.2rem; }
.order-items-table { display: grid; }
.order-items-header, .order-item-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 130px 130px; gap: 1rem; padding: .7rem 0; }
.order-items-header { border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.order-item-row + .order-item-row { border-top: 1px solid var(--line); }
.order-item-row strong { font-weight: 400; }
.order-item-row span:not(:first-child), .order-items-header span:not(:first-child) { text-align: right; }
.order-totals { width: min(100%, 390px); margin: 1rem 0 0 auto; }
.order-totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.order-totals dd { margin: 0; }
.order-totals .grand-total { margin-top: .35rem; padding-top: .7rem; border-top: 1px solid var(--line); font-weight: 700; }
.account-empty { padding-block: 2rem; }
.choice-group { display: grid; gap: .55rem; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; }
.choice-group legend { padding-inline: .3rem; font-weight: 800; }
.choice-group label { display: flex; grid-template-columns: none; align-items: center; gap: .55rem; font-weight: 500; }
.choice-group input { width: auto; }
.consent-banner {
  position: fixed; z-index: 50; right: 1rem; bottom: 1rem; left: 1rem;
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  max-width: 1050px; margin-inline: auto; padding: 1rem 1.2rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: 0 20px 60px rgba(12, 45, 32, .22);
}
.consent-banner p { color: var(--muted); font-size: .88rem; }
.consent-banner .button-row { align-items: center; margin-top: 0; }
.consent-banner .button { min-height: 42px; padding: .55rem .9rem; }
.policy-content { max-width: 850px; }
.policy-content h2 { margin-top: 2rem; font-size: 1.7rem; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content p { color: var(--muted); }
.bookshop-directory { padding-top: clamp(2rem, 5vw, 4rem); }
.bookshop-results-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.bookshop-results-heading p { margin: 0; color: var(--muted); }
.bookshop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bookshop-card { display: grid; align-content: start; padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 7px 22px rgba(15, 67, 41, .06); }
.bookshop-card-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: .8rem; align-items: start; }
.bookshop-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--green-100); color: var(--green-800); font-size: 1.2rem; }
.bookshop-card h2 { margin: 0; font-size: 1.15rem; }
.bookshop-card-heading p { margin: .25rem 0 0; color: var(--green-700); font-size: .82rem; }
.bookshop-card address { margin: .75rem 0 .4rem; color: var(--muted); font-size: .88rem; font-style: normal; line-height: 1.55; }
.bookshop-contacts { display: grid; gap: .55rem; }
.bookshop-contacts a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .55rem; align-items: center; color: #222; font-size: .86rem; text-decoration: none; overflow-wrap: anywhere; }
.bookshop-contacts a i { color: var(--green-700); }
.bookshop-directory .empty-state > i { color: var(--green-700); font-size: 2rem; }
.back-to-top {
  display: flex; align-items: center; justify-content: center; min-height: 40px;
  width: 100%; background: #e3ebe6; color: var(--green-950);
  font-size: .85rem; font-weight: 650; text-decoration: none;
}
.back-to-top:hover, .back-to-top:focus-visible { background: #d5e2da; }
.site-footer { padding-top: 3rem; background: var(--green-950); color: #e8f2ec; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1.35fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.footer-grid strong { color: var(--white); font-size: 1.05rem; }
.footer-grid p { margin: .65rem 0 0; line-height: 1.65; }
.footer-grid a { color: #eef7f1; text-decoration: none; }
.footer-links { display: grid; gap: .5rem; margin-top: .9rem; }
.footer-links a { display: flex; gap: .6rem; align-items: center; width: max-content; }
.footer-links a i { color: #9ccfb2; }
.footer-grid a:hover, .footer-grid a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-socials { display: flex; gap: clamp(1.1rem, 5vw, 3.75rem); align-items: center; }
.social-icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  color: #fff !important; font-size: 1.15rem; line-height: 1; text-decoration: none !important;
}
.social-icon.facebook {
  background: #fff;
  color: #1877f2 !important;
  font-size: 2.35rem;
}
.social-icon.facebook i { display: block; line-height: 1; }
.social-icon.x-social { background: #101010; }
.social-icon.tiktok { background: #050505; }
.footer-location { display: grid; grid-template-columns: 30px 1fr; gap: .8rem; align-items: start; margin-top: 1.25rem; line-height: 1.55; }
.footer-location-icon { color: #ea4335; font-size: 1.9rem; line-height: 1; }
.footer-contact { display: grid; gap: .75rem; }
.footer-contact a { display: grid; grid-template-columns: 36px 1fr; gap: .65rem; align-items: center; overflow-wrap: anywhere; }
.contact-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #080b09; color: #fff; font-size: 1rem;
}
.whatsapp-contact { background: #25d366; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-block: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; }
.footer-bottom a { color: inherit; }

@media (max-width: 980px) {
  .header-row { grid-template-columns: 105px minmax(180px, 1fr) auto; gap: .8rem; }
  .header-action > span:last-of-type { display: none; }
  .hero-grid { height: 540px; }
  .hero-copy { height: 540px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-panel { grid-template-columns: repeat(2, 1fr); }
  .catalogue-filter-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-panel .button { align-self: end; }
  .bookshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .announcement { flex-direction: column; gap: 0; }
  .header-row {
    grid-template-columns: 1fr auto; min-height: 0;
    column-gap: .75rem; row-gap: .55rem; padding-block: .55rem .75rem;
  }
  .brand img { width: 70px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .header-search button { padding-inline: .8rem; font-size: .8rem; }
  .search-symbol { flex-basis: 34px; }
  .search-symbol::before { left: 12px; }
  .search-symbol::after { left: 23px; }
  .header-actions { grid-column: 2; grid-row: 1; gap: .35rem; }
  .header-actions { position: relative; }
  .customer-menu { position: static; }
  .customer-menu-panel { top: calc(100% + 64px); right: 0; }
  .header-actions .header-action { font-size: .8rem; }
  .header-action > span:last-of-type { display: inline; }
  .action-icon { width: 1.25rem; }
  .catalogue-section { padding-top: 1rem; }
  .catalogue-filter-panel { display: none; }
  .header-catalogue-filters { padding-bottom: .6rem; }
  .mobile-filter-rows { display: grid; gap: .45rem; }
  .mobile-filter-options {
    display: flex; gap: .45rem; overflow-x: auto; margin-right: -.65rem; padding: .1rem .65rem .45rem 0;
    overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: x proximity;
  }
  .mobile-filter-options::-webkit-scrollbar { display: none; }
  .mobile-filter-options button {
    flex: 0 0 auto; min-height: 36px; padding: .42rem .75rem; border: 0; border-radius: 7px;
    background: #f0f2f0; color: #3f4943; font-size: .88rem; cursor: pointer; scroll-snap-align: start;
  }
  .mobile-filter-options button[aria-pressed="true"] { background: var(--green-800); color: var(--white); font-weight: 700; }
  .mobile-filter-options button[data-filter-value=""] { font-weight: 400; }
  .hero-grid { height: 580px; }
  .hero-copy { width: min(660px, calc(100% - 2rem)); height: 580px; margin-left: 1rem; padding: 2.5rem 1rem 3rem 0; }
  .book-type-strip { grid-auto-columns: minmax(215px, 78vw); }
  .category-scroll-arrows { display: none; }
  .shelf-arrows { display: none; }
  .shelf-track {
    grid-auto-columns: clamp(180px, 55vw, 240px);
    gap: .9rem; margin-right: -1rem; padding-right: 1rem;
  }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .printing-banner, .book-detail, .printing-layout { grid-template-columns: 1fr; }
  .printing-services-list { grid-template-columns: 1fr; }
  .homepage-about { grid-template-columns: 1fr; gap: 1rem; }
  .offers-grid { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout, .auth-shell { grid-template-columns: 1fr; }
  .orders-list article { grid-template-columns: 1fr 1fr 1fr; }
  .order-reference { grid-row: span 2; }
  .order-total { grid-column: 3; grid-row: 1 / span 2; }
  .order-summary { position: static; }
  .cart-item { grid-template-columns: 75px minmax(0, 1fr) auto; align-items: start; }
  .cart-item img { width: 75px; height: 100px; grid-row: 1 / 3; }
  .cart-item-copy { grid-column: 2 / 4; }
  .cart-item form { grid-column: 2; }
  .cart-item > strong { grid-column: 3; align-self: end; white-space: nowrap; }
  .cart-quantity-stepper { grid-template-columns: 48px 52px 48px; }
  .cart-quantity-stepper button { width: 48px; height: 48px; font-size: 1.35rem; }
  .cart-quantity-stepper input { width: 52px; height: 48px; font-size: 1rem; }
  .detail-cover { min-height: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 1.25rem), var(--container)); }
  h1 { font-size: 2.55rem; }
  .hero-grid, .hero-copy { height: 620px; }
  .hero-copy > p:not(.eyebrow) { height: 5.2em; font-size: 1.05rem; }
  .header-actions { gap: .45rem; }
  .cart-link { font-size: .85rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .price-list-heading { align-items: flex-start; flex-direction: column; }
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { gap: .65rem; }
  .product-copy { padding: .75rem; }
  .product-footer { align-items: start; flex-direction: column; }
  .filter-panel, .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .bookshop-grid { grid-template-columns: 1fr; }
  .book-preview-frame { height: 70vh; min-height: 480px; }
  .cart-item form { align-items: end; }
  .account-header { align-items: center; }
  .account-navigation { gap: 1rem; }
  .account-signout { margin-left: auto; }
  .account-summary { grid-template-columns: 1fr; }
  .account-summary > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .account-orders-heading { align-items: flex-start; flex-direction: column; }
  .account-profile form, .delivery-fields { grid-template-columns: 1fr; }
  .orders-list article { grid-template-columns: 1fr 1fr; gap: .7rem 1rem; padding: .9rem; }
  .order-reference { grid-row: auto; }
  .order-total { grid-column: 2; grid-row: 1; }
  .order-detail { padding-top: .55rem; border-top: 1px solid var(--line); }
  .order-view-link { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .order-detail-heading { align-items: flex-start; flex-direction: column; }
  .order-detail-statuses { grid-template-columns: 1fr; }
  .order-items-header { display: none; }
  .order-item-row { grid-template-columns: 1fr auto; gap: .35rem 1rem; }
  .order-item-row strong { grid-column: 1 / -1; }
  .order-item-row span { text-align: right; }
  .order-item-row span:nth-child(2)::before { content: 'Qty: '; color: var(--muted); }
  .order-item-row span:nth-child(3) { display: none; }
  .consent-banner { align-items: stretch; flex-direction: column; }
  .consent-banner .button-row { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
