/* BMI Bookshop — one stylesheet for the shop.
   Same look as the church website: Newsreader headings, Inter text, royal navy and gold,
   thin rules instead of boxes. Mobile first; sizes in rem and clamp(). */

:root {
  --navy-950: #071340;
  --navy-900: #0B1E5B;
  --navy-700: #17338F;
  --royal-50: #EEF2FC;
  --gold-300: #E3C866;
  --gold-500: #D4AF37;
  --gold-700: #9C7A1E;
  --ink: #0A0A0A;
  --ink-80: rgba(10, 10, 10, .8);
  --ink-60: rgba(10, 10, 10, .62);
  --line: rgba(10, 10, 10, .12);
  --line-strong: rgba(10, 10, 10, .24);
  --paper: #F7F4EC;
  --white: #fff;
  --ok: #1F7A4D;
  --error: #B42318;

  --font-head: 'Newsreader', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(3.5rem, 2.25rem + 4vw, 6rem);
  --section-sm: clamp(2.25rem, 1.75rem + 2vw, 3.75rem);
  --radius: .375rem;

  --fs-h1: clamp(2.25rem, 1.5rem + 3.2vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.8vw, 2.875rem);
  --fs-h3: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.12;
  color: var(--navy-900);
  margin: 0;
  letter-spacing: -.01em;
}
h1 em, h2 em { font-style: italic; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #EDDB98; color: var(--ink); }
:focus-visible { outline: .125rem solid var(--gold-500); outline-offset: .125rem; }

.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.visually-hidden {
  position: absolute !important; 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: -4rem; z-index: 100;
  background: var(--navy-900); color: var(--white); padding: .75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(80rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--ink-60); }

/* ---------- Type helpers ---------- */
.kicker {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: .875rem;
}
.kicker-light { color: var(--gold-300); }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--ink-80); }
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-80); }
.prose p + p { margin-top: 1.1em; }
.fine-print { font-size: .875rem; color: var(--ink-60); margin-top: 1rem; }
.fine-print a { color: var(--navy-900); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .8rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: .9375rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.btn .icon { width: 1.1rem; height: 1.1rem; }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-gold { background: var(--gold-500); color: var(--ink); }
.btn-gold:hover { background: var(--gold-300); }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); background: rgba(10, 10, 10, .04); }
.btn-sm { min-height: 2.5rem; padding: .55rem 1rem; font-size: .875rem; }
.btn-lg { min-height: 3.5rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-grow { flex: 1; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.link {
  display: inline-flex; align-items: center; gap: .375rem;
  font-weight: 600; color: var(--navy-900);
  text-decoration: underline; text-decoration-color: var(--gold-500);
  text-decoration-thickness: 1px; text-underline-offset: .375em;
  transition: text-decoration-thickness .2s;
}
.link:hover { text-decoration-thickness: 2px; }
.link-light { color: var(--white); }
.text-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 0; padding: .25rem 0; cursor: pointer;
  font-size: .875rem; color: var(--ink-60);
}
.text-btn:hover { color: var(--error); }
.text-btn .icon { width: 1rem; height: 1rem; }
.back-link {
  display: inline-flex; align-items: center; gap: .375rem; margin-bottom: 1rem;
  font-size: .875rem; color: var(--ink-60); text-decoration: none;
}
.back-link:hover { color: var(--navy-900); }
.back-link .icon { width: 1rem; height: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(.5rem);
}
.header-bar { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 2.4rem; height: 2.4rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-size: 1.3rem; color: var(--navy-900); }
.brand-sub { font-size: .6875rem; letter-spacing: .06em; color: var(--ink-60); display: none; }
.main-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: .25rem; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: var(--radius);
  background: none; color: var(--navy-900); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--royal-50); }
