/* =========================================================================
   ZAHRA LUMA — Lighting & Electrical
   Art direction: architectural, product-led, quiet.

   Rules this file holds itself to:
   - Photography leads. Chrome is hairlines, not shadows and gradients.
   - Geometry is square. Radius is 0-2px; there are no pills and no blobs.
   - Teal is an accent for interactive state, not a background wash.
   - Brass appears as a rule or a label colour, never as a fill.
   - Two type families only: a serif for editorial voice, a system sans for
     everything operational. Neither is downloaded.
   ========================================================================= */

:root {
  /* Brand */
  --lm-teal: #034e4f;
  --lm-teal-deep: #012f30;
  --lm-teal-bright: #0a6a6b;
  --lm-brass: #8a6d3b;
  --lm-brass-light: #b2905a;

  /* Neutrals — warm, so product photography on white does not look blue */
  --lm-page: #faf8f5;
  --lm-surface: #ffffff;
  --lm-surface-alt: #f2efe9;
  --lm-surface-deep: #11201f;

  /* Ink */
  --lm-ink: #16181a;
  --lm-ink-soft: #4a4f54;
  --lm-ink-muted: #63666a;  /* >= 5.03:1 on every Luma surface */
  --lm-ink-faint: #6a6d71;  /* >= 4.53:1 on every Luma surface */
  --lm-on-dark: #f3f1ec;
  --lm-on-dark-soft: #b9bfbd;

  /* Lines */
  --lm-rule: #e4dfd6;
  --lm-rule-strong: #cdc6b9;
  --lm-rule-dark: rgba(255, 255, 255, 0.16);

  /* Status */
  --lm-ok: #1d6b4f;
  --lm-warn: #8a5a12;
  --lm-stop: #9b2c2c;

  /* Type */
  --lm-serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --lm-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --lm-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Rhythm */
  --lm-gutter: 24px;
  --lm-max: 1340px;
  --lm-radius: 2px;
  --lm-header-h: 118px;
}

@media (max-width: 900px) {
  :root { --lm-gutter: 16px; --lm-header-h: 108px; }
}

body.luma-body.dark,
body.luma-body.dark-theme {
  --lm-page: #0d1514;
  --lm-surface: #131d1d;
  --lm-surface-alt: #182423;
  --lm-ink: #f1efea;
  --lm-ink-soft: #c3c7c5;
  --lm-ink-muted: #a6aca9;  /* >= 6.8:1 on every dark Luma surface */
  --lm-ink-faint: #919794;  /* >= 5.37:1 on every dark Luma surface */
  --lm-rule: rgba(255, 255, 255, 0.12);
  --lm-rule-strong: rgba(255, 255, 255, 0.22);
  --lm-brass: #c2a06a;
  --lm-brass-light: #d4b684;
  --lm-ok: #4cab86;
  --lm-warn: #d2a052;
  --lm-stop: #e07b7b;
}

/* =========================================================================
   BASE
   ========================================================================= */
html {
  overflow-x: hidden;
}

