/* LUMI — 3D-printed lamp shop */

:root {
  --bg: #f3f0ea;
  --bg-2: #ebe6dd;
  --surface: #faf8f4;
  --ink: #161513;
  --ink-2: #3a3834;
  --muted: #7a746b;
  --line: rgba(22, 21, 19, 0.12);
  --line-strong: rgba(22, 21, 19, 0.28);
  --accent: #9a5a36;
  --danger: #b4452f;
  --ok: #4f7a4a;
  --paper: #f7f4ee;
  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --on-dark: #f7f4ee;
  --on-light: #161513;
  --nav-bg: rgba(243, 240, 234, 0.85);
  --footer-bg: #161513;
  --footer-ink: #f7f4ee;
  color-scheme: light;
}

/* ---------- Night theme: dark site, glowing lamps ---------- */
[data-theme='night'] {
  --bg: #11100d;
  --bg-2: #1a1814;
  --surface: #191713;
  --ink: #efe8dc;
  --ink-2: #c9c0b2;
  --muted: #8f877b;
  --line: rgba(239, 232, 220, 0.12);
  --line-strong: rgba(239, 232, 220, 0.3);
  --accent: #d39a6a;
  --danger: #e08a74;
  --ok: #8fbf8a;
  --paper: #11100d;
  --nav-bg: rgba(17, 16, 13, 0.85);
  --footer-bg: #0a0907;
  --footer-ink: #efe8dc;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.8s var(--ease), color 0.8s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-weight: 400; margin: 0; }
h1, h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.035em; }
h3 { font-family: var(--serif); letter-spacing: -0.01em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--muted); }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ---------- Announcement ---------- */
.announce {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  padding: 10px var(--gutter);
  background: var(--ink); color: var(--paper);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.announce__sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 18px var(--gutter);
  background: var(--nav-bg);
  transition: border-color 0.3s, background-color 0.8s var(--ease);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__links { display: flex; gap: 32px; font-size: 13px; }
.nav__links a { position: relative; }
.nav__links a::after, .footer a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav__links a:hover::after, .footer a:hover::after { transform: scaleX(1); }
.logo { display: flex; align-items: center; gap: 12px; line-height: 1; }
.logo__mark { width: 62px; height: auto; flex: none; }
.logo__text { display: grid; justify-items: center; gap: 6px; text-align: center; }
.logo__word { font-family: var(--serif); font-size: 34px; letter-spacing: 0.14em; padding-left: 0.14em; }
.logo__sub { font-size: 9.5px; font-weight: 500; letter-spacing: 0.32em; padding-left: 0.32em; text-transform: uppercase; color: var(--ink-2); }
.nav__actions { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.lang { display: flex; gap: 2px; }
.lang button {
  background: none; border: 0; padding: 4px 6px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted);
}
.lang button.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.cart-btn {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  background: none; border: 0; padding: 0;
}
.cart-btn svg { width: 24px; height: 24px; }
.cart-btn__count {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  display: grid; place-items: center; font-size: 10px; font-weight: 600;
  background: var(--paper); border: 1px solid var(--line-strong); transition: background 0.3s, color 0.3s;
}
.cart-btn__count:not(.has-items) { display: none; }
.cart-btn__count.has-items { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cart-btn.bump .cart-btn__count { animation: bump 0.5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 28px; border: 1px solid var(--ink); border-radius: 0;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-2); }
.btn--line { background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }
.btn__sep { opacity: 0.5; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line);
  transition: border-color 0.2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Intro ---------- */
.intro {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; gap: 24px 64px;
  max-width: 1560px; margin: 0 auto; padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(24px, 3vw, 36px);
}
.intro__title { font-size: clamp(40px, 5.2vw, 80px); line-height: 1; }
.intro__lead { max-width: 36em; font-size: 16px; color: var(--ink-2); }
.intro__side { display: grid; gap: 18px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; flex: none; color: var(--ink); }
.trust--buy { display: grid; gap: 8px; margin: 18px 0 22px; padding: 14px 16px; border: 1px solid var(--line); font-size: 13px; }

/* ---------- Banner ---------- */
.banner { max-width: 1560px; margin: 0 auto; padding: 0 var(--gutter) clamp(28px, 4vw, 48px); }
.banner img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; background: var(--bg-2); animation: banner-in 0.8s var(--ease); }
.banner__night, [data-theme='night'] .banner__day { display: none; }
[data-theme='night'] .banner__night { display: block; }
@keyframes banner-in { from { opacity: 0; } }

