/* GENERATED from prototype/assets/fm.css by tools/build/build-preview.cjs. Edit the source, then rebuild. */
/*!
 * From Mars — design system & storefront styles (preview)
 * Direction "Orbit": warm ivory canvas, charcoal ink, cosmic-lavender signature, Mars-coral sparks.
 * The same tokens are mirrored in wp-content/themes/frommars/theme.json.
 * Light-only by design for launch: product imagery and brand colours are tuned for a light canvas.
 */

/* Layout concept: an editorial shop floor. Generous ivory canvas, rounded "stages" for imagery,
   product grids without boxes, one deep plum band for our own label. */
:root {
  /* Colour: core */
  --fm-canvas: #FBF8F3;
  --fm-surface: #FFFFFF;
  --fm-sunken: #F4EFE7;
  --fm-line: #E7E0D5;
  --fm-line-strong: #D3C9BA;
  --fm-ink: #1F1D21;
  --fm-ink-2: #45404B;
  --fm-muted: #625C68;
  --fm-ink-hover: #3A3540;
  --fm-on-ink: #FFFFFF;

  /* Colour: signature lavender */
  --fm-lav-50: #F6F4FC;
  --fm-lav-100: #EEEBF8;
  --fm-lav-200: #DCD5F3;
  --fm-lav-400: #A99BDB;
  --fm-lav-500: #8C7CCB;
  --fm-lav-700: #5B4C99;
  --fm-plum: #2B2348;

  /* Colour: Mars spark */
  --fm-mars-100: #FDE7DE;
  --fm-mars-400: #F07A55;
  --fm-mars-500: #E2603F;
  --fm-mars-600: #C2462A;
  --fm-mars-700: #A23A22;

  /* Colour: pastel grounds for imagery (decorative only) */
  --fm-tone-lavender: #ECE8F8;
  --fm-tone-peach: #FCE8DC;
  --fm-tone-sage: #E3ECDD;
  --fm-tone-sky: #E0EBF5;
  --fm-tone-butter: #F8EECB;
  --fm-tone-rose: #F8E4E9;
  --fm-tone-sand: #F1E9DC;
  --fm-tone-mint: #DEF1EA;
  --fm-tone-coral: #FDE3D8;

  /* Colour: semantic (text colours meet 4.5:1 on their backgrounds) */
  --fm-success: #276B44;
  --fm-success-bg: #E5F2EA;
  --fm-warning: #8A5A00;
  --fm-warning-bg: #FBF0D9;
  --fm-danger: #B42318;
  --fm-danger-bg: #FCE8E6;
  --fm-focus: #5B4C99;

  /* Type */
  --fm-font-display: "Bricolage Grotesque", "Anek Bangla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fm-font-ui: "Figtree", "Anek Bangla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fm-fs-xs: 0.75rem;
  --fm-fs-sm: 0.875rem;
  --fm-fs-md: 1rem;
  --fm-fs-lg: 1.125rem;
  --fm-fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fm-fs-h2: clamp(1.75rem, 1.3rem + 1.7vw, 2.75rem);
  --fm-fs-h1: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  --fm-fs-hero: clamp(2.75rem, 1.6rem + 4vw, 4.75rem);

  /* Space, shape, depth, motion */
  --fm-gutter: clamp(16px, 4vw, 40px);
  --fm-container: 1320px;
  --fm-r-sm: 8px;
  --fm-r-md: 14px;
  --fm-r-lg: 20px;
  --fm-r-xl: 28px;
  --fm-r-pill: 999px;
  --fm-shadow-1: 0 1px 2px rgba(31, 29, 33, 0.06);
  --fm-shadow-2: 0 1px 2px rgba(31, 29, 33, 0.05), 0 10px 28px -12px rgba(31, 29, 33, 0.18);
  --fm-shadow-3: 0 28px 70px -24px rgba(31, 29, 33, 0.38);
  --fm-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fm-header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  background: var(--fm-canvas);
  color: var(--fm-ink);
  font-family: var(--fm-font-ui);
  font-size: var(--fm-fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--fm-canvas);
}
html:has(dialog[open]) { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--fm-focus); outline-offset: 2px; border-radius: 6px; }
.fm-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fm-skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--fm-ink); color: var(--fm-on-ink); padding: 10px 16px; border-radius: var(--fm-r-pill);
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.fm-skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }
.fm-icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fm-icon--sm { width: 16px; height: 16px; }
.fm-icon--fill { fill: currentColor; stroke: none; }

html[lang="bn"] body { line-height: 1.7; }
html[lang="bn"] .fm-eyebrow, html[lang="bn"] .fm-badge, html[lang="bn"] .fm-footer h2 { letter-spacing: 0; text-transform: none; }
html[lang="bn"] .fm-hero__title, html[lang="bn"] .fm-sh__title, html[lang="bn"] .fm-h1 { line-height: 1.22; letter-spacing: 0; }

/* ---------- Layout ---------- */
.fm-wrap {
  width: 100%;
  max-width: calc(var(--fm-container) + 2 * var(--fm-gutter));
  margin-inline: auto;
  padding-left: max(var(--fm-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--fm-gutter), env(safe-area-inset-right, 0px));
}
.fm-section { padding-block: clamp(28px, 4.2vw, 56px); }
.fm-main { min-height: 60vh; outline: none; }
.fm-sh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.fm-sh > div { min-width: 0; max-width: 62ch; }
.fm-sh__title { font-family: var(--fm-font-display); font-size: var(--fm-fs-h2); font-weight: 700; line-height: 1.06; letter-spacing: -0.028em; text-wrap: balance; }
.fm-sh__sub { margin-top: 8px; color: var(--fm-muted); font-size: var(--fm-fs-md); }
.fm-sh__side { display: flex; align-items: center; gap: 12px; }
.fm-link {
  font-weight: 600; color: var(--fm-ink); text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 4px; text-decoration-color: var(--fm-lav-400); display: inline-flex; align-items: center; gap: 6px;
}
.fm-link:hover { color: var(--fm-lav-700); text-decoration-color: currentColor; }
.fm-eyebrow { font-size: var(--fm-fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fm-lav-700); }
.fm-h1 { font-family: var(--fm-font-display); font-size: var(--fm-fs-h1); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.fm-lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--fm-ink-2); max-width: 60ch; }
.fm-muted { color: var(--fm-muted); }
.fm-small { font-size: var(--fm-fs-sm); }
.fm-stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Buttons ---------- */
.fm-btn {
  --_bg: transparent; --_fg: var(--fm-ink); --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--fm-r-pill);
  background: var(--_bg); color: var(--_fg); border: 1.5px solid var(--_bd);
  font-family: var(--fm-font-ui); font-size: 0.9375rem; font-weight: 650; line-height: 1.1; text-align: center;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.fm-btn:active { transform: translateY(1px); }