body.luma-body {
  margin: 0;
  background: var(--lm-page);
  color: var(--lm-ink-soft);
  font-family: var(--lm-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

:where(.luma-body) h1,
:where(.luma-body) h2,
:where(.luma-body) h3,
:where(.luma-body) h4 {
  color: var(--lm-ink);
  margin: 0;
  font-weight: 500;
}

:where(.luma-body) a { color: inherit; }

:where(.luma-body) img { display: block; max-width: 100%; }

.lm-container {
  width: 100%;
  max-width: var(--lm-max);
  margin: 0 auto;
  padding: 0 var(--lm-gutter);
}

/* Zahra's site-wide floating WhatsApp button arrives with the shared footer.
   Luma's enquiry, quotation and order paths are all on-site and server-recorded;
   a parallel off-site channel would fork the commerce flow, so it is hidden here. */
.luma-body #floating-whatsapp { display: none !important; }

/* Screen-reader-only, used for landmark labels and live-region announcements. */
.lm-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lm-skip {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 3000;
  background: var(--lm-teal);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.lm-skip:focus { top: 8px; }

/* One consistent, visible focus treatment everywhere. */
.luma-body :focus-visible {
  outline: 2px solid var(--lm-teal-bright);
  outline-offset: 2px;
}

/* Editorial type scale */
.lm-display {
  font-family: var(--lm-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--lm-ink);
}

.lm-eyebrow {
  font-family: var(--lm-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--lm-brass);
}

.lm-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--lm-rule);
  margin-bottom: 28px;
}

@media (max-width: 560px) {
  .lm-section-head {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }
}

.lm-section-title {
  font-family: var(--lm-serif);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.lm-section-note {
  font-size: 0.85rem;
  color: var(--lm-ink-muted);
  margin: 6px 0 0;
  max-width: 62ch;
}

.lm-section-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lm-teal);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.lm-section-link:hover { color: var(--lm-brass); }

.lm-section { padding: 56px 0; }
.lm-section--tight { padding: 40px 0; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.lm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--lm-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--lm-radius);
  background: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lm-btn--solid { background: var(--lm-teal); color: #fff; border-color: var(--lm-teal); }
.lm-btn--solid:hover { background: var(--lm-teal-deep); border-color: var(--lm-teal-deep); }

.lm-btn--line { border-color: var(--lm-rule-strong); color: var(--lm-ink); }
.lm-btn--line:hover { border-color: var(--lm-ink); background: var(--lm-surface); }

.lm-btn--onimage { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.lm-btn--onimage:hover { background: #fff; color: var(--lm-ink); border-color: #fff; }

.lm-btn--quiet {
  padding: 9px 14px;
  font-size: 0.74rem;
  border-color: var(--lm-rule-strong);
  color: var(--lm-ink-soft);
}
.lm-btn--quiet:hover { border-color: var(--lm-ink); color: var(--lm-ink); }

.lm-btn--block { width: 100%; }
.lm-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* =========================================================================
   UTILITY STRIP
   ========================================================================= */
.lm-utility {
  background: var(--lm-surface-deep);
  color: var(--lm-on-dark-soft);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.lm-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  flex-wrap: wrap;
}

.lm-utility-facts {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lm-utility-facts li { display: inline-flex; align-items: center; gap: 7px; }
.lm-utility-facts i { color: var(--lm-brass-light); font-size: 0.76rem; }

.lm-utility-links { display: flex; align-items: center; gap: 20px; }

.lm-utility-links a {
  color: var(--lm-on-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
}
.lm-utility-links a:hover { color: var(--lm-brass-light); }

@media (max-width: 860px) {
  .lm-utility-facts li:nth-child(n + 3) { display: none; }
}

@media (max-width: 640px) {
  .lm-utility-inner { flex-wrap: nowrap; gap: 10px; min-height: 34px; }
  .lm-utility-facts li:nth-child(n + 2) { display: none; }
  .lm-utility-facts li,
  .lm-utility-links a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lm-utility-links { gap: 14px; }
  .lm-utility-links a { padding: 8px 0; }
}

@media (max-width: 420px) {
  .lm-utility-facts { display: none; }
  .lm-utility-inner { justify-content: space-between; }
}

/* =========================================================================
   HEADER
   ========================================================================= */
.lm-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--lm-surface);
  border-bottom: 1px solid var(--lm-rule);
}

.lm-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.lm-header-left { display: flex; align-items: center; gap: 12px; }

.lm-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--lm-rule);
  border-radius: var(--lm-radius);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--lm-ink);
  font-size: 1rem;
  cursor: pointer;
}

/* The Zahra flower returns to the Zahra homepage; the Luma wordmark is the store. */
.lm-brand { display: flex; align-items: center; gap: 14px; }

.lm-brand-flower {
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: var(--lm-radius);
}
.lm-brand-flower img { width: 34px; height: 34px; object-fit: contain; }

.lm-brand-rule { width: 1px; height: 32px; background: var(--lm-rule); }

.lm-brand-word { text-decoration: none; display: block; }

.lm-brand-name {
  display: block;
  font-family: var(--lm-serif);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--lm-ink);
  line-height: 1;
}
.lm-brand-name span { color: var(--lm-teal); }

.lm-brand-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lm-ink-faint);
}

/* --- search --------------------------------------------------------------- */
.lm-search { position: relative; max-width: 620px; width: 100%; justify-self: center; }

.lm-search-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--lm-rule-strong);
  border-radius: var(--lm-radius);
  background: var(--lm-page);
  transition: border-color 0.15s ease;
}
.lm-search-field:focus-within { border-color: var(--lm-teal); }

.lm-search-field > i {
  padding: 0 12px;
  color: var(--lm-ink-faint);
  font-size: 0.85rem;
}

.lm-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 12px 0;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--lm-ink);
}
.lm-search-input:focus { outline: none; }
.lm-search-input::placeholder { color: var(--lm-ink-faint); }

.lm-search-clear {
  border: 0;
  background: none;
  color: var(--lm-ink-faint);
  cursor: pointer;
  padding: 8px 10px;
  font-size: 0.85rem;
}
.lm-search-clear:hover { color: var(--lm-ink); }

.lm-search-go {
  border: 0;
  border-left: 1px solid var(--lm-rule-strong);
  background: var(--lm-teal);
  color: #fff;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 22px;
  align-self: stretch;
  cursor: pointer;
}
.lm-search-go:hover { background: var(--lm-teal-deep); }

/* Type-ahead */
.lm-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 950;
  background: var(--lm-surface);
  border: 1px solid var(--lm-rule-strong);
  border-radius: var(--lm-radius);
  box-shadow: 0 14px 34px rgba(16, 20, 20, 0.14);
  max-height: 380px;
  overflow-y: auto;
  padding: 6px 0;
}
.lm-suggest[hidden] { display: none; }

.lm-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 14px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.lm-suggest-item:hover,
.lm-suggest-item[aria-selected="true"] { background: var(--lm-surface-alt); }

.lm-suggest-item img {
  width: 40px; height: 40px;
  object-fit: contain;
  background: var(--lm-surface-alt);
  flex: none;
}

