: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: 1140px; margin: 0 auto; padding: 0 22px; }

/* 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;
}

/* Menu bar — strip between header and hero */
.menu-bar { background: var(--bg); border-bottom: 1px solid var(--line); }
.menu-bar-inner { display: flex; align-items: stretch; }
.menu-links { flex: 1 1 auto; min-width: 0; display: flex; gap: 26px; padding: 10px 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.menu-links::-webkit-scrollbar { display: none; }
.menu-links a { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.menu-links a:hover { color: var(--amber-dark); text-decoration: underline; }

/* "All products" jump menu — one dropdown holding every product */
.menu-drop { position: relative; flex: 0 0 auto; display: flex; align-items: center; padding: 0 22px 0 14px; margin-left: 6px; border-left: 1px solid var(--line); background: var(--bg); }
.menu-drop-btn {
  background: none; border: 0; cursor: pointer; color: var(--ink); font: inherit;
  font-size: 14.5px; font-weight: 600; padding: 10px 0; white-space: nowrap;
}
.menu-drop-btn:hover { color: var(--amber-dark); }
.menu-drop-panel {
  display: none; position: absolute; top: 100%; right: 12px; z-index: 50;
  width: min(620px, 94vw); max-height: 72vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16); padding: 18px 20px;
  grid-template-columns: repeat(3, 1fr); gap: 18px 22px;
}
.menu-drop.open .menu-drop-panel,
.menu-drop:hover .menu-drop-panel,
.menu-drop:focus-within .menu-drop-panel { display: grid; }
.drop-group { display: flex; flex-direction: column; gap: 2px; }
.drop-cat { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.drop-cat:hover { color: var(--amber-dark); text-decoration: underline; }
.drop-item { color: var(--muted); text-decoration: none; font-size: 13.5px; line-height: 1.45; padding: 2px 0; }
.drop-item:hover { color: var(--amber-dark); text-decoration: underline; }
@media (max-width: 640px) {
  .menu-drop-panel { grid-template-columns: repeat(2, 1fr); right: 8px; padding: 14px; }
}

/* Sale — 30% off storewide through Dec 25, 2026 */
.sale-badge { display: inline-block; background: #c0392b; color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 8px; margin-right: 6px; vertical-align: middle; }
.sale-price { color: #c0392b; }
.was-price { color: var(--muted); font-size: 14px; font-weight: 400; }
.totals .row.save span:last-child { color: #c0392b; font-weight: 700; }
.hero-carousel figcaption a { color: #fff; text-decoration: none; }
.hero-carousel figcaption a:hover { text-decoration: underline; }
#shop, #eyecare, #faq, #lookup, .story { scroll-margin-top: 100px; }

/* Hero — split: copy left, carousel right */
.hero {
  padding: 64px 0 40px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center;
}
.hero-copy { text-align: left; }
.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 0 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;
  margin: 22px 0 6px;
}
.trustbar span {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 13px;
}

/* Hero carousel */
.hero-carousel { position: relative; }
.hero-carousel .slides {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: #eee4d3;
}
.hero-carousel .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s ease; }
.hero-carousel .slide.active { opacity: 1; }
.hero-carousel .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-carousel figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 14px 12px; font-size: 13.5px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .68));
}
.hero-carousel .sale-headline {
  position: absolute; left: auto; right: 22px; top: 20px; z-index: 2;
  color: #fff; text-align: right; text-shadow: 0 2px 16px rgba(0, 0, 0, .65), 0 0 3px rgba(0, 0, 0, .45);
}
.hero-carousel .sale-headline a {
  color: #fff; text-decoration: none; display: block; white-space: nowrap;
  font-size: clamp(34px, 8vw, 66.67px); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em;
}
.hero-carousel .sale-headline span { display: block; margin-top: 8px; font-size: 20px; font-weight: 700; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 22px; line-height: 1;
  cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); z-index: 2;
}
.car-btn.prev { left: 10px; }
.car-btn.next { right: 10px; }
.hero-carousel .dots { display: flex; gap: 7px; justify-content: center; padding-top: 12px; }
.hero-carousel .dot {
  width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0;
  background: #d8cbb6; cursor: pointer;
}
.hero-carousel .dot.active { background: var(--amber-dark); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 22px; padding: 30px 0 20px; }
  .hero-copy { text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .trustbar { justify-content: center; }
}

/* Sections — airy neo-modern spacing, hairline architectural dividers */
section { padding: 52px 0; }
main section + section { border-top: 1px solid var(--line); }
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: 20px; }
.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: 180px; border-radius: 10px; margin-bottom: 12px; overflow: hidden;
  background: #f8f5f0;
}
.card .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Apple-style scroll storytelling: big slogan, large image, lots of air */
.story { padding: 64px 0 8px; text-align: center; }
.story .eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-dark); margin: 0 0 12px;
}
.slogan {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 800; margin: 0 0 14px;
}
.story-sub { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.story-img { max-width: 920px; margin: 0 auto 28px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.story-img img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; transform: scale(1.05); transition: transform 1.4s cubic-bezier(.22, 1, .36, 1); }
.story .grid, .story .eye-grid, .story .specbox { text-align: left; }
/* Scroll reveal: fade + rise, image settles from a slight zoom */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.in .story-img img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .story-img img { transform: none; transition: none; }
}
@media (max-width: 640px) {
  .story { padding: 44px 0 4px; }
  .slogan { font-size: clamp(30px, 9vw, 40px); }
  .story-sub { font-size: 16px; }
}
.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; }
.spectrum-chart { display: block; width: 100%; height: auto; margin: 4px 0 2px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: var(--muted); margin: 2px 0 14px; }
.chart-legend i { display: inline-block; width: 22px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.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; }