.fm-btn--solid { --_bg: var(--fm-ink); --_fg: var(--fm-on-ink); --_bd: var(--fm-ink); }
.fm-btn--solid:hover { --_bg: var(--fm-ink-hover); --_bd: var(--fm-ink-hover); }
.fm-btn--outline { --_bd: var(--fm-ink); }
.fm-btn--outline:hover { --_bg: var(--fm-ink); --_fg: var(--fm-on-ink); }
.fm-btn--partner { --_fg: var(--fm-lav-700); --_bd: var(--fm-lav-400); --_bg: var(--fm-surface); }
.fm-btn--partner:hover { --_bg: var(--fm-lav-50); --_bd: var(--fm-lav-700); }
.fm-btn--lav { --_bg: var(--fm-lav-700); --_fg: #fff; --_bd: var(--fm-lav-700); }
.fm-btn--lav:hover { --_bg: #4D3F86; --_bd: #4D3F86; }
.fm-btn--soft { --_bg: var(--fm-surface); --_bd: var(--fm-line); }
.fm-btn--soft:hover { --_bd: var(--fm-ink); }
.fm-btn--ghost { padding-inline: 10px; }
.fm-btn--ghost:hover { --_bg: var(--fm-sunken); }
.fm-btn--sm { min-height: 40px; padding: 0 14px; font-size: var(--fm-fs-sm); }
.fm-btn--lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.fm-btn--block { width: 100%; }
.fm-btn[disabled], .fm-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.fm-btn .fm-ext { width: 14px; height: 14px; }
.fm-iconbtn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: var(--fm-r-pill); background: transparent; color: var(--fm-ink); text-decoration: none;
  transition: background-color 0.2s;
}
.fm-iconbtn:hover { background: var(--fm-sunken); }
.fm-count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--fm-mars-600); color: #fff; font-size: 0.6875rem; font-weight: 700; line-height: 18px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.fm-count[data-count="0"] { display: none; }

/* ---------- Badges, chips, notes ---------- */
.fm-badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--fm-r-pill);
  font-size: 0.6875rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  background: var(--fm-surface); color: var(--fm-ink);
}
.fm-badge--new { background: var(--fm-mars-100); color: var(--fm-mars-700); }
.fm-badge--sale { background: var(--fm-mars-600); color: #fff; }
.fm-badge--exclusive { background: var(--fm-lav-700); color: #fff; }
.fm-badge--partner { background: var(--fm-surface); color: var(--fm-lav-700); box-shadow: inset 0 0 0 1px var(--fm-lav-200); }
.fm-badge--sample { background: var(--fm-warning-bg); color: var(--fm-warning); }
.fm-badge--draft { background: var(--fm-warning-bg); color: var(--fm-warning); }
.fm-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 14px; border-radius: var(--fm-r-pill);
  background: var(--fm-surface); border: 1px solid var(--fm-line); font-size: var(--fm-fs-sm); font-weight: 600;
}
.fm-chip:hover { border-color: var(--fm-ink); }
.fm-note {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--fm-r-md);
  background: var(--fm-warning-bg); color: var(--fm-warning); font-size: var(--fm-fs-sm); font-weight: 550;
}
.fm-note--info { background: var(--fm-lav-50); color: var(--fm-lav-700); }
.fm-note--ok { background: var(--fm-success-bg); color: var(--fm-success); }
.fm-note .fm-icon { width: 18px; height: 18px; margin-top: 2px; }