.lm-suggest-text { min-width: 0; }
.lm-suggest-title {
  display: block;
  font-size: 0.85rem;
  color: var(--lm-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lm-suggest-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--lm-ink-muted);
  font-family: var(--lm-mono);
}
.lm-suggest-empty { padding: 14px; font-size: 0.85rem; color: var(--lm-ink-muted); }

/* --- header actions ------------------------------------------------------- */
.lm-header-right { display: flex; align-items: center; gap: 10px; }

.lm-header-trade {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lm-ink-soft);
  text-decoration: none;
  padding: 10px 12px;
  white-space: nowrap;
}
.lm-header-trade:hover { color: var(--lm-teal); }

.lm-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--lm-rule-strong);
  border-radius: var(--lm-radius);
  background: none;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lm-ink);
  cursor: pointer;
}
.lm-cart-btn:hover { border-color: var(--lm-ink); }

.lm-cart-count {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--lm-teal);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

/* --- department nav ------------------------------------------------------- */
.lm-deptbar { background: var(--lm-surface); border-bottom: 1px solid var(--lm-rule); }

.lm-deptbar-inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lm-deptbar-inner::-webkit-scrollbar { display: none; }

.lm-dept {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--lm-ink-soft);
  padding: 14px 15px;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.lm-dept:hover { color: var(--lm-ink); }
.lm-dept.is-active {
  color: var(--lm-teal);
  font-weight: 600;
  border-bottom-color: var(--lm-teal);
}

@media (max-width: 1080px) {
  .lm-header-inner {
    grid-template-columns: auto auto;
    grid-template-areas: "left right" "search search";
    row-gap: 12px;
    padding-bottom: 14px;
  }
  .lm-header-left { grid-area: left; }
  .lm-header-right { grid-area: right; }
  .lm-search { grid-area: search; max-width: none; }
  .lm-menu-btn { display: inline-flex; }
  .lm-header-trade { display: none; }
  .lm-brand-sub { display: none; }
}

@media (max-width: 560px) {
  .lm-brand-rule { display: none; }
  .lm-brand-name { font-size: 1.15rem; }
  .lm-cart-btn span.lm-cart-label { display: none; }
  .lm-search-go { padding: 0 14px; }
}

/* =========================================================================
   HERO — editorial split. Type panel and photograph each get their own field;
   no text is laid over the product, and nothing is tinted.
   ========================================================================= */
.lm-hero { background: var(--lm-surface); border-bottom: 1px solid var(--lm-rule); }

.lm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  min-height: 520px;
}

.lm-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px 72px 0;
}

.lm-hero-title {
  font-family: var(--lm-serif);
  font-size: clamp(2.3rem, 4.1vw, 3.6rem);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
  color: var(--lm-ink);
}

.lm-hero-lede {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--lm-ink-soft);
  margin: 20px 0 0;
  max-width: 46ch;
}

.lm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.lm-hero-figure {
  position: relative;
  background: var(--lm-surface-alt);
  overflow: hidden;
}

.lm-hero-figure img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 42%;
}

.lm-hero-caption {
  position: absolute;
  left: 0; bottom: 0;
  max-width: calc(100% - 24px);
  background: var(--lm-surface);
  border-top: 1px solid var(--lm-rule);
  border-right: 1px solid var(--lm-rule);
  padding: 12px 20px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lm-ink-muted);
}
.lm-hero-caption strong { color: var(--lm-ink); font-weight: 600; }

@media (max-width: 980px) {
  .lm-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .lm-hero-copy { padding: 44px 0 36px; order: 2; }
  .lm-hero-figure { order: 1; }
  .lm-hero-figure img { min-height: 280px; max-height: 40vh; }
  .lm-hero-actions .lm-btn { flex: 1 1 auto; }
}

/* =========================================================================
   SERVICE RAIL — four plain statements of fact, no icons shouting.
   ========================================================================= */
.lm-services { background: var(--lm-page); border-bottom: 1px solid var(--lm-rule); }

.lm-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.lm-service {
  padding: 26px 26px 26px 0;
  border-right: 1px solid var(--lm-rule);
}
.lm-service:first-child { padding-left: 0; }
.lm-service:last-child { border-right: 0; padding-right: 0; }
.lm-service + .lm-service { padding-left: 26px; }

.lm-service-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lm-ink);
  margin-bottom: 6px;
}
.lm-service-label i { color: var(--lm-brass); font-size: 0.82rem; }

.lm-service p { margin: 0; font-size: 0.82rem; color: var(--lm-ink-muted); line-height: 1.5; }

@media (max-width: 900px) {
  .lm-services-grid { grid-template-columns: 1fr 1fr; }
  .lm-service { padding: 20px 18px; border-bottom: 1px solid var(--lm-rule); }
  .lm-service:nth-child(2n) { border-right: 0; padding-right: 0; }
  .lm-service:nth-child(2n+1) { padding-left: 0; }
  .lm-service:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .lm-services-grid { grid-template-columns: 1fr; }
  .lm-service { padding: 16px 0 !important; border-right: 0; }
}

/* =========================================================================
   CATEGORY TILES
   ========================================================================= */
.lm-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px;
  padding: 1px;
}