.icon-btn .icon { width: 1.4rem; height: 1.4rem; }
.cart-count {
  position: absolute; top: .3rem; right: .2rem;
  min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 1rem;
  background: var(--gold-500); color: var(--ink);
  font-size: .6875rem; font-weight: 700; line-height: 1.15rem; text-align: center;
}
.menu-btn .icon-close, .menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.site-search { border-top: 1px solid var(--line); background: var(--white); }
.search-form { display: flex; align-items: center; gap: .75rem; padding-block: .75rem; }
.search-form > .icon { color: var(--ink-60); }
.search-form input {
  flex: 1; min-width: 0; border: 0; padding: .6rem 0; font-size: 1.0625rem; background: none; outline: none;
}

.mobile-menu { border-top: 1px solid var(--line); background: var(--white); }
.mobile-menu .wrap { display: flex; flex-direction: column; padding-block: .5rem 1.25rem; }
.mobile-menu a {
  padding: .9rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-size: 1.375rem; color: var(--navy-900); text-decoration: none;
}
.mobile-menu a[aria-current="page"] { font-style: italic; }
.mobile-menu .mobile-menu-church {
  display: flex; align-items: center; gap: .5rem; border: 0;
  font-family: var(--font-body); font-size: .9375rem; color: var(--ink-60);
}
.mobile-menu-church .icon { width: 1rem; height: 1rem; }

@media (min-width: 40em) { .brand-sub { display: block; } }
@media (min-width: 60em) {
  .header-bar { min-height: 5rem; gap: 2.5rem; }
  .main-nav { display: flex; gap: 2rem; }
  .main-nav a {
    font-size: .9375rem; font-weight: 500; color: var(--ink-80); text-decoration: none;
    padding-block: .4rem; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
  }
  .main-nav a:hover { color: var(--navy-900); border-color: var(--gold-500); }
  .main-nav a[aria-current="page"] { color: var(--navy-900); border-color: var(--gold-500); }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Toast and alerts ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 60; transform: translateX(-50%);
  width: min(32rem, 100% - 2rem); padding: .9rem 1.15rem; border-radius: var(--radius);
  background: var(--navy-950); color: var(--white); font-size: .9375rem;
  box-shadow: 0 .75rem 2rem rgba(7, 19, 64, .25);
  animation: toast-in .4s var(--ease) both;
}
.toast-error { background: var(--error); }
.toast.is-leaving { animation: toast-out .3s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 1rem); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 1rem); } }
.alert { padding: .9rem 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: .9375rem; }
.alert-error { background: #FEF3F2; color: var(--error); border: 1px solid #FECDCA; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: var(--section-sm); }
.section-paper { background: var(--paper); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: var(--fs-h2); }
.section-head .link { white-space: nowrap; }

.page-head { background: var(--paper); padding-block: clamp(2.5rem, 1.75rem + 3vw, 4.5rem); }
.page-head h1 { font-size: var(--fs-h1); }
.page-head .lead { margin-top: 1rem; max-width: 40rem; }
.page-head-slim { padding-block: clamp(1.75rem, 1.25rem + 2vw, 3rem); }
.page-head-slim h1 { font-size: var(--fs-h2); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-950); color: var(--white); overflow: hidden; }

/* Slides sit on top of each other in one grid cell, so the board is as tall as its tallest slide. */
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; position: relative; display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.slide-grid {
  position: relative; z-index: 1;
  display: grid; gap: 1.5rem; align-items: center;
  padding-top: clamp(2.75rem, 2rem + 4vw, 5.5rem);
}
.slide-title { color: var(--white); font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5rem); line-height: 1.04; letter-spacing: -.02em; }
.hero .lead { color: rgba(255, 255, 255, .8); margin-top: 1.25rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.slide-visual { margin: 0; display: flex; justify-content: center; }
.slide-visual img {
  width: auto; max-width: 100%; max-height: min(26rem, 52vh); object-fit: contain;
  filter: drop-shadow(0 2rem 2.5rem rgba(0, 0, 0, .45));
}

/* Words in the active slide rise in one after another. */
.slide-copy > *, .slide-visual { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.slide:not(.is-active) .slide-copy > *, .slide:not(.is-active) .slide-visual { opacity: 0; transform: translateY(1.25rem); }
.slide.is-active .slide-copy > :nth-child(2) { transition-delay: .08s; }
.slide.is-active .slide-copy > :nth-child(3) { transition-delay: .16s; }
.slide.is-active .slide-copy > :nth-child(4) { transition-delay: .24s; }
.slide.is-active .slide-visual { transition-delay: .2s; }

/* Photo slides: the picture fills the board with a slow zoom; navy shading keeps the words readable. */
.slide-photo { min-height: clamp(30rem, 70vh, 42rem); }
.slide-photo .slide-grid { padding-bottom: 2rem; }
.slide-photo .slide-copy { max-width: 38rem; }
.slide-bg { position: absolute; inset: 0; overflow: hidden; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.06); transition: transform 9s linear; }
.slide-photo.is-active .slide-bg img { transform: scale(1); }
.slide-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7, 19, 64, .92) 10%, rgba(7, 19, 64, .55) 60%, rgba(7, 19, 64, .35));
}
@media (min-width: 60em) {
  .slide-bg::after { background: linear-gradient(90deg, rgba(7, 19, 64, .94) 20%, rgba(7, 19, 64, .55) 55%, rgba(7, 19, 64, .1)); }
}