/* ---------- Forms ---------- */
.fm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fm-label { font-size: var(--fm-fs-sm); font-weight: 650; }
.fm-hint { font-size: var(--fm-fs-xs); color: var(--fm-muted); }
.fm-error { font-size: var(--fm-fs-xs); color: var(--fm-danger); font-weight: 600; }
.fm-input, .fm-select, .fm-textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--fm-r-md);
  border: 1.5px solid var(--fm-line-strong); background: var(--fm-surface); color: var(--fm-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fm-textarea { padding: 12px 14px; min-height: 88px; resize: vertical; }
.fm-input::placeholder, .fm-textarea::placeholder { color: #8A8490; }
.fm-input:focus, .fm-select:focus, .fm-textarea:focus { outline: none; border-color: var(--fm-lav-700); box-shadow: 0 0 0 3px var(--fm-lav-200); }
.fm-input[aria-invalid="true"], .fm-select[aria-invalid="true"] { border-color: var(--fm-danger); }
.fm-select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231F1D21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.fm-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fm-fs-sm); cursor: pointer; }
.fm-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--fm-lav-700); flex: none; }
.fm-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--fm-line-strong); border-radius: var(--fm-r-pill); background: var(--fm-surface); }
.fm-qty button { width: 42px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; border-radius: var(--fm-r-pill); }
.fm-qty button:hover { background: var(--fm-sunken); }
.fm-qty button[disabled] { opacity: 0.35; cursor: not-allowed; }
.fm-qty input { width: 40px; border: 0; background: transparent; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.fm-qty input::-webkit-outer-spin-button, .fm-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fm-qty--sm button { width: 34px; height: 36px; }
.fm-qty--sm input { width: 30px; font-size: var(--fm-fs-sm); }

/* ---------- Announcement + header ---------- */
.fm-announce { background: var(--fm-ink); color: #EFEAF6; font-size: 0.8125rem; }
.fm-announce__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; min-height: 36px; padding-block: 6px; text-align: center; }
.fm-announce__btn { border: 0; background: transparent; color: #CFC6F5; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; }
.fm-announce__btn:hover { color: #fff; }

.fm-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(251, 248, 243, 0.94);
  -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.fm-header.is-scrolled { border-bottom-color: var(--fm-line); box-shadow: 0 10px 24px -22px rgba(31, 29, 33, 0.6); }
.fm-header__bar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; min-height: var(--fm-header-h); }
.fm-header__bar .fm-logo { justify-self: center; }
.fm-header__search, .fm-header__actions .fm-hide-sm { display: none; }
.fm-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.fm-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fm-ink); }
.fm-logo .fm-mark { width: 30px; height: 30px; }
.fm-logo__word { font-family: var(--fm-font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.fm-searchbtn {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 8px 0 16px;
  border-radius: var(--fm-r-pill); border: 1.5px solid var(--fm-line); background: var(--fm-surface);
  color: #7A7480; text-align: left; transition: border-color 0.2s;
}
.fm-searchbtn:hover { border-color: var(--fm-ink); }
.fm-searchbtn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-kbd { font-size: 0.75rem; font-weight: 700; color: var(--fm-muted); border: 1px solid var(--fm-line); border-radius: 6px; padding: 2px 7px; background: var(--fm-canvas); }
.fm-langbtn { border: 0; background: transparent; font-weight: 700; font-size: var(--fm-fs-sm); padding: 0 12px; min-height: 44px; border-radius: var(--fm-r-pill); color: var(--fm-ink); }
.fm-langbtn:hover { background: var(--fm-sunken); }
.fm-nav { display: none; }

@media (min-width: 1024px) {
  .fm-header__bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; min-height: 72px; }
  .fm-header__bar .fm-logo { justify-self: start; }
  .fm-header__menu, .fm-header__msearch { display: none; }
  .fm-header__search { display: block; max-width: 560px; width: 100%; justify-self: center; }
  .fm-header__actions .fm-hide-sm { display: inline-grid; }
  .fm-header__actions .fm-langbtn.fm-hide-sm { display: inline-block; }
  .fm-nav { display: block; border-top: 1px solid var(--fm-line); }
  .fm-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; min-height: 48px; overflow-x: auto; scrollbar-width: none; }
  .fm-nav__list::-webkit-scrollbar { display: none; }
  .fm-nav__link {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--fm-r-pill);
    font-size: 0.9375rem; font-weight: 550; text-decoration: none; white-space: nowrap; border: 0; background: transparent; color: var(--fm-ink);
  }
  .fm-nav__link:hover { background: var(--fm-sunken); }
  .fm-nav__link[aria-current="page"] { background: var(--fm-lav-100); color: var(--fm-lav-700); }
  .fm-nav__link--cats { font-weight: 700; }
  .fm-nav__link--cats[aria-expanded="true"] { background: var(--fm-ink); color: var(--fm-on-ink); }
  .fm-nav__link--cats[aria-expanded="true"] .fm-chev { transform: rotate(180deg); }
  .fm-chev { transition: transform 0.2s; }
}

/* Mega menu */
.fm-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--fm-surface); border-top: 1px solid var(--fm-line); box-shadow: var(--fm-shadow-3); }
.fm-mega__inner { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding-block: 28px 32px; }
.fm-mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; list-style: none; margin: 14px 0 0; padding: 0; }
.fm-mega__cat { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--fm-r-md); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.fm-mega__cat:hover { background: var(--fm-canvas); }
.fm-mega__cat svg { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.fm-mega__promo { border-radius: var(--fm-r-lg); background: var(--fm-tone-coral); padding: 22px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.fm-mega__promo svg { width: 100%; height: auto; margin-top: auto; }

/* Bottom navigation (mobile) */
.fm-bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--fm-line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px));
}
.fm-bnav__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0 auto; padding: 0; max-width: 560px; }
.fm-bnav__item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 60px; width: 100%; border: 0; background: transparent; color: var(--fm-muted);
  font-size: 0.6875rem; font-weight: 650; text-decoration: none;
}
.fm-bnav__item[aria-current="page"] { color: var(--fm-ink); }
.fm-bnav__item[aria-current="page"] .fm-icon { stroke-width: 2.2; }
.fm-bnav__item .fm-count { top: 6px; right: calc(50% - 22px); }
body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) {
  .fm-bnav { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Hero ---------- */
.fm-hero { padding-block: clamp(20px, 3.5vw, 48px) clamp(28px, 4vw, 56px); }
.fm-hero__inner { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.fm-hero__title { font-family: var(--fm-font-display); font-size: var(--fm-fs-hero); font-weight: 700; line-height: 0.98; letter-spacing: -0.038em; margin: 14px 0 18px; text-wrap: balance; }
.fm-hero__title span { display: block; color: var(--fm-lav-700); }
.fm-hero__title .fm-dot { display: inline; color: var(--fm-mars-500); }
.fm-hero__lead { max-width: 34ch; }
.fm-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fm-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: var(--fm-fs-sm); font-weight: 600; color: var(--fm-ink-2); }
.fm-trust li { display: inline-flex; align-items: center; gap: 8px; }
.fm-trust .fm-icon { width: 20px; height: 20px; color: var(--fm-lav-700); }
.fm-hero__stage { position: relative; border-radius: var(--fm-r-xl); background: var(--fm-lav-100); overflow: hidden; aspect-ratio: 8 / 7; max-width: 100%; }
.fm-hero__stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fm-hero__chip {
  position: absolute; left: 16px; top: 16px; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: var(--fm-r-pill); background: var(--fm-surface); box-shadow: var(--fm-shadow-2);
  text-decoration: none; font-size: var(--fm-fs-sm); max-width: calc(100% - 32px);
}
.fm-hero__chip svg { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.fm-hero__chip b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-hero__chip small { color: var(--fm-muted); font-size: 0.75rem; }
.fm-hero__chip:hover { box-shadow: var(--fm-shadow-3); }
@media (min-width: 900px) {
  .fm-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Categories ---------- */
.fm-cats {
  display: grid; grid-auto-flow: column; grid-auto-columns: 108px; gap: 12px; list-style: none; padding: 0;
  margin: 0 calc(-1 * var(--fm-gutter)); padding-inline: var(--fm-gutter); scroll-padding-inline: var(--fm-gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.fm-cats::-webkit-scrollbar { display: none; }
.fm-cats li { scroll-snap-align: start; }
.fm-cat { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--fm-ink); }
.fm-cat__art { display: block; aspect-ratio: 1; border-radius: var(--fm-r-lg); overflow: hidden; transition: transform 0.3s var(--fm-ease), box-shadow 0.3s; }
.fm-cat__art svg, .fm-cat__art img { display: block; width: 100%; height: 100%; }
.fm-cat__art img { object-fit: cover; }
.fm-cat:hover .fm-cat__art { transform: translateY(-3px); box-shadow: var(--fm-shadow-2); }
.fm-cat__name { font-size: 0.8125rem; font-weight: 650; line-height: 1.3; text-align: center; }
.fm-cat__count { display: block; font-size: 0.75rem; font-weight: 500; color: var(--fm-muted); }
@media (min-width: 768px) {
  .fm-cats { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; gap: 20px 16px; }
  .fm-cat__name { font-size: 0.875rem; }
}

/* ---------- Product cards ---------- */
.fm-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; width: 100%; }
.fm-card__media { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--fm-sunken); }
.fm-card__media > svg { display: block; width: 100%; height: 100%; transition: transform 0.6s var(--fm-ease); }
.fm-card:hover .fm-card__media > svg { transform: scale(1.04); }
.fm-card__badges { position: absolute; top: 10px; left: 10px; right: 56px; z-index: 2; display: flex; flex-wrap: wrap; gap: 5px; pointer-events: none; }
.fm-card__wish { position: absolute; top: 4px; right: 4px; z-index: 3; }
.fm-wishbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--fm-ink); border-radius: 50%; }
.fm-wishbtn::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); box-shadow: var(--fm-shadow-1); transition: transform 0.2s; }
.fm-wishbtn:hover::before { transform: scale(1.08); }
.fm-wishbtn .fm-icon { position: relative; width: 19px; height: 19px; }
.fm-wishbtn[aria-pressed="true"] { color: var(--fm-mars-600); }
.fm-wishbtn[aria-pressed="true"] .fm-icon { fill: currentColor; }
.fm-card__quick { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; display: none; }
@media (hover: hover) and (pointer: fine) {
  .fm-card__quick { display: flex; opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; }
  .fm-card:hover .fm-card__quick, .fm-card:focus-within .fm-card__quick { opacity: 1; transform: none; }
}
.fm-card__quick .fm-btn { width: 100%; background: rgba(255, 255, 255, 0.95); border-color: transparent; box-shadow: var(--fm-shadow-2); }
.fm-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.fm-card__source { display: flex; align-items: center; gap: 6px; font-size: var(--fm-fs-xs); font-weight: 650; color: var(--fm-muted); }
.fm-card__source .fm-icon { width: 14px; height: 14px; }
.fm-card__source--partner { color: var(--fm-lav-700); }
.fm-card__title { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fm-card__title a { text-decoration: none; }
.fm-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
.fm-card__title a:focus-visible { outline: none; }
.fm-card__title a:focus-visible::after { outline: 2.5px solid var(--fm-focus); outline-offset: 4px; }
.fm-card__cta { margin-top: auto; padding-top: 6px; position: relative; z-index: 2; }
.fm-card__note { font-size: var(--fm-fs-sm); color: var(--fm-ink-2); }
.fm-card__note b { display: block; font-size: var(--fm-fs-xs); color: var(--fm-lav-700); font-weight: 700; margin-bottom: 2px; }
.fm-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-variant-numeric: tabular-nums; }
.fm-price__now { font-weight: 750; font-size: 1rem; }
.fm-price__was { font-size: var(--fm-fs-sm); color: var(--fm-muted); text-decoration: line-through; font-weight: 500; }
.fm-price__save { font-size: var(--fm-fs-xs); color: var(--fm-mars-700); font-weight: 750; }
.fm-price__note { flex-basis: 100%; font-size: var(--fm-fs-xs); color: var(--fm-muted); font-weight: 500; }
.fm-price__hidden { font-weight: 650; font-size: var(--fm-fs-sm); color: var(--fm-lav-700); }
.fm-stock { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fm-fs-xs); font-weight: 650; color: var(--fm-success); }
.fm-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fm-stock--low { color: var(--fm-warning); }
.fm-stock--out { color: var(--fm-danger); }

