/* Roastery — espresso/cream/burnt-orange editorial coffee site
   Brand colors are loaded at runtime from /v1/brand into CSS vars. */
:root {
  --espresso: #4A2C1A;
  --espresso-dark: #2B1810;
  --cream: #F5EBDC;
  --cream-deep: #E6C9A8;
  --burnt: #C2410C;
  --paper: #FAF6EF;
  --ink: #1A1410;
  --ink-soft: #5C4A3D;
  --line: #E0CFB8;

  --brand-primary: var(--espresso);
  --brand-secondary: var(--cream-deep);
  --brand-accent: var(--burnt);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --r-sm: 6px;
  --r: 12px;
  --r-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(43, 24, 16, 0.06), 0 0 0 1px rgba(43, 24, 16, 0.04);
  --shadow: 0 4px 24px -8px rgba(43, 24, 16, 0.18), 0 1px 2px rgba(43, 24, 16, 0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-primary); color: white; padding: 8px 12px;
}
.skip:focus { left: 8px; top: 8px; z-index: 100; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-accent);
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.04;
  margin: 0 0 16px;
  color: var(--ink);
  font-feature-settings: "ss01", "ss02", "kern";
}
h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 350; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 400; }
h3 { font-size: 22px; font-weight: 500; }
h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; font-family: var(--font-body); }