.lm-cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--lm-surface);
  box-shadow: 0 0 0 1px var(--lm-rule);
  border: 0;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.lm-cat-tile:hover { background: var(--lm-surface-alt); }

.lm-cat-media {
  aspect-ratio: 4 / 3;
  background: var(--lm-surface-alt);
  overflow: hidden;
}

.lm-cat-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform 0.4s ease;
}
.lm-cat-tile:hover .lm-cat-media img { transform: scale(1.035); }

.lm-cat-body {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--lm-rule);
}

.lm-cat-name {
  font-family: var(--lm-serif);
  font-size: 1.02rem;
  color: var(--lm-ink);
  margin: 0;
}

.lm-cat-count {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lm-ink-faint);
}

/* =========================================================================
   CATALOG — filter rail + results
   ========================================================================= */
.lm-catalog { background: var(--lm-page); padding: 48px 0 72px; }

.lm-catalog-grid {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* --- filter rail ---------------------------------------------------------- */
.lm-rail { position: sticky; top: calc(var(--lm-header-h) + 12px); }

.lm-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lm-rule-strong);
  margin-bottom: 4px;
}

.lm-rail-title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lm-ink);
}

.lm-rail-clear {
  border: 0; background: none;
  font-family: inherit;
  font-size: 0.75rem;
  color: var(--lm-teal);
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 0;
}
.lm-rail-clear[hidden] { display: none; }

.lm-facet { border-bottom: 1px solid var(--lm-rule); }

.lm-facet > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--lm-ink);
}
.lm-facet > summary::-webkit-details-marker { display: none; }
.lm-facet > summary::after {
  content: "\002B";
  font-size: 1rem;
  color: var(--lm-ink-faint);
  font-weight: 400;
}
.lm-facet[open] > summary::after { content: "\2212"; }

.lm-facet-body { padding-bottom: 16px; display: flex; flex-direction: column; gap: 9px; }

.lm-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  color: var(--lm-ink-soft);
  cursor: pointer;
  line-height: 1.35;
}
.lm-check input { accent-color: var(--lm-teal); width: 15px; height: 15px; flex: none; margin: 0; }
.lm-check:hover { color: var(--lm-ink); }
.lm-check .lm-check-count { margin-left: auto; color: var(--lm-ink-faint); font-size: 0.76rem; font-variant-numeric: tabular-nums; }

.lm-price-row { display: flex; align-items: center; gap: 8px; }

.lm-price-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--lm-rule-strong);
  border-radius: var(--lm-radius);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.82rem;
  background: var(--lm-surface);
  color: var(--lm-ink);
}
.lm-price-input:focus { outline: none; border-color: var(--lm-teal); }

.lm-price-sep { color: var(--lm-ink-faint); font-size: 0.8rem; }

/* --- toolbar -------------------------------------------------------------- */
.lm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lm-rule);
  margin-bottom: 8px;
}

.lm-toolbar-head { min-width: 0; }

.lm-results-title {
  font-family: var(--lm-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--lm-ink);
  margin: 0;
}

.lm-results-count {
  font-size: 0.82rem;
  color: var(--lm-ink-muted);
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
}

.lm-toolbar-tools { display: flex; align-items: center; gap: 12px; }

.lm-filter-toggle { display: none; }

.lm-sort-label {
  font-size: 0.78rem;
  color: var(--lm-ink-muted);
  letter-spacing: 0.04em;
}

.lm-select {
  border: 1px solid var(--lm-rule-strong);
  border-radius: var(--lm-radius);
  background: var(--lm-surface);
  color: var(--lm-ink);
  font-family: inherit;
  font-size: 0.82rem;
  padding: 9px 30px 9px 12px;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.lm-select:focus { outline: none; border-color: var(--lm-teal); }

/* --- applied chips -------------------------------------------------------- */
.lm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.lm-chips:empty { display: none; }

.lm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--lm-rule-strong);
  border-radius: var(--lm-radius);
  background: var(--lm-surface);
  font-family: inherit;
  font-size: 0.76rem;
  color: var(--lm-ink-soft);
  padding: 6px 10px;
  cursor: pointer;
}
.lm-chip:hover { border-color: var(--lm-ink); color: var(--lm-ink); }
.lm-chip i { font-size: 0.68rem; color: var(--lm-ink-faint); }

/* =========================================================================
   PRODUCT GRID
   ========================================================================= */
.lm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 1px;
  padding: 1px;
  margin-top: 24px;
}

.lm-grid--rail { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.lm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--lm-surface);
  box-shadow: 0 0 0 1px var(--lm-rule);
  transition: background-color 0.15s ease;
}
.lm-card:hover { background: var(--lm-surface-alt); }

.lm-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--lm-surface);
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
}

.lm-card-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform 0.45s ease;
}
.lm-card:hover .lm-card-media img { transform: scale(1.04); }

.lm-card-media img.is-placeholder { padding: 0; object-fit: cover; }

.lm-flag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 4px 9px;
  background: var(--lm-surface);
  border: 1px solid var(--lm-rule-strong);
  color: var(--lm-ink-soft);
}
.lm-flag--featured { border-color: var(--lm-brass); color: var(--lm-brass); }
.lm-flag--new { border-color: var(--lm-teal); color: var(--lm-teal); }