/* Grids and rails */
.fm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; list-style: none; margin: 0; padding: 0; }
.fm-grid > li { display: flex; min-width: 0; }
@media (min-width: 768px) { .fm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; } }
@media (min-width: 1100px) { .fm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fm-rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 14px; list-style: none;
  margin: 0 calc(-1 * var(--fm-gutter)); padding: 0 var(--fm-gutter) 6px; scroll-padding-inline: var(--fm-gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.fm-rail__track::-webkit-scrollbar { display: none; }
.fm-rail__track > li { scroll-snap-align: start; display: flex; min-width: 0; }
.fm-rail__nav { display: none; gap: 8px; }
.fm-rail__nav .fm-iconbtn { border: 1.5px solid var(--fm-line-strong); }
.fm-rail__nav .fm-iconbtn:not([disabled]):hover { border-color: var(--fm-ink); background: var(--fm-surface); }
.fm-rail__nav .fm-iconbtn[disabled] { opacity: 0.35; cursor: default; }
@media (min-width: 600px) { .fm-rail__track { grid-auto-columns: 31%; } }
@media (min-width: 1024px) {
  .fm-rail__track { grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; margin: 0; padding: 0 0 6px; scroll-padding-inline: 0; }
  .fm-rail__nav { display: flex; }
}
@media (min-width: 1280px) { .fm-rail__track { grid-auto-columns: calc((100% - 4 * 20px) / 5); } }

/* Tabs */
.fm-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--fm-gutter)) 22px; padding: 2px var(--fm-gutter); }
.fm-tabs::-webkit-scrollbar { display: none; }
.fm-tab { flex: none; min-height: 40px; padding: 0 16px; border-radius: var(--fm-r-pill); border: 1.5px solid var(--fm-line); background: var(--fm-surface); font-weight: 650; font-size: var(--fm-fs-sm); }
.fm-tab:hover { border-color: var(--fm-ink); }
.fm-tab[aria-selected="true"] { background: var(--fm-ink); border-color: var(--fm-ink); color: var(--fm-on-ink); }
@media (min-width: 1024px) { .fm-tabs { margin-inline: 0; padding-inline: 0; } }

