/* Lumen atelier tokens — named for the shop, not a generic kit */
:root {
  --tinta: #18222c;
  --tinta-suave: #536070;
  --lienzo: #edf1f3;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solido: #ffffff;
  --hilado: rgba(24, 34, 44, 0.14);
  --hilado-fuerte: #18222c;
  --musgo: #1d5348;
  --musgo-velo: rgba(29, 83, 72, 0.12);
  --arcilla: #8a4b3a;
  --ancho: 1180px;
  --cabecera: 76px;
  --tipo-cuerpo: "Figtree", "Segoe UI", Candara, sans-serif;
  --tipo-titulo: "Fraunces", "Iowan Old Style", Cambria, serif;
  --sombra-suave: 0 18px 50px rgba(24, 34, 44, 0.09);
  --radio: 6px;
  --luz-x: 18%;
  --luz-y: 12%;
  --rise-distance: 28px;

  /* aliases so existing rules keep working */
  --ink: var(--tinta);
  --ink-soft: var(--tinta-suave);
  --paper: var(--lienzo);
  --surface: var(--panel-solido);
  --line: var(--hilado);
  --line-strong: var(--hilado-fuerte);
  --accent: var(--musgo);
  --accent-soft: var(--musgo-velo);
  --warn: var(--arcilla);
  --max: var(--ancho);
  --header-h: var(--cabecera);
  --font-ui: var(--tipo-cuerpo);
  --font-display: var(--tipo-titulo);
  --shadow: var(--sombra-suave);
  --radius: var(--radio);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  color: var(--tinta);
  font-family: var(--tipo-cuerpo);
  font-size: 18.5px;
  line-height: 1.62;
  background-color: #dce6e1;
  background-image:
    radial-gradient(ellipse 900px 560px at var(--luz-x) var(--luz-y), rgba(29, 83, 72, 0.3), transparent 58%),
    radial-gradient(ellipse 760px 500px at 92% 8%, rgba(95, 130, 160, 0.32), transparent 55%),
    radial-gradient(ellipse 680px 460px at 62% 92%, rgba(188, 154, 112, 0.26), transparent 58%),
    linear-gradient(158deg, #d5e2e8 0%, #d2e0d9 36%, #e4dbcf 68%, #d6e1e7 100%);
  background-attachment: fixed;
}

body.no-scroll { overflow: hidden; }

/* Signature atmosphere: “luz de mesa” */
.lmx-atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.lmx-atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.72;
  animation: lmx-drift 18s ease-in-out infinite alternate;
}
.lmx-atmosphere__orb--a {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  top: -8%;
  left: -6%;
  background: rgba(29, 83, 72, 0.28);
}
.lmx-atmosphere__orb--b {
  width: min(44vw, 440px);
  height: min(44vw, 440px);
  top: 28%;
  right: -10%;
  background: rgba(110, 140, 165, 0.26);
  animation-duration: 22s;
  animation-delay: -4s;
}
.lmx-atmosphere__orb--c {
  width: min(38vw, 380px);
  height: min(38vw, 380px);
  bottom: -12%;
  left: 32%;
  background: rgba(190, 164, 128, 0.22);
  animation-duration: 26s;
  animation-delay: -9s;
}
.lmx-atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(24, 34, 44, 0.35) 3px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(24, 34, 44, 0.2) 4px);
  mix-blend-mode: multiply;
  animation: lmx-grain 8s steps(2) infinite;
}

