:root {
  --bg: oklch(97.5% 0.008 92);
  --surface: oklch(99.2% 0.003 92);
  --fg: oklch(22% 0.02 55);
  --muted: oklch(44% 0.016 55);
  --border: oklch(88% 0.012 90);
  --accent: oklch(40% 0.07 155);
  --accent-soft: oklch(94% 0.02 155);
  --warn: oklch(55% 0.12 55);
  --danger: oklch(48% 0.14 25);
  --success: oklch(45% 0.09 150);
  --shadow: 0 18px 40px oklch(22% 0.02 55 / 0.08);
  --radius: 14px;
  --font-display: "Literata", "Iowan Old Style", "Charter", Georgia, serif;
  --font-body:
    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  --font-mono: ui-monospace, "IBM Plex Mono", Menlo, monospace;
  --max: 1120px;
  --nav-h: 72px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.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;
}
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
p {
  margin: 0;
}
.muted {
  color: var(--muted);
}
.price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 85%, transparent);
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 1.5rem, var(--max));
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  min-height: 44px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, oklch(55% 0.06 155), oklch(35% 0.07 155));
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.18);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px 6px 7px 6px;
  border: 1.5px solid oklch(98% 0.01 92 / 0.9);
  border-radius: 3px;
  transform: skewX(-8deg);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-tag {
  display: none;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (min-width: 720px) {
  .brand-tag {
    display: inline;
  }
}
.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}
.nav-links a,
.nav-mobile a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  border-radius: 10px;
}
.nav-links a:hover,
.nav-mobile a:hover,
.nav-links a[aria-current="page"],
.nav-mobile a[aria-current="page"],
.nav-links a.is-active,
.nav-mobile a.is-active {
  color: var(--fg);
  background: color-mix(in oklch, var(--surface) 70%, var(--border));
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.icon-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
}
.icon-btn:hover {
  transform: translateY(-1px);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.cart-count {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
}
.cart-count:empty,
.cart-count[data-empty="1"] {
  display: none;
}
.menu-toggle {
  display: grid;
}
@media (min-width: 860px) {
  .menu-toggle {
    display: none;
  }
}
.nav-mobile {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0.5rem 1rem 1rem;
}
.nav-mobile.open {
  display: grid;
  gap: 0.15rem;
}

.hero {
  padding: 2.5rem 0 3rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 920px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 3.5rem 0 4rem;
    gap: 3rem;
  }
}
.hero-copy {
  max-width: 34rem;
}
.hero h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.5rem);
  margin: 0.75rem 0 1rem;
  letter-spacing: -0.03em;
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36ch;
  margin-bottom: 1.6rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.15s cubic-bezier(0.23, 1, 0.32, 1),
    background 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover {
  background: color-mix(in oklch, var(--fg) 88%, var(--accent));
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--fg);
}
.btn-ghost:hover {
  border-color: color-mix(in oklch, var(--fg) 25%, var(--border));
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.trust-row svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  flex: 0 0 auto;
}