/* Picks */
.fm-picks__note { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; font-size: var(--fm-fs-sm); color: var(--fm-muted); max-width: 72ch; }
.fm-picks__note .fm-icon { color: var(--fm-lav-700); width: 18px; height: 18px; margin-top: 2px; }
.fm-picks .fm-grid { gap: 32px 16px; }
@media (min-width: 768px) { .fm-picks .fm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Collections bento */
.fm-bento { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
.fm-col {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  min-height: 260px; height: 100%; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--fm-r-xl); overflow: hidden;
  text-decoration: none; color: var(--fm-ink); transition: transform 0.3s var(--fm-ease);
}
.fm-col:hover { transform: translateY(-3px); }
.fm-col__text { position: relative; z-index: 1; max-width: 30ch; }
.fm-col__title { font-family: var(--fm-font-display); font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.fm-col__tag { margin-top: 8px; color: var(--fm-ink-2); font-size: var(--fm-fs-sm); }
.fm-col__art { position: absolute; left: 0; right: 0; bottom: 0; height: 64%; pointer-events: none; }
.fm-col__art svg { width: 100%; height: 100%; display: block; }
.fm-col__cta { position: relative; z-index: 1; align-self: flex-start; margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--fm-r-pill); background: rgba(255, 255, 255, 0.86); font-weight: 650; font-size: var(--fm-fs-sm); }
@media (min-width: 768px) {
  .fm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-bento > li:first-child { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .fm-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(250px, auto)); gap: 16px; }
  .fm-bento > li:first-child { grid-column: span 2; grid-row: span 2; }
  .fm-bento > li:first-child .fm-col__title { font-size: clamp(2rem, 1.4rem + 1.4vw, 2.75rem); }
  .fm-bento > li:first-child .fm-col__art { height: 70%; }
}

/* Offers */
.fm-offers { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 820px) { .fm-offers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fm-offer { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--fm-surface); border-radius: var(--fm-r-lg); border: 1px solid var(--fm-line); }
.fm-offer__top { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 18px; }
.fm-offer__title { font-family: var(--fm-font-display); font-size: 1.375rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.fm-offer__summary { font-weight: 600; }
.fm-offer__dates { font-size: var(--fm-fs-xs); font-weight: 700; color: var(--fm-muted); }
.fm-offer__conds { margin: 0; padding-left: 18px; font-size: var(--fm-fs-sm); color: var(--fm-ink-2); display: grid; gap: 4px; }
.fm-offer__bottom { position: relative; margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-top: 2px dashed var(--fm-line); }
.fm-offer__bottom::before, .fm-offer__bottom::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--fm-canvas); border: 1px solid var(--fm-line); }
.fm-offer__bottom::before { left: -11px; clip-path: inset(0 0 0 50%); }
.fm-offer__bottom::after { right: -11px; clip-path: inset(0 50% 0 0); }
.fm-code { font-weight: 800; letter-spacing: 0.1em; font-size: 0.9375rem; padding: 8px 12px; border-radius: 10px; background: var(--fm-lav-50); border: 1.5px dashed var(--fm-lav-400); color: var(--fm-lav-700); user-select: all; }

