:root {
  --ink: #16181D;
  --body: #2E323B;
  --muted: #4A4F58;
  --muted-2: #5B6069;
  --line: #E4E1DA;
  --line-2: #D6D2C9;
  --border: #B8B3A9;
  --bg: #FFFFFF;
  --bg-2: #F6F5F2;
  --bg-3: #FBF9F6;
  --accent: #C2410C;
  --accent-hover: #9A3412;
  --ok: #15803D;
  --error: #B91C1C;
  --dark: #16181D;
  --radius: 8px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }

a { color: var(--ink); }
a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 10;
}
.skip-link:focus { left: 8px; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  min-height: 44px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  font-size: 15px;
}
.nav-links a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.cart-link { position: relative; width: 44px; justify-content: center; }
.cart-count {
  position: absolute;
  top: 4px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 14px;
  color: var(--muted);
}
.footer-inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { min-height: 32px; display: inline-flex; align-items: center; }
.footer-legal { margin: 0; font-size: 13px; color: var(--muted-2); }

/* Common */
.page { padding-top: 32px; padding-bottom: 72px; }
.page-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.02em;
}
.lead { margin: -12px 0 32px; color: var(--muted); }
.breadcrumb { font-size: 14px; color: var(--muted-2); margin: 0 0 24px; }
.breadcrumb a { color: var(--muted-2); }
.section-title { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
.section + .section { margin-top: 36px; }
.list { margin: 0; padding-left: 22px; color: var(--body); display: flex; flex-direction: column; gap: 6px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.panel { background: var(--bg-2); border-radius: 12px; padding: 20px; }
.notice { border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); padding: 14px 16px; margin-top: 16px; }
.notice p { margin: 0; color: var(--body); }
.updated { margin: -16px 0 32px; font-size: 15px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { color: var(--ink); background: var(--bg-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.input {
  min-height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.input-qty { width: 88px; }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { border-bottom-color: var(--ink); font-weight: 600; }
.table tbody tr:first-child th, .table tbody tr:first-child td { border-top: 1px solid var(--line); }
.table thead + tbody tr:first-child th, .table thead + tbody tr:first-child td { border-top: 0; }
.table th[scope="row"] { font-weight: 500; color: var(--muted); width: 42%; }

/* Home */
.hero {
  padding-top: 64px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.hero-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-text h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: -0.02em; line-height: 1.1; }
.feature-card {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
}
.feature-card:hover { color: var(--ink); border-color: var(--border); }
.feature-card .thumb { flex: 0 0 180px; height: 220px; }
.feature-card .text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.thumb {
  border-radius: 10px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.thumb img { width: auto; max-height: 100%; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
}
.product-card:hover { color: var(--ink); border-color: var(--border); }
.product-card .thumb { height: 260px; }
.product-card.soon { border-style: dashed; border-color: var(--border); color: var(--muted); }
.product-card.soon .thumb { background: var(--bg-2); color: var(--muted-2); font-size: 14px; }
.card-name { font-weight: 600; line-height: 1.35; }
.card-sub { font-size: 14px; color: var(--muted); }
.price { font-family: var(--font-display); font-weight: 700; }
.card-price { font-size: 20px; }

/* Product page */
.product-top { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.gallery { flex: 1 1 520px; min-width: 0; }
.gallery-main { background: var(--dark); border-radius: 14px; padding: 24px; }
.gallery-main img { width: 100%; }
.buy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #3A3F48;
}
.buy h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; line-height: 1.15; }
.buy .intro { margin: 10px 0 0; color: var(--muted); }

.packs { margin: 0; padding: 0; border: 0; min-width: 0; }
.packs legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.pack-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pack-option { position: relative; }
.pack-option input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.pack-option label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 120px;
  padding: 12px 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.pack-option input:checked + label { border: 2px solid var(--accent); padding: 11.5px 9.5px; background: var(--bg-3); }
.pack-option input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.pack-name { font-weight: 600; font-size: 15px; }
.pack-price { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.pack-meta { font-size: 13px; color: var(--muted); }

.buy-price { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.buy-price span { font-family: var(--font); font-weight: 400; font-size: 15px; color: var(--muted); }
.buy-note { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.buy-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.buy-row .btn { flex: 1 1 200px; }
.facts {
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}
.facts strong { color: var(--ink); font-weight: 600; }

.details { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.details-main { flex: 1 1 520px; min-width: 0; }
.details-side { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.details-side .panel .list { padding-left: 20px; font-size: 15px; color: var(--muted); gap: 4px; }
.details-side .panel .section-title { font-size: 16px; margin-bottom: 8px; }

/* Cart */
.cart-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.cart-items { flex: 999 1 560px; min-width: 0; }
.cart-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:first-child { border-top: 1px solid var(--line); }
.cart-line .thumb { flex: 0 0 96px; height: 120px; padding: 12px; }
.cart-line .info { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-line .info a { font-weight: 600; text-decoration: none; }
.cart-line .line-total { flex: 0 0 90px; text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.link-button {
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
.link-button:hover { color: var(--accent); }
.summary { flex: 1 1 320px; min-width: 0; background: var(--bg-2); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.summary h2 { margin: 0; font-size: 18px; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.summary-total { padding-top: 12px; border-top: 1px solid var(--line-2); font-weight: 600; font-size: 16px; }
.summary .btn { width: 100%; }
.error-text { margin: 0; color: var(--error); font-size: 15px; }
.empty-state { padding: 48px 24px; border: 1.5px dashed var(--border); border-radius: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty-state p { margin: 0; font-size: 18px; font-weight: 600; }

/* Order confirmed */
.order-box { border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.order-box h2 { margin: 0; font-size: 18px; font-weight: 600; }
.order-box .address { padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.order-box .address strong { display: block; color: var(--ink); font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 28px; }

/* FAQ */
.faq-group-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.faq-group + .faq-group { margin-top: 36px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.faq details p { margin: 0 0 14px; color: var(--body); }
.cta-panel { margin-top: 40px; padding: 24px; border-radius: 12px; background: var(--bg-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta-panel span { font-weight: 600; }

/* Contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact-main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-side { flex: 1 1 280px; min-width: 0; }
.contact-side .panel { display: flex; flex-direction: column; gap: 16px; font-size: 15px; }
.contact-side h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.contact-side p { margin: 0; color: var(--muted); }

/* Legal / prose */
.prose .section-title { margin-top: 0; }
.prose p { margin: 0; color: var(--body); }
.prose section + section { margin-top: 32px; }

/* Elements hidden with the hidden attribute stay hidden, even with a display rule. */
[hidden] { display: none !important; }

/* Product page extras */
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery-thumb { aspect-ratio: 1 / 1; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 4px; font-size: 12px; text-align: center; }
.gallery-thumb.current { background: var(--dark); border: 2px solid var(--ink); color: #C4C8D0; }
.gallery-thumb.placeholder { background: var(--bg-2); border: 1.5px dashed var(--border); color: var(--muted-2); }
.buy-price .buy-amount { font: inherit; color: inherit; }
.buy .btn[disabled] { cursor: not-allowed; }
.stock { margin: 8px 0 0; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.stock::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stock[data-status="low_stock"]::before { background: #B45309; }
.stock[data-status="out_of_stock"]::before { background: var(--muted-2); }
.details-side .buy-note { margin-top: 10px; }
.panel-link { margin: 8px 0 0; }

/* Cart extras */
.summary-note { margin: 0; text-align: center; }
.cart-items > p { margin: 20px 0 0; }

/* Order confirmed extras */
.confirm-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.confirm-head .page-title { margin: 0; }
.confirm-lead { margin: 0; font-size: 18px; color: var(--body); }
.confirm-lead + .confirm-lead { margin-top: 4px; }
.reference { font-weight: 600; overflow-wrap: anywhere; }
.stack-tight { display: flex; flex-direction: column; gap: 12px; }
.address-line { display: block; }
.stack p { margin: 0; }
.stack p + p { margin-top: 8px; }

/* Contact extras */
.contact-main p { margin: 0; }

/* Shipping extras */
.list-spaced { margin-top: 16px; }

/* About */
.about-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.about-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about-main .page-title, .about-main p { margin: 0; }
.about-main .btn-row { margin-top: 8px; }
.about-intro { font-size: 18px; color: var(--body); }
.about-side { flex: 1 1 360px; min-width: 0; }
.photo-placeholder { height: 280px; padding: 16px; border-radius: 12px; border: 1.5px dashed var(--border); background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted-2); text-align: center; }

/* Prose fixes: keep spacing for the date line and text after a list */
.prose .updated { margin: -16px 0 32px; }
.prose .prose-after-list { margin-top: 12px; }

/* Coming soon */
.coming-soon-body { min-height: 100vh; display: flex; flex-direction: column; }
.coming-soon { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding-top: 64px; padding-bottom: 96px; }
.coming-soon .page-title { margin: 0 0 4px; font-size: 44px; }
.coming-soon p { margin: 0; color: var(--muted); font-size: 18px; }

@media (max-width: 720px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 40px; padding-bottom: 56px; }
  .hero-text h1 { font-size: 34px; }
  .page-title { font-size: 30px; }
  .coming-soon .page-title { font-size: 34px; }
  .buy h1 { font-size: 26px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .pack-options { gap: 8px; }
  .pack-option label { min-height: 112px; padding: 10px 8px; }
  .pack-option input:checked + label { padding: 9.5px 7.5px; }
  .pack-price { font-size: 19px; }
  .feature-card .thumb { flex-basis: 100%; height: 200px; }
  .details { margin-top: 48px; }
  .gallery-thumbs { gap: 8px; }
  .about-grid, .contact-grid { gap: 32px; }
}
