/* ==========================================================================
   Arts Book — base, header, footer, home
   ========================================================================== */

:root {
  --paper: #fbf6ee;
  --paper-2: #f5ebdd;
  --paper-3: #efe1cf;
  --white: #fffdf9;
  --ink: #1b2a24;
  --ink-2: #2b3d34;
  --ink-soft: #43544a;
  --muted: #71736a;
  --muted-2: #96968b;
  --line: rgba(27, 42, 36, 0.13);
  --line-strong: rgba(27, 42, 36, 0.22);
  --accent: #c8553d;
  --accent-2: #a84430;
  --gold: #d9a441;
  --gold-soft: #f3d79b;
  --sage: #77876c;
  --sage-soft: #dfe6d7;
  --blush: #f2d9cf;
  --success: #2f6b4f;
  --danger: #b23a2b;
  --shadow-sm: 0 8px 24px rgba(35, 43, 34, 0.07);
  --shadow: 0 22px 60px rgba(35, 43, 34, 0.12);
  --shadow-lg: 0 40px 100px rgba(35, 43, 34, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-height: 82px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  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: fixed; left: 16px; top: -80px; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; border-radius: 999px; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

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

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-paper { background: var(--paper-2); }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: currentColor;
  display: inline-block;
}
.eyebrow.centered::after {
  content: ""; width: 22px; height: 1.5px; background: currentColor;
  display: inline-block;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.1rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
h4 { font-size: 1.1rem; }
em { font-style: italic; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.text-center { text-align: center; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 40px;
}
.section-head.center { display: block; text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); max-width: 540px; margin-top: 12px; }
.section-head.center p { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-size: 14px; font-weight: 800; letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); box-shadow: 0 14px 30px rgba(27, 42, 36, .18); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 14px 30px rgba(200, 85, 61, .22); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e6b354; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline-light { border-color: rgba(251, 246, 238, .4); color: var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 12.5px; }
.btn-lg { min-height: 56px; padding: 0 34px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: var(--ink);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px;
  transition: color .2s, border-color .2s, gap .2s;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 0; background: transparent;
  border-radius: 50%; color: var(--ink); position: relative;
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: rgba(27, 42, 36, .07); }
.icon-btn .cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; border-radius: 99px;
  font-size: 9.5px; font-weight: 800; line-height: 1;
}

/* ---------- announcement + header ---------- */

.announcement-bar {
  background: var(--ink); color: var(--paper);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; overflow: hidden;
}
.announcement-track {
  display: flex; justify-content: center; padding: 9px 20px;
  text-align: center;
}

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(251, 246, 238, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(35, 43, 34, .08); }
.header-inner {
  display: flex; align-items: center; gap: 26px;
  min-height: var(--header-height);
}
.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand img { width: 168px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 24px; margin-left: 12px; }
.main-nav > a, .nav-dropdown > a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  padding: 8px 0; position: relative;
}
.main-nav > a::after, .nav-dropdown > a::after {
  content: ""; position: absolute; left: 0; bottom: 2px;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width .25s var(--ease);
}
.main-nav > a:hover::after, .nav-dropdown > a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-shop-btn { margin-left: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 20px; height: 1.6px; background: var(--ink); display: block; transition: transform .3s, opacity .3s; }

.nav-dropdown { position: static; }
.dropdown-panel {
  position: absolute; left: 50%; top: calc(100% + 10px);
  width: min(680px, calc(100vw - 48px));
  transform: translate(-50%, 10px);
  background: var(--white); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 26px; display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 24px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
}
.nav-dropdown:hover .dropdown-panel, .nav-dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.dropdown-grid a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px;
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
}
.dropdown-grid a:hover { background: var(--paper); color: var(--ink); }
.dd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); flex: 0 0 auto; }
.dropdown-feature {
  background: var(--paper); border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.dropdown-feature .eyebrow { margin: 0; font-size: 9px; }
.dropdown-feature strong { font-family: var(--font-serif); font-size: 20px; line-height: 1.15; }
.dropdown-feature .text-link { font-size: 12px; align-self: flex-start; margin-top: 4px; }

.search-panel {
  border-top: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 20px 40px rgba(35, 43, 34, .08);
  padding: 18px 0 14px;
}
.search-panel[hidden] { display: none; }
.search-form { display: flex; align-items: center; gap: 14px; }
.search-form > svg { color: var(--muted); flex: 0 0 auto; }
.search-form input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-size: 17px; font-family: var(--font-serif); min-width: 0;
}
.search-close { font-size: 26px; font-weight: 300; line-height: 1; }
.search-suggestions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 10px; color: var(--muted); font-size: 12px;
}
.search-suggestions a { font-weight: 700; color: var(--ink-soft); border-bottom: 1px dotted var(--line-strong); }
.search-suggestions a:hover { color: var(--accent); }