.lm-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--lm-rule);
}

.lm-card-brand {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lm-brass);
}

.lm-card-title {
  margin: 7px 0 0;
  font-family: var(--lm-serif);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.34;
  color: var(--lm-ink);
  /* Two lines on every card, so prices align across the row. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.68em;
}

.lm-card-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.lm-card-link:hover .lm-card-title { color: var(--lm-teal); }

.lm-card-sku {
  margin-top: 6px;
  font-family: var(--lm-mono);
  font-size: 0.7rem;
  color: var(--lm-ink-faint);
  letter-spacing: 0.02em;
}

.lm-card-spec {
  margin-top: 8px;
  font-size: 0.76rem;
  color: var(--lm-ink-muted);
  min-height: 1.1em;
}

.lm-card-foot { margin-top: auto; padding-top: 14px; }

.lm-price-line { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }

.lm-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lm-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.lm-price small { font-size: 0.7rem; font-weight: 600; color: var(--lm-ink-muted); margin-right: 3px; }

.lm-price-was {
  font-size: 0.8rem;
  color: var(--lm-ink-faint);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.lm-avail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--lm-ink-muted);
}
.lm-avail::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.lm-avail--in { color: var(--lm-ok); }
.lm-avail--low { color: var(--lm-warn); }
.lm-avail--order { color: var(--lm-ink-muted); }

.lm-warranty {
  display: block;
  margin-top: 5px;
  font-size: 0.73rem;
  color: var(--lm-ink-faint);
}

.lm-card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }

.lm-card-actions .lm-btn { padding: 11px 12px; font-size: 0.73rem; }
.lm-card-actions .lm-btn--icon { padding: 11px 13px; }

/* --- skeletons & states --------------------------------------------------- */
.lm-skeleton { background: var(--lm-surface); padding: 0; }
.lm-skeleton .lm-sk-media { aspect-ratio: 1/1; background: var(--lm-surface-alt); }
.lm-skeleton .lm-sk-body { padding: 16px 18px 24px; border-top: 1px solid var(--lm-rule); }
.lm-sk-line { height: 11px; background: var(--lm-surface-alt); margin-bottom: 9px; }
.lm-sk-line.w40 { width: 40%; }
.lm-sk-line.w85 { width: 85%; }
.lm-sk-line.w60 { width: 60%; }

@media (prefers-reduced-motion: no-preference) {
  .lm-skeleton .lm-sk-media, .lm-sk-line { animation: lm-pulse 1.5s ease-in-out infinite; }
  @keyframes lm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
}

.lm-state {
  grid-column: 1 / -1;
  background: var(--lm-surface);
  box-shadow: 0 0 0 1px var(--lm-rule);
  text-align: center;
  padding: 64px 24px;
}
.lm-state i { font-size: 1.6rem; color: var(--lm-ink-faint); display: block; margin-bottom: 14px; }
.lm-state h3 { font-family: var(--lm-serif); font-weight: 400; font-size: 1.25rem; margin: 0 0 8px; }
.lm-state p { margin: 0 auto 20px; max-width: 46ch; font-size: 0.88rem; color: var(--lm-ink-muted); }
.lm-state--error i, .lm-state--error h3 { color: var(--lm-stop); }

.lm-loadmore { display: flex; justify-content: center; margin-top: 32px; }
.lm-loadmore[hidden] { display: none; }

@media (max-width: 1040px) {
  .lm-catalog-grid { grid-template-columns: 1fr; gap: 0; }
  .lm-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(340px, 88vw);
    z-index: 1200;
    background: var(--lm-surface);
    border-right: 1px solid var(--lm-rule);
    padding: 20px var(--lm-gutter) 32px;
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 0.25s ease;
  }
  .lm-rail.is-open { transform: none; }
  .lm-rail-close { display: inline-flex !important; }
  .lm-filter-toggle { display: inline-flex; }
  .lm-rail-scrim {
    position: fixed; inset: 0;
    background: rgba(12, 16, 16, 0.42);
    z-index: 1150;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  .lm-rail-scrim.is-open { opacity: 1; visibility: visible; }
}

.lm-rail-close {
  display: none;
  border: 1px solid var(--lm-rule-strong);
  background: none;
  border-radius: var(--lm-radius);
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  color: var(--lm-ink);
  cursor: pointer;
}

@media (min-width: 1041px) {
  .lm-rail-scrim { display: none; }
}

@media (max-width: 560px) {
  .lm-grid, .lm-grid--rail { grid-template-columns: repeat(2, 1fr); }
  .lm-card-body { padding: 12px 12px 14px; }
  .lm-card-media img { padding: 12px; }
  .lm-card-title { font-size: 0.87rem; }
  .lm-card-sku, .lm-card-spec { display: none; }
  .lm-price { font-size: 0.98rem; }
  .lm-card-actions { grid-template-columns: 1fr; }
  .lm-card-actions .lm-btn--icon { display: none; }
  .lm-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   EDITORIAL RAILS (featured / new / commercial)
   ========================================================================= */
.lm-rail-section { background: var(--lm-surface); border-top: 1px solid var(--lm-rule); }
.lm-rail-section--alt { background: var(--lm-page); }

.lm-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(238px, 1fr);
  gap: 1px;
  padding: 1px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.lm-scroller > * { scroll-snap-align: start; }

@media (min-width: 1100px) {
  .lm-scroller { grid-auto-columns: minmax(0, 1fr); grid-template-columns: repeat(5, 1fr); grid-auto-flow: row; overflow-x: visible; }
}

/* =========================================================================
   TRADE & PROJECTS BAND
   ========================================================================= */
.lm-trade {
  background: var(--lm-surface-deep);
  color: var(--lm-on-dark-soft);
  border-top: 1px solid var(--lm-rule);
}

.lm-trade-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 0;
  align-items: stretch;
}

.lm-trade-copy { padding: 64px 56px 64px 0; }

.lm-trade-title {
  font-family: var(--lm-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--lm-on-dark);
  margin: 16px 0 0;
  letter-spacing: -0.015em;
}

.lm-trade-lede { margin: 16px 0 0; font-size: 0.95rem; line-height: 1.65; max-width: 52ch; }

.lm-trade-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--lm-rule-dark);
  border: 1px solid var(--lm-rule-dark);
}