.stage-3d {
  perspective: 1200px;
  min-height: 360px;
  display: grid;
  place-items: center;
  position: relative;
}
.stage-glow {
  position: absolute;
  inset: 12% 8% 18%;
  background: radial-gradient(
    ellipse at 50% 40%,
    oklch(90% 0.03 155 / 0.55),
    transparent 70%
  );
  pointer-events: none;
}
.book-stack {
  position: relative;
  width: min(100%, 340px);
  height: 320px;
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-28deg);
  animation: float-stack 7s ease-in-out infinite;
}
@keyframes float-stack {
  0%,
  100% {
    transform: rotateX(12deg) rotateY(-28deg) translateY(0);
  }
  50% {
    transform: rotateX(10deg) rotateY(-24deg) translateY(-8px);
  }
}
.book {
  position: absolute;
  width: 190px;
  height: 260px;
  border-radius: 4px 10px 10px 4px;
  transform-style: preserve-3d;
  box-shadow: var(--shadow);
  left: 50%;
  top: 50%;
}
.book-cover {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: oklch(97% 0.01 92);
  backface-visibility: hidden;
  overflow: hidden;
}
.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 100%;
  transform-origin: left center;
  transform: rotateY(-90deg);
  border-radius: 3px 0 0 3px;
}
.book-pages {
  position: absolute;
  top: 4px;
  right: -10px;
  bottom: 4px;
  width: 12px;
  background: repeating-linear-gradient(
    to right,
    oklch(96% 0.01 92),
    oklch(96% 0.01 92) 1px,
    oklch(90% 0.01 92) 1px,
    oklch(90% 0.01 92) 2px
  );
  transform: rotateY(8deg);
  border-radius: 0 2px 2px 0;
}
.book b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.book small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.book .meta {
  font-size: 0.85rem;
  opacity: 0.9;
}
.book-1 {
  transform: translate(-50%, -54%) translateZ(40px) rotateZ(-4deg);
  z-index: 3;
}
.book-1 .book-cover {
  background:
    radial-gradient(
      circle at 20% 15%,
      oklch(55% 0.08 155 / 0.45),
      transparent 40%
    ),
    linear-gradient(160deg, oklch(38% 0.07 155), oklch(28% 0.05 170));
}
.book-1 .book-spine {
  background: oklch(24% 0.05 155);
}
.book-2 {
  transform: translate(-38%, -48%) translateZ(0) rotateZ(6deg);
  z-index: 2;
}
.book-2 .book-cover {
  background: linear-gradient(135deg, oklch(48% 0.08 45), oklch(34% 0.06 35));
}
.book-2 .book-spine {
  background: oklch(30% 0.05 35);
}
.book-3 {
  transform: translate(-62%, -42%) translateZ(-40px) rotateZ(-10deg);
  z-index: 1;
}
.book-3 .book-cover {
  background: linear-gradient(150deg, oklch(42% 0.04 240), oklch(30% 0.03 250));
}
.book-3 .book-spine {
  background: oklch(26% 0.03 250);
}
.cover-ornament {
  width: 48px;
  height: 48px;
  border: 1.5px solid oklch(97% 0.01 92 / 0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.cover-ornament svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  opacity: 0.85;
}

.section {
  padding: 3rem 0;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}
.section-head p {
  max-width: 34ch;
  color: var(--muted);
}

.why-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
}
.why-card h3 {
  font-size: 1.2rem;
  margin: 0.7rem 0 0.5rem;
  letter-spacing: -0.015em;
}
.why-card p {
  color: var(--muted);
  font-size: 0.98rem;
}
.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: var(--bg);
}
.why-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.catalog-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.card-visual {
  position: relative;
  height: 210px;
  perspective: 900px;
  background:
    radial-gradient(
      circle at 70% 20%,
      oklch(94% 0.02 155 / 0.7),
      transparent 45%
    ),
    linear-gradient(180deg, oklch(94% 0.01 92), oklch(90% 0.015 90));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-book {
  display: block;
  width: 118px;
  height: 168px;
  border-radius: 3px 8px 8px 3px;
  transform: rotateY(-18deg) rotateX(6deg);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 14px 18px 30px oklch(22% 0.02 55 / 0.18);
  position: relative;
}
.product-card:hover .card-book {
  transform: rotateY(-8deg) rotateX(2deg) translateY(-4px);
}
.card-book-face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: oklch(97% 0.01 92);
}
.card-book-face strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.card-book-face span {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.85;
}
.card-book-edge {
  position: absolute;
  top: 3px;
  right: -8px;
  bottom: 3px;
  width: 9px;
  background: repeating-linear-gradient(
    to right,
    oklch(96% 0.01 92),
    oklch(96% 0.01 92) 1px,
    oklch(90% 0.01 92) 1px,
    oklch(90% 0.01 92) 2px
  );
  transform: rotateY(10deg);
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  color: var(--fg);
  box-shadow: 0 6px 16px oklch(22% 0.02 55 / 0.08);
}
.card-body {
  padding: 1.15rem 1.15rem 1.25rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}