/* Exclusive band (dark scope) */
.fm-on-dark {
  --fm-ink: #F6F3FF; --fm-ink-2: #DCD5F5; --fm-muted: #BEB5E0; --fm-ink-hover: #E4DDFB; --fm-on-ink: #2B2348;
  --fm-line: rgba(255, 255, 255, 0.16); --fm-line-strong: rgba(255, 255, 255, 0.3); --fm-sunken: rgba(255, 255, 255, 0.08);
  --fm-focus: #CFC6F5; --fm-lav-700: #CFC6F5; --fm-lav-400: #9F91D8; --fm-surface: #3A3160; --fm-lav-50: rgba(255, 255, 255, 0.08);
  --fm-success: #86D9AE; --fm-warning: #F4C977; --fm-danger: #FFA393; --fm-mars-700: #FFB59E;
  color: var(--fm-ink);
}
.fm-on-dark .fm-badge--exclusive { background: #5B4C99; color: #fff; }
.fm-on-dark .fm-badge--partner { background: #fff; color: #5B4C99; }
.fm-on-dark .fm-wishbtn { color: #1F1D21; }
.fm-on-dark .fm-wishbtn[aria-pressed="true"] { color: #C2462A; }
.fm-on-dark .fm-card__quick .fm-btn { color: #1F1D21; }
.fm-exclusive { background: var(--fm-plum); border-radius: var(--fm-r-xl); padding: clamp(24px, 4vw, 56px); display: grid; gap: clamp(24px, 3vw, 40px); overflow: hidden; position: relative; }
.fm-exclusive__intro { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.fm-exclusive__intro .fm-eyebrow { color: #F2A488; }
.fm-exclusive__orbit { position: absolute; right: -120px; top: -80px; width: 460px; height: 460px; opacity: 0.35; pointer-events: none; }
.fm-exclusive .fm-grid { position: relative; z-index: 1; }
.fm-exclusive .fm-card__media { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
@media (min-width: 1024px) {
  .fm-exclusive { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; }
  .fm-exclusive .fm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .fm-exclusive .fm-grid > li:nth-child(n+3) { display: none; }
}

/* Brand story */
.fm-story { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.fm-story__art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; border-radius: var(--fm-r-xl); background: var(--fm-tone-sand); display: grid; place-items: center; overflow: hidden; }
.fm-story__art svg { width: 100%; height: 100%; display: block; }
.fm-values { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 28px; list-style: none; margin: 28px 0; padding: 0; }
.fm-value { display: flex; gap: 14px; align-items: flex-start; }
.fm-value__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--fm-lav-100); color: var(--fm-lav-700); }
.fm-value h3 { font-size: 1rem; font-weight: 700; }
.fm-value p { color: var(--fm-muted); font-size: var(--fm-fs-sm); margin-top: 2px; }
@media (min-width: 560px) { .fm-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .fm-story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* Community */
.fm-community { display: grid; gap: 16px; }
.fm-ugc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.fm-ugc li { aspect-ratio: 1; border-radius: var(--fm-r-md); border: 1.5px dashed var(--fm-line-strong); display: grid; place-items: center; align-content: center; gap: 6px; padding: 8px; text-align: center; color: var(--fm-muted); font-size: 0.75rem; font-weight: 600; background: var(--fm-surface); }
.fm-ugc .fm-icon { color: var(--fm-lav-500); }
.fm-events { border-radius: var(--fm-r-lg); background: var(--fm-tone-sage); padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fm-events h3 { font-family: var(--fm-font-display); font-size: var(--fm-fs-h3); font-weight: 700; line-height: 1.15; }
@media (min-width: 900px) {
  .fm-community { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: stretch; }
  .fm-ugc { grid-template-columns: repeat(6, minmax(0, 1fr)); align-self: start; }
}

/* Newsletter */
.fm-news { border-radius: var(--fm-r-xl); background: var(--fm-lav-100); padding: clamp(24px, 5vw, 56px); display: grid; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.fm-news__form { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.fm-news__row { display: flex; flex-wrap: wrap; gap: 10px; }
.fm-news__row .fm-input { flex: 1 1 220px; }
.fm-news__msg { min-height: 1.4em; }
@media (min-width: 900px) { .fm-news { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.fm-footer { background: var(--fm-ink); margin-top: clamp(40px, 6vw, 80px); padding-block: clamp(40px, 6vw, 64px) 28px; }
.fm-footer.fm-on-dark { --fm-ink: #F1EDF8; background: #1F1D21; }
.fm-footer__grid { display: grid; gap: 32px 24px; grid-template-columns: minmax(0, 1fr); }
.fm-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 40ch; }
.fm-footer__brand .fm-logo { color: #F6F3FF; }
.fm-footer h2 { font-size: 0.75rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: #BEB5E0; margin-bottom: 14px; }
.fm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fm-footer li a { display: inline-block; padding: 5px 0; color: #ECE7F5; text-decoration: none; font-size: 0.9375rem; }
.fm-footer li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fm-footer__meta { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: 18px; font-size: 0.8125rem; color: #C7C0E2; }
.fm-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; }
.fm-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--fm-r-pill); padding: 6px 12px; font-size: 0.8125rem; color: #ECE7F5; }
.fm-pill--wait { border-style: dashed; color: #C7C0E2; }
.fm-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.fm-footer__legal button { border: 0; background: transparent; color: #CFC6F5; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; font-size: inherit; }
@media (min-width: 640px) {
  .fm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-footer__brand { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .fm-footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); }
  .fm-footer__brand { grid-column: auto; }
  .fm-footer__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fm-footer__legal { grid-column: 1 / -1; }
}

/* ---------- Dialogs, drawers, toasts ---------- */
dialog { color: var(--fm-ink); }
.fm-dialog {
  border: 0; padding: 0; border-radius: var(--fm-r-xl); background: var(--fm-surface); box-shadow: var(--fm-shadow-3);
  width: min(560px, calc(100vw - 24px)); max-height: min(88dvh, 820px); overflow: hidden;
}
.fm-dialog[open] { display: flex; flex-direction: column; animation: fm-pop 0.22s var(--fm-ease); }
.fm-dialog::backdrop { background: rgba(31, 29, 33, 0.48); }
.fm-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--fm-line); flex: none; }
.fm-dialog__title { font-family: var(--fm-font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.fm-dialog__body { padding: 20px 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.fm-dialog__foot { padding: 14px 22px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--fm-line); flex: none; display: grid; gap: 10px; }
.fm-dialog--wide { width: min(940px, calc(100vw - 24px)); }
.fm-drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); border-radius: var(--fm-r-xl) 0 0 var(--fm-r-xl);
  padding-top: env(safe-area-inset-top, 0px);
}
.fm-drawer[open] { animation: fm-in-right 0.28s var(--fm-ease); }
.fm-drawer--left { margin: 0 auto 0 0; border-radius: 0 var(--fm-r-xl) var(--fm-r-xl) 0; }
.fm-drawer--left[open] { animation: fm-in-left 0.28s var(--fm-ease); }
.fm-sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 90dvh; border-radius: var(--fm-r-xl) var(--fm-r-xl) 0 0; }
.fm-sheet[open] { animation: fm-in-up 0.28s var(--fm-ease); }
.fm-search {
  margin: 0 auto auto; width: min(780px, 100vw); max-height: 100dvh; border-radius: 0 0 var(--fm-r-xl) var(--fm-r-xl);
  padding-top: env(safe-area-inset-top, 0px);
}
.fm-search[open] { animation: fm-in-down 0.24s var(--fm-ease); }
@media (max-width: 640px) { .fm-search { height: 100dvh; border-radius: 0; } }
.fm-search__bar { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--fm-line); }
.fm-search__bar .fm-icon { color: var(--fm-muted); }
.fm-search__input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; font-size: 1.125rem; font-weight: 550; }
.fm-search__input:focus { outline: none; }
.fm-search__body { padding: 16px 20px 24px; overflow-y: auto; display: grid; gap: 20px; }
.fm-search__label { font-size: var(--fm-fs-xs); font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fm-muted); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.fm-search__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fm-result { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--fm-r-md); text-decoration: none; cursor: pointer; }
.fm-result[aria-selected="true"], .fm-result:hover { background: var(--fm-canvas); }
.fm-result svg { width: 52px; height: 65px; border-radius: 10px; flex: none; }
.fm-result__name { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.fm-result__meta { font-size: var(--fm-fs-xs); color: var(--fm-muted); }
.fm-result mark { background: var(--fm-lav-100); color: inherit; border-radius: 3px; padding: 0 1px; }

.fm-toasts { position: fixed; z-index: 120; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100vw - 24px)); display: grid; gap: 8px; pointer-events: none; }
@media (min-width: 1024px) { .fm-toasts { bottom: 24px; } }
.fm-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: var(--fm-r-md); background: var(--fm-ink); color: #fff; box-shadow: var(--fm-shadow-3); font-size: var(--fm-fs-sm); font-weight: 600; animation: fm-in-up 0.25s var(--fm-ease); }
.fm-toast span { flex: 1; }
.fm-toast button { border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 700; border-radius: var(--fm-r-pill); padding: 8px 12px; }

@keyframes fm-pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes fm-in-right { from { transform: translateX(100%); } }
@keyframes fm-in-left { from { transform: translateX(-100%); } }
@keyframes fm-in-up { from { transform: translateY(24px); opacity: 0; } }
@keyframes fm-in-down { from { transform: translateY(-24px); opacity: 0; } }

/* Cart */
.fm-cartlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.fm-cartitem { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.fm-cartitem svg { width: 76px; height: 95px; border-radius: 12px; display: block; }
.fm-cartitem__name { font-weight: 650; font-size: 0.9375rem; line-height: 1.3; text-decoration: none; }
.fm-cartitem__meta { font-size: var(--fm-fs-xs); color: var(--fm-muted); margin-top: 2px; }
.fm-cartitem__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.fm-cartitem__remove { border: 0; background: transparent; color: var(--fm-muted); font-size: var(--fm-fs-xs); font-weight: 650; text-decoration: underline; padding: 6px 0; }
.fm-totalrow { display: flex; justify-content: space-between; align-items: baseline; font-weight: 750; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.fm-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 40px 8px; color: var(--fm-muted); }
.fm-empty .fm-mark { width: 72px; height: 72px; }

/* Mobile menu drawer */
.fm-menu__list { list-style: none; margin: 0; padding: 0; display: grid; }
.fm-menu__list a, .fm-menu__list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 50px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--fm-line); background: transparent; text-decoration: none; font-weight: 600; font-size: 1rem; text-align: left; }
.fm-menu details summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 4px; border-bottom: 1px solid var(--fm-line); font-weight: 700; cursor: pointer; }
.fm-menu details summary::-webkit-details-marker { display: none; }
.fm-menu details[open] summary .fm-chev { transform: rotate(180deg); }
.fm-menu__cats { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fm-menu__cats a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--fm-r-md); background: var(--fm-canvas); text-decoration: none; font-size: 0.8125rem; font-weight: 600; line-height: 1.25; }
.fm-menu__cats svg { width: 40px; height: 40px; border-radius: 10px; flex: none; }

/* Quick view */
.fm-qv { display: grid; gap: 20px; }
.fm-qv__media { border-radius: var(--fm-r-lg); overflow: hidden; aspect-ratio: 4 / 5; max-height: 52dvh; margin-inline: auto; width: 100%; }
.fm-qv__media svg { width: 100%; height: 100%; display: block; }
@media (min-width: 760px) { .fm-qv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fm-qv__media { max-height: none; } }

/* ---------- Shop ---------- */
.fm-pagehead { padding-block: clamp(20px, 3vw, 36px) clamp(14px, 2vw, 22px); display: flex; flex-direction: column; gap: 10px; }
.fm-crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: var(--fm-fs-sm); color: var(--fm-muted); }
.fm-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--fm-line-strong); }
.fm-crumbs a { text-decoration: none; }
.fm-crumbs a:hover { text-decoration: underline; color: var(--fm-ink); }
.fm-shop { display: grid; gap: 24px; padding-bottom: 24px; }
.fm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.fm-toolbar__left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fm-toolbar .fm-select { min-height: 42px; width: auto; border-radius: var(--fm-r-pill); font-weight: 600; font-size: var(--fm-fs-sm); }
.fm-filterbtn { position: relative; }
.fm-filterbtn .fm-count { top: -6px; right: -6px; }
.fm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fm-chips:empty { display: none; }
.fm-filters { display: none; }
.fm-fgroup { border-top: 1px solid var(--fm-line); }
.fm-fgroup summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 700; cursor: pointer; }
.fm-fgroup summary::-webkit-details-marker { display: none; }
.fm-fgroup[open] summary .fm-chev { transform: rotate(180deg); }
.fm-fgroup__body { display: grid; gap: 10px; padding-bottom: 16px; }
.fm-fopt { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; cursor: pointer; min-height: 28px; }
.fm-fopt input { width: 18px; height: 18px; accent-color: var(--fm-lav-700); flex: none; margin: 0; }
.fm-fopt__count { margin-left: auto; font-size: var(--fm-fs-xs); color: var(--fm-muted); font-variant-numeric: tabular-nums; }
.fm-fopt.is-empty { color: var(--fm-muted); }
.fm-price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fm-price-range .fm-input { min-height: 42px; }
.fm-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-presets button { border: 1px solid var(--fm-line); background: var(--fm-surface); border-radius: var(--fm-r-pill); padding: 6px 10px; font-size: var(--fm-fs-xs); font-weight: 650; }
.fm-presets button[aria-pressed="true"] { background: var(--fm-ink); color: var(--fm-on-ink); border-color: var(--fm-ink); }
.fm-loadmore { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 36px; font-size: var(--fm-fs-sm); color: var(--fm-muted); }
@media (min-width: 1024px) {
  .fm-shop { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; }
  .fm-filters { display: block; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 140px); align-self: start; max-height: calc(100dvh - 160px); overflow-y: auto; padding-right: 6px; }
  .fm-filterbtn { display: none; }
  .fm-shop .fm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) { .fm-shop .fm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Product page ---------- */
.fm-pdp { display: grid; gap: 28px; padding-bottom: 16px; }
.fm-gallery { display: grid; gap: 12px; min-width: 0; }
.fm-gallery__main { position: relative; border-radius: var(--fm-r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--fm-sunken); }
.fm-gallery__main > svg { display: block; width: 100%; height: 100%; transition: transform 0.25s ease-out; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.fm-gallery__main.is-zoomed > svg { transform: scale(2); }
.fm-gallery__zoom { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(255, 255, 255, 0.92); box-shadow: var(--fm-shadow-1); }
.fm-gallery__flag { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.fm-thumbs { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.fm-thumbs button { display: block; width: 72px; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: var(--fm-sunken); }
.fm-thumbs button[aria-current="true"] { border-color: var(--fm-ink); }
.fm-thumbs svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; }
.fm-buy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.fm-buy__title { font-family: var(--fm-font-display); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
.fm-buy .fm-price__now { font-size: 1.625rem; }
.fm-buy .fm-price__was { font-size: 1rem; }
.fm-buy__short { color: var(--fm-ink-2); font-size: 1.0625rem; }
.fm-swatches { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.fm-swatches legend { font-size: var(--fm-fs-sm); font-weight: 650; margin-bottom: 10px; padding: 0; }
.fm-swatch { position: relative; }
.fm-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fm-swatch label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border-radius: var(--fm-r-pill); border: 1.5px solid var(--fm-line-strong); background: var(--fm-surface); font-size: var(--fm-fs-sm); font-weight: 650; cursor: pointer; }
.fm-swatch label i { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.fm-swatch input:checked + label { border-color: var(--fm-ink); box-shadow: inset 0 0 0 1px var(--fm-ink); }
.fm-swatch input:focus-visible + label { outline: 2.5px solid var(--fm-focus); outline-offset: 2px; }
.fm-swatch input:disabled + label { color: var(--fm-muted); text-decoration: line-through; cursor: not-allowed; opacity: 0.7; }
.fm-buy__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fm-buy__row .fm-btn--solid { flex: 1 1 200px; }
.fm-buy__now { width: 100%; }
.fm-infolist { list-style: none; margin: 0; padding: 16px; display: grid; gap: 12px; border-radius: var(--fm-r-lg); background: var(--fm-surface); border: 1px solid var(--fm-line); font-size: var(--fm-fs-sm); }
.fm-infolist li { display: flex; gap: 12px; align-items: flex-start; }
.fm-infolist .fm-icon { color: var(--fm-lav-700); width: 20px; height: 20px; }
.fm-merchant { display: grid; gap: 12px; padding: 18px; border-radius: var(--fm-r-lg); background: var(--fm-lav-50); border: 1px solid var(--fm-lav-200); }
.fm-merchant__name { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.fm-merchant__logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--fm-surface); font-family: var(--fm-font-display); font-weight: 800; color: var(--fm-lav-700); border: 1px solid var(--fm-lav-200); }
.fm-acc { border-top: 1px solid var(--fm-line); }
.fm-acc:last-of-type { border-bottom: 1px solid var(--fm-line); }
.fm-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-weight: 700; cursor: pointer; }
.fm-acc summary::-webkit-details-marker { display: none; }
.fm-acc[open] summary .fm-chev { transform: rotate(180deg); }
.fm-acc__body { padding-bottom: 18px; color: var(--fm-ink-2); display: grid; gap: 10px; }
.fm-acc__body ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.fm-specs { width: 100%; border-collapse: collapse; font-size: var(--fm-fs-sm); }
.fm-specs th, .fm-specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--fm-line); vertical-align: top; }
.fm-specs th { width: 40%; color: var(--fm-muted); font-weight: 550; padding-right: 12px; }
.fm-specs tr:last-child th, .fm-specs tr:last-child td { border-bottom: 0; }
.fm-stickybuy {
  position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); z-index: 44;
  display: flex; align-items: center; gap: 12px; padding: 10px max(var(--fm-gutter), env(safe-area-inset-right, 0px)) 10px max(var(--fm-gutter), env(safe-area-inset-left, 0px));
  background: var(--fm-surface); border-top: 1px solid var(--fm-line); box-shadow: 0 -10px 30px -24px rgba(31, 29, 33, 0.5);
  transform: translateY(130%); transition: transform 0.25s var(--fm-ease);
}
.fm-stickybuy.is-visible { transform: none; }
.fm-stickybuy__info { flex: 1; min-width: 0; }
.fm-stickybuy__name { font-size: var(--fm-fs-xs); color: var(--fm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) {
  .fm-pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
  .fm-gallery { grid-template-columns: 84px minmax(0, 1fr); align-items: start; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 136px); }
  .fm-thumbs { flex-direction: column; order: -1; }
  .fm-thumbs button { width: 84px; }
}
@media (min-width: 1024px) { .fm-stickybuy { display: none; } }