.slider-controls {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem;
}
.slider-dots { display: flex; gap: .5rem; flex: 1; max-width: 16rem; }
.slider-dot {
  flex: 1; height: 2rem; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center;
}
.slider-dot span { position: relative; display: block; width: 100%; height: .125rem; background: rgba(255, 255, 255, .25); overflow: hidden; }
.slider-dot span::after { content: ''; position: absolute; inset: 0; background: var(--gold-500); transform: scaleX(0); transform-origin: left; }
.slider-dot.is-active span::after { transform: scaleX(1); }
.hero.is-playing .slider-dot.is-active span::after { animation: slide-progress var(--slide-time, 7s) linear both; }
.hero.is-paused .slider-dot.is-active span::after { animation-play-state: paused; }
@keyframes slide-progress { from { transform: scaleX(0); } }
.slider-arrows { display: flex; gap: .25rem; }
.slider-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius);
  background: none; color: var(--white); cursor: pointer; transition: background-color .2s, border-color .2s;
}
.slider-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.slider-btn .icon { width: 1.1rem; height: 1.1rem; }
.slider-btn .icon-play, .hero.is-paused .slider-btn .icon-pause { display: none; }
.hero.is-paused .slider-btn .icon-play { display: block; }

.hero-facts {
  display: grid; gap: .75rem;
  margin-top: clamp(1rem, 2vw, 2rem);
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .9375rem; color: rgba(255, 255, 255, .8);
}
.hero-facts p { display: flex; align-items: center; gap: .6rem; }
.hero-facts strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 400; color: var(--gold-300); }
.hero-facts .icon { color: var(--gold-300); }
@media (min-width: 48em) {
  .hero-facts { grid-template-columns: repeat(3, auto); justify-content: space-between; }
}
@media (min-width: 60em) {
  .slide-split .slide-grid { grid-template-columns: 1fr 1.05fr; gap: 3rem; }
  .slide-visual img { max-height: 30rem; }
}

/* ---------- Book grid and cards ---------- */
.book-grid {
  display: grid; gap: 2.25rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 40em) { .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem 1.5rem; } }
@media (min-width: 64em) { .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem 2rem; } }

.book-card { display: flex; flex-direction: column; }
.book-card-cover {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; padding: 10%;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
}
.section-paper .book-card-cover { background: var(--white); }
.book-card-cover img {
  max-height: 100%; width: auto; object-fit: contain;
  filter: drop-shadow(0 .6rem .9rem rgba(10, 10, 10, .18));
  transition: transform .6s var(--ease);
}
.book-card:hover .book-card-cover img { transform: scale(1.04); }
.book-card-flag {
  position: absolute; top: .6rem; left: .6rem;
  padding: .2rem .55rem; border-radius: .25rem;
  background: var(--white); font-size: .75rem; font-weight: 600; color: var(--ink-80);
}
.book-card-body { padding-top: 1rem; }
.book-card-title { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3rem); line-height: 1.25; }
.book-card-title a { text-decoration: none; }
.book-card-title a::after { content: ''; position: absolute; inset: 0; }
.book-card { position: relative; }
.book-card-title a:hover { text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: .2em; }
.book-card-author { font-size: .875rem; color: var(--ink-60); margin-top: .25rem; }
.book-card-price { margin-top: .5rem; font-weight: 600; font-size: .9375rem; }
.approx { display: block; font-weight: 400; font-size: .8125rem; color: var(--ink-60); }

