/* ==========================================================================
   FishMart — premium seafood brand design system
   Built on Bootstrap 5 (vendored) with a custom token layer.
   ========================================================================== */
:root {
  --fm-navy: #06202b;
  --fm-navy-soft: #0d3243;
  --fm-teal: #0e7490;
  --fm-teal-bright: #12a3c4;
  --fm-coral: #f06449;
  --fm-coral-dark: #d64c33;
  --fm-sand: #f8f5ef;
  --fm-sand-dark: #efe8dc;
  --fm-ink: #10222b;
  --fm-muted: #5f7480;
  --fm-line: #e3e8ec;
  --fm-success: #15803d;
  --fm-warn: #b45309;
  --fm-danger: #b91c1c;

  --fm-radius: 16px;
  --fm-radius-sm: 10px;
  --fm-radius-lg: 26px;
  --fm-shadow-sm: 0 1px 2px rgba(6, 32, 43, .06), 0 4px 14px rgba(6, 32, 43, .05);
  --fm-shadow: 0 10px 30px rgba(6, 32, 43, .10);
  --fm-shadow-lg: 0 24px 60px rgba(6, 32, 43, .16);
  --fm-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fm-display: "Georgia", "Times New Roman", serif;
  --fm-container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fm-font);
  color: var(--fm-ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .fm-display { font-family: var(--fm-display); letter-spacing: -.02em; color: var(--fm-navy); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.2; }
h3 { font-size: 1.25rem; }
a { color: var(--fm-teal); text-decoration: none; }
a:hover { color: var(--fm-coral-dark); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--fm-teal-bright); outline-offset: 2px; border-radius: 4px; }

