:root {
  --bone: hsl(38 30% 94%);
  --paper: hsl(40 33% 97%);
  --stone: hsl(34 14% 84%);
  --line: hsl(34 12% 80%);
  --ink: hsl(30 6% 13%);
  --ink-soft: hsl(30 5% 36%);
  --clay: hsl(18 46% 44%);
  --clay-dark: hsl(18 48% 36%);
  --sage: hsl(100 10% 64%);
  --radius: 6px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 99; }

.announce { background: var(--ink); color: var(--bone); text-align: center; font-size: .82rem; padding: 8px 16px; letter-spacing: .01em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in hsl, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { font-family: var(--sans); font-weight: 700; letter-spacing: .28em; text-decoration: none; font-size: 1.05rem; }
.brand span { font-weight: 400; letter-spacing: .08em; margin-left: .45em; color: var(--ink-soft); font-size: .85rem; }
.main-nav { display: flex; gap: 28px; font-size: .92rem; }
.main-nav a { text-decoration: none; color: var(--ink-soft); }
.main-nav a:hover { color: var(--ink); }
.cart-btn { font: inherit; font-weight: 600; background: none; border: 1px solid var(--ink); border-radius: 999px; padding: 7px 16px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.cart-count { background: var(--ink); color: var(--paper); border-radius: 999px; min-width: 22px; height: 22px; font-size: .78rem; display: inline-grid; place-items: center; padding: 0 6px; }

/* Buttons */
.btn { font: inherit; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--clay-dark); }
.btn-primary:disabled { background: var(--stone); color: var(--ink-soft); cursor: not-allowed; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { padding: 9px 14px; font-size: .85rem; }
.btn.block { width: 100%; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.hero-facts { display: flex; gap: 40px; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts dt { font-family: var(--serif); font-size: 1.6rem; }
.hero-facts dd { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.hero-media { margin: 0; }
.hero-media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero-media figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 10px; }

/* Catalog */
.catalog { padding: 72px 0; background: var(--bone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-size: .88rem; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; color: var(--ink-soft); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.product { display: flex; flex-direction: column; }
.product-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone); aspect-ratio: 1; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product:hover .product-media img { transform: scale(1.03); }
.tag { position: absolute; left: 12px; top: 12px; background: var(--paper); font-size: .75rem; font-weight: 600; padding: 4px 9px; border-radius: 4px; }
.product h3 { margin: 14px 0 4px; }
.product .spec { font-size: .84rem; color: var(--ink-soft); margin: 0 0 10px; }
.product .desc { font-size: .92rem; margin-bottom: 12px; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-weight: 700; font-size: 1.15rem; }
s { color: var(--ink-soft); font-size: .9rem; }
.swatches { display: flex; gap: 8px; margin: 6px 0 14px; align-items: center; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; padding: 0; outline-offset: 2px; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--ink); }
.swatch-label { font-size: .8rem; color: var(--ink-soft); margin-left: 4px; }
.variant { font: inherit; font-size: .88rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin-bottom: 12px; width: 100%; }
.product .btn { margin-top: auto; }

/* Bundle */
.bundle { padding: 88px 0; }
.bundle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bundle-grid img { border-radius: var(--radius); }

/* Lithophane */
.litho { padding: 88px 0; background: var(--ink); color: var(--bone); }
.litho .muted { color: hsl(36 10% 70%); }
.litho-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.steps { padding-left: 1.2em; color: hsl(36 14% 80%); margin: 0 0 24px; }
.steps li { margin-bottom: 6px; }
.upload { display: inline-flex; border: 1px dashed hsl(36 10% 55%); border-radius: var(--radius); padding: 14px 18px; cursor: pointer; margin-bottom: 18px; }
.upload:hover { border-color: var(--bone); }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.litho-controls { display: grid; gap: 14px; margin-bottom: 18px; font-size: .9rem; }
.litho-controls input[type="text"] { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid hsl(30 5% 30%); background: hsl(30 6% 17%); color: var(--bone); font: inherit; }
.litho-controls input[type="range"] { vertical-align: middle; width: 60%; accent-color: var(--clay); margin-left: 10px; }
.litho .btn-primary { background: var(--bone); color: var(--ink); }
.litho .btn-primary:hover { background: #fff; }
.litho .btn-primary:disabled { background: hsl(30 5% 30%); color: hsl(36 10% 60%); }
.litho-stage { perspective: 900px; display: grid; justify-items: center; padding: 20px 0; }
.litho-panel { position: relative; width: min(100%, 480px); aspect-ratio: 48/34; border-radius: 4px; overflow: hidden; transform: rotateX(4deg); background: hsl(36 20% 82%); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.litho-panel canvas { width: 100%; height: 100%; display: block; }
.litho-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.28), transparent 18%, transparent 82%, rgba(0,0,0,.28)); pointer-events: none; }
.litho-empty { position: absolute; inset: 0; display: grid; place-items: center; color: hsl(30 8% 40%); font-size: .92rem; margin: 0; }
.litho-base { width: min(104%, 500px); height: 26px; background: hsl(30 5% 9%); border-radius: 3px 3px 10px 10px; margin-top: -4px; }

/* B2B */
.b2b { padding: 88px 0; }
.b2b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.tiers { border-collapse: collapse; width: 100%; max-width: 360px; margin: 8px 0 16px; font-size: .95rem; }
.tiers th, .tiers td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tiers th { font-weight: 600; color: var(--ink-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.card { background: var(--bone); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; font-size: .95rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.estimate { font-size: .9rem; color: var(--ink-soft); margin: 0; min-height: 1.4em; }

/* FAQ */
.faq { padding: 72px 0 96px; background: var(--bone); border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

/* Footer */
.site-footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 24px; align-items: start; }
.footer-grid p { margin: 0 0 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(20,18,16,.45); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); z-index: 50; transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column; }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.5rem; margin: 0; }
.icon-btn { font-size: 1.7rem; line-height: 1; background: none; border: 0; cursor: pointer; padding: 4px 8px; }
.ship-bar { padding: 14px 24px; background: var(--bone); font-size: .86rem; }
.ship-bar p { margin: 0 0 8px; }
.bar { height: 4px; background: var(--stone); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--clay); transition: width .3s; }
.cart-list { list-style: none; margin: 0; padding: 8px 24px; overflow-y: auto; flex: 1; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.cart-item .meta { color: var(--ink-soft); font-size: .8rem; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; margin-top: 6px; }
.qty button { background: none; border: 0; width: 28px; cursor: pointer; font: inherit; }
.qty span { min-width: 24px; text-align: center; }
.remove { background: none; border: 0; color: var(--ink-soft); font-size: .78rem; cursor: pointer; text-decoration: underline; padding: 0; }
.empty { color: var(--ink-soft); padding: 32px 0; text-align: center; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 24px 24px; max-height: 62vh; overflow-y: auto; }
.totals { margin: 0; display: grid; gap: 4px; font-size: .92rem; }
.totals div { display: flex; justify-content: space-between; }
.totals dd { margin: 0; }
.totals .grand { font-weight: 700; font-size: 1.08rem; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.coupon-msg { font-size: .82rem; margin: -6px 0 0; color: var(--clay-dark); min-height: 1em; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: var(--radius); font-size: .9rem; z-index: 60; transition: transform .25s, opacity .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero-grid, .bundle-grid, .litho-grid, .b2b-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 32px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .hero-facts { gap: 22px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