/* ---------- Topics ---------- */
.topics { display: grid; gap: 1.5rem; }
.topics-title { font-size: var(--fs-h3); }
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.topic-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-size: 1.375rem; color: var(--navy-900); text-decoration: none;
}
.topic-list a .icon { color: var(--gold-700); transition: transform .3s var(--ease); }
.topic-list a:hover .icon { transform: translateX(.3rem); }
@media (min-width: 48em) {
  .topics { grid-template-columns: 1fr 2fr; gap: 3rem; }
  .topic-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}

/* ---------- Author ---------- */
.author-grid { display: grid; gap: 2rem; align-items: center; }
.author-photo { margin: 0; }
.author-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%; border-radius: var(--radius); }
.author-copy h2 { font-size: var(--fs-h2); margin-bottom: 1.25rem; }
.author-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
@media (min-width: 56em) {
  .author-grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 6rem); }
  .author-photo img { aspect-ratio: 4 / 5; }
}

/* ---------- Catalog ---------- */
.catalog-search, .search-like {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 1.75rem; max-width: 40rem;
  padding: .3rem .3rem .3rem 1rem;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.catalog-search:focus-within { border-color: var(--navy-900); box-shadow: 0 0 0 1px var(--navy-900); }
.catalog-search > .icon { color: var(--ink-60); }
.catalog-search input { flex: 1; min-width: 0; border: 0; background: none; padding: .6rem 0; outline: none; font-size: 1rem; }
.catalog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.chips {
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  max-width: calc(100% + 2 * var(--gutter));
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: .5rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: .875rem; font-weight: 500; text-decoration: none; color: var(--ink-80); white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.sort-form { display: flex; align-items: center; gap: .6rem; font-size: .875rem; color: var(--ink-60); }
.sort-form select, select {
  appearance: none; padding: .55rem 2.25rem .55rem .85rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .6rem center / 1rem;
}
@media (min-width: 48em) { .chips { margin: 0; padding: 0; flex-wrap: wrap; max-width: none; } }
.result-count { margin: 1.5rem 0 2rem; font-size: .9375rem; color: var(--ink-60); }

.pager {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .9375rem; color: var(--ink-60);
}
.pager a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--navy-900); text-decoration: none; }
.pager .icon { width: 1rem; height: 1rem; }

.empty { max-width: 30rem; margin-inline: auto; padding-block: 2rem; text-align: center; }
.empty-icon { width: 2.75rem; height: 2.75rem; color: var(--gold-700); margin: 0 auto 1.25rem; }
.empty h1, .empty h2 { font-size: var(--fs-h3); margin-bottom: .6rem; }
.empty p { color: var(--ink-60); margin-bottom: 1.75rem; }