@keyframes lmx-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, 6%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, 3%, 0) scale(0.96); }
}
@keyframes lmx-grain {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-1%, 1%); }
}
@keyframes lmx-rise {
  from {
    opacity: 0;
    transform: translate3d(0, var(--rise-distance), 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes lmx-underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes lmx-float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

[data-lmx-rise] {
  opacity: 0;
  transform: translate3d(0, var(--rise-distance), 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--lmx-delay, 0ms);
}
[data-lmx-rise].is-risen {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .lmx-atmosphere__orb,
  .lmx-atmosphere__grain { animation: none; }
  [data-lmx-rise] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: var(--tipo-titulo);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  background: var(--musgo);
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--lienzo) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--hilado);
}

.utility-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px max(20px, calc((100vw - var(--ancho)) / 2));
  border-bottom: 1px solid var(--hilado);
  font-size: 13px;
  color: var(--tinta-suave);
  letter-spacing: 0.02em;
}
.utility-bar p { margin: 0; }

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--cabecera);
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--tinta);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-mark span {
  width: 14px;
  height: 14px;
  background: var(--musgo);
  animation: lmx-float-card 5.5s ease-in-out infinite;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--tipo-titulo);
  font-size: 22px;
  font-weight: 600;
}
.brand-text em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.main-nav a:hover,
.main-nav .nav-active { border-bottom-color: var(--musgo); color: var(--musgo); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle i {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}
.cart-trigger b {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 20px 20px;
}
.mobile-nav.is-open { display: grid; gap: 4px; }
.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.hero {
  position: relative;
  min-height: min(82vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #152028;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: lmx-drift 24s ease-in-out infinite alternate;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.84) 0%, rgba(16, 24, 32, 0.5) 48%, rgba(16, 24, 32, 0.24) 100%),
    linear-gradient(0deg, rgba(16, 24, 32, 0.58), transparent 45%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--ancho);
  width: 100%;
  margin: 0 auto;
  padding: 80px 20px 64px;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}
.hero .eyebrow { color: rgba(255, 255, 255, 0.72); }
.hero h1 {
  margin: 0 0 18px;
  max-width: 14ch;
  font-size: clamp(44px, 7vw, 76px);
}
.hero-lead {
  max-width: 46ch;
  margin: 0;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.88);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radio);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: var(--musgo);
  color: #fff;
  border-color: var(--musgo);
}
.button-primary:hover { background: #163f37; }
.button-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.button-secondary:hover { background: rgba(255, 255, 255, 0.08); }
.button-ink {
  background: var(--tinta);
  color: #fff;
  border-color: var(--tinta);
}
.button-ink:hover { background: #10161f; }
.button-ghost {
  background: var(--panel-solido);
  border-color: var(--hilado-fuerte);
}
.button-wide { width: 100%; }

.category-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--ancho);
  margin: -18px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.category-rail a {
  display: grid;
  gap: 8px;
  padding: 26px 20px;
  margin: 0 6px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hilado);
  box-shadow: var(--sombra-suave);
  transition: transform 0.3s ease, background 0.3s ease;
}
.category-rail a:first-child { margin-left: 0; }
.category-rail a:last-child { margin-right: 0; }
.category-rail a:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.92);
}
.category-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--musgo);
}
.category-rail strong {
  font-family: var(--tipo-titulo);
  font-size: 23px;
  font-weight: 600;
}
.category-rail small {
  color: var(--tinta-suave);
  font-size: 14px;
}

.catalog-section,
.process,
.inner-wrap {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 80px 20px;
}

.section-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}
.section-intro h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 50px);
  position: relative;
}
.section-intro h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 16px;
  background: var(--musgo);
  transform-origin: left;
  animation: lmx-underline 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.section-intro > p {
  margin: 0;
  color: var(--tinta-suave);
  font-size: 17px;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-pill {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.filter-pill.is-selected,
.filter-pill:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.sort-control select {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-weight: 600;
  padding: 4px 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
}

.product-card {
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hilado);
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: var(--sombra-suave);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(24, 34, 44, 0.12);
}
.product-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8ecf0;
}
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-visual img { transform: scale(1.05); }
.visual-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  flex: 1;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.product-info h3 {
  margin: 0;
  font-family: var(--tipo-titulo);
  font-size: 24px;
  font-weight: 600;
}
.product-info h3 a:hover { color: var(--musgo); }
.product-info > p {
  margin: 0;
  color: var(--tinta-suave);
  font-size: 15px;
  flex: 1;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.product-price {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.add-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.add-button:hover { background: var(--accent); border-color: var(--accent); }

.empty-state {
  text-align: center;
  padding: 48px 0;
  color: var(--ink-soft);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  max-width: var(--ancho);
  margin: 24px auto;
  padding: 40px 24px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--hilado);
  box-shadow: var(--sombra-suave);
}
.detail-gallery { min-width: 0; }
.detail-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8ecf0;
  border: 1px solid var(--hilado);
}
.detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.45s ease;
}
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.gallery-frame {
  border: 1px solid var(--hilado);
  background: #e8ecf0;
  padding: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transition: outline 0.2s ease, transform 0.2s ease;
}
.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-frame.is-active { outline: 2px solid var(--musgo); outline-offset: -2px; }
.gallery-frame:hover { transform: translateY(-2px); }
.detail-copy { min-width: 0; align-self: start; }
.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 4.5vw, 54px);
}
.detail-lead {
  margin: 0;
  color: var(--tinta-suave);
  font-size: 18px;
}
.detail-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 22px 0;
  font-family: var(--tipo-titulo);
  font-size: 36px;
  font-weight: 600;
}
.detail-price span {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.qty-control button {
  width: 42px;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 18px;
}
.qty-control output {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
}
.detail-specs {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.detail-specs h2,
.detail-trade h2 {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.detail-specs dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  margin: 0;
}
.detail-specs dl div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.detail-specs dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.detail-specs dd {
  margin: 4px 0 0;
  font-size: 14px;
}
.detail-trade {
  margin-top: 24px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.detail-trade p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.detail-trade p:last-child { margin-bottom: 0; }
.physical-notice {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}
.physical-notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.physical-notice p {
  margin: 0;
  font-size: 14px;
}

.manifesto {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 80px 20px;
}
.manifesto h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.2vw, 46px);
}
.manifesto-main > p:not(.eyebrow) {
  color: var(--tinta-suave);
  max-width: 58ch;
  font-size: 18px;
}
.manifesto-facts {
  margin: 0;
  align-self: start;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hilado);
  box-shadow: var(--sombra-suave);
}
.manifesto-facts div {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.manifesto-facts div:last-child { border-bottom: 0; }
.manifesto-facts dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.manifesto-facts dd {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.process {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  border-top: 1px solid var(--hilado);
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 80px 20px;
}
.process h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 46px);
  max-width: 12ch;
}
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.process-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--hilado);
}
.process-list li:last-child { border-bottom: 1px solid var(--hilado); }
.process-list span {
  font-size: 14px;
  font-weight: 700;
  color: var(--musgo);
}
.process-list h3 {
  margin: 0 0 6px;
  font-family: var(--tipo-titulo);
  font-size: 24px;
}
.process-list p {
  margin: 0;
  color: var(--tinta-suave);
  font-size: 16px;
}

