:root {
  --bg: #F1ECE0;
  --paper: #FAF6EC;
  --ink: #211C15;
  --muted: #6B5F4E;
  --line: #D9D0BD;
  --accent: #5A6B4F;
  --kraft: #C4A887;
  --blush: #E6D5C0;

  --serif: "Newsreader", "Cormorant Garamond", Georgia, serif;
  --sans: "Geist", ui-sans-serif, -apple-system, system-ui, sans-serif;

  --max: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.italic { font-style: italic; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 500;
  padding: 14px 22px; border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  cursor: pointer; text-decoration: none;
  transition: all .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.accent {
  background: var(--accent); border-color: var(--accent); color: var(--paper);
}

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

section { position: relative; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: 24px;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 0;
}
.nav .links { display: flex; gap: 36px; }
.nav .links a {
  color: var(--ink); text-decoration: none; font-size: 13.5px;
  letter-spacing: 0.01em;
}
.nav .links a:hover { color: var(--accent); }
@media (max-width: 820px) { .nav .links { display: none; } }

.logo {
  font-family: var(--serif);
  font-size: 26px; font-style: italic; font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo b { font-style: normal; font-weight: 500; }

.hero-body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: end;
  padding: 80px 0 0;
}
@media (max-width: 980px) {
  .hero-body { grid-template-columns: 1fr; gap: 48px; align-items: start; padding-top: 56px; }
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 24px 0 32px;
  text-wrap: pretty;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero .lede {
  font-size: 17px; line-height: 1.55;
  max-width: 480px; color: var(--muted);
  margin: 0 0 36px;
}
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px 0 24px; border-top: 1px solid var(--line);
  margin-top: 48px;
  font-size: 12.5px; color: var(--muted);
}
.hero-foot .dots { display: flex; gap: 22px; }
.hero-foot .dots span::before {
  content: ""; display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent); margin-right: 8px;
  vertical-align: middle;
}

/* ── Nav cart button ────────────────────────────────────────────────────── */
.nav-cart {
  position: relative;
  appearance: none; border: 1px solid var(--line);
  background: var(--paper); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; color: var(--ink);
  transition: all .18s ease;
}
.nav-cart:hover { border-color: var(--ink); }
.nav-cart .badge {
  position: absolute; top: -5px; right: -5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: var(--paper);
  font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.nav-actions {
  display: flex; align-items: center; gap: 10px;
}

/* ── Still-life ─────────────────────────────────────────────────────────── */
.still {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(31,28,21,.35);
}
.still .label {
  position: absolute; top: 20px; left: 20px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.still .meta {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--serif); font-style: italic; font-size: 18px;
  color: var(--ink);
}
.still .meta small { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ── Marquee strip ──────────────────────────────────────────────────────── */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 24px 0;
  margin: 0;
}
.strip-track {
  display: flex; gap: 64px;
  white-space: nowrap;
  animation: strip 40s linear infinite;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(24px, 3.5vw, 44px);
  color: var(--ink);
}
.strip-track span { display: inline-flex; align-items: center; gap: 64px; }
.strip-track span::after {
  content: "✺"; color: var(--accent); font-style: normal; font-size: 0.6em;
}
@keyframes strip { to { transform: translateX(-50%); } }

/* ── Story ──────────────────────────────────────────────────────────────── */
.story { padding: 140px 0 120px; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 96px;
  align-items: start;
}
@media (max-width: 980px) { .story-grid { grid-template-columns: 1fr; gap: 48px; } }
.story h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 16px 0 0;
}
.story h2 em { font-style: italic; font-weight: 400; }
.story p { font-size: 16px; line-height: 1.65; color: var(--ink); max-width: 540px; }
.story p + p { margin-top: 18px; }
.story .sig {
  margin-top: 28px; font-family: var(--serif); font-style: italic;
  color: var(--muted); font-size: 15px;
}

/* ── Products ───────────────────────────────────────────────────────────── */
.products { padding: 24px 0 140px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 56px; gap: 24px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 5vw, 64px); line-height: 1;
  letter-spacing: -0.02em; margin: 8px 0 0;
  max-width: 720px;
}
.section-head h2 em { font-style: italic; }
.section-head .aside { color: var(--muted); font-size: 14px; max-width: 320px; line-height: 1.55; }

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pgrid { grid-template-columns: 1fr; } }