/* ---------- Product ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; gap: .5rem; padding-block: 1.25rem;
  font-size: .8125rem; color: var(--ink-60);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--navy-900); text-decoration: underline; }
.product { display: grid; gap: 2rem; padding-bottom: var(--section); }
.product-cover-frame {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; padding: 10%;
  background: var(--paper); border-radius: var(--radius);
}
.product-cover-frame img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 1.25rem 1.75rem rgba(10, 10, 10, .22)); }
.product-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.08; }
.product-author { margin-top: .6rem; font-size: 1.0625rem; color: var(--ink-60); }
.product-price { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.product-price .price { font-size: 1.75rem; font-weight: 600; letter-spacing: -.01em; }
.product-price .approx { font-size: .875rem; margin-top: .15rem; }
.stock { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; font-size: .9375rem; font-weight: 500; }
.stock-dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.stock-in { color: var(--ok); }
.stock-out { color: var(--error); }
.buy-form { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.sold-out-note { margin-top: 1.25rem; color: var(--ink-80); }

.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius); height: 3rem;
}
.qty-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 100%; border: 0; background: none; cursor: pointer; color: var(--navy-900);
}
.qty-btn:hover:not([disabled]) { background: var(--royal-50); }
.qty-btn[disabled] { opacity: .35; cursor: not-allowed; }
.qty-btn .icon { width: 1rem; height: 1rem; }
.qty input, .qty-value {
  width: 2.75rem; border: 0; text-align: center; font-weight: 600; background: none;
  -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 2.5rem; }
.qty-sm .qty-btn { width: 2.25rem; }
.qty-sm .qty-value { width: 2rem; }

.assurances {
  list-style: none; margin: 1.75rem 0 0; padding: 1.25rem 0 0;
  display: grid; gap: .65rem; border-top: 1px solid var(--line);
  font-size: .9375rem; color: var(--ink-80);
}
.assurances li { display: flex; align-items: center; gap: .65rem; }
.assurances .icon { color: var(--gold-700); }
.product-about { margin-top: 2.5rem; }
.product-about h2, .summary h2 { font-size: var(--fs-h3); margin-bottom: 1rem; }
.specs { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.specs dt { color: var(--ink-60); }
.specs dd { margin: 0; font-weight: 500; text-align: right; }
@media (min-width: 56em) {
  .product { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .product-cover { position: sticky; top: 6.5rem; }
  .product-cover-frame { aspect-ratio: 4 / 5; }
}

/* ---------- Cart, checkout, receipt ---------- */
.cart-layout, .checkout-layout { display: grid; gap: 2.5rem; align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-row {
  display: grid; grid-template-columns: 5rem 1fr; gap: .25rem 1rem;
  padding-block: 1.5rem; border-bottom: 1px solid var(--line);
}
.cart-cover {
  grid-row: span 2; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; padding: .5rem; background: var(--paper); border-radius: var(--radius);
}
.cart-cover img { max-height: 100%; width: auto; object-fit: contain; }
.cart-info h2 { font-size: 1.25rem; line-height: 1.25; }
.cart-info h2 a { text-decoration: none; }
.cart-info .muted { font-size: .875rem; margin-top: .15rem; }
.cart-unit { font-size: .875rem; color: var(--ink-60); margin-top: .35rem; }
.cart-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .9rem; }
.cart-line-total { grid-column: 2; font-weight: 600; }
@media (min-width: 40em) {
  .cart-row { grid-template-columns: 6.5rem 1fr auto; }
  .cart-cover { grid-row: auto; }
  .cart-line-total { grid-column: auto; }
}

.summary {
  padding: 1.5rem; background: var(--paper); border-radius: var(--radius);
}
.summary dl { margin: 0; }
.summary dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; font-size: .9375rem; }
.summary dt small { color: var(--ink-60); }
.summary dd { margin: 0; text-align: right; }
.summary-total { margin-top: .5rem; padding-top: 1rem !important; border-top: 1px solid var(--line-strong); font-size: 1.125rem !important; font-weight: 600; }
.summary .approx { margin: .25rem 0 1rem; }
.summary .btn { margin-top: 1.25rem; }
.summary-link { display: flex; justify-content: center; margin-top: 1rem; }
.summary-items { list-style: none; margin: 0 0 1rem; padding: 0 0 .5rem; border-bottom: 1px solid var(--line); }
.summary-items li { display: flex; align-items: center; gap: .85rem; padding: .6rem 0; font-size: .9375rem; }
.summary-items img { width: 2.75rem; height: 3.5rem; object-fit: contain; }
.summary-item-title { flex: 1; display: flex; flex-direction: column; font-weight: 500; line-height: 1.3; }
.summary-item-title small { font-weight: 400; color: var(--ink-60); font-size: .8125rem; margin-top: .15rem; }
@media (min-width: 56em) {
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr) 24rem; gap: 4rem; }
  .summary { position: sticky; top: 6.5rem; padding: 2rem; }
}