.assurance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--ancho);
  margin: 0 auto 80px;
  border: 1px solid var(--hilado);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--sombra-suave);
}
.assurance > div {
  padding: 28px 24px;
  border-right: 1px solid var(--hilado);
}
.assurance > div:last-child { border-right: 0; }
.assurance strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--tipo-titulo);
  font-size: 26px;
}
.assurance p {
  margin: 0;
  color: var(--tinta-suave);
  font-size: 15px;
}

.site-footer {
  background: var(--ink);
  color: #e8ecef;
  padding: 56px max(20px, calc((100vw - var(--max)) / 2)) 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand p {
  margin: 16px 0 0;
  max-width: 28ch;
  color: rgba(232, 236, 239, 0.72);
  font-size: 14px;
}
.brand-light .brand-mark { border-color: #e8ecef; }
.brand-light .brand-mark span { background: #9ec5bb; }
.brand-light .brand-text em { color: rgba(232, 236, 239, 0.65); }
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-column h2 {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ec5bb;
}
.footer-column a,
.footer-column p {
  margin: 0;
  font-size: 14px;
  color: rgba(232, 236, 239, 0.86);
}
.footer-column a:hover { color: #fff; }
.footer-notices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(232, 236, 239, 0.18);
  border-bottom: 1px solid rgba(232, 236, 239, 0.18);
}
.footer-notices p {
  margin: 0;
  padding: 16px 14px 16px 0;
  border-right: 1px solid rgba(232, 236, 239, 0.18);
  font-size: 12px;
  color: rgba(232, 236, 239, 0.75);
}
.footer-notices p:not(:first-child) { padding-left: 14px; }
.footer-notices p:last-child { border-right: 0; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  font-size: 12px;
  color: rgba(232, 236, 239, 0.65);
}
.age-mark {
  width: 34px;
  height: 34px;
  border: 1px solid #9ec5bb;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ec5bb;
  font-weight: 700;
}
.footer-bottom a {
  color: #9ec5bb;
  text-decoration: underline;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.cart-drawer.is-open { pointer-events: auto; }
.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 30, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.is-open .cart-backdrop { opacity: 1; }
.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 440px);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow);
}
.is-open .cart-panel { transform: translateX(0); }
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 22px;
  border-bottom: 1px solid var(--line);
}
.cart-header h2 {
  margin: 0;
  font-size: 28px;
}
.cart-header h2 span {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--accent);
}
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 24px;
  line-height: 1;
}
.cart-items {
  flex: 1;
  overflow: auto;
  padding: 12px 22px;
}
.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-thumb {
  width: 72px;
  height: 72px;
  overflow: hidden;
  background: #e8ecf0;
  border: 1px solid var(--line);
}
.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-line h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
}
.cart-line p {
  margin: 4px 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.line-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-mini {
  display: inline-flex;
  border: 1px solid var(--line);
}
.qty-mini button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
}
.qty-mini span {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 28px;
}
.remove-line {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  text-decoration: underline;
  color: var(--ink-soft);
}
.line-price {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.cart-empty {
  padding: 48px 8px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}
.cart-summary {
  padding: 18px 22px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.cart-summary > div {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
}
.cart-summary > p {
  margin: 8px 0 16px;
  font-size: 12px;
  color: var(--ink-soft);
}

.cart-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.cart-view.is-hidden { display: none !important; }
.checkout-panel {
  display: none;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--surface);
}
.checkout-panel.is-visible { display: flex; }
.checkout-form {
  flex: 1;
  overflow: auto;
  padding: 18px 22px;
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px 12px;
  border-radius: var(--radius);
}
.field textarea { min-height: 84px; resize: vertical; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checkout-actions {
  padding: 16px 22px 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  background: var(--paper);
}
.form-note {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: min(92vw, 420px);
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.inner-hero {
  background: var(--ink);
  color: #fff;
  padding: 64px max(20px, calc((100vw - var(--max)) / 2));
}
.inner-hero .eyebrow { color: rgba(255, 255, 255, 0.65); }
.inner-hero h1 {
  margin: 0 0 12px;
  max-width: 16ch;
  font-size: clamp(34px, 5vw, 52px);
}
.inner-hero p:not(.eyebrow) {
  margin: 0;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.78);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}
.about-aside {
  align-self: start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.about-aside strong {
  display: block;
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: 24px;
}
.about-aside p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.rich-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 36px);
}
.rich-copy h3 {
  margin: 32px 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
}
.rich-copy p {
  color: var(--ink-soft);
  max-width: 68ch;
}
.quote-block {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.35;
}
.contact-card {
  margin-top: 36px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.contact-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}
.contact-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}
.contact-card dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-card dd { margin: 4px 0 0; }

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}
.legal-nav {
  align-self: start;
  position: sticky;
  top: 96px;
}
.legal-nav h2 {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legal-nav a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.legal-nav a:hover,
.legal-nav .current { color: var(--accent); }
.legal-copy h2 {
  margin: 0 0 14px;
  font-size: 30px;
}
.legal-copy h3 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
}
.legal-copy p,
.legal-copy li {
  color: var(--ink-soft);
  font-size: 15px;
}
.legal-copy table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}
.legal-copy th,
.legal-copy td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
}
.legal-copy th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal-note {
  margin: 22px 0;
  padding: 16px 18px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}