/* ---------- mobile drawer ---------- */

.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(17, 24, 20, .45);
  backdrop-filter: blur(2px); z-index: 98;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 99;
  width: min(390px, 90vw); background: var(--paper);
  transform: translateX(-102%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column; padding: 18px;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; }
.drawer-head .icon-btn { font-size: 28px; font-weight: 300; }
.drawer-search { display: flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 16px; margin-bottom: 18px; }
.drawer-search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 13px; min-width: 0; }
.drawer-search button { border: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 16px; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav > a, .drawer-nav summary {
  padding: 13px 2px; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  list-style: none;
}
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav summary span { font-size: 18px; font-weight: 400; color: var(--muted); }
.drawer-sub { display: flex; flex-direction: column; padding: 6px 0 6px 14px; }
.drawer-sub a { padding: 8px 0; font-size: 13px; color: var(--muted); }
.drawer-sub a:hover { color: var(--accent); }
.drawer-foot { margin-top: auto; padding-top: 24px; }
.drawer-foot p { font-size: 12px; color: var(--muted); margin-top: 14px; }
.drawer-foot p a { font-weight: 700; color: var(--ink); }

/* ---------- toast ---------- */

.toast-wrap {
  position: fixed; right: 22px; bottom: 24px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--ink); color: var(--paper);
  padding: 14px 18px; border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600; max-width: 360px;
  animation: toastIn .35s var(--ease); pointer-events: auto;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast .toast-icon { font-size: 17px; line-height: 1.2; }
.toast.hide { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(27, 42, 36, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .45; pointer-events: none;
}
.hero-slide {
  display: none; position: relative;
  grid-template-columns: 1.02fr .98fr; align-items: center;
  gap: 40px; min-height: 620px; padding: 66px 0 76px;
}
.hero-slide.is-active { display: grid; }
.hero-slide::before {
  content: ""; position: absolute; z-index: -1;
  width: 620px; height: 620px; border-radius: 50%;
  top: -220px; right: -140px;
  background: var(--slide-glow, rgba(217, 164, 65, .2));
  filter: blur(10px);
}
.hero-slide::after {
  content: ""; position: absolute; z-index: -1;
  width: 420px; height: 420px; border-radius: 50%;
  bottom: -220px; left: -150px;
  background: var(--slide-glow-2, rgba(119, 135, 108, .18));
  filter: blur(6px);
}
.hero-copy { max-width: 600px; position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .16em; color: var(--accent); margin-bottom: 20px;
}
.hero-kicker .kicker-line { width: 34px; height: 1.5px; background: var(--accent); }
.hero h1 { font-size: clamp(2.9rem, 5.7vw, 5rem); line-height: .98; margin-bottom: 22px; }
.hero h1 em { position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: var(--gold-soft); z-index: -1; border-radius: 4px; transform: rotate(-1deg);
}
.hero-lead { font-size: 16px; color: var(--ink-soft); max-width: 480px; margin-bottom: 30px; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-meta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 10px; }
.hero-meta-item .num { font-family: var(--font-serif); font-size: 22px; font-weight: 600; line-height: 1; }
.hero-meta-item .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.hero-stars { display: inline-flex; gap: 2px; color: var(--gold); letter-spacing: 1px; font-size: 13px; }

.hero-visual { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; }
.hero-art-main {
  position: relative; width: min(370px, 76%);
  border-radius: 10px; transform: rotate(-4deg);
  box-shadow: 28px 30px 0 rgba(27, 42, 36, .075), var(--shadow-lg);
  transition: transform .6s var(--ease);
}
.hero-art-main img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.hero-slide.is-active .hero-art-main { animation: artFloatIn 1s var(--ease) both; }
.hero-art-small {
  position: absolute; left: 2%; bottom: -3%; width: 30%;
  transform: rotate(7deg); border-radius: 8px;
  box-shadow: var(--shadow-lg); border: 8px solid var(--white);
  animation: artPageIn 1.1s .25s var(--ease) both;
  z-index: 2;
}
.hero-art-small img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
.hero-seal {
  position: absolute; top: 2%; right: 3%;
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; text-align: center;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.5; padding: 14px; z-index: 3;
  animation: sealIn .8s .4s var(--ease) both;
}
.hero-seal span { display: block; font-family: var(--font-serif); font-size: 23px; font-weight: 600; letter-spacing: 0; line-height: 1.05; text-transform: none; }
.hero-price-card {
  position: absolute; right: -2%; bottom: 6%;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 13px 18px;
  box-shadow: var(--shadow); z-index: 3;
  animation: artPageIn 1s .4s var(--ease) both;
}
.hero-price-card .pc-label { font-size: 9px; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); font-weight: 800; }
.hero-price-card .pc-price { font-family: var(--font-serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.hero-price-card .pc-strike { font-size: 12px; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.hero-slide[data-slide="0"] { --slide-glow: rgba(217, 164, 65, .27); --slide-glow-2: rgba(200, 85, 61, .14); }
.hero-slide[data-slide="1"] { --slide-glow: rgba(200, 85, 61, .2); --slide-glow-2: rgba(217, 164, 65, .18); }
.hero-slide[data-slide="2"] { --slide-glow: rgba(119, 135, 108, .28); --slide-glow-2: rgba(217, 164, 65, .16); }
.hero-slide.is-active .hero-copy > * { animation: heroUp .8s var(--ease) both; }
.hero-slide.is-active .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-slide.is-active .hero-copy > *:nth-child(5) { animation-delay: .32s; }

@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } }
@keyframes artFloatIn { from { opacity: 0; transform: rotate(-9deg) translateY(30px) scale(.96); } }
@keyframes artPageIn { from { opacity: 0; transform: rotate(12deg) translateY(24px); } }
@keyframes sealIn { from { opacity: 0; transform: scale(.6) rotate(-18deg); } }

.hero-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-bottom: 30px; position: relative; z-index: 4;
}
.hero-dots { display: flex; align-items: center; gap: 9px; }
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink);
  background: transparent; padding: 0; transition: width .3s, background .3s;
}
.hero-dot.active { width: 30px; border-radius: 99px; background: var(--ink); }
.hero-progress {
  flex: 1; max-width: 320px; height: 2px; background: var(--line);
  border-radius: 2px; overflow: hidden; margin-left: auto;
}
.hero-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.hero-progress span.run { animation: progress 6.5s linear forwards; }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; display: grid; place-items: center; font-size: 18px;
  transition: background .2s, color .2s, border-color .2s;
}
.hero-arrow:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@keyframes progress { from { width: 0; } to { width: 100%; } }