/* ---------- Shop bar & colour preview ---------- */
.shopbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  padding: 18px 0; margin-bottom: 28px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
}
.shopbar__title { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.colour-filter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.colour-filter__label { font-size: 13px; color: var(--muted); }
.swatches--filter { gap: 10px; }
.swatches--filter .swatch { width: 20px; height: 20px; }
.colour-filter__reset { background: none; border: 0; padding: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }

/* ---------- Sections ---------- */
.collection, .process, .faq { max-width: 1560px; margin: 0 auto; padding: clamp(80px, 11vw, 160px) var(--gutter) 0; }
.collection { padding-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.section-head h2 { font-size: clamp(36px, 4.6vw, 72px); line-height: 1; }
.section-head__lead { color: var(--ink-2); font-size: 16px; max-width: 30em; justify-self: end; }

/* ---------- Product visual (photo or colour panel) ---------- */
.visual {
  --c: #ccc;
  position: relative; overflow: hidden; width: 100%; height: 100%;
  background: var(--c);
  color: var(--on-light);
  text-align: left;
}
/* At night an empty panel glows like a lit lamp. */
[data-theme='night'] .visual {
  background: radial-gradient(58% 46% at 50% 44%, color-mix(in srgb, var(--c) 40%, #ffe7c2) 0%, var(--c) 42%, color-mix(in srgb, var(--c) 28%, #050403) 100%);
  color: var(--on-dark);
}
.visual.is-dark { color: var(--on-dark); }
.visual__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.9s var(--ease), filter 0.9s var(--ease); }
.visual__photo--night { opacity: 0; }
[data-theme='night'] .visual.has-night .visual__photo--night { opacity: 1; }
[data-theme='night'] .visual.has-night .visual__photo--day { opacity: 0; }
[data-theme='night'] .visual:not(.has-night) .visual__photo--day { filter: brightness(0.8); }
.visual__no, .visual__colour {
  position: absolute; top: 18px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75;
}
.visual__no { left: 20px; }
.visual__colour { right: 20px; }
.visual__name {
  position: absolute; left: 18px; bottom: 6px; right: 18px;
  font-family: var(--serif); font-size: clamp(52px, 7vw, 120px); line-height: 1.1; letter-spacing: -0.02em; opacity: 0.9;
}
.visual.has-photo .visual__no, .visual.has-photo .visual__colour, .visual.has-photo .visual__name { display: none; }

/* ---------- Photo gallery (product detail) ---------- */
.gallery { position: relative; width: 100%; height: 100%; }
.gallery__track {
  display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: 1.5px solid var(--ink); outline-offset: -4px; }
.gallery__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery__nav {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 82%, transparent); color: var(--ink);
  backdrop-filter: blur(6px); cursor: pointer; transition: opacity 0.3s, background 0.3s;
}
.gallery__nav svg { width: 20px; height: 20px; }
.gallery__nav:hover { background: var(--paper); }
.gallery__nav:disabled { opacity: 0; pointer-events: none; }
.gallery__nav--prev { left: 16px; }
.gallery__nav--next { right: 16px; }
.gallery__dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; display: flex; justify-content: center; gap: 4px; }
.gallery__dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.gallery__dots button::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); transition: background 0.3s, transform 0.3s;
}
.gallery__dots button[aria-current='true']::before { background: #fff; transform: scale(1.35); }
@media (hover: none) {
  .gallery__nav { display: none; }
}

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px); }
.card { display: flex; flex-direction: column; }
.card__media { position: relative; display: block; aspect-ratio: 5 / 6; border: 0; padding: 0; width: 100%; cursor: pointer; overflow: hidden; }
.card__media .visual { transition: transform 1.2s var(--ease), background-color 0.6s var(--ease); }
.card:hover .card__media .visual { transform: scale(1.03); }
.card__media .visual__name { font-size: clamp(44px, 4.6vw, 80px); }
.card__hover {
  position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px;
  display: grid; place-items: center; padding: 12px;
  background: var(--on-light); color: var(--on-dark); font-size: 11px; line-height: 1.35; letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
  opacity: 0; transform: scale(0.92); transition: opacity 0.3s, transform 0.4s var(--ease);
}
@media (hover: hover) {
  .card:hover .card__hover { opacity: 1; transform: none; }
}
.card__media:focus-visible .card__hover { opacity: 1; transform: none; }
.card__body { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-top: 18px; }
.card__name { font-size: 26px; line-height: 1.15; }
.card__price { text-align: right; font-size: 14px; white-space: nowrap; padding-top: 6px; }
.card__price small { color: var(--muted); margin-right: 4px; }
.card__meta { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.card__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.card__colour { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- Swatches ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  --c: #ccc; position: relative; width: 16px; height: 16px;
  border: 0; padding: 0; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(128, 120, 110, 0.25);
}
.swatch::after {
  content: ''; position: absolute; inset: -4px;
  border: 1px solid transparent; transition: border-color 0.2s;
}
.swatch:hover::after { border-color: var(--line-strong); }
.swatch[aria-pressed='true']::after { border-color: var(--ink); }
.swatches--lg { gap: 12px; }
.swatches--lg .swatch { width: 34px; height: 34px; }
.swatches--lg .swatch::after { inset: -5px; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.step { border-top: 1px solid var(--ink); padding-top: 22px; }
.step__num { display: block; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); margin-bottom: 48px; }
.step h3 { font-size: 32px; line-height: 1.1; margin-bottom: 12px; }
.step p { color: var(--ink-2); max-width: 26em; }

/* ---------- FAQ ---------- */
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); font-size: 22px; font-weight: 300; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 28px; color: var(--ink-2); max-width: 46em; }