.lm-trade-list li { background: var(--lm-surface-deep); padding: 14px 16px; }

.lm-trade-list strong {
  display: block;
  color: var(--lm-on-dark);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.lm-trade-list span { font-size: 0.8rem; color: var(--lm-on-dark-soft); }

.lm-trade-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.lm-trade-figure { position: relative; overflow: hidden; background: #0b1413; }
.lm-trade-figure img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }

@media (max-width: 980px) {
  .lm-trade-grid { grid-template-columns: 1fr; }
  .lm-trade-copy { padding: 44px 0; order: 2; }
  .lm-trade-figure { order: 1; }
  .lm-trade-figure img { min-height: 220px; max-height: 34vh; }
}

/* =========================================================================
   OVERLAY SHELL — shared by product detail, cart and forms
   ========================================================================= */
.lm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(14, 18, 18, 0.5);
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.lm-overlay.is-open { opacity: 1; visibility: visible; }

.lm-overlay--center { align-items: center; justify-content: center; padding: 24px; }
.lm-overlay--right { justify-content: flex-end; }

.lm-panel {
  background: var(--lm-surface);
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.lm-panel--detail { max-width: 1120px; max-height: 92vh; }
.lm-panel--form { max-width: 560px; max-height: 92vh; padding: 36px; }

.lm-panel--drawer {
  max-width: 440px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.lm-overlay.is-open .lm-panel--drawer { transform: none; }

.lm-panel-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 38px; height: 38px;
  border: 1px solid var(--lm-rule);
  border-radius: var(--lm-radius);
  background: var(--lm-surface);
  color: var(--lm-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lm-panel-close:hover { border-color: var(--lm-ink); }

@media (prefers-reduced-motion: reduce) {
  .lm-overlay, .lm-panel--drawer, .lm-rail, .lm-rail-scrim,
  .lm-card-media img, .lm-cat-media img { transition: none !important; }
  .lm-skeleton .lm-sk-media, .lm-sk-line { animation: none !important; }
  html { scroll-behavior: auto !important; }
}

/* =========================================================================
   PRODUCT DETAIL
   ========================================================================= */
.lm-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

.lm-detail-media {
  background: var(--lm-surface-alt);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lm-detail-stage {
  background: var(--lm-surface);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--lm-rule);
}
.lm-detail-stage img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.lm-detail-stage img.is-placeholder { padding: 0; object-fit: cover; }

.lm-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }

.lm-thumb {
  width: 62px; height: 62px;
  border: 1px solid var(--lm-rule-strong);
  background: var(--lm-surface);
  padding: 4px;
  cursor: pointer;
  border-radius: var(--lm-radius);
}
.lm-thumb img { width: 100%; height: 100%; object-fit: contain; }
.lm-thumb[aria-current="true"] { border-color: var(--lm-teal); border-width: 2px; }

.lm-detail-info { padding: 34px 36px 36px; }

.lm-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  color: var(--lm-ink-muted);
  margin-bottom: 16px;
}
.lm-crumbs button {
  border: 0; background: none; padding: 0;
  font: inherit; color: var(--lm-teal);
  cursor: pointer; text-decoration: underline;
}
.lm-crumbs i { font-size: 0.56rem; color: var(--lm-ink-faint); }

.lm-detail-title {
  font-family: var(--lm-serif);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 8px 0 0;
}

.lm-detail-sku {
  font-family: var(--lm-mono);
  font-size: 0.78rem;
  color: var(--lm-ink-muted);
  margin-top: 10px;
}

.lm-detail-price-block {
  margin-top: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--lm-rule);
  border-bottom: 1px solid var(--lm-rule);
}

.lm-detail-price {
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--lm-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.lm-detail-price small { font-size: 0.82rem; font-weight: 600; color: var(--lm-ink-muted); margin-right: 5px; }

.lm-detail-vat { font-size: 0.76rem; color: var(--lm-ink-faint); margin-top: 4px; }

.lm-detail-desc { font-size: 0.92rem; line-height: 1.68; color: var(--lm-ink-soft); margin: 20px 0 0; }

.lm-buy { display: flex; align-items: stretch; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.lm-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--lm-rule-strong);
  border-radius: var(--lm-radius);
  overflow: hidden;
  flex: none;
}

.lm-stepper button {
  width: 42px;
  border: 0;
  background: var(--lm-surface);
  color: var(--lm-ink);
  font-size: 1rem;
  cursor: pointer;
  align-self: stretch;
}
.lm-stepper button:hover { background: var(--lm-surface-alt); }

.lm-stepper input {
  width: 56px;
  border: 0;
  border-left: 1px solid var(--lm-rule);
  border-right: 1px solid var(--lm-rule);
  background: var(--lm-surface);
  text-align: center;
  font-family: inherit;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--lm-ink);
  padding: 12px 0;
  -moz-appearance: textfield;
  align-self: stretch;
}
.lm-stepper input::-webkit-outer-spin-button,
.lm-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lm-stepper input:focus { outline: none; }