/* ---------- trust strip ---------- */

.trust-strip {
  background: var(--white); border-bottom: 1px solid var(--line);
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 26px; border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: 0; }
.trust-icon {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%;
  background: var(--paper); display: grid; place-items: center; color: var(--accent);
}
.trust-item strong { display: block; font-size: 13px; font-weight: 800; line-height: 1.3; }
.trust-item span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* ---------- categories ---------- */

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--paper-3); isolation: isolate;
  min-height: 260px;
}
.category-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.category-card:hover img { transform: scale(1.06) rotate(.5deg); }
.category-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 20, 0) 35%, rgba(17, 24, 20, .78) 100%);
}
.category-card-content {
  position: absolute; inset: auto 0 0; z-index: 2; padding: 20px;
  color: #fff;
}
.category-card-content .cc-count { font-size: 10px; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; opacity: .85; }
.category-card-content h3 { font-size: 22px; margin: 2px 0 7px; }
.category-card-content span { font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.category-card:hover .category-card-content span { opacity: 1; transform: translateY(0); }
.category-card:nth-child(1), .category-card:nth-child(6) { margin-top: 24px; }
.category-card:nth-child(3), .category-card:nth-child(8) { margin-top: 24px; }

/* ---------- product cards ---------- */

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; align-items: start; }
.product-card {
  position: relative; background: transparent;
  transition: transform .35s var(--ease);
  display: flex; flex-direction: column;
  min-width: 0;
}
.product-card:hover { transform: translateY(-4px); }
.product-media {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--paper-2); aspect-ratio: 3 / 4;
  box-shadow: 0 2px 0 rgba(27, 42, 36, .04);
  flex: 0 0 auto;
  width: 100%;
}
.product-media > a { display: block; height: 100%; }
.product-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.045); }
.product-info { position: relative; z-index: 1; }
.product-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 5px 10px;
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  box-shadow: 0 4px 12px rgba(35, 43, 34, .12);
}
.product-badge.sale { background: var(--accent); color: #fff; }
.product-wish {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255, 253, 249, .9);
  backdrop-filter: blur(4px);
  display: grid; place-items: center; color: var(--ink);
  transition: transform .2s, background .2s, color .2s;
}
.product-wish:hover { transform: scale(1.08); }
.product-wish.active { color: var(--accent); background: var(--white); }
.product-wish.active svg { fill: currentColor; }
.quick-add {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  min-height: 42px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s;
}
.product-card:hover .quick-add, .quick-add:focus-visible { opacity: 1; transform: translateY(0); }
.quick-add:hover { background: var(--accent); }
.product-info { padding-top: 13px; position: relative; z-index: 1; }
.product-cat { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.product-title {
  font-family: var(--font-serif); font-size: 18px; font-weight: 600;
  line-height: 1.25; margin: 4px 0 6px;
}
.product-title a:hover { color: var(--accent); }
.product-rating { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.product-rating .stars { color: var(--gold); letter-spacing: .5px; }
.product-price { display: flex; align-items: baseline; gap: 7px; margin-top: 6px; }
.product-price strong { font-size: 16px; font-weight: 800; }
.product-price s { font-size: 12px; color: var(--muted-2); }
.product-price .off { font-size: 10px; font-weight: 800; color: var(--success); margin-left: 2px; }
.product-stock-low { font-size: 10px; color: var(--accent); font-weight: 700; margin-top: 4px; }

/* ---------- promo split ---------- */

.promo-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.promo-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 340px; display: flex; align-items: center;
  padding: 42px; isolation: isolate;
}
.promo-card.cream { background: #f0e2cd; }
.promo-card.sage { background: var(--ink); color: var(--paper); }
.promo-card::before {
  content: ""; position: absolute; width: 320px; height: 320px;
  border-radius: 50%; right: -80px; top: -80px;
  background: rgba(255, 253, 249, .35); z-index: -1;
}
.promo-card .promo-copy { max-width: 55%; position: relative; z-index: 2; }
.promo-card h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 12px; }
.promo-card p { font-size: 13.5px; color: inherit; opacity: .8; margin-bottom: 22px; }
.promo-card .promo-art {
  position: absolute; right: -3%; bottom: -12%; width: 46%; max-width: 270px;
  transform: rotate(6deg); border-radius: 8px;
  box-shadow: var(--shadow-lg);
  transition: transform .6s var(--ease);
}
.promo-card:hover .promo-art { transform: rotate(2deg) translateY(-8px); }
.promo-card .promo-stamp {
  position: absolute; right: 26px; top: 22px;
  font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 99px; padding: 6px 12px; opacity: .7;
}

/* ---------- value props ---------- */

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-card {
  padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color .3s, transform .3s;
}
.value-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.value-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--paper-2);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--accent);
}
.value-card h3 { font-size: 19px; margin-bottom: 7px; }
.value-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ---------- testimonials ---------- */

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 18px;
}
.testimonial-stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.testimonial-card blockquote {
  margin: 0; font-family: var(--font-serif); font-size: 19px; line-height: 1.55;
  font-style: italic; color: var(--ink-2); flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--paper-2); color: var(--accent);
}
.testimonial-author strong { display: block; font-size: 13px; }
.testimonial-author span { display: block; font-size: 11px; color: var(--muted); }