.card-body h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}
.card-body p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 38ch;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg);
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
}
.card-foot .price {
  font-size: 1.15rem;
}
.card-actions {
  display: flex;
  gap: 0.4rem;
}
.btn-sm {
  min-height: 44px;
  padding: 0 0.9rem;
  font-size: 0.95rem;
  border-radius: 10px;
}

.quote-band {
  margin: 1rem 0 0;
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding: 2.75rem 0;
}
.quote-band blockquote {
  margin: 0;
  max-width: 40rem;
}
.quote-band p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.quote-band footer {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.formats {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .formats {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }
}
.format-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.format-panel h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}
.format-panel p {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 42ch;
}
.format-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.format-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--fg);
}
.format-list svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
}
.mini-map {
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  background:
    linear-gradient(
        180deg,
        transparent 39px,
        color-mix(in oklch, var(--border) 70%, transparent) 40px
      )
      0 0 / 100% 40px,
    linear-gradient(
        90deg,
        transparent 39px,
        color-mix(in oklch, var(--border) 70%, transparent) 40px
      )
      0 0 / 40px 100%,
    oklch(95% 0.012 145);
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.route-path {
  position: absolute;
  inset: 18% 12% 22% 14%;
  fill: none;
  stroke: oklch(40% 0.07 155);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
}
.route-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fg);
  border: 2px solid var(--surface);
  box-shadow: 0 2px 8px oklch(22% 0.02 55 / 0.2);
}
.route-label {
  position: absolute;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in oklch, var(--surface) 90%, transparent);
  border: 1px solid var(--border);
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
}

.product-layout {
  display: grid;
  gap: 2rem;
  padding-top: 2rem;
}
@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2.5rem;
    align-items: start;
  }
}
.product-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  min-height: 420px;
  display: grid;
  place-items: center;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
}
.product-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 30%,
    oklch(93% 0.025 155 / 0.55),
    transparent 55%
  );
}
.detail-book {
  width: min(70vw, 220px);
  height: min(98vw, 310px);
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(8deg);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}
.detail-book:hover {
  transform: rotateY(-8deg) rotateX(3deg) scale(1.02);
}
.detail-book .face {
  position: absolute;
  inset: 0;
  border-radius: 4px 12px 12px 4px;
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: oklch(97% 0.01 92);
  box-shadow: var(--shadow);
}
.detail-book .spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 100%;
  transform-origin: left;
  transform: rotateY(-90deg);
  border-radius: 3px 0 0 3px;
}
.detail-book .pages {
  position: absolute;
  top: 5px;
  right: -12px;
  bottom: 5px;
  width: 14px;
  background: repeating-linear-gradient(
    to right,
    oklch(97% 0.01 92),
    oklch(97% 0.01 92) 1px,
    oklch(90% 0.01 92) 1px,
    oklch(90% 0.01 92) 2px
  );
}
.product-info .kicker {
  margin-bottom: 0.65rem;
}
.product-info h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 0.85rem;
}
.product-info .lead {
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 1.25rem;
}
.product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.product-price-row .price {
  font-size: 1.75rem;
}
.option-group {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}
.option-group label {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.option-pills button {
  min-height: 44px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 500;
}
.option-pills button[aria-pressed="true"] {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}
.detail-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
}
.detail-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.55rem;
}
.detail-list svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.back-link:hover {
  color: var(--fg);
}