p { margin: 0 0 16px; }
p.lede { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }
.prose { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 60ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.01em;
  color: var(--brand-primary);
}
.nav nav { display: flex; gap: 28px; }
.nav nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: color 0.15s;
}
.nav nav a:hover { color: var(--brand-primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  border: 1px solid transparent; transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-primary {
  background: var(--brand-primary); color: var(--paper);
}
.btn-primary:hover { background: var(--espresso-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* Header right cluster — cart button + ghost CTA */
.nav-right { display: flex; align-items: center; gap: 14px; }
.cart-button {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  transition: border-color 0.15s, color 0.15s, transform 0.18s;
}
.cart-button:hover { border-color: var(--brand-primary); color: var(--brand-primary); transform: translateY(-1px); }
.cart-button[aria-current="page"] { border-color: var(--brand-primary); color: var(--brand-primary); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-accent); color: white;
  font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--paper);
  transition: opacity 0.15s, transform 0.15s;
}
.cart-count.is-empty { opacity: 0; transform: scale(0.6); pointer-events: none; }

/* Hero */
.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(ellipse at 85% 10%, rgba(194, 65, 12, 0.10), transparent 55%),
    radial-gradient(ellipse at 0% 90%, rgba(74, 44, 26, 0.06), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #F0E5D2 100%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--line); opacity: 0.5;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-copy h1 { margin-bottom: 24px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.kpi {
  margin: 56px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.kpi > div { display: flex; flex-direction: column; gap: 4px; }
.kpi dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.kpi dd { margin: 0; font-family: var(--font-display); font-size: 20px; }

/* Hero art — real Unsplash photo with floating chips */
.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(43, 24, 16, 0.45), 0 8px 24px -8px rgba(43, 24, 16, 0.25);
  background: linear-gradient(135deg, var(--cream-deep), var(--brand-primary));
}
.hero-art-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.hero-art:hover .hero-art-photo { transform: scale(1.06); }
.hero-art-tag {
  position: absolute; top: 20px; left: 20px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(250, 246, 239, 0.94);
  color: var(--espresso-dark);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(43, 24, 16, 0.18);
}
.hero-art-roastdate {
  position: absolute; right: 18px; bottom: 18px;
  padding: 14px 20px;
  background: rgba(250, 246, 239, 0.96);
  border-radius: var(--r);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); line-height: 1.3;
  box-shadow: 0 8px 24px rgba(43, 24, 16, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-art-roastdate strong {
  display: block; margin-top: 4px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 17px; letter-spacing: 0;
  text-transform: none; color: var(--brand-primary);
}

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: linear-gradient(180deg, #F0E5D2 0%, var(--paper) 100%); }
.section-dark {
  background: var(--espresso-dark);
  color: var(--cream);
}
.section-dark h2, .section-dark .brand { color: var(--cream); }
.section-dark .eyebrow { color: var(--cream-deep); }
.section-dark p, .section-dark .contact-meta { color: rgba(245, 235, 220, 0.78); }

.section-head {
  max-width: 720px; margin-bottom: 56px;
}
.section-head p { color: var(--ink-soft); font-size: 18px; max-width: 56ch; }

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product {
  display: flex; flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s ease, border-color 0.2s ease;
}
.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(43, 24, 16, 0.25);
  border-color: rgba(74, 44, 26, 0.18);
}
.product-art {
  aspect-ratio: 4 / 3;
  position: relative;
  background: linear-gradient(135deg, var(--cream-deep), var(--brand-primary));
  overflow: hidden;
}
.product-art-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.product:hover .product-art-img { transform: scale(1.05); }
.product-art .product-tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  padding: 6px 12px;
  background: rgba(250, 246, 239, 0.94);
  border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--espresso-dark);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(43, 24, 16, 0.12);
}
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name { font-family: var(--font-display); font-size: 19px; font-weight: 500; line-height: 1.25; }
.product-tasting { font-size: 14px; color: var(--ink-soft); }
.product-foot {
  margin-top: auto; padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.product-price { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.product-buy {
  padding: 10px 18px; border-radius: 999px;
  background: var(--brand-primary); color: var(--paper);
  border: none; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.product-buy:hover { background: var(--espresso-dark); transform: translateY(-1px); }
.product-art-link { display: block; }
.product-name a { color: inherit; }
.product-name a:hover { color: var(--brand-primary); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head-cta { font-size: 14px; font-weight: 500; color: var(--brand-primary); white-space: nowrap; padding-bottom: 4px; border-bottom: 1px solid transparent; }
.section-head-cta:hover { border-bottom-color: var(--brand-primary); }
.cart-status {
  margin-top: 24px; font-size: 14px; color: var(--ink-soft);
  text-align: center; min-height: 1.4em;
}

/* About */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.about-art { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 460px; }
.about-art-frame {
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream-deep) 0%, var(--brand-primary) 100%);
  box-shadow: 0 30px 60px -25px rgba(43, 24, 16, 0.4);
}
.about-art-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-art-stamp {
  position: absolute; bottom: 28px; left: 28px;
  padding: 12px 18px;
  background: var(--paper);
  border-radius: 999px;
  font-family: var(--font-display); font-style: italic;
  font-size: 16px; color: var(--brand-primary);
  box-shadow: var(--shadow);
}
.checklist {
  list-style: none; padding: 0; margin: 24px 0 0;
}
.checklist li {
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 15px;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "+"; position: absolute; left: 0; top: 12px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-primary); color: var(--paper);
  border-radius: 50%;
  font-size: 14px; font-weight: 600;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  display: flex; flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--brand-primary); box-shadow: var(--shadow); }
.blog-cover {
  display: block; aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream-deep), var(--brand-primary));
}
.blog-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.blog-card:hover .blog-cover img { transform: scale(1.05); }
.blog-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-accent); margin-bottom: 12px; }
.blog-title { font-size: 22px; line-height: 1.2; margin-bottom: 10px; }
.blog-excerpt { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.blog-readmore {
  margin-top: auto;
  font-size: 13px; font-weight: 500; color: var(--brand-primary);
}

/* Visit */
.visit-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-meta {
  margin-top: 28px;
  font-style: normal;
  font-size: 14px; line-height: 1.6;
  font-family: var(--font-body);
}
.contact-form {
  display: grid; gap: 18px;
  background: rgba(245, 235, 220, 0.06);
  border: 1px solid rgba(245, 235, 220, 0.18);
  padding: 32px;
  border-radius: var(--r-lg);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-deep); }