.lm-buy .lm-btn { flex: 1 1 180px; }

.lm-fulfil {
  display: grid;
  gap: 1px;
  background: var(--lm-rule);
  border: 1px solid var(--lm-rule);
  margin-top: 22px;
}

.lm-fulfil-row { background: var(--lm-surface); padding: 13px 15px; display: flex; gap: 12px; }
.lm-fulfil-row i { color: var(--lm-brass); margin-top: 3px; font-size: 0.86rem; flex: none; }
.lm-fulfil-row strong { display: block; font-size: 0.83rem; color: var(--lm-ink); margin-bottom: 2px; }
.lm-fulfil-row span { font-size: 0.8rem; color: var(--lm-ink-muted); }

.lm-specs-head {
  font-family: var(--lm-serif);
  font-size: 1.08rem;
  font-weight: 400;
  margin: 30px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lm-rule-strong);
}

.lm-specs { width: 100%; border-collapse: collapse; margin-top: 2px; }

.lm-specs th,
.lm-specs td {
  text-align: left;
  padding: 10px 0;
  font-size: 0.83rem;
  vertical-align: top;
  border-bottom: 1px solid var(--lm-rule);
}
.lm-specs th { width: 42%; font-weight: 500; color: var(--lm-ink-muted); padding-right: 16px; }
.lm-specs td { color: var(--lm-ink); }

.lm-detail-note {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--lm-surface-alt);
  border-left: 2px solid var(--lm-brass);
  font-size: 0.8rem;
  color: var(--lm-ink-soft);
}

.lm-related { border-top: 1px solid var(--lm-rule); padding: 30px 36px 36px; grid-column: 1 / -1; }

.lm-related-head {
  font-family: var(--lm-serif);
  font-size: 1.12rem;
  font-weight: 400;
  margin: 0 0 18px;
}

.lm-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }

.lm-related-item {
  border: 0; background: none; padding: 0;
  font: inherit; text-align: left; cursor: pointer;
}
.lm-related-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: var(--lm-surface-alt);
  padding: 10px;
  margin-bottom: 9px;
}
.lm-related-item img.is-placeholder { padding: 0; object-fit: cover; }
.lm-related-name {
  font-size: 0.82rem;
  color: var(--lm-ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lm-related-item:hover .lm-related-name { color: var(--lm-teal); }
.lm-related-price { font-size: 0.8rem; color: var(--lm-ink-muted); margin-top: 4px; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .lm-detail { grid-template-columns: 1fr; }
  .lm-detail-media { padding: 16px; }
  .lm-detail-info { padding: 24px var(--lm-gutter) 28px; }
  .lm-related { padding: 24px var(--lm-gutter) 32px; }
  .lm-panel--detail { max-height: 100%; }
  .lm-overlay--center { padding: 0; align-items: stretch; }
}

/* =========================================================================
   CART DRAWER
   ========================================================================= */
.lm-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--lm-rule);
  flex: none;
}

.lm-drawer-title { font-family: var(--lm-serif); font-size: 1.2rem; font-weight: 400; }

.lm-drawer-body { flex: 1; overflow-y: auto; padding: 6px 22px; }

.lm-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--lm-rule);
}

.lm-line-img {
  width: 72px; height: 72px;
  object-fit: contain;
  background: var(--lm-surface-alt);
  padding: 6px;
}
.lm-line-img.is-placeholder { padding: 0; object-fit: cover; }