.legal-note p { margin: 0; color: var(--ink); }

@media (max-width: 960px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manifesto,
  .process,
  .about-grid,
  .legal-layout,
  .product-detail,
  .section-intro,
  .footer-top {
    grid-template-columns: 1fr;
  }
  .assurance { grid-template-columns: 1fr; }
  .assurance > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .assurance > div:last-child { border-bottom: 0; }
  .legal-nav { position: static; }
  .legal-nav a {
    display: inline-block;
    margin-right: 14px;
    border-bottom: 0;
  }
  .footer-notices { grid-template-columns: 1fr 1fr; }
  .footer-notices p:nth-child(2n) { border-right: 0; }
  .category-rail { grid-template-columns: 1fr; margin-top: 12px; }
  .category-rail a {
    margin: 0 0 10px;
    border-right: 0;
  }
  .category-rail a:last-child { margin-bottom: 0; }
  .hero { clip-path: none; }
}

@media (max-width: 820px) {
  .utility-bar { display: none; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-shell { grid-template-columns: 1fr auto; gap: 12px; }
  .hero { min-height: 560px; }
  .hero-copy { padding-top: 56px; padding-bottom: 40px; }
  .contact-card dl,
  .detail-specs dl,
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .catalog-grid { grid-template-columns: 1fr; gap: 18px; }
  .catalog-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .product-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .add-button { width: 100%; }
  .cart-trigger span { display: none; }
  .footer-top,
  .footer-notices { grid-template-columns: 1fr; }
  .footer-notices p {
    border-right: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(232, 236, 239, 0.18);
  }
  .footer-notices p:last-child { border-bottom: 0; }
  .footer-bottom {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .hero h1 { max-width: none; }
  .detail-actions { flex-direction: column; align-items: stretch; }
  .qty-control { justify-content: space-between; }
}