/* ---------- Content pages ---------- */
.fm-page { max-width: 780px; display: grid; gap: 22px; padding-bottom: 24px; }
.fm-page h2 { font-family: var(--fm-font-display); font-size: var(--fm-fs-h3); font-weight: 700; line-height: 1.2; margin-top: 8px; }
.fm-page ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--fm-ink-2); }
.fm-page p { color: var(--fm-ink-2); }
.fm-tiles { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .fm-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fm-panel { background: var(--fm-surface); border: 1px solid var(--fm-line); border-radius: var(--fm-r-lg); padding: clamp(18px, 3vw, 28px); }
.fm-forms { display: grid; gap: 20px; }
@media (min-width: 900px) { .fm-forms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Status dialog */
.fm-status { display: grid; gap: 18px; }
.fm-status h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 750; margin-bottom: 6px; }
.fm-status ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: var(--fm-fs-sm); color: var(--fm-ink-2); }
.fm-dotlabel { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* ---------- Checkout preview ---------- */
.fm-checkout { display: grid; gap: 24px; padding-bottom: 24px; }
.fm-checkout fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.fm-checkout legend { font-family: var(--fm-font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; padding: 0; }
.fm-twocol { display: grid; gap: 14px; }
@media (min-width: 640px) { .fm-twocol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fm-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--fm-r-md); border: 1.5px solid var(--fm-line-strong); background: var(--fm-surface); cursor: pointer; }
.fm-option input { width: 20px; height: 20px; accent-color: var(--fm-lav-700); margin: 1px 0 0; flex: none; }
.fm-option:has(input:checked) { border-color: var(--fm-ink); box-shadow: inset 0 0 0 1px var(--fm-ink); }
.fm-option:has(input:disabled) { opacity: 0.6; cursor: not-allowed; background: var(--fm-canvas); }
.fm-option__main { flex: 1; display: grid; gap: 2px; }
.fm-option__title { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fm-option__text { font-size: var(--fm-fs-sm); color: var(--fm-muted); }
.fm-summary { display: grid; gap: 14px; }
.fm-summary__line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) {
  .fm-checkout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
  .fm-checkout__aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 140px); }
}