.pcard {
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease;
}
.pcard:hover { transform: translateY(-3px); }
.pcard .vis {
  aspect-ratio: 5 / 4;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.pcard .info {
  padding: 22px 24px 26px;
  display: flex; flex-direction: column; gap: 6px;
}
.pcard .info .row1 { display: flex; justify-content: space-between; align-items: baseline; }
.pcard .info h3 {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: 24px; margin: 0; letter-spacing: -0.01em;
}
.pcard .info .price { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pcard .info .meta { font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; }
.pcard .info .desc { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.pcard .info .pcard-cta {
  margin-top: 14px;
}

/* ── Materials ──────────────────────────────────────────────────────────── */
.materials {
  padding: 130px 0 120px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px;
  margin-top: 72px;
}
@media (max-width: 820px) { .mats-grid { grid-template-columns: 1fr; gap: 40px; } }
.mat h3 {
  font-family: var(--serif); font-weight: 300; font-size: 28px;
  letter-spacing: -0.01em; margin: 18px 0 10px;
}
.mat p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.mat .num {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--accent);
}
.mat-icon { width: 56px; height: 56px; color: var(--accent); }

/* ── Customizer ─────────────────────────────────────────────────────────── */
.customizer { padding: 140px 0 140px; }

.cust-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) { .cust-grid { grid-template-columns: 1fr; gap: 36px; } }
.cust-form {
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 24px;
}
@media (max-width: 980px) { .cust-form { position: static; } }
.cust-field { display: flex; flex-direction: column; gap: 8px; }
.cust-field > label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.cust-input, .cust-area {
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 8px 0 10px;
  font-family: var(--serif);
  font-size: 22px; font-weight: 400;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
  width: 100%;
  font-style: italic;
}
.cust-input:focus, .cust-area:focus { border-color: var(--accent); }
.cust-area {
  font-size: 17px; font-style: italic;
  font-family: var(--serif);
  line-height: 1.4;
  min-height: 60px; resize: vertical;
}
.cust-input::placeholder, .cust-area::placeholder {
  color: var(--muted); font-style: italic; opacity: 0.55;
}
.cust-dates {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end;
}
.cust-dates .dash {
  font-family: var(--serif); font-style: italic; color: var(--muted);
  padding-bottom: 14px; text-align: center;
}
.cust-date {
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 8px 0 10px;
  font-family: var(--serif); font-style: italic;
  font-size: 18px; color: var(--ink);
  outline: none; width: 100%;
}
.cust-date::placeholder { color: var(--muted); opacity: .55; }
.seg {
  display: flex; gap: 0;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px; background: var(--paper);
}
.seg button {
  flex: 1; appearance: none; border: 0; background: transparent;
  padding: 9px 12px; border-radius: 999px;
  font-family: var(--sans); font-size: 12.5px; color: var(--muted);
  cursor: pointer; transition: all .18s ease;
  letter-spacing: 0.02em;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.finish-row { display: flex; gap: 14px; align-items: center; }
.finish-row button {
  appearance: none; border: 0; background: none;
  cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 11.5px; color: var(--muted);
}
.finish-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 0 var(--accent);
  transition: box-shadow .2s ease;
}
.finish-row button[aria-pressed="true"] .finish-swatch {
  box-shadow: inset 0 0 0 2px var(--paper), 0 0 0 1.5px var(--accent);
  border-color: var(--accent);
}
.finish-row button[aria-pressed="true"] { color: var(--ink); }
.sym-row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
}
.sym-row button {
  appearance: none; border: 1px solid var(--line); background: var(--paper);
  border-radius: 8px; padding: 12px 0;
  color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s ease;
}
.sym-row button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--bg); }
.sym-row button:hover { color: var(--ink); }
.sym-row .none { font-family: var(--serif); font-style: italic; font-size: 13px; }
.photo-dz {
  border: 1px dashed var(--line); border-radius: 8px;
  padding: 22px; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  transition: all .2s ease;
  background: var(--paper);
}
.photo-dz:hover { border-color: var(--accent); }
.photo-dz.has-photo { padding: 12px; }
.photo-dz .thumb {
  width: 64px; height: 64px; border-radius: 6px; overflow: hidden;
  background: var(--bg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.photo-dz .thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-dz .info { flex: 1; min-width: 0; }
.photo-dz .info b {
  display: block; font-weight: 500; color: var(--ink); font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.photo-dz .info small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.cust-preview {
  background: linear-gradient(160deg, var(--blush) 0%, var(--paper) 100%);
  border-radius: 4px;
  padding: 56px 64px;
  min-height: 720px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
@media (max-width: 600px) { .cust-preview { padding: 36px 24px; min-height: 540px; } }
.cust-preview .pv-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.cust-preview .pv-head .step {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.cust-preview .pv-head .price {
  font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink);
}
.cust-preview .pv-body {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 480px;
}
.cust-preview .pv-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.cust-preview .pv-foot .specs { display: flex; gap: 18px; flex-wrap: wrap; }
.cust-preview .pv-foot .specs span b {
  display: block; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 2px; font-weight: 500;
}
.add-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 8px;
  flex-wrap: wrap;
}
.price-line {
  font-family: var(--serif); font-style: italic; font-size: 28px;
  display: flex; flex-direction: column; gap: 2px;
}
.price-line small {
  font-family: var(--sans); font-style: normal; font-size: 11.5px;
  color: var(--muted); letter-spacing: 0.04em;
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq { padding: 0 0 140px; }
.faq-list { border-top: 1px solid var(--line); margin-top: 48px; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 20px;
  align-items: start;
  cursor: pointer;
}
.faq-item .n { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); }
.faq-item .q { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; }
.faq-item .toggle {
  width: 28px; height: 28px; border: 1px solid var(--line);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px;
  transition: all .2s ease;
}
.faq-item[data-open="true"] .toggle { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq-item .a {
  grid-column: 2 / 3;
  max-height: 0; overflow: hidden;
  color: var(--muted); font-size: 15px; line-height: 1.6;
  transition: max-height .35s ease, margin .35s ease;
}
.faq-item[data-open="true"] .a { max-height: 240px; margin-top: 14px; }

/* ── Memories ───────────────────────────────────────────────────────────── */
.memories { padding: 0 0 140px; }
.mem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  grid-auto-flow: dense;
}
@media (max-width: 980px) { .mem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mem-grid { grid-template-columns: 1fr; } }
.mem-card { margin: 0; display: flex; flex-direction: column; }
.mem-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper);
  border-radius: 2px;
  position: relative;
}
.mem-card.tall .mem-photo { aspect-ratio: 4 / 5.6; }
.mem-card:nth-child(3n+2) { transform: translateY(28px); }
@media (max-width: 600px) { .mem-card:nth-child(3n+2) { transform: none; } }
.mem-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.85) contrast(0.98);
  transition: transform .6s ease;
}
.mem-card:hover .mem-photo img { transform: scale(1.03); }
.mem-card figcaption { padding: 18px 4px 0; }
.mem-name {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--ink); letter-spacing: -0.01em;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.mem-years {
  font-family: var(--sans); font-style: normal;
  font-size: 11px; letter-spacing: 0.12em; color: var(--muted);
  text-transform: uppercase;
}
.mem-card figcaption p {
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--muted);
  margin: 8px 0 0; line-height: 1.5; max-width: 32ch;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 0 40px;
}
footer.foot .ftop {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 72px; border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 820px) { footer.foot .ftop { grid-template-columns: 1fr 1fr; } }
footer.foot .ftop h4 {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(250,246,236,.5);
  font-weight: 500; margin: 0 0 18px;
}
footer.foot .ftop a { display: block; color: var(--paper); text-decoration: none; font-size: 14px; margin-bottom: 10px; opacity: .9; }
footer.foot .ftop a:hover { opacity: 1; color: var(--accent); }
footer.foot .word {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(40px, 6vw, 84px); line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
footer.foot .word b { font-style: normal; font-weight: 400; color: var(--accent); }
footer.foot .word + p { font-size: 14.5px; color: rgba(250,246,236,.65); max-width: 360px; line-height: 1.55; margin: 0; }
footer.foot .fbottom {
  margin-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(250,246,236,.5); font-size: 12px;
}
footer.foot .fbottom .dot { color: var(--accent); }

[id] { scroll-margin-top: 24px; }

#app:empty::before {
  content: "Pet Rest";
  font-family: var(--serif); font-style: italic; font-size: 32px;
  color: var(--muted);
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
}