/* ---------- Ask a question ---------- */
.ask {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 96px);
  margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--ink);
  scroll-margin-top: 80px;
}
.ask__title { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; }
.ask__lead { margin: 0; color: var(--ink-2); max-width: 26em; }
.ask__fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 12px; }
.field textarea {
  width: 100%; min-height: 140px; padding: 13px 14px; border-radius: 0; resize: vertical;
  background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink);
  font: 400 15px/1.5 var(--sans); transition: border-color 0.2s, background 0.4s;
}
.field textarea:focus { outline: 0; border-color: var(--ink); }
.field.has-error textarea { border-color: var(--danger); }
.ask__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 18px; }
.ask__note { margin: 0; font-size: 13px; color: var(--muted); max-width: 28em; }
.ask__status { margin: 14px 0 0; font-size: 14px; color: var(--ok); }
.ask__status:empty { display: none; }
.ask__status.is-error { color: var(--danger); }
@media (max-width: 860px) {
  .ask { grid-template-columns: 1fr; }
  .ask .field { grid-column: 1 / -1; }
  .ask__foot .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.footer { margin-top: clamp(100px, 14vw, 200px); background: var(--footer-bg); color: var(--footer-ink); transition: background-color 0.8s var(--ease); padding: 64px var(--gutter) 28px; overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; max-width: 1560px; margin: 0 auto; font-size: 14px; }
.footer__tagline { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.15; max-width: 14em; }
.footer a { position: relative; display: table; padding: 3px 0; margin-bottom: 4px; color: rgba(247, 244, 238, 0.7); }
.footer a:hover { color: var(--footer-ink); }
.footer__head { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247, 244, 238, 0.5); margin-bottom: 14px; }
.footer__mark { display: block; width: clamp(96px, 12vw, 170px); height: auto; margin: 72px auto -24px; }
.footer__logo { font-family: var(--serif); font-size: clamp(72px, 18vw, 300px); line-height: 0.9; letter-spacing: 0.1em; text-align: center; margin: 64px 0 24px; }
.footer__legal { max-width: 1560px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(247, 244, 238, 0.15); font-size: 12px; color: rgba(247, 244, 238, 0.5); }