/* ---------- Style guide ---------- */
.fm-sg { display: grid; gap: 40px; padding-bottom: 24px; }
.fm-sg h2 { font-family: var(--fm-font-display); font-size: var(--fm-fs-h3); font-weight: 700; margin-bottom: 16px; }
.fm-swatchgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); list-style: none; margin: 0; padding: 0; }
.fm-sw { border-radius: var(--fm-r-md); overflow: hidden; border: 1px solid var(--fm-line); background: var(--fm-surface); font-size: var(--fm-fs-xs); }
.fm-sw__chip { height: 72px; }
.fm-sw__meta { padding: 10px 12px; display: grid; gap: 2px; }
.fm-sw__meta b { font-size: 0.8125rem; }
.fm-typescale { display: grid; gap: 18px; }
.fm-typescale > div { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--fm-line); min-width: 0; }
.fm-typescale code { font-size: 0.75rem; color: var(--fm-muted); }
.fm-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fm-directions { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .fm-directions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fm-dir { border-radius: var(--fm-r-lg); padding: 22px; display: grid; gap: 10px; align-content: start; min-height: 220px; }
.fm-dir h3 { font-family: var(--fm-font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.fm-dir p { font-size: var(--fm-fs-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Empty-catalogue notice (shown while real products are being added) */
.fm-soon { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.fm-soon > div { flex: 1 1 320px; min-width: 0; }