.cart-layout {
  padding-top: 2rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: 1.35fr 0.85fr;
    align-items: start;
  }
}
.cart-list {
  display: grid;
  gap: 0.85rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
}
.cart-thumb {
  width: 72px;
  height: 96px;
  border-radius: 4px 8px 8px 4px;
  box-shadow: 0 8px 18px oklch(22% 0.02 55 / 0.12);
}
.cart-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.cart-item .sub {
  color: var(--muted);
  font-size: 0.92rem;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.55rem;
}
.qty button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.qty span {
  min-width: 2rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.cart-item-price {
  text-align: right;
  display: grid;
  gap: 0.5rem;
  justify-items: end;
}
.remove-btn {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  min-height: 40px;
}
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.cart-summary h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
}
.summary-row.total {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--fg);
  font-weight: 600;
  font-size: 1.1rem;
}
.cart-summary .btn {
  width: 100%;
  margin-top: 1rem;
}
.empty-cart {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--surface);
}
.empty-cart h2 {
  font-size: 1.5rem;
  margin: 0.5rem 0 0.6rem;
}
.empty-cart p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
  padding-top: 2rem;
}
@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.contact-card,
.hours-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-card h1,
.legal-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0.4rem 0 0.9rem;
}
.contact-lines {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0;
}
.contact-lines a {
  text-decoration: none;
}
.contact-lines a:hover {
  text-decoration: underline;
}
.contact-lines strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.hours-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.hours-table th {
  color: var(--muted);
  font-weight: 500;
}
.note-box {
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-page {
  padding-top: 2rem;
  max-width: 68ch;
}
.legal-page h2 {
  font-size: 1.25rem;
  margin: 1.6rem 0 0.55rem;
  letter-spacing: -0.015em;
}
.legal-page p,
.legal-page li {
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.legal-page ul {
  padding-left: 1.15rem;
  margin: 0 0 0.5rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 0 5.5rem;
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.footer-grid p {
  color: var(--muted);
  max-width: 34ch;
}
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
  font-weight: 600;
}
.footer-col a {
  display: block;
  min-height: 40px;
  padding: 0.25rem 0;
  color: var(--fg);
  text-decoration: none;
}
.footer-col a:hover {
  text-decoration: underline;
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 520px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem;
  display: none;
}
.cookie-banner.show {
  display: block;
}
.cookie-banner p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.35rem 0 0.9rem;
}
.cookie-banner .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cookie-banner a {
  color: var(--fg);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  background: var(--fg);
  color: var(--bg);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: translateY(120%);
  opacity: 0;
  transition:
    transform 0.2s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.2s ease;
  max-width: min(90vw, 320px);
  font-weight: 500;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .book-stack {
    animation: none;
  }
}

.hero-photo {
  position: absolute;
  inset: 8% 4% 14%;
  width: auto;
  height: auto;
  max-width: none;
  width: 92%;
  height: 78%;
  object-fit: cover;
  border-radius: 22px;
  opacity: 0.22;
  filter: saturate(0.85) contrast(1.05);
  z-index: 0;
  pointer-events: none;
}
.stage-3d .book-stack {
  z-index: 2;
  position: relative;
}
.card-visual .card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.9);
  pointer-events: none;
}
.card-visual .card-book {
  z-index: 1;
}

.product-stage {
  position: relative;
  overflow: hidden;
}
.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.85);
  pointer-events: none;
}
.product-stage .detail-book {
  position: relative;
  z-index: 1;
}

main {
  min-height: 60vh;
}
.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.section-link:hover {
  text-decoration: underline;
}
.trust-panel {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
@media (min-width: 760px) {
  .trust-panel {
    grid-template-columns: repeat(3, 1fr);
  }
}
.trust-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.8rem;
  align-items: start;
}
.trust-item svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.7;
}
.trust-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.trust-item p {
  color: var(--muted);
  font-size: 0.95rem;
}
.card-title-link {
  text-decoration: none;
}
.card-title-link:hover {
  text-decoration: underline;
}
.card-visual-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.cart-link {
  color: var(--fg);
  text-decoration: none;
}
.footer-bottom a {
  color: inherit;
}
@media (max-width: 999px) and (min-width: 800px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