/* ---------- gallery ---------- */

.gallery-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery-item {
  aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative;
  background: var(--paper-2);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: "View book"; position: absolute; inset: auto 8px 8px; padding: 7px;
  background: rgba(27, 42, 36, .82); color: #fff; font-size: 9px; font-weight: 800;
  text-align: center; border-radius: 7px; opacity: 0; transform: translateY(5px);
  transition: opacity .3s, transform .3s;
}
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }

/* ---------- newsletter CTA (home) ---------- */

.newsletter-band {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-lg); padding: 54px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center;
  position: relative; overflow: hidden;
}
.newsletter-band::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(217, 164, 65, .12); top: -200px; right: -100px;
}
.newsletter-band h2 { font-size: clamp(2rem, 3vw, 2.7rem); position: relative; }
.newsletter-band p { color: rgba(251, 246, 238, .65); margin-top: 12px; position: relative; }
.newsletter-band form { position: relative; }
.newsletter-band .newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-band input {
  flex: 1; min-width: 200px; min-height: 54px; border-radius: 999px;
  border: 1px solid rgba(251, 246, 238, .22);
  background: rgba(251, 246, 238, .08); color: var(--paper);
  padding: 0 22px; outline: none;
}
.newsletter-band input::placeholder { color: rgba(251, 246, 238, .5); }
.newsletter-band .form-note { width: 100%; font-size: 12px; margin-top: 10px; color: var(--gold-soft); min-height: 18px; }