.field input, .field textarea {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(245,235,220,0.25);
  background: rgba(245,235,220,0.04);
  color: var(--cream);
  font: inherit;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cream);
  background: rgba(245,235,220,0.08);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(245,235,220,0.35); }
.contact-form .btn-primary {
  background: var(--cream);
  color: var(--espresso-dark);
  justify-self: start;
}
.contact-form .btn-primary:hover { background: white; }
.form-status { font-size: 13px; min-height: 1.2em; margin: 0; color: var(--cream-deep); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(245, 235, 220, 0.7);
  padding: 64px 0 32px;
  font-size: 14px;
}
.site-footer .brand { color: var(--cream); }
.site-footer h4 { color: var(--cream); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245,235,220,0.08);
}
.footer-grid p { font-size: 13px; max-width: 32ch; margin: 12px 0 0; color: rgba(245, 235, 220, 0.55); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-grid a:hover { color: var(--cream); }
.footer-bottom { padding-top: 24px; }
.footer-bottom small { font-size: 12px; color: rgba(245, 235, 220, 0.45); }
.footer-bottom a { color: var(--cream-deep); border-bottom: 1px dotted rgba(230, 201, 168, 0.4); }

@media (max-width: 800px) {
  .nav nav { display: none; }
  .hero-grid, .about-grid, .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; aspect-ratio: 4/3.6; }
  .about-art { max-width: 360px; margin: 0 auto; }
  .kpi { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .nav { height: 60px; gap: 12px; }
  .nav .btn-sm { display: none; }
  .nav-right { gap: 8px; }
  .kpi { grid-template-columns: 1fr 1fr; gap: 14px; }
  .kpi dd { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .btn { width: 100%; }
  .hero-art-roastdate { right: 12px; bottom: 12px; padding: 10px 14px; font-size: 10px; }
  .hero-art-roastdate strong { font-size: 14px; }
  .hero { padding-top: 36px; padding-bottom: 36px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-grid { gap: 18px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Page hero (used by /shop and /cart) and tight section variant
   ───────────────────────────────────────────────────────────────────── */
.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 48px);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(194, 65, 12, 0.08), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, #F0E5D2 100%);
}
.page-hero h1 { font-size: clamp(36px, 5.5vw, 60px); margin-bottom: 20px; }
.page-hero .lede { max-width: 60ch; }
.page-hero-meta {
  margin-top: 24px;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: inline-block;
  min-width: 200px;
}
.page-hero-tight { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }

.section-tight { padding: clamp(40px, 5vw, 80px) 0 clamp(56px, 8vw, 96px); }

.empty {
  text-align: center;
  padding: 64px 0;
  color: var(--ink-soft);
  font-size: 16px;
}
.empty a { color: var(--brand-primary); border-bottom: 1px solid var(--brand-primary); }

.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.shop-promise { max-width: 800px; margin: 0 auto; text-align: left; }
.shop-promise h2 { margin-bottom: 28px; }

@media (max-width: 720px) {
  .checklist-grid { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}

/* ─────────────────────────────────────────────────────────────────────
   Product detail page
   ───────────────────────────────────────────────────────────────────── */
.product-page { padding-top: clamp(24px, 4vw, 40px); }

.breadcrumb {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-soft); border-bottom: 1px dotted var(--line); }
.breadcrumb a:hover { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.breadcrumb span { color: var(--cream-deep); }

.product-detail-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: flex-start;
}

.pd-art {
  position: sticky; top: 96px;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream-deep), var(--brand-primary));
  box-shadow: 0 30px 60px -25px rgba(43, 24, 16, 0.4);
}
.pd-art-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.pd-tag {
  position: absolute; top: 18px; left: 18px;
  z-index: 1;
}

.pd-body { padding-top: 8px; }
.pd-title { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 14px; }
.pd-tasting { font-size: 18px; color: var(--ink-soft); max-width: 50ch; margin-bottom: 20px; }
.pd-price {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 500;
  color: var(--brand-primary);
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.pd-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 0 0 32px;
}
.pd-meta > div { display: flex; flex-direction: column; gap: 4px; }
.pd-meta dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.pd-meta dd { margin: 0; font-family: var(--font-display); font-size: 16px; color: var(--ink); }

.pd-buy {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.btn-add { padding: 14px 28px; font-size: 15px; }

.qty {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  overflow: hidden;
}
.qty-btn {
  width: 40px; height: 48px;
  border: none; background: transparent;
  font-size: 18px; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--cream); color: var(--brand-primary); }
.qty input {
  width: 48px; height: 48px;
  border: none; background: transparent;
  text-align: center; font: inherit; font-weight: 500;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pd-status {
  min-height: 1.4em;
  font-size: 14px; color: var(--brand-accent);
  font-weight: 500;
  margin: 0 0 32px;
}

.pd-prose { padding-top: 16px; border-top: 1px solid var(--line); }
.pd-prose h3 { font-size: 18px; font-weight: 500; margin-bottom: 12px; margin-top: 28px; }
.pd-prose h3:first-child { margin-top: 0; }
.pd-prose p { color: var(--ink-soft); font-size: 15px; line-height: 1.7; max-width: 60ch; margin-bottom: 20px; }

@media (max-width: 880px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .pd-art { position: static; max-width: 480px; margin: 0 auto; }
  .pd-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pd-meta { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────
   Cart page
   ───────────────────────────────────────────────────────────────────── */
.cart-empty {
  text-align: center;
  padding: 64px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.cart-empty h2 { margin-bottom: 12px; }
.cart-empty p { color: var(--ink-soft); max-width: 40ch; margin: 0 auto 24px; }

.cart-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: flex-start;
}

.cart-lines { list-style: none; padding: 0; margin: 0; }
.cart-line {
  display: grid; grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:first-child { padding-top: 0; }
.cart-line-art {
  width: 96px; height: 96px;
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream-deep), var(--brand-primary));
  flex-shrink: 0;
}
.cart-line-art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cart-line-name { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin: 0 0 4px; line-height: 1.25; }
.cart-line-name a { color: inherit; }
.cart-line-name a:hover { color: var(--brand-primary); }
.cart-line-unit { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; }
.cart-line-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cart-line-controls .qty { transform: scale(0.92); transform-origin: left center; }
.cart-line-remove {
  border: none; background: transparent;
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 6px;
}
.cart-line-remove:hover { color: var(--brand-accent); }
.cart-line-total { font-family: var(--font-display); font-size: 18px; font-weight: 500; white-space: nowrap; }

.cart-summary {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: sticky; top: 96px;
}
.cart-summary h3 { font-size: 18px; font-weight: 500; margin-bottom: 18px; }
.cart-summary dl { margin: 0; padding: 0; }
.cart-summary dl > div {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.cart-summary dt { font-weight: 400; }
.cart-summary dd { margin: 0; color: var(--ink); font-weight: 500; }
.cart-summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-soft);
}
.cart-summary-total strong {
  font-family: var(--font-display); font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.01em; text-transform: none;
  font-weight: 500;
}
.cart-checkout {
  width: 100%;
  margin-top: 8px;
  padding: 16px 24px;
  font-size: 15px;
}
.cart-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.cart-note.is-info {
  padding: 14px 16px;
  background: rgba(194, 65, 12, 0.06);
  border: 1px solid rgba(194, 65, 12, 0.18);
  border-radius: var(--r);
  color: var(--ink);
}
.cart-note strong { color: var(--brand-accent); }
.cart-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px; font-weight: 500;
  color: var(--brand-primary);
}

@media (max-width: 880px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 64px 1fr; row-gap: 12px; }
  .cart-line-art { width: 64px; height: 64px; }
  .cart-line-total { grid-column: 1 / -1; text-align: right; padding-top: 8px; border-top: 1px dashed var(--line); }
}