.fm-container { max-width: var(--fm-container); margin: 0 auto; padding: 0 20px; }
.fm-section { padding: 72px 0; }
.fm-section--tight { padding: 44px 0; }
.fm-eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
  font-weight: 700; color: var(--fm-teal);
}
.fm-muted { color: var(--fm-muted); }
.fm-serif { font-family: var(--fm-display); }
.text-danger { color: var(--fm-danger) !important; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .72rem 1.5rem; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn:active { transform: translateY(1px); }
.btn-fm { background: var(--fm-coral); border: 1px solid var(--fm-coral); color: #fff; box-shadow: 0 8px 22px rgba(240, 100, 73, .26); }
.btn-fm:hover, .btn-fm:focus { background: var(--fm-coral-dark); border-color: var(--fm-coral-dark); color: #fff; }
.btn-fm-outline { border: 1.5px solid var(--fm-navy); color: var(--fm-navy); background: transparent; }
.btn-fm-outline:hover { background: var(--fm-navy); color: #fff; }
.btn-fm-dark { background: var(--fm-navy); border-color: var(--fm-navy); color: #fff; }
.btn-fm-dark:hover { background: var(--fm-navy-soft); color: #fff; }
.btn-fm-ghost { background: #fff; border: 1px solid var(--fm-line); color: var(--fm-ink); }
.btn-fm-ghost:hover { border-color: var(--fm-teal); color: var(--fm-teal); }
.btn-sm { padding: .45rem 1rem; font-size: .86rem; }
.btn-lg { padding: .95rem 2rem; font-size: 1.02rem; }

/* ---------- Announcement + header ---------- */
.fm-announce { background: var(--fm-navy); color: #d7e6ec; font-size: .84rem; letter-spacing: .02em; }
.fm-announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fm-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--fm-line); }
.fm-header__row { display: flex; align-items: center; gap: 22px; padding: 14px 0; }
.fm-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fm-display); font-size: 1.5rem; color: var(--fm-navy); font-weight: 700; }
.fm-logo__mark { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(140deg, var(--fm-teal), var(--fm-navy)); display: grid; place-items: center; color: #fff; font-size: 1.1rem; }
.fm-logo:hover { color: var(--fm-navy); }
.fm-search { flex: 1; max-width: 420px; position: relative; }
.fm-search input {
  width: 100%; border: 1px solid var(--fm-line); background: var(--fm-sand);
  border-radius: 999px; padding: .62rem 1rem .62rem 2.5rem; font-size: .92rem;
}
.fm-search input:focus { background: #fff; border-color: var(--fm-teal); box-shadow: 0 0 0 4px rgba(14,116,144,.10); outline: none; }
.fm-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--fm-muted); }
.fm-suggest { position: absolute; inset-inline: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--fm-line); border-radius: var(--fm-radius); box-shadow: var(--fm-shadow); overflow: hidden; z-index: 50; }
.fm-suggest a { display: flex; gap: 10px; align-items: center; padding: 10px 14px; color: var(--fm-ink); border-bottom: 1px solid var(--fm-line); }
.fm-suggest a:last-child { border-bottom: 0; }
.fm-suggest a:hover { background: var(--fm-sand); }
.fm-suggest img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.fm-nav-links { display: flex; gap: 6px; align-items: center; }
.fm-nav-links a { padding: .45rem .7rem; border-radius: 999px; color: var(--fm-ink); font-weight: 500; font-size: .93rem; }
.fm-nav-links a:hover, .fm-nav-links a.is-active { background: var(--fm-sand); color: var(--fm-teal); }
.fm-icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--fm-line); color: var(--fm-ink); background: #fff; }
.fm-icon-btn:hover { border-color: var(--fm-teal); color: var(--fm-teal); }
.fm-badge-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--fm-coral); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.fm-catbar { border-top: 1px solid var(--fm-line); background: #fff; }
.fm-catbar__scroll { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.fm-catbar__scroll::-webkit-scrollbar { display: none; }
.fm-catbar a { white-space: nowrap; font-size: .88rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--fm-line); color: var(--fm-ink); }
.fm-catbar a:hover, .fm-catbar a.is-active { background: var(--fm-navy); color: #fff; border-color: var(--fm-navy); }

/* ---------- Hero ---------- */
.fm-hero { position: relative; background: linear-gradient(120deg, #06202b 0%, #0b3b4d 55%, #0e7490 100%); color: #fff; overflow: hidden; }
.fm-hero:after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 20%, rgba(18,163,196,.35), transparent 45%), radial-gradient(circle at 10% 90%, rgba(240,100,73,.18), transparent 40%); pointer-events: none; }
.fm-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 76px 0 84px; }
.fm-hero h1 { color: #fff; }
.fm-hero p { color: #cfe3ea; font-size: 1.07rem; max-width: 46ch; }
.fm-hero__media { position: relative; border-radius: var(--fm-radius-lg); overflow: hidden; box-shadow: var(--fm-shadow-lg); aspect-ratio: 4/3.2; background: #0b3b4d; }
.fm-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.fm-hero__chip { position: absolute; bottom: 18px; left: 18px; background: rgba(255,255,255,.94); color: var(--fm-navy); border-radius: 14px; padding: 10px 14px; font-size: .82rem; font-weight: 600; box-shadow: var(--fm-shadow-sm); }
.fm-trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.fm-trust span { display: inline-flex; gap: 8px; align-items: center; font-size: .88rem; color: #d7e6ec; }
.fm-trust i { color: var(--fm-teal-bright); }

/* ---------- Value strip ---------- */
.fm-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fm-value { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--fm-line); border-radius: var(--fm-radius); background: #fff; }
.fm-value i { font-size: 1.3rem; color: var(--fm-teal); }
.fm-value strong { display: block; font-size: .95rem; color: var(--fm-navy); }
.fm-value small { color: var(--fm-muted); }

/* ---------- Product cards ---------- */
.fm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.fm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fm-card {
  background: #fff; border: 1px solid var(--fm-line); border-radius: var(--fm-radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fm-card:hover { transform: translateY(-4px); box-shadow: var(--fm-shadow); border-color: #d5dee4; }
.fm-card__media { position: relative; aspect-ratio: 4/3; background: var(--fm-sand); overflow: hidden; }
.fm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fm-card:hover .fm-card__media img { transform: scale(1.05); }
.fm-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fm-card__title { font-family: var(--fm-display); font-size: 1.06rem; color: var(--fm-navy); font-weight: 700; line-height: 1.3; }
.fm-card__title a { color: inherit; }
.fm-card__meta { font-size: .8rem; color: var(--fm-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fm-price { display: flex; align-items: baseline; gap: 8px; }
.fm-price__now { font-size: 1.12rem; font-weight: 700; color: var(--fm-navy); }
.fm-price__was { font-size: .84rem; color: var(--fm-muted); text-decoration: line-through; }
.fm-price__unit { font-size: .76rem; color: var(--fm-muted); }
.fm-pill { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.fm-pill--fresh { background: #e7f6ee; color: var(--fm-success); }
.fm-pill--frozen { background: #e6f2fb; color: #1d4ed8; }
.fm-pill--sale { background: rgba(240,100,73,.12); color: var(--fm-coral-dark); }
.fm-pill--low { background: #fef3c7; color: var(--fm-warn); }
.fm-pill--out { background: #f1f5f9; color: #64748b; }
.fm-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.fm-card__form { margin-top: auto; }
.fm-card__form select, .fm-card__form input { font-size: .86rem; }
.fm-card__cta { display: flex; gap: 8px; }
.fm-card__cta .btn { flex: 1; }

/* ---------- Category tiles ---------- */
.fm-cat-tile { position: relative; border-radius: var(--fm-radius); overflow: hidden; aspect-ratio: 1/1.02; display: block; background: var(--fm-navy); }
.fm-cat-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .5s ease, opacity .3s; }
.fm-cat-tile:hover img { transform: scale(1.06); opacity: .92; }
.fm-cat-tile__label { position: absolute; inset: auto 0 0 0; padding: 16px; color: #fff; background: linear-gradient(transparent, rgba(6,32,43,.88)); }
.fm-cat-tile__label strong { display: block; font-family: var(--fm-display); font-size: 1.08rem; }
.fm-cat-tile__label small { color: #cfe3ea; }

/* ---------- Sections ---------- */
.fm-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }
.fm-section-head p { margin: 6px 0 0; color: var(--fm-muted); max-width: 62ch; }
.fm-band { background: var(--fm-sand); }
.fm-band--navy { background: var(--fm-navy); color: #e6eef2; }
.fm-band--navy h2 { color: #fff; }

/* ---------- Product detail ---------- */
.fm-pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.fm-gallery__main { border-radius: var(--fm-radius-lg); overflow: hidden; border: 1px solid var(--fm-line); aspect-ratio: 1/1; background: var(--fm-sand); }
.fm-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.fm-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.fm-gallery__thumbs button { border: 2px solid transparent; border-radius: 12px; overflow: hidden; padding: 0; width: 76px; height: 76px; background: var(--fm-sand); }
.fm-gallery__thumbs button.is-active { border-color: var(--fm-teal); }
.fm-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.fm-buybox { border: 1px solid var(--fm-line); border-radius: var(--fm-radius); padding: 22px; background: #fff; box-shadow: var(--fm-shadow-sm); }
.fm-weight-options { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-weight-options input { position: absolute; opacity: 0; pointer-events: none; }
.fm-weight-options label { border: 1.5px solid var(--fm-line); border-radius: 999px; padding: .42rem .95rem; font-size: .88rem; cursor: pointer; font-weight: 600; }
.fm-weight-options input:checked + label { border-color: var(--fm-teal); background: rgba(14,116,144,.08); color: var(--fm-teal); }
.fm-weight-options input:focus-visible + label { outline: 3px solid var(--fm-teal-bright); outline-offset: 2px; }
.fm-cut-options .form-check { border: 1.5px solid var(--fm-line); border-radius: 12px; padding: 10px 12px 10px 38px; margin-bottom: 8px; }
.fm-cut-options .form-check:has(input:checked) { border-color: var(--fm-teal); background: rgba(14,116,144,.05); }
.fm-price-live { background: var(--fm-sand); border-radius: var(--fm-radius); padding: 16px; }
.fm-spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; font-size: .9rem; }
.fm-spec dt { color: var(--fm-muted); font-weight: 500; }
.fm-spec dd { margin: 0; font-weight: 600; color: var(--fm-ink); }
.fm-stars { color: #f59e0b; letter-spacing: 1px; }

/* ---------- Tables / lists ---------- */
.fm-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.fm-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fm-muted); padding: 10px 12px; border-bottom: 1px solid var(--fm-line); font-weight: 700; }
.fm-table td { padding: 14px 12px; border-bottom: 1px solid var(--fm-line); vertical-align: middle; }
.fm-table tr:last-child td { border-bottom: 0; }
.fm-table tbody tr:hover { background: #fafcfd; }
.fm-empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--fm-line); border-radius: var(--fm-radius); color: var(--fm-muted); }

/* ---------- Status pills ---------- */
.fm-status { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: capitalize; }
.fm-status--success { background: #dcfce7; color: #166534; }
.fm-status--warn { background: #fef3c7; color: #92400e; }
.fm-status--info { background: #dbeafe; color: #1e40af; }
.fm-status--accent { background: #ffe8e2; color: #b3391f; }
.fm-status--danger { background: #fee2e2; color: #991b1b; }
.fm-status--muted { background: #f1f5f9; color: #475569; }

/* ---------- Cart ---------- */
.fm-cart-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 32px; align-items: start; }
.fm-cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--fm-line); }
.fm-cart-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; background: var(--fm-sand); }
.fm-cart-item__controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.fm-cart-item__controls select, .fm-cart-item__controls input { font-size: .86rem; padding: .38rem .6rem; border-radius: 10px; border: 1px solid var(--fm-line); }
.fm-summary { position: sticky; top: 96px; border: 1px solid var(--fm-line); border-radius: var(--fm-radius); padding: 22px; background: #fff; box-shadow: var(--fm-shadow-sm); }
.fm-summary__row { display: flex; justify-content: space-between; font-size: .93rem; padding: 7px 0; color: var(--fm-muted); }
.fm-summary__row strong { color: var(--fm-ink); }
.fm-summary__total { display: flex; justify-content: space-between; font-size: 1.16rem; font-weight: 700; color: var(--fm-navy); border-top: 1px solid var(--fm-line); margin-top: 10px; padding-top: 14px; }
.fm-progress { height: 8px; border-radius: 999px; background: var(--fm-sand-dark); overflow: hidden; }
.fm-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--fm-teal), var(--fm-teal-bright)); }

/* ---------- Forms / auth ---------- */
.form-label { font-weight: 600; font-size: .88rem; color: var(--fm-navy); }
.form-control, .form-select { border-radius: 12px; border-color: var(--fm-line); padding: .68rem .9rem; font-size: .94rem; }
.form-control:focus, .form-select:focus { border-color: var(--fm-teal); box-shadow: 0 0 0 4px rgba(14,116,144,.12); }
.form-check-input:checked { background-color: var(--fm-teal); border-color: var(--fm-teal); }
.fm-auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; }
.fm-auth__aside { background: linear-gradient(150deg, var(--fm-navy), var(--fm-teal)); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.fm-auth__aside h2 { color: #fff; }
.fm-auth__aside ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.fm-auth__aside li { display: flex; gap: 10px; align-items: flex-start; color: #d7e6ec; }
.fm-auth__aside i { color: var(--fm-teal-bright); }
.fm-auth__body { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.fm-auth__form { max-width: 460px; width: 100%; margin: 0 auto; }
.fm-alert { border-radius: var(--fm-radius-sm); border: 1px solid transparent; font-size: .9rem; }
.fm-alert--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.fm-alert--info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.fm-alert--success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.fm-alert--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ---------- Steps / tracking ---------- */
.fm-steps { display: flex; gap: 0; margin: 18px 0 6px; }
.fm-step { flex: 1; text-align: center; position: relative; font-size: .76rem; color: var(--fm-muted); }
.fm-step:before { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: var(--fm-line); }
.fm-step:first-child:before { display: none; }
.fm-step__dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--fm-line); display: grid; place-items: center; margin: 0 auto 6px; font-size: .7rem; color: var(--fm-muted); position: relative; z-index: 2; }
.fm-step.is-done .fm-step__dot { background: var(--fm-teal); border-color: var(--fm-teal); color: #fff; }
.fm-step.is-done:before { background: var(--fm-teal); }
.fm-step.is-current .fm-step__dot { border-color: var(--fm-coral); color: var(--fm-coral); }

/* ---------- Panels ---------- */
.fm-panel { border: 1px solid var(--fm-line); border-radius: var(--fm-radius); background: #fff; padding: 24px; }
.fm-panel + .fm-panel { margin-top: 20px; }
.fm-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.fm-panel h3, .fm-panel h2 { margin: 0; }
.fm-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--fm-navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.fm-kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: .92rem; }
.fm-kv dt { color: var(--fm-muted); }
.fm-kv dd { margin: 0; font-weight: 600; }

/* ---------- Accordion (FAQ) ---------- */
.fm-faq .accordion-item { border: 1px solid var(--fm-line); border-radius: var(--fm-radius-sm) !important; margin-bottom: 10px; overflow: hidden; }
.fm-faq .accordion-button { font-weight: 600; color: var(--fm-navy); }
.fm-faq .accordion-button:not(.collapsed) { background: var(--fm-sand); color: var(--fm-navy); box-shadow: none; }
.fm-faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(14,116,144,.2); }

/* ---------- Footer ---------- */
.fm-footer { background: var(--fm-navy); color: #a9c0cb; padding: 60px 0 28px; margin-top: 60px; }
.fm-footer h4 { color: #fff; font-family: var(--fm-font); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.fm-footer a { color: #a9c0cb; font-size: .9rem; display: block; padding: 3px 0; }
.fm-footer a:hover { color: #fff; }
.fm-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.fm-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fm-newsletter { display: flex; gap: 8px; }
.fm-newsletter input { border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; padding: .6rem 1rem; font-size: .88rem; flex: 1; }
.fm-newsletter input::placeholder { color: #8ba7b3; }

/* ---------- Dashboard ---------- */
.fm-dash { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: #f6f8fa; }
.fm-dash__side { background: var(--fm-navy); color: #cfe0e8; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.fm-dash__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--fm-display); font-size: 1.24rem; padding: 4px 10px 20px; }
.fm-dash__group { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #6f8b98; padding: 16px 10px 6px; }
.fm-dash__link { display: flex; align-items: center; gap: 10px; padding: .55rem .7rem; border-radius: 10px; color: #cfe0e8; font-size: .9rem; }
.fm-dash__link:hover { background: rgba(255,255,255,.07); color: #fff; }
.fm-dash__link.is-active { background: var(--fm-teal); color: #fff; }
.fm-dash__main { min-width: 0; }
.fm-dash__top { background: #fff; border-bottom: 1px solid var(--fm-line); padding: 14px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 20; }
.fm-dash__content { padding: 26px; }
.fm-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fm-kpi { background: #fff; border: 1px solid var(--fm-line); border-radius: var(--fm-radius); padding: 18px; }
.fm-kpi__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fm-muted); font-weight: 700; }
.fm-kpi__value { font-family: var(--fm-display); font-size: 1.7rem; color: var(--fm-navy); line-height: 1.2; margin-top: 6px; }
.fm-kpi__hint { font-size: .8rem; color: var(--fm-muted); }
.fm-kpi--accent { background: linear-gradient(140deg, var(--fm-navy), #0d5f74); color: #fff; border: 0; }
.fm-kpi--accent .fm-kpi__value, .fm-kpi--accent .fm-kpi__label, .fm-kpi--accent .fm-kpi__hint { color: #fff; }
.fm-kpi--accent .fm-kpi__label, .fm-kpi--accent .fm-kpi__hint { opacity: .78; }
.fm-chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.fm-chart__bar { flex: 1; background: linear-gradient(180deg, var(--fm-teal-bright), var(--fm-teal)); border-radius: 6px 6px 0 0; min-height: 3px; position: relative; }
.fm-chart__bar span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: .62rem; color: var(--fm-muted); white-space: nowrap; }
.fm-chart-wrap { padding-bottom: 24px; }
.fm-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.fm-toolbar .form-control, .fm-toolbar .form-select { max-width: 240px; }
.fm-dash__mobile { display: none; }

/* ---------- Misc ---------- */
.fm-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fm-chip { font-size: .82rem; padding: .34rem .8rem; border-radius: 999px; border: 1px solid var(--fm-line); color: var(--fm-ink); background: #fff; }
.fm-chip.is-active, .fm-chip:hover { background: var(--fm-navy); color: #fff; border-color: var(--fm-navy); }
.fm-divider { height: 1px; background: var(--fm-line); margin: 24px 0; }
.fm-breadcrumb { display: flex; gap: 8px; font-size: .84rem; color: var(--fm-muted); padding: 16px 0; flex-wrap: wrap; }
.fm-breadcrumb a { color: var(--fm-muted); }
.fm-breadcrumb a:hover { color: var(--fm-teal); }
.fm-prose { max-width: 780px; }
.fm-prose h2 { margin-top: 34px; }
.fm-prose h3 { margin-top: 24px; }
.fm-prose p, .fm-prose li { color: #37474f; }
.fm-prose ul { padding-left: 20px; }
.fm-badge-soft { background: var(--fm-sand); border: 1px solid var(--fm-line); border-radius: 999px; padding: 4px 10px; font-size: .76rem; color: var(--fm-muted); }
.fm-sticky-cta { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--fm-line); padding: 12px; display: none; }
.fm-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .fm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fm-hero__inner { grid-template-columns: 1fr; padding: 54px 0 60px; }
  .fm-hero__media { max-width: 560px; }
  .fm-values { grid-template-columns: repeat(2, 1fr); }
  .fm-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .fm-footer__grid { grid-template-columns: 1fr 1fr; }
  .fm-pdp { grid-template-columns: 1fr; }
  .fm-cart-grid { grid-template-columns: 1fr; }
  .fm-summary { position: static; }
}
@media (max-width: 900px) {
  .fm-dash { grid-template-columns: 1fr; }
  .fm-dash__side { position: fixed; inset: 0 auto 0 0; width: 258px; z-index: 1040; transform: translateX(-100%); transition: transform .2s ease; }
  .fm-dash__side.is-open { transform: translateX(0); }
  .fm-dash__mobile { display: inline-flex; }
  .fm-auth { grid-template-columns: 1fr; }
  .fm-auth__aside { display: none; }
  .fm-auth__body { padding: 32px 20px; }
  .fm-search { display: none; }
}
@media (max-width: 760px) {
  .fm-grid, .fm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .fm-section { padding: 46px 0; }
  .fm-nav-links { display: none; }
  .fm-card__body { padding: 12px; }
  .fm-cart-item { grid-template-columns: 72px 1fr; }
  .fm-cart-item img { width: 72px; height: 72px; }
  .fm-cart-item__price { grid-column: 1 / -1; text-align: left; }
  .fm-kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fm-footer__grid { grid-template-columns: 1fr; }
  .fm-values { grid-template-columns: 1fr; }
  .fm-dash__content { padding: 16px; }
  .fm-spec { grid-template-columns: 1fr; }
  .fm-kv { grid-template-columns: 1fr; }
  .fm-kv dt { margin-top: 8px; }
  .fm-section-head { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 1.85rem; }
}
@media (max-width: 420px) {
  .fm-grid { grid-template-columns: 1fr; }
  .fm-card__media { aspect-ratio: 16/10; }
}
@media print {
  .fm-header, .fm-footer, .fm-announce, .fm-sticky-cta { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------------
   Delivery partner portal — slim chrome (no storefront navigation)
   --------------------------------------------------------------------------- */
.fm-partner { background: var(--fm-sand); }
.fm-partner__bar {
  background: var(--fm-ink);
  color: #fff;
  padding: .7rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.fm-partner__brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.fm-partner__brand .fm-logo__mark { background: rgba(255,255,255,.16); color: #fff; }
.fm-partner__tag {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  background: rgba(255,255,255,.16);
  border-radius: 999px;
  padding: .18rem .55rem;
  margin-left: .25rem;
  vertical-align: middle;
}
.fm-partner__links { display: flex; align-items: center; gap: .35rem; }
.fm-partner__links a,
.fm-partner__linkbtn {
  color: #cfe3ea;
  text-decoration: none;
  font-size: .9rem;
  padding: .4rem .7rem;
  border-radius: 10px;
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.fm-partner__links a:hover,
.fm-partner__linkbtn:hover { background: rgba(255,255,255,.12); color: #fff; }
.fm-partner__links a.is-active { background: var(--fm-teal); color: #fff; }
.fm-partner__links .fm-badge-count {
  position: static;
  margin-left: .2rem;
  background: var(--fm-coral);
  color: #fff;
}
.fm-partner__foot {
  padding: 1.2rem 0 1.6rem;
  color: var(--fm-muted);
  border-top: 1px solid rgba(6,32,43,.08);
  margin-top: 2rem;
}
@media (max-width: 575.98px) {
  .fm-partner__links { width: 100%; justify-content: space-between; }
}

/* ---------------------------------------------------------------------------
   Weight transparency (raw → cleaned) — product page, cart, order pages
   --------------------------------------------------------------------------- */
.fm-weight-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .6rem .9rem;
}
.fm-weight-facts > div {
  background: var(--fm-sand);
  border-radius: 12px;
  padding: .55rem .7rem;
  font-size: .85rem;
}
.fm-weight-facts span { display: block; color: var(--fm-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.fm-weight-facts strong { font-weight: 600; }
.fm-weight-line { font-size: .82rem; color: var(--fm-muted); }
.fm-weight-line strong { color: var(--fm-ink); font-weight: 600; }
.fm-weight-arrow { color: var(--fm-teal); margin: 0 .25rem; }
.fm-weight-badge {
  display: inline-flex; gap: .3rem; align-items: center;
  background: rgba(14,116,144,.08); color: var(--fm-teal);
  border-radius: 999px; padding: .15rem .55rem; font-size: .74rem; font-weight: 600;
}
.fm-weight-badge--warn { background: rgba(200,120,20,.12); color: #a45c00; }
.fm-policy-table { width: 100%; font-size: .85rem; }
.fm-policy-table td { padding: .35rem .4rem; border-bottom: 1px solid var(--fm-line); }
.fm-policy-table tr[data-current] { background: rgba(14,116,144,.07); font-weight: 600; }
.fm-policy-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .35rem; }
.fm-policy-dot--yes { background: var(--fm-success); }
.fm-policy-dot--no { background: #c0392b; }