/* FAQ bot widget (same pattern as Cuppa Panda's, Lumora palette) */
#botBtn {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; border: none;
  background: var(--ink); color: #fff; font-size: 24px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(36, 31, 26, .35);
}
#topBtn {
  position: fixed; right: 18px; bottom: 86px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 22px rgba(36, 31, 26, .25);
}
#botPanel {
  position: fixed; right: 18px; bottom: 86px; z-index: 81;
  width: min(350px, 94vw); height: min(520px, 74vh);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 18px 50px rgba(36, 31, 26, .28);
  display: none; flex-direction: column; overflow: hidden;
}
#botPanel.open { display: flex; }
#botPanel .bhead {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 16px; background: var(--ink); color: #fff; font-size: 15px;
}
#botPanel .bhead .x {
  border: none; background: rgba(255, 255, 255, .22); color: #fff;
  width: 30px; height: 30px; border-radius: 50%; font-size: 14px; cursor: pointer;
}
#botMsgs {
  flex: 1; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px; background: var(--bg);
}
.bmsg {
  max-width: 88%; padding: 9px 12px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.5; white-space: pre-line;
}
.bmsg.bot { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.bmsg.me { background: var(--amber); color: var(--ink); align-self: flex-end; border-bottom-right-radius: 4px; }
#botChips { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 12px; background: var(--bg); border-top: 1px solid var(--line); }
#botChips:empty { display: none; }
#botChips button {
  border: 1px solid var(--amber-dark); background: var(--surface); color: var(--amber-dark);
  border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; cursor: pointer;
}
#botPanel .bfoot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
#botInput {
  flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 13px; font-size: 13.5px; min-width: 0; font-family: inherit;
}
#botSend {
  border: none; background: var(--amber); color: var(--ink);
  border-radius: 999px; padding: 9px 16px; font-weight: 800; cursor: pointer;
}
#botPanel .bnote { font-size: 11px; color: var(--muted); text-align: center; padding: 0 10px 9px; margin: 0; background: var(--surface); }

/* 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: 56px; padding: 36px 0 48px; 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; }
}

/* Product detail page — photo left / details right, stacked on mobile */
.crumbs { font-size: 13.5px; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); }
.pdp {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px;
  padding: 18px 0 44px; align-items: start;
}
.pdp-photo { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #f8f5f0; }
.pdp-photo img { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.pdp-info .tag { font-size: 12px; color: var(--amber-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pdp-info h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; margin: 4px 0 10px; }
.pdp-blurb { font-size: 17px; color: var(--muted); margin: 0 0 14px; }
.pdp-price { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.pdp .variant-row { margin: 12px 0; }
.pdp-add { width: 100%; max-width: 340px; }
.eye-box {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: 14px 16px; margin: 18px 0;
}
.eye-box h3 { margin: 0 0 4px; font-size: 15px; }
.eye-box p { margin: 0; font-size: 14px; color: var(--muted); }
.pdp-specs h3, .pdp-delivery h3 { margin: 20px 0 6px; font-size: 16px; }
.pdp-specs ul { margin: 0; padding-left: 20px; font-size: 14.5px; color: var(--muted); }
.pdp-specs li { margin-bottom: 4px; }
.pdp-delivery p { margin: 0 0 8px; font-size: 14.5px; color: var(--muted); }
.ask-bot {
  margin-top: 16px; border: 1px solid var(--amber-dark); background: var(--surface);
  color: var(--amber-dark); border-radius: 999px; padding: 9px 18px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.pdp-related { padding: 8px 0 40px; }
.pdp-related h2 { font-size: 24px; margin: 0 0 16px; }
.pdp-missing { text-align: center; padding: 60px 0; }
.pdp-missing h1 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; }
.pdp-missing p { color: var(--muted); margin: 0 0 18px; }
.pdp-missing .cta {
  display: inline-block; background: var(--amber); color: var(--ink);
  font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 999px;
}
/* Card links to PDPs — photo and name only; Add to basket stays a button */
.card a.pdp-link { color: inherit; text-decoration: none; display: block; }
.card h3 a.pdp-link:hover { text-decoration: underline; }
@media (max-width: 820px) {
  .pdp { grid-template-columns: 1fr; gap: 22px; padding-top: 12px; }
  .pdp-photo img { aspect-ratio: 4 / 3; }
  .pdp-add { max-width: none; }
}