/* ── Cart Drawer ─────────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(33,28,21,.4);
  z-index: 900;
  animation: fadeIn .2s ease;
}
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 440px;
  background: var(--paper);
  z-index: 901;
  display: flex; flex-direction: column;
  box-shadow: -24px 0 80px rgba(33,28,21,.18);
  animation: slideInRight .25s cubic-bezier(.3,.7,.4,1);
}
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cart-head {
  padding: 28px 28px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-family: var(--serif); font-style: italic; font-size: 26px; margin: 0; letter-spacing: -0.01em; }
.cart-close {
  appearance: none; border: 1px solid var(--line); background: transparent;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 16px; transition: all .18s;
}
.cart-close:hover { border-color: var(--ink); color: var(--ink); }
.cart-body {
  flex: 1; overflow-y: auto; padding: 20px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.cart-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  color: var(--muted); padding: 48px 0;
  text-align: center;
}
.cart-empty p { font-family: var(--serif); font-style: italic; font-size: 20px; margin: 0; }
.cart-empty small { font-size: 13px; }
.cart-item {
  background: var(--bg);
  border-radius: 6px; padding: 16px;
  display: grid; grid-template-columns: 72px 1fr auto;
  gap: 14px; align-items: start;
}
.cart-item-thumb {
  width: 72px; height: 72px; border-radius: 4px;
  overflow: hidden; background: var(--paper);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.cart-item-info h4 {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  margin: 0 0 4px; letter-spacing: -0.01em;
}
.cart-item-info .cart-item-meta {
  font-size: 12px; color: var(--muted); line-height: 1.5;
}
.cart-item-info .cart-item-price {
  font-size: 14px; margin-top: 6px; font-weight: 500;
}
.cart-item-remove {
  appearance: none; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; font-size: 16px;
  padding: 2px; line-height: 1; transition: color .15s;
}
.cart-item-remove:hover { color: #c0392b; }
.cart-foot {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--line);
}
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 20px;
}
.cart-total span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.cart-total strong { font-family: var(--serif); font-style: italic; font-size: 28px; }
.cart-cta { width: 100%; justify-content: center; }

/* ── Auth Modal ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(33,28,21,.5);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.modal {
  background: var(--paper);
  border-radius: 8px;
  width: 100%; max-width: 440px;
  padding: 40px;
  position: relative;
  box-shadow: 0 40px 100px rgba(33,28,21,.25);
  animation: scaleIn .25s cubic-bezier(.3,.7,.4,1);
}
@keyframes scaleIn { from { transform: scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  appearance: none; border: 1px solid var(--line); background: transparent;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px; transition: all .18s;
}
.modal-close:hover { border-color: var(--ink); color: var(--ink); }
.modal h2 { font-family: var(--serif); font-style: italic; font-size: 30px; margin: 0 0 8px; letter-spacing: -0.02em; }
.modal .modal-sub { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.form-input {
  border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--bg); outline: none;
  transition: border-color .2s;
}
.form-input:focus { border-color: var(--accent); }
.form-error { color: #c0392b; font-size: 13px; margin-bottom: 14px; }
.form-btn { width: 100%; justify-content: center; margin-top: 4px; }
.modal-switch { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--muted); }
.modal-switch button { appearance: none; border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 13.5px; text-decoration: underline; }

/* ── Checkout Modal ──────────────────────────────────────────────────────── */
.checkout-modal {
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
}
.checkout-steps {
  display: flex; gap: 0; margin-bottom: 32px;
  border-bottom: 1px solid var(--line); padding-bottom: 20px;
}
.checkout-step {
  flex: 1; text-align: center;
  font-size: 11.5px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding-bottom: 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -21px;
}
.checkout-step.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.checkout-step.done { color: var(--accent); border-bottom-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payment-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.payment-option {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 18px; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  transition: all .18s; background: var(--bg);
}
.payment-option:hover { border-color: var(--accent); }
.payment-option.selected { border-color: var(--ink); background: var(--paper); }
.payment-option .po-icon { width: 32px; height: 32px; color: var(--accent); }
.payment-option .po-info h4 { margin: 0 0 2px; font-size: 14px; }
.payment-option .po-info p { margin: 0; font-size: 12px; color: var(--muted); }
.pix-qr {
  text-align: center; padding: 24px;
  background: var(--bg); border-radius: 8px; margin: 16px 0;
}
.pix-qr .qr-box {
  width: 160px; height: 160px;
  background: white; border-radius: 8px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.pix-qr p { font-size: 13px; color: var(--muted); margin: 0; }
.boleto-info {
  background: var(--bg); border-radius: 8px; padding: 16px; margin: 16px 0;
  font-size: 13px; color: var(--muted);
}
.boleto-code {
  font-family: monospace; font-size: 13px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 10px 12px; border-radius: 6px; margin-top: 10px;
  word-break: break-all; color: var(--ink);
}
.card-fields { display: flex; flex-direction: column; gap: 14px; }
.order-confirm {
  text-align: center; padding: 20px 0;
}
.order-confirm .check-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
}
.order-confirm h3 { font-family: var(--serif); font-style: italic; font-size: 30px; margin: 0 0 10px; }
.order-confirm p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 6px; }
.order-num { font-size: 13px; color: var(--muted); margin-top: 16px; }
.order-num strong { color: var(--ink); }
