:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --ink: #241f1a;
  --muted: #6f6459;
  --line: #eadfce;
  --amber: #f59e0b;
  --amber-dark: #b45309;
  --green: #15803d;
  --red: #b91c1c;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(36, 31, 26, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--amber-dark); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 250, 243, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 14px; padding: 12px 0; flex-wrap: wrap; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: .02em; text-decoration: none; color: var(--ink); }
.brand span { color: var(--amber); }
.region { display: flex; gap: 6px; margin-left: auto; }
.region button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.region button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cart-btn {
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: 999px; padding: 7px 14px; font-size: 14px; cursor: pointer;
}
.cart-count {
  display: inline-block; min-width: 20px; text-align: center;
  background: var(--amber); color: var(--ink); border-radius: 999px;
  font-size: 12px; font-weight: 700; padding: 1px 5px; margin-left: 4px;
}

/* Hero */
.hero { padding: 46px 0 26px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; margin: 0 0 10px; }
.hero p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto 18px; }
.hero .cta {
  display: inline-block; background: var(--amber); color: var(--ink);
  font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 999px;
}
.region-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.trustbar {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin: 22px 0 6px;
}
.trustbar span {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 13px;
}

/* Sections */
section { padding: 30px 0; }
section h2 { font-size: 26px; margin: 0 0 6px; }
section .sub { color: var(--muted); margin: 0 0 20px; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card .art {
  height: 150px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #fff7e6, #fffdf8);
  border-radius: 10px; margin-bottom: 12px;
}
.card .art svg { width: 120px; height: 120px; }
.card h3 { font-size: 17px; margin: 0 0 4px; }
.card .tag { font-size: 12px; color: var(--amber-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.card .blurb { font-size: 14px; color: var(--muted); margin: 4px 0 10px; flex: 1; }
.card .spec { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.card .price { font-size: 20px; font-weight: 800; }
.card .price small { font-size: 12px; color: var(--muted); font-weight: 400; }
.variant-row { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.variant-row button {
  border: 1px solid var(--line); background: var(--bg); border-radius: 999px;
  padding: 4px 10px; font-size: 13px; cursor: pointer;
}
.variant-row button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.add-btn {
  margin-top: 10px; background: var(--ink); color: #fff; border: none;
  border-radius: 999px; padding: 11px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.add-btn:disabled { background: #c9bfb2; cursor: not-allowed; }
.us-note { font-size: 12.5px; color: var(--red); margin-top: 8px; }

/* Eye & Spectrum */
.eye-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.eye-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.eye-card h3 { margin: 0 0 6px; font-size: 16px; }
.eye-card p { margin: 0; font-size: 14px; color: var(--muted); }
.specbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 16px; }
.specbox table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specbox th, .specbox td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.specbox th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tips { margin: 16px 0 0; padding-left: 20px; font-size: 14px; color: var(--muted); }
.tips li { margin-bottom: 6px; }

/* Info / FAQ */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.info-card h3 { margin: 0 0 6px; font-size: 16px; }
.info-card p { margin: 0; font-size: 14px; color: var(--muted); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
details summary { font-weight: 700; cursor: pointer; }
details p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* Cart drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .35);
  display: none; z-index: 60;
}
.drawer-backdrop.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 94vw);
  background: var(--surface); z-index: 61; padding: 18px; overflow-y: auto;
  transform: translateX(100%); transition: transform .2s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer h2 { margin: 0 0 4px; }
.drawer .close { position: absolute; top: 14px; right: 14px; border: none; background: none; font-size: 22px; cursor: pointer; }
.cart-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.cart-item .ci-top { display: flex; justify-content: space-between; gap: 10px; }
.cart-item .ci-name { font-weight: 700; font-size: 14.5px; }
.cart-item .ci-var { font-size: 13px; color: var(--muted); }
.cart-item .ci-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-item .ci-controls button { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; width: 28px; height: 28px; cursor: pointer; }
.cart-item .ci-price { font-weight: 700; }
.cart-item .ci-remove { border: none; background: none; color: var(--red); cursor: pointer; font-size: 13px; padding: 0; }
.totals { margin-top: 14px; font-size: 14.5px; }
.totals .row { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .row.grand { font-weight: 800; font-size: 17px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px; }
.free-ship { font-size: 13px; color: var(--green); margin: 8px 0; }
.checkout-btn {
  margin-top: 12px; background: var(--amber); border: none; color: var(--ink);
  border-radius: 999px; padding: 13px; font-size: 16px; font-weight: 800; cursor: pointer; width: 100%;
}
.checkout-btn:disabled { background: #e5dccb; cursor: not-allowed; }
.empty-cart { color: var(--muted); text-align: center; padding: 30px 0; }

/* Checkout form */
.checkout-form label { display: block; font-size: 13.5px; font-weight: 600; margin: 10px 0 3px; }
.checkout-form input, .checkout-form select, .checkout-form textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 14.5px;
  font-family: inherit; background: var(--surface);
}
.form-error { color: var(--red); font-size: 13.5px; margin-top: 10px; min-height: 18px; }
.back-link { border: none; background: none; color: var(--amber-dark); cursor: pointer; font-size: 14px; padding: 0; margin-top: 6px; }

/* Banner + toast */
.banner {
  display: none; margin: 14px 0 0; padding: 12px 14px; border-radius: 10px;
  background: #e7f6ec; border: 1px solid #bfe6c9; font-size: 14.5px;
}
.banner.show { display: block; }
.banner.error { background: #fdecec; border-color: #f3c2c2; }
.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.toast.show { opacity: 1; }

/* Footer */
footer.site { border-top: 1px solid var(--line); margin-top: 30px; padding: 26px 0 40px; color: var(--muted); font-size: 13.5px; }
footer.site .cols { display: flex; gap: 30px; flex-wrap: wrap; }
footer.site h4 { color: var(--ink); margin: 0 0 6px; font-size: 14px; }
footer.site p { margin: 0 0 8px; }

@media (max-width: 560px) {
  .region { order: 3; width: 100%; }
  .specbox { overflow-x: auto; }
}