/* ---------- footer ---------- */

.site-footer { background: #16231d; color: var(--paper); margin-top: 80px; }
.footer-marquee {
  border-bottom: 1px solid rgba(251, 246, 238, .12);
  overflow: hidden; padding: 14px 0;
}
.footer-marquee-track {
  display: flex; gap: 44px; width: max-content;
  animation: marquee 28s linear infinite;
}
.footer-marquee-track span {
  font-size: 10px; font-weight: 800; letter-spacing: .22em;
  color: rgba(251, 246, 238, .45); white-space: nowrap;
}
.footer-marquee-track span::before { content: "✦"; margin-right: 44px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
.footer-main {
  display: grid; grid-template-columns: 1.05fr 2.1fr; gap: 60px;
  padding: 62px 0 44px;
}
.footer-brand p { font-size: 13px; color: rgba(251, 246, 238, .62); max-width: 300px; margin: 20px 0 0; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-col h3 {
  font-family: var(--font-sans); font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .15em; color: var(--gold);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block; font-size: 12.5px; color: rgba(251, 246, 238, .62);
  margin-bottom: 8px; line-height: 1.6;
}
.footer-col a:hover { color: var(--paper); }
.footer-contact p { margin-bottom: 10px; }
.footer-contact a { color: var(--paper); font-weight: 600; }
.footer-newsletter {
  grid-column: 1 / -1; border-top: 1px solid rgba(251, 246, 238, .12);
  padding-top: 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
}
.footer-newsletter h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin-top: 4px; }
.footer-newsletter .eyebrow { color: var(--gold); margin-bottom: 6px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 180px; min-height: 48px;
  background: rgba(251, 246, 238, .07); color: var(--paper);
  border: 1px solid rgba(251, 246, 238, .2); border-radius: 999px;
  padding: 0 20px; outline: none;
}
.newsletter-form input::placeholder { color: rgba(251, 246, 238, .42); }
.newsletter-form .form-note { width: 100%; font-size: 11.5px; color: var(--gold-soft); min-height: 17px; }
.footer-bottom { border-top: 1px solid rgba(251, 246, 238, .12); padding: 20px 0; }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 10.5px; color: rgba(251, 246, 238, .45); flex-wrap: wrap;
}
.payment-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.payment-badges span {
  border: 1px solid rgba(251, 246, 238, .16); border-radius: 5px;
  padding: 3px 8px; font-size: 8px; font-weight: 800; letter-spacing: .08em;
  color: rgba(251, 246, 238, .62);
}
.made-in span { color: var(--accent); }

.whatsapp-float {
  position: fixed; right: 22px; bottom: 84px; z-index: 70;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .35);
  transition: transform .25s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-sm); font-size: 18px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--ink); color: var(--paper); }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .main-nav { gap: 16px; }
  .main-nav > a, .nav-dropdown > a { font-size: 12px; }
  .header-shop-btn { display: none; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand p { max-width: 460px; }
  .footer-newsletter { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-height: 70px; }
  .container { width: calc(100% - 32px); }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { gap: 12px; }
  .brand img { width: 145px; }
  .header-actions { gap: 0; }
  .search-toggle { display: inline-flex; }
  .section { padding: 64px 0; }
  .hero-slide { grid-template-columns: 1fr; gap: 30px; padding: 46px 0 50px; min-height: auto; }
  .hero-copy { max-width: 620px; }
  .hero-visual { min-height: 430px; }
  .hero-art-main { width: min(310px, 66%); }
  .hero-seal { width: 92px; height: 92px; right: 6%; font-size: 8px; }
  .hero-seal span { font-size: 19px; }
  .hero-controls { padding-bottom: 20px; }
  .hero-progress { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(2n) { border-right: 0; }
  .trust-item:nth-child(n+3) { border-bottom: 0; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card:nth-child(n) { margin-top: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-card { padding: 32px; min-height: 300px; }
  .promo-card .promo-copy { max-width: 62%; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .newsletter-band { grid-template-columns: 1fr; padding: 38px 28px; gap: 24px; }
  .footer-main { padding-top: 48px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-newsletter { grid-template-columns: 1fr; gap: 20px; }
  .section-head { display: block; }
  .section-head .text-link { margin-top: 12px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size: clamp(2.5rem, 13vw, 3.6rem); }
  .announcement-track { font-size: 9.5px; padding: 8px 14px; }
  .brand img { width: 132px; }
  .header-actions .search-toggle { display: none; }
  .hero h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .hero-lead { font-size: 14.5px; }
  .hero-cta .btn { flex: 1; }
  .hero-meta { gap: 18px; }
  .hero-visual { min-height: 350px; }
  .hero-art-main { width: 70%; }
  .hero-art-small { width: 33%; border-width: 5px; }
  .hero-price-card { padding: 9px 13px; right: 0; }
  .hero-price-card .pc-price { font-size: 19px; }
  .hero-seal { width: 78px; height: 78px; padding: 9px; font-size: 7px; }
  .hero-seal span { font-size: 16px; }
  .trust-item { padding: 16px 12px; gap: 10px; }
  .trust-icon { width: 34px; height: 34px; }
  .trust-item strong { font-size: 11.5px; }
  .trust-item span { font-size: 10px; }
  .category-grid { gap: 10px; }
  .category-card-content { padding: 13px; }
  .category-card-content h3 { font-size: 17px; }
  .product-title { font-size: 15px; }
  .product-price strong { font-size: 14px; }
  .quick-add { opacity: 1; transform: none; min-height: 38px; font-size: 10.5px; }
  .value-grid { grid-template-columns: 1fr; }
  .promo-card .promo-copy { max-width: 100%; }
  .promo-card .promo-art { opacity: .32; width: 55%; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .toast-wrap { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; }
  .whatsapp-float { right: 14px; bottom: 76px; width: 46px; height: 46px; }
  .back-to-top { right: 14px; bottom: 18px; width: 42px; height: 42px; }
}

/* ---------- home hero layout fix + extras ---------- */

.hero-slide { display: none; min-height: 0; padding: 0; }
.hero-slide.is-active { display: block; }
.hero-slide > .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 40px;
  min-height: 620px;
  padding: 66px 0 76px;
}

/* skeleton loaders */
.skeleton-card { min-width: 0; }
.skeleton-media {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: var(--paper-3);
  margin-bottom: 14px;
}
.skeleton-line {
  height: 13px;
  border-radius: 6px;
  background: var(--paper-3);
  margin-bottom: 8px;
  width: 86%;
}
.skeleton-line.short { width: 52%; }
.shimmer {
  background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: shimmerSweep 1.45s linear infinite;
}
@keyframes shimmerSweep { to { background-position: -220% 0; } }

/* button loading spinner */
.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* dark bestseller shelf */
.bestseller-zone { position: relative; overflow: hidden; }
.bestseller-zone::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(217, 164, 65, .11);
  right: -180px;
  top: -180px;
}
.bestseller-zone .container { position: relative; z-index: 1; }
.bestseller-zone h2 { color: var(--paper); }
.bestseller-zone .eyebrow { color: var(--gold); }
.bestseller-zone .product-title,
.bestseller-zone .product-title a,
.bestseller-zone .product-price strong { color: var(--paper); }
.bestseller-zone .product-price s,
.bestseller-zone .product-rating { color: rgba(251, 246, 238, .55); }
.bestseller-zone .product-title a:hover { color: var(--gold); }
.bestseller-zone .quick-add { background: var(--paper); color: var(--ink); }
.bestseller-zone .quick-add:hover { background: var(--gold); color: var(--ink); }
.bestseller-zone .product-badge { background: var(--gold); color: var(--ink); }
.bestseller-zone .product-stock-low { color: var(--gold-soft); }
.text-link-light { color: var(--paper); border-color: rgba(251, 246, 238, .35); }
.text-link-light:hover { color: var(--gold); border-color: var(--gold); }
.section-ink .section-head p { color: rgba(251, 246, 238, .62); }
.empty-state .btn { margin-top: 2px; }

@media (max-width: 900px) {
  .hero-slide > .container {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
    padding: 46px 0 50px;
  }
}

@media (max-width: 600px) {
  .hero-slide > .container { padding: 38px 0 42px; gap: 24px; }
  .bestseller-zone .product-grid { gap: 22px 14px; }
}

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