/* ---------- Dialogs ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: var(--surface); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(22, 21, 19, 0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog[open] { animation: pop 0.45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }
body.has-modal { overflow: hidden; }
.modal { width: min(1240px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: hidden; }

/* ---------- Product detail ---------- */
.configurator[open] { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.configurator__visual { min-height: 620px; }
.configurator__visual .visual__name { font-size: clamp(64px, 8vw, 132px); }
.configurator__panel { position: relative; padding: 48px clamp(24px, 3.5vw, 56px); overflow-y: auto; max-height: calc(100dvh - 32px); }
.configurator__close { position: absolute; top: 20px; right: 20px; }
.configurator__name { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.01em; margin-bottom: 14px; }
.configurator__tagline { color: var(--ink-2); margin-bottom: 24px; max-width: 30em; }
.configurator__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; font-size: 22px; margin-bottom: 28px; }
.configurator__price small { font-size: 11px; color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; }
.field-group { padding: 22px 0; border-top: 1px solid var(--line); }
.field-group__head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.field-group__head .muted { text-transform: none; letter-spacing: 0; font-size: 14px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmented button {
  padding: 14px 8px; border: 1px solid var(--line); background: transparent;
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: border-color 0.2s;
}
.segmented button:hover { border-color: var(--line-strong); }
.segmented button b { font-weight: 500; font-size: 15px; }
.segmented button span { font-size: 12px; color: var(--muted); text-align: center; }
.segmented button[aria-pressed='true'] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.configurator__buy { display: flex; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.qty { display: flex; align-items: center; border: 1px solid var(--line-strong); }
.qty button { width: 42px; height: 50px; background: none; border: 0; font-size: 18px; }
.qty span { min-width: 22px; text-align: center; }
.configurator__note { font-size: 12px; color: var(--muted); margin: 14px 0 20px; }
.specs { border-top: 1px solid var(--line); padding-top: 18px; }
.specs summary { cursor: pointer; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.specs dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

/* ---------- Cart drawer ---------- */
.drawer { margin: 0 0 0 auto; height: 100dvh; width: min(460px, 100vw); }
.drawer[open] { display: flex; flex-direction: column; animation: slide 0.5s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 34px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 4px 28px; }
.drawer__foot { padding: 22px 28px 28px; border-top: 1px solid var(--line); }
.drawer__empty { text-align: center; padding: 64px 0; color: var(--muted); display: grid; gap: 22px; justify-items: center; }
.line { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line__img { width: 80px; height: 100px; }
.line__img .visual__name { font-size: 34px; left: 8px; bottom: 2px; }
.line__img .visual__no, .line__img .visual__colour { display: none; }
.line__name { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.line__meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.line__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.line__controls { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.line__controls .qty button { width: 30px; height: 32px; font-size: 15px; }
.line__remove { background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.line__price { font-size: 14px; }

.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 0 0 16px; font-size: 14px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; padding-left: 16px; text-align: right; }
.totals .is-discount { color: var(--accent); }
.totals .is-free { color: var(--ok); }
.totals .total { font-size: 22px; color: var(--ink); padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); font-family: var(--serif); }
.totals .vat { font-size: 12px; color: var(--muted); grid-column: 1 / -1; text-align: right; }
.drawer__note { font-size: 12px; color: var(--muted); margin-bottom: 18px; }

/* ---------- Checkout ---------- */
.checkout[open] { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.checkout__form { padding: 36px clamp(20px, 3.5vw, 56px); overflow-y: auto; max-height: calc(100dvh - 32px); }
.checkout__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.checkout__head h2 { font-size: clamp(38px, 4.4vw, 56px); }
fieldset { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 12px; }
legend { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding: 22px 0 12px; }
.field { grid-column: span 3; display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.field--full { grid-column: 1 / -1; }
.field--third { grid-column: span 2; }
.field input, .field select {
  width: 100%; padding: 13px 14px; border-radius: 0;
  background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink);
  font: 400 15px var(--sans); transition: border-color 0.2s, background 0.4s;
}
.field input:focus, .field select:focus { outline: 0; border-color: var(--ink); }
.field input.is-autofilled { background: color-mix(in srgb, var(--ok) 8%, var(--paper)); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.field.has-error input { border-color: var(--danger); }
.field__error { font-style: normal; font-size: 12px; color: var(--danger); }
.field__error:empty { display: none; }
.checkout__hint { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }
.lookup { grid-column: 1 / -1; font-size: 13px; min-height: 1.4em; display: flex; align-items: center; gap: 8px; }
.lookup[data-state='loading'] { color: var(--muted); }
.lookup[data-state='loading']::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-strong); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
.lookup[data-state='found'] { color: var(--ok); }
.lookup[data-state='notfound'], .lookup[data-state='error'] { color: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }
.checkout__summary { background: var(--bg); border-left: 1px solid var(--line); padding: 36px clamp(20px, 3vw, 40px); overflow-y: auto; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; }
.checkout__summary h3 { font-size: 32px; margin: 4px 0 18px; }
.summary-items { list-style: none; margin: 0 0 20px; padding: 0; }
.summary-items li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-items .visual { width: 52px; height: 64px; }
.summary-items .visual > span { display: none; }
.summary-items small { display: block; color: var(--muted); font-size: 12px; }
.checkout__notice { font-size: 13px; color: var(--ink-2); border: 1px solid var(--line-strong); padding: 12px 14px; margin-bottom: 16px; }
.checkout__summary .btn { margin-top: auto; }
.checkout__done { grid-column: 1 / -1; text-align: center; padding: clamp(56px, 9vw, 110px) 24px; display: grid; justify-items: center; gap: 18px; }
.checkout__done[hidden] { display: none; }
.checkout__done h2 { font-size: clamp(48px, 7vw, 88px); line-height: 1; }
.checkout__done p { max-width: 32em; }
.done-mark { width: 64px; height: 64px; }
.checkout.is-done .checkout__form, .checkout.is-done .checkout__summary { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 180%); padding: 14px 22px;
  background: var(--ink); color: var(--paper); font-size: 13px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.3s, visibility 0.4s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__links { visibility: hidden; }
  .intro { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-head__lead { justify-self: start; }
  .configurator[open], .checkout[open] { grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; align-content: start; overflow-y: auto; }
  .configurator__visual { min-height: 0; height: min(100vw, 520px); }
  .configurator__panel, .checkout__form, .checkout__summary { max-height: none; overflow: visible; }
  .configurator__panel { padding-top: 32px; }
  .configurator__close { position: fixed; top: 14px; right: 14px; z-index: 3; background: var(--paper); }
  .checkout__summary { border-left: 0; border-top: 1px solid var(--line); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__tagline { grid-column: 1 / -1; }
  .step__num { margin-bottom: 20px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .announce { flex-wrap: wrap; gap: 2px 10px; font-size: 10.5px; letter-spacing: 0.05em; }
  .announce span { white-space: nowrap; }
  .announce__sep { display: none; }
  .modal { width: 100vw; max-height: 100dvh; height: 100dvh; }
  .field { grid-column: 1 / -1; }
  .field--third { grid-column: span 3; }
  .field--pc { grid-column: 1 / -1; }
  .nav { grid-template-columns: auto 1fr auto; padding: 14px var(--gutter); }
  .nav__links { display: none; }
  .logo { justify-items: start; }
  .logo { gap: 9px; }
  .logo__mark { width: 46px; }
  .logo__text { justify-items: start; }
  .logo__word { font-size: 28px; padding-left: 0; }
  .logo__sub { font-size: 8px; letter-spacing: 0.2em; padding-left: 0; white-space: nowrap; }
  .nav__actions { grid-column: 3; gap: 8px; }
  .intro__lead { font-size: 15px; }
  .trust { gap: 8px 16px; font-size: 12px; }
  .swatches--filter { gap: 9px; }
  .card__media { aspect-ratio: 1 / 1; }
  .shopbar { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Day / night toggle ---------- */
.theme-btn {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line-strong); background: none;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: border-color 0.2s, background-color 0.3s;
}
.theme-btn:hover { border-color: var(--ink); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn__moon, [data-theme='night'] .theme-btn__sun { display: none; }
[data-theme='night'] .theme-btn__moon { display: block; }

/* ---------- Welcome offer ---------- */
.welcome {
  width: min(420px, calc(100vw - 32px)); padding: 48px 36px 36px; text-align: center;
  border: 1px solid var(--line-strong);
}
.welcome[open] { display: grid; justify-items: center; gap: 10px; }
.welcome__mark { width: 96px; height: auto; margin-bottom: 4px; }
.welcome__close { position: absolute; top: 14px; right: 14px; }
.welcome__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.welcome__big { font-family: var(--serif); font-size: 96px; line-height: 1; margin: 4px 0; letter-spacing: -0.02em; }
.welcome__title { font-size: 22px; line-height: 1.2; }
.welcome__text { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }

/* ---------- Cookie consent ---------- */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; width: min(460px, calc(100vw - 32px));
  display: grid; gap: 14px; padding: 20px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  font-size: 13px; line-height: 1.5; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.35);
}
.cookie[hidden] { display: none; }
.cookie__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.btn--sm { padding: 10px 16px; font-size: 11px; }

@media (max-width: 560px) {
  .theme-btn__label { display: none; }
  .theme-btn { padding: 0 9px; }
  .lang button { padding: 4px 4px; }
}

/* ---------- Cursor light ---------- */
.cursor-light { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 30; pointer-events: none; }
.cursor-light::before {
  content: ''; position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 150, 0.16) 0%, rgba(255, 195, 125, 0.06) 40%, rgba(255, 185, 110, 0) 70%);
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.cursor-light.is-on::before { opacity: 1; transform: scale(1); }
.cursor-light.is-hot::before { transform: scale(1.12); }
.cursor-light.is-flicker::before { animation: lamp-flicker 0.3s ease-out; }
/* At night the cursor is a small lamp carried through the dark page. */
[data-theme='night'] .cursor-light::before {
  left: -120px; top: -120px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255, 200, 135, 0.16) 0%, rgba(255, 175, 95, 0.06) 40%, rgba(255, 160, 80, 0) 70%);
  mix-blend-mode: screen;
}
@keyframes lamp-flicker { 0% { opacity: 1; } 35% { opacity: 0.55; } 100% { opacity: 1; } }

/* Light falling on the lamp images from where the cursor is */
.configurator__visual { position: relative; }
.card__media::after, .configurator__visual::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 40%), rgba(255, 246, 228, 0.22), rgba(255, 246, 228, 0) 38%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity 0.45s var(--ease);
}
[data-theme='night'] .card__media::after, [data-theme='night'] .configurator__visual::after {
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 40%), rgba(255, 214, 160, 0.2), rgba(255, 214, 160, 0) 40%);
  mix-blend-mode: screen;
}
.card__media:hover::after, .configurator__visual:hover::after { opacity: 1; }
.card__hover { z-index: 2; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .card__media::after, .configurator__visual::after { display: none; }
}