fieldset { border: 0; margin: 0 0 2.25rem; padding: 0; min-width: 0; }
legend { font-family: var(--font-head); font-size: var(--fs-h3); color: var(--navy-900); padding: 0; margin-bottom: 1.25rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .45rem; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-900); box-shadow: 0 0 0 1px var(--navy-900); }
.has-error input, .has-error textarea { border-color: var(--error); }
.field-error { margin-top: .4rem; font-size: .8125rem; color: var(--error); }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 40em) { .field-row { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex; align-items: flex-start; gap: .85rem; margin-bottom: .75rem;
  padding: 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--navy-900); background: var(--royal-50); }
.choice input { margin-top: .25rem; accent-color: var(--navy-900); width: 1.1rem; height: 1.1rem; }
.choice span { display: flex; flex-direction: column; gap: .15rem; }
.choice small { color: var(--ink-60); font-size: .875rem; }
.choice + .choice + .field { margin-top: 1.25rem; }

.receipt { max-width: 40rem; }
.receipt-head { text-align: center; margin-bottom: 2.5rem; }
.receipt-head h1 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.receipt-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; margin-bottom: 1.25rem; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-300);
}
.receipt-mark-wait { background: var(--paper); color: var(--gold-700); }
.receipt-mark .icon { width: 1.6rem; height: 1.6rem; }
.receipt-card { padding: 1.5rem; background: var(--paper); border-radius: var(--radius); }
.receipt-card dl { margin: 0; }
.receipt-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; font-size: .9375rem; }
.receipt-card dd { margin: 0; text-align: right; }
.receipt-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.receipt .fine-print { text-align: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.contact-list li > .icon { color: var(--gold-700); width: 1.5rem; height: 1.5rem; margin-top: .2rem; }
.contact-list h2 { font-size: 1.375rem; margin-bottom: .35rem; }
.contact-list p { color: var(--ink-80); margin-bottom: .5rem; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--paper); min-height: 22rem; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 22rem; border: 0; }
@media (min-width: 56em) { .contact-grid { grid-template-columns: 5fr 6fr; gap: 4rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); padding-top: var(--section-sm); font-size: .9375rem; }
.footer-grid { display: grid; gap: 2.25rem; padding-bottom: 2.5rem; }
.brand-light .brand-name { color: var(--white); }
.brand-light .brand-sub { color: rgba(255, 255, 255, .6); display: block; }
.brand-light .brand-mark { filter: brightness(0) invert(1); }
.footer-about p { margin-top: 1rem; max-width: 22rem; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col h2 {
  font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-300); margin-bottom: .35rem;
}
.footer-col a { text-decoration: none; width: fit-content; }
.footer-col a:hover, .footer-social a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: .3em; }
.news-form { display: flex; gap: .5rem; margin-top: .5rem; }
.news-form input {
  flex: 1; min-width: 0; padding: .55rem .85rem; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: var(--white);
}
.news-form input::placeholder { color: rgba(255, 255, 255, .5); }
.news-form input:focus { outline: none; border-color: var(--gold-500); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem 2rem; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .8125rem; color: rgba(255, 255, 255, .55);
}
.footer-social { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-social a { text-decoration: none; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.6fr; gap: 3rem; } }

/* ---------- Gentle motion (off for reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(1rem); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .stagger.is-in > * { opacity: 1; transform: none; }
/* Photos unveil bottom-up: a panel in the section colour shrinks away (the image itself is never
   clipped, so lazy loading still sees it). */
.js .unveil { position: relative; }
.js .unveil::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--unveil-bg, var(--white)); transform-origin: top;
  transition: transform 1.2s var(--ease);
}
.js .unveil.is-in::after { transform: scaleY(0); }
.section-paper { --unveil-bg: var(--paper); }
.js .section-head { border-bottom-color: transparent; background: linear-gradient(var(--line), var(--line)) left bottom / 0 1px no-repeat; transition: background-size 1.2s var(--ease); }
.js .section-head.is-in { background-size: 100% 1px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; }
  .js .unveil::after { display: none; }
  .js .section-head { background-size: 100% 1px; }
}