.lm-line-title { font-size: 0.87rem; color: var(--lm-ink); line-height: 1.35; margin: 0; font-weight: 500; }
.lm-line-sku { font-family: var(--lm-mono); font-size: 0.7rem; color: var(--lm-ink-faint); margin-top: 3px; }
.lm-line-unit { font-size: 0.78rem; color: var(--lm-ink-muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

.lm-line-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

.lm-line .lm-stepper button { width: 32px; font-size: 0.9rem; }
.lm-line .lm-stepper input { width: 42px; padding: 7px 0; font-size: 0.85rem; }

.lm-line-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }

.lm-line-total { font-size: 0.9rem; font-weight: 600; color: var(--lm-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

.lm-line-remove {
  border: 0; background: none;
  color: var(--lm-ink-faint);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 4px;
}
.lm-line-remove:hover { color: var(--lm-stop); }

.lm-drawer-foot { flex: none; border-top: 1px solid var(--lm-rule); padding: 18px 22px 22px; background: var(--lm-surface); }

.lm-sum-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.92rem; }
.lm-sum-row strong { font-size: 1.22rem; font-weight: 600; color: var(--lm-ink); font-variant-numeric: tabular-nums; }

.lm-drawer-note { font-size: 0.78rem; color: var(--lm-ink-muted); margin: 10px 0 16px; line-height: 1.5; }

.lm-drawer-actions { display: grid; gap: 8px; }

/* =========================================================================
   FORMS
   ========================================================================= */
.lm-form-title { font-family: var(--lm-serif); font-size: 1.4rem; font-weight: 400; margin: 0; padding-right: 44px; }
.lm-form-lede { font-size: 0.86rem; color: var(--lm-ink-muted); margin: 8px 0 24px; line-height: 1.55; }

.lm-field { margin-bottom: 16px; }
.lm-field--split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.lm-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lm-ink);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.lm-label .lm-req { color: var(--lm-stop); }
.lm-label .lm-opt { color: var(--lm-ink-faint); font-weight: 400; }

.lm-input {
  width: 100%;
  border: 1px solid var(--lm-rule-strong);
  border-radius: var(--lm-radius);
  background: var(--lm-surface);
  color: var(--lm-ink);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 11px 12px;
}
.lm-input:focus { outline: none; border-color: var(--lm-teal); box-shadow: 0 0 0 2px rgba(3, 78, 79, 0.1); }
.lm-input::placeholder { color: var(--lm-ink-faint); }
textarea.lm-input { resize: vertical; min-height: 78px; }

.lm-hint { font-size: 0.76rem; color: var(--lm-ink-faint); margin-top: 5px; }

.lm-form-summary {
  background: var(--lm-surface-alt);
  padding: 14px 16px;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
}
.lm-form-summary strong { font-size: 1.1rem; font-weight: 600; color: var(--lm-ink); font-variant-numeric: tabular-nums; }

.lm-form-error {
  background: rgba(155, 44, 44, 0.08);
  border-left: 2px solid var(--lm-stop);
  color: var(--lm-stop);
  padding: 11px 14px;
  font-size: 0.84rem;
  margin-bottom: 16px;
}
.lm-form-error[hidden] { display: none; }

.lm-disclosure {
  font-size: 0.76rem;
  color: var(--lm-ink-muted);
  line-height: 1.55;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--lm-rule);
}

/* Confirmation */
.lm-done { text-align: center; padding: 14px 0 6px; }
.lm-done-mark {
  width: 54px; height: 54px;
  border: 1px solid var(--lm-teal);
  border-radius: 50%;
  color: var(--lm-teal);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.25rem;
}
.lm-done h3 { font-family: var(--lm-serif); font-size: 1.4rem; font-weight: 400; margin: 0 0 8px; }
.lm-done-ref {
  display: inline-block;
  font-family: var(--lm-mono);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--lm-ink);
  background: var(--lm-surface-alt);
  border: 1px solid var(--lm-rule-strong);
  padding: 9px 16px;
  margin: 10px 0 16px;
}
.lm-done p { font-size: 0.88rem; color: var(--lm-ink-soft); line-height: 1.6; max-width: 42ch; margin: 0 auto 20px; }

@media (max-width: 560px) {
  .lm-panel--form { padding: 26px var(--lm-gutter) 32px; }
  .lm-field--split { grid-template-columns: 1fr; }
  .lm-overlay--center { padding: 0; align-items: flex-end; }
  .lm-panel--form { max-height: 94vh; }
}

/* =========================================================================
   TOASTS
   ========================================================================= */
#lm-toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: min(440px, calc(100vw - 32px));
}

.lm-toast {
  background: var(--lm-surface-deep);
  color: var(--lm-on-dark);
  border-radius: var(--lm-radius);
  padding: 12px 18px;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(10, 14, 14, 0.3);
  width: 100%;
}
.lm-toast i { color: var(--lm-brass-light); }

@media (prefers-reduced-motion: no-preference) {
  .lm-toast { animation: lm-rise 0.22s ease-out; }
  @keyframes lm-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* =========================================================================
   SEED-DATA NOTICE
   Shown only when the catalogue endpoint reports it fell back to the local
   development seed, so nobody mistakes reference data for live stock.
   ========================================================================= */
.lm-seed-notice {
  background: #fdf6e7;
  border-bottom: 1px solid #e8d9b4;
  color: #6b5417;
  font-size: 0.8rem;
}
.lm-seed-notice[hidden] { display: none; }
.lm-seed-notice-inner { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.lm-seed-notice i { color: #a8821f; }

body.luma-body.dark .lm-seed-notice,
body.luma-body.dark-theme .lm-seed-notice {
  background: #2a2312;
  border-bottom-color: #4a3d1d;
  color: #e3cf9c;
}
