/* Fluent — the Fluent 2 Blade storefront theme (App\Tenant\StorefrontSsr,
   views under resources/views/fluent). One stylesheet, no build step, no
   web fonts: Fluent's own type is Segoe UI, a system face, so the stack
   below resolves to Segoe UI Variable / Segoe UI on Windows, San Francisco
   on Apple devices and Roboto / Noto on Android — every glyph, Arabic
   included, comes from the device.

   Tokens are Fluent 2's web light theme (webLightTheme): the neutral
   background/foreground/stroke ramps, the type ramp (caption1 → display),
   corner radii 2/4/6/8, elevation shadow2 → shadow64, spacing 2 → 32 and
   the motion curves. The brand ramp (`--fl-brand-*`, `--fl-brand`,
   `--fl-on-brand`, …) is NOT defined here: the layout inlines it from
   App\Tenant\StorefrontSsr\Support\FluentBrand, built from the merchant's
   primary colour (Fluent's communication blue when there is none).

   Class prefix `fl-`. The `dr-*` classes are the hooks the shared JS
   island (storefront-ssr/drrashel/app.js) generates or queries — toasts,
   search typeahead, totals rows, pagination, checkout lines, fields,
   pictures, ratings — styled here so they read as Fluent. */

:root {
  /* neutral backgrounds */
  --fl-bg-1: #FFFFFF;
  --fl-bg-1-hover: #F5F5F5;
  --fl-bg-1-pressed: #E0E0E0;
  --fl-bg-2: #FAFAFA;
  --fl-bg-3: #F5F5F5;
  --fl-bg-4: #F0F0F0;
  --fl-bg-5: #EBEBEB;
  --fl-bg-6: #E6E6E6;
  --fl-subtle-hover: #F5F5F5;
  --fl-subtle-pressed: #E0E0E0;
  /* neutral foregrounds */
  --fl-fg-1: #242424;
  --fl-fg-2: #424242;
  --fl-fg-3: #616161;
  --fl-fg-4: #707070;
  --fl-fg-disabled: #BDBDBD;
  /* strokes */
  --fl-stroke-1: #D1D1D1;
  --fl-stroke-1-hover: #C7C7C7;
  --fl-stroke-2: #E0E0E0;
  --fl-stroke-3: #F0F0F0;
  --fl-stroke-accessible: #616161;
  --fl-stroke-focus: #000000;
  /* status */
  --fl-danger: #C50F1F;
  --fl-danger-fg: #B10E1C;
  --fl-danger-bg: #FDF3F4;
  --fl-danger-stroke: #EEACB2;
  --fl-success: #107C10;
  --fl-success-fg: #0E700E;
  --fl-success-bg: #F1FAF1;
  --fl-success-stroke: #9FD89F;
  --fl-warning-fg: #8A3707;
  --fl-warning-bg: #FFF9F5;
  --fl-warning-stroke: #FDCFB4;
  --fl-warning-accent: #F7630C;
  --fl-whatsapp: #128C4B;
  /* type */
  --fl-font: 'Segoe UI Variable Text', 'Segoe UI Variable', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Noto Sans', Tahoma, sans-serif;
  --fl-font-display: 'Segoe UI Variable Display', 'Segoe UI Variable', 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Noto Sans', Tahoma, sans-serif;
  /* shape */
  --fl-r-s: 2px;
  --fl-r-m: 4px;
  --fl-r-l: 6px;
  --fl-r-xl: 8px;
  --fl-r-xxl: 12px;
  --fl-r-round: 10000px;
  /* elevation */
  --fl-shadow-2: 0 0 2px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .14);
  --fl-shadow-4: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .14);
  --fl-shadow-8: 0 0 2px rgba(0, 0, 0, .12), 0 4px 8px rgba(0, 0, 0, .14);
  --fl-shadow-16: 0 0 2px rgba(0, 0, 0, .12), 0 8px 16px rgba(0, 0, 0, .14);
  --fl-shadow-28: 0 0 8px rgba(0, 0, 0, .12), 0 14px 28px rgba(0, 0, 0, .14);
  --fl-shadow-64: 0 0 8px rgba(0, 0, 0, .12), 0 32px 64px rgba(0, 0, 0, .14);
  /* motion */
  --fl-ease: cubic-bezier(.33, 0, .67, 1);
  --fl-decelerate: cubic-bezier(0, 0, 0, 1);
  --fl-accelerate: cubic-bezier(1, 0, 1, 1);
  --fl-fast: 150ms;
  --fl-normal: 200ms;
  --fl-slow: 300ms;
  /* layout */
  --fl-gutter: 16px;
  --fl-max: 1320px;
  --fl-header-h: 60px;
}
@media (min-width: 768px) { :root { --fl-gutter: 24px; } }
@media (min-width: 1280px) { :root { --fl-gutter: 32px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; background: var(--fl-bg-3); color: var(--fl-fg-1); font: 400 14px/20px var(--fl-font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--fl-brand-150); color: var(--fl-fg-1); }
:focus-visible { outline: 2px solid var(--fl-stroke-focus); outline-offset: 1px; border-radius: var(--fl-r-m); }
.dr-tnum, .fl-tnum { font-variant-numeric: tabular-nums; }
[dir="rtl"] .dr-icon--flip { transform: scaleX(-1); }
.dr-sr-only, .fl-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fl-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; padding: 8px 16px; border-radius: var(--fl-r-m); background: var(--fl-brand); color: var(--fl-on-brand); font-weight: 600; box-shadow: var(--fl-shadow-8); }
.fl-skip:focus { top: 12px; }
.fl-container { width: 100%; max-width: var(--fl-max); margin-inline: auto; padding-inline: var(--fl-gutter); }
main { display: block; min-height: 50vh; }
main:focus { outline: none; }

/* ---------- type ramp ---------- */
.fl-display { font: 600 40px/52px var(--fl-font-display); letter-spacing: -.01em; }
.fl-title1 { font: 600 28px/36px var(--fl-font-display); }
.fl-title2 { font: 600 24px/32px var(--fl-font-display); }
.fl-title3 { font: 600 20px/28px var(--fl-font-display); }
.fl-subtitle1 { font: 600 20px/26px var(--fl-font); }
.fl-subtitle2 { font: 600 16px/22px var(--fl-font); }
.fl-body { font: 400 14px/20px var(--fl-font); color: var(--fl-fg-2); }
.fl-body2 { font: 400 16px/24px var(--fl-font); color: var(--fl-fg-2); }
.fl-caption { font: 400 12px/16px var(--fl-font); color: var(--fl-fg-3); }
.fl-strong { font-weight: 600; }
.fl-muted { color: var(--fl-fg-3); }
.fl-brandtext { color: var(--fl-brand-fg); }
@media (min-width: 768px) {
  .fl-display { font-size: 52px; line-height: 64px; }
  .fl-title1 { font-size: 32px; line-height: 40px; }
  .fl-title2 { font-size: 28px; line-height: 36px; }
}
.fl-link { display: inline-flex; align-items: center; gap: 4px; color: var(--fl-brand-fg); font-weight: 600; border-radius: var(--fl-r-m); }
.fl-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.fl-link .dr-icon { width: 16px; height: 16px; }
.dr-link { color: var(--fl-brand-fg); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- buttons (Button: secondary is the default appearance) ---------- */
.fl-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 32px; padding: 5px 12px; border: 1px solid var(--fl-stroke-1); border-radius: var(--fl-r-m);
  background: var(--fl-bg-1); color: var(--fl-fg-1); font: 600 14px/20px var(--fl-font); white-space: nowrap;
  transition: background var(--fl-fast) var(--fl-ease), border-color var(--fl-fast) var(--fl-ease), color var(--fl-fast) var(--fl-ease), box-shadow var(--fl-fast) var(--fl-ease);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.fl-btn .dr-icon { flex: none; width: 20px; height: 20px; }
.fl-btn:hover { background: var(--fl-bg-1-hover); border-color: var(--fl-stroke-1-hover); }
.fl-btn:active { background: var(--fl-bg-1-pressed); }
.fl-btn--primary { background: var(--fl-brand); border-color: transparent; color: var(--fl-on-brand); }
.fl-btn--primary:hover { background: var(--fl-brand-hover); border-color: transparent; color: var(--fl-on-brand); }
.fl-btn--primary:active { background: var(--fl-brand-pressed); }
.fl-btn--subtle { background: transparent; border-color: transparent; }
.fl-btn--subtle:hover { background: var(--fl-subtle-hover); border-color: transparent; }
.fl-btn--outline { background: transparent; }
.fl-btn--tint { background: var(--fl-brand-tint); border-color: var(--fl-brand-150); color: var(--fl-brand-fg); }
.fl-btn--tint:hover { background: var(--fl-brand-tint-2); border-color: var(--fl-brand-140); }
.fl-btn--whatsapp { background: var(--fl-whatsapp); border-color: transparent; color: #FFFFFF; }
.fl-btn--whatsapp:hover { background: #0E7A40; border-color: transparent; color: #FFFFFF; }
.fl-btn--lg { min-height: 40px; padding: 8px 16px; font-size: 16px; line-height: 22px; }
.fl-btn--xl { min-height: 48px; padding: 10px 20px; font-size: 16px; line-height: 22px; border-radius: var(--fl-r-l); }
.fl-btn--sm { min-height: 24px; padding: 1px 8px; font-size: 12px; line-height: 16px; gap: 4px; }
.fl-btn--sm .dr-icon { width: 16px; height: 16px; }
.fl-btn--block { display: flex; width: 100%; }
.fl-btn--between { justify-content: space-between; }
.fl-btn[disabled], .fl-btn[aria-disabled="true"], .fl-btn.dr-btn--disabled { background: var(--fl-bg-4); border-color: var(--fl-stroke-2); color: var(--fl-fg-disabled); pointer-events: none; cursor: default; }

.fl-iconbtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--fl-r-m); color: var(--fl-fg-2); transition: background var(--fl-fast) var(--fl-ease); }
.fl-iconbtn:hover { background: var(--fl-subtle-hover); color: var(--fl-fg-1); }
.fl-iconbtn:active { background: var(--fl-subtle-pressed); }
.fl-iconbtn .dr-icon { width: 22px; height: 22px; }

/* CounterBadge (filled, circular) and Badge/Tag (tinted, rounded) */
.fl-count { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--fl-r-round); background: var(--fl-danger); color: #FFFFFF; font: 600 10px/18px var(--fl-font); text-align: center; box-shadow: 0 0 0 2px var(--fl-bg-1); }
.fl-tag { display: inline-flex; align-items: center; gap: 4px; min-height: 20px; padding: 0 6px; border-radius: var(--fl-r-m); border: 1px solid var(--fl-stroke-2); background: var(--fl-bg-3); color: var(--fl-fg-2); font: 600 12px/18px var(--fl-font); white-space: nowrap; }
.fl-tag .dr-icon { width: 12px; height: 12px; }
.fl-tag--brand { background: var(--fl-brand-tint); border-color: var(--fl-brand-150); color: var(--fl-brand-fg); }
.fl-tag--danger { background: var(--fl-danger); border-color: transparent; color: #FFFFFF; }
.fl-tag--danger-tint { background: var(--fl-danger-bg); border-color: var(--fl-danger-stroke); color: var(--fl-danger-fg); }
.fl-tag--success { background: var(--fl-success-bg); border-color: var(--fl-success-stroke); color: var(--fl-success-fg); }
.fl-tag--warning { background: var(--fl-warning-bg); border-color: var(--fl-warning-stroke); color: var(--fl-warning-fg); }
.fl-tag--filled { background: var(--fl-brand); border-color: transparent; color: var(--fl-on-brand); }
.fl-tag--lg { min-height: 24px; padding: 0 8px; font-size: 12px; }

/* ---------- form controls (Input / Select / SearchBox) ---------- */
.fl-input, .fl-select {
  width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--fl-stroke-1); border-bottom-color: var(--fl-stroke-accessible);
  border-radius: var(--fl-r-m); background: var(--fl-bg-1); color: var(--fl-fg-1); font-size: 14px; outline: none;
  transition: border-color var(--fl-fast) var(--fl-ease), box-shadow var(--fl-fast) var(--fl-ease);
}
.fl-input::placeholder { color: var(--fl-fg-4); }
.fl-input:hover, .fl-select:hover { border-color: var(--fl-stroke-1-hover); border-bottom-color: var(--fl-fg-2); }
/* Fluent's focus underline: a 2px brand bar on the bottom edge */
.fl-input:focus, .fl-select:focus { border-bottom-color: var(--fl-brand-stroke); box-shadow: inset 0 -1px 0 0 var(--fl-brand-stroke); }
.fl-select { appearance: none; -webkit-appearance: none; padding-inline-end: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23424242' d='M15.85 7.65a.5.5 0 0 0-.7 0L10 12.79 4.85 7.65a.5.5 0 1 0-.7.7l5.5 5.5c.2.2.5.2.7 0l5.5-5.5a.5.5 0 0 0 0-.7Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
[dir="rtl"] .fl-select { background-position: left 10px center; }
.fl-check { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: var(--fl-brand); }

.dr-field { display: grid; gap: 4px; align-content: start; }
.dr-field > label { font: 600 14px/20px var(--fl-font); color: var(--fl-fg-1); }
.dr-field.is-full { grid-column: 1 / -1; }
.dr-field.is-invalid .fl-input, .dr-field.is-invalid .fl-select { border-color: var(--fl-danger); border-bottom-color: var(--fl-danger); }
.dr-field__error { display: flex; gap: 4px; color: var(--fl-danger-fg); font-size: 12px; line-height: 16px; }
.fl-hint { color: var(--fl-fg-3); font-size: 12px; line-height: 16px; }

/* the typeahead (markup generated by app.js: dr-search__*) */
.dr-search { position: relative; display: flex; align-items: center; min-width: 0; height: 40px; border: 1px solid var(--fl-stroke-2); border-bottom-color: var(--fl-stroke-accessible); border-radius: var(--fl-r-m); background: var(--fl-bg-3); transition: background var(--fl-fast) var(--fl-ease); }
.dr-search:hover { background: var(--fl-bg-4); }
.dr-search:focus-within { background: var(--fl-bg-1); border-color: var(--fl-stroke-1); border-bottom-color: var(--fl-brand-stroke); box-shadow: inset 0 -1px 0 0 var(--fl-brand-stroke); }
.dr-search__input { flex: 1; min-width: 0; height: 100%; padding: 0 4px; border: 0; background: transparent; outline: none; font-size: 14px; }
.dr-search__input::placeholder { color: var(--fl-fg-3); }
.dr-search__input::-webkit-search-cancel-button { display: none; }
.dr-search__submit, .dr-search__clear { display: grid; place-items: center; flex: none; width: 36px; height: 36px; color: var(--fl-fg-3); border-radius: var(--fl-r-m); }
.dr-search__submit .dr-icon, .dr-search__clear .dr-icon { width: 18px; height: 18px; }
.dr-search__clear:hover { background: var(--fl-subtle-hover); }
.dr-search__panel { position: absolute; z-index: 60; top: calc(100% + 4px); inset-inline: 0; max-height: min(70vh, 520px); overflow: auto; padding: 4px; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-16); animation: fl-pop var(--fl-normal) var(--fl-decelerate); }
.dr-search__group + .dr-search__group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--fl-stroke-2); }
.dr-search__label { padding: 8px 10px 4px; color: var(--fl-fg-3); font: 600 12px/16px var(--fl-font); }
.dr-search__opt { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border-radius: var(--fl-r-m); font-size: 14px; }
.dr-search__opt img { width: 36px; height: 36px; border-radius: var(--fl-r-m); object-fit: cover; background: var(--fl-bg-3); }
.dr-search__opt span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-search__opt:hover, .dr-search__opt[aria-selected="true"] { background: var(--fl-subtle-hover); }
.dr-search__opt-price { font-weight: 600; }
.dr-search__opt--all { color: var(--fl-brand-fg); font-weight: 600; }

/* ---------- MessageBar ---------- */
.fl-msg { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border: 1px solid var(--fl-stroke-2); border-radius: var(--fl-r-m); background: var(--fl-bg-2); color: var(--fl-fg-1); font-size: 14px; line-height: 20px; }
.fl-msg .dr-icon { flex: none; width: 20px; height: 20px; margin-top: 0; }
.fl-msg--info .dr-icon { color: var(--fl-brand-fg); }
.fl-msg--danger { background: var(--fl-danger-bg); border-color: var(--fl-danger-stroke); }
.fl-msg--danger .dr-icon { color: var(--fl-danger); }
.fl-msg--warning { background: var(--fl-warning-bg); border-color: var(--fl-warning-stroke); }
.fl-msg--warning .dr-icon { color: var(--fl-warning-accent); }
.fl-msg--success { background: var(--fl-success-bg); border-color: var(--fl-success-stroke); }
.fl-msg--success .dr-icon { color: var(--fl-success); }
.dr-minorder { display: grid; gap: 6px; padding: 8px 12px; border: 1px solid var(--fl-warning-stroke); border-radius: var(--fl-r-m); background: var(--fl-warning-bg); color: var(--fl-warning-fg); font-size: 12px; line-height: 16px; }
.dr-minorder__track { display: block; height: 4px; border-radius: var(--fl-r-round); background: var(--fl-warning-stroke); overflow: hidden; }
.dr-minorder__thumb { display: block; height: 100%; border-radius: inherit; background: var(--fl-warning-accent); transition: width var(--fl-slow) var(--fl-decelerate); }

/* ProgressBar (free-delivery meter) */
.fl-progress { display: grid; gap: 6px; }
.fl-progress__track { height: 4px; border-radius: var(--fl-r-round); background: var(--fl-bg-6); overflow: hidden; }
.fl-progress__bar { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--fl-brand); transition: width var(--fl-slow) var(--fl-decelerate); }
.fl-progress__text { color: var(--fl-fg-2); font-size: 12px; line-height: 16px; }

/* ---------- announcement ---------- */
.fl-announce { background: var(--fl-brand-tint); color: var(--fl-fg-1); border-bottom: 1px solid var(--fl-brand-150); }
.fl-announce__line { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding-block: 6px; font-size: 13px; line-height: 18px; text-align: center; }
.fl-announce__line .dr-icon { flex: none; width: 16px; height: 16px; color: var(--fl-brand-fg); }
.fl-announce__sub { color: var(--fl-fg-3); }
@media (max-width: 639px) { .fl-announce__sub { display: none; } }
.dr-announce__offer { color: var(--fl-brand-fg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dr-announce__help { color: var(--fl-fg-3); }

/* ---------- header (command bar) ---------- */
.fl-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: var(--fl-shadow-2); }
.fl-header__bar { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "start logo end" "search search search"; align-items: center; column-gap: 8px; min-height: var(--fl-header-h); }
.fl-header__start { grid-area: start; display: flex; align-items: center; gap: 2px; margin-inline-start: -8px; }
.fl-header__logo { grid-area: logo; justify-self: start; min-width: 0; }
.fl-header__search { grid-area: search; padding-bottom: 10px; }
.fl-header__end { grid-area: end; display: flex; align-items: center; gap: 2px; margin-inline-end: -8px; }
.fl-header[data-collapsed="true"] .fl-header__search { display: none; }
.fl-header__search .dr-search { width: 100%; }
.fl-header .fl-header__lang { display: none; }
.fl-header__wide { display: none; }
@media (min-width: 900px) {
  .fl-header__bar { grid-template-columns: auto minmax(240px, 600px) auto; grid-template-areas: "logo search end"; justify-content: space-between; column-gap: 24px; }
  .fl-header__start { display: none; }
  .fl-header[data-collapsed] .fl-header__search { display: block; padding: 0; }
  .fl-header__search-btn { display: none; }
  .fl-header .fl-header__lang { display: inline-flex; }
  .fl-header__wide { display: inline-grid; }
}
.fl-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; border-radius: var(--fl-r-m); }
.fl-logo__img { width: auto; max-width: 180px; height: 36px; object-fit: contain; }
.fl-logo__mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--fl-r-xl); background: linear-gradient(135deg, var(--fl-brand-90), var(--fl-brand-60)); color: var(--fl-on-brand); font: 700 16px/1 var(--fl-font-display); box-shadow: var(--fl-shadow-2); }
.fl-logo__word { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 18px/24px var(--fl-font-display); }
.fl-lang { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: var(--fl-r-m); color: var(--fl-fg-2); font-weight: 600; font-size: 13px; }
.fl-lang:hover { background: var(--fl-subtle-hover); color: var(--fl-fg-1); }
.fl-lang .dr-icon { width: 18px; height: 18px; }

/* the category nav (TabList look, mega flyouts driven by app.js: dr-nav*) */
.fl-nav { position: relative; display: none; border-top: 1px solid var(--fl-stroke-3); }
@media (min-width: 900px) { .fl-nav { display: block; } }
.fl-nav .dr-nav__list { display: flex; align-items: stretch; gap: 2px; min-height: 44px; overflow-x: auto; scrollbar-width: none; }
.fl-nav .dr-nav__list::-webkit-scrollbar { display: none; }
/* items stay static so a flyout anchors to .fl-nav (outside the scroller, which would clip it) */
.fl-nav .dr-nav__item { position: static; display: flex; align-items: center; flex: none; }
.fl-nav__link { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px; border-radius: var(--fl-r-m); color: var(--fl-fg-2); font-size: 14px; white-space: nowrap; }
.fl-nav__link:hover, .dr-nav__item.is-open > .fl-nav__link { background: var(--fl-subtle-hover); color: var(--fl-fg-1); }
.fl-nav__link[aria-current="page"] { color: var(--fl-fg-1); font-weight: 600; }
.fl-nav__link[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 10px; bottom: -3px; height: 3px; border-radius: var(--fl-r-round); background: var(--fl-brand); }
.fl-nav__link .dr-icon { width: 16px; height: 16px; color: var(--fl-fg-3); transition: transform var(--fl-fast) var(--fl-ease); }
.dr-nav__item.is-open .fl-nav__link .dr-icon { transform: rotate(180deg); }
.fl-nav__link--accent { color: var(--fl-danger-fg); font-weight: 600; }
.dr-mega { position: absolute; z-index: 45; top: 100%; inset-inline: 0; padding: 4px var(--fl-gutter) 0; pointer-events: none; }
.fl-mega__panel { pointer-events: auto; max-width: var(--fl-max); margin-inline: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 24px; padding: 20px 24px; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-28); animation: fl-pop var(--fl-normal) var(--fl-decelerate); }
.fl-mega__col { display: grid; gap: 2px; align-content: start; }
.fl-mega__title { display: block; padding: 6px 8px; border-radius: var(--fl-r-m); font-weight: 600; }
.fl-mega__link { display: block; padding: 5px 8px; border-radius: var(--fl-r-m); color: var(--fl-fg-2); }
.fl-mega__title:hover, .fl-mega__link:hover { background: var(--fl-subtle-hover); color: var(--fl-fg-1); }
.fl-mega__all { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--fl-stroke-2); }

/* ---------- drawer & cart sheet (Drawer, overlay) ---------- */
.fl-overlay { position: fixed; inset: 0; z-index: 100; }
.fl-overlay__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); animation: fl-fade var(--fl-normal) var(--fl-ease); }
.fl-overlay__panel { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; width: min(92vw, 360px); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-64); }
.fl-overlay--start .fl-overlay__panel { inset-inline-start: 0; animation: fl-in-start var(--fl-slow) var(--fl-decelerate); }
.fl-overlay--end .fl-overlay__panel { inset-inline-end: 0; width: min(100vw, 440px); animation: fl-in-end var(--fl-slow) var(--fl-decelerate); }
.fl-overlay__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 12px 20px; }
[dir="rtl"] .fl-overlay__head { padding: 12px 20px 12px 12px; }
.fl-overlay__title { display: flex; align-items: center; gap: 8px; font: 600 20px/28px var(--fl-font-display); }
.fl-overlay__title [tabindex="-1"]:focus { outline: none; }
.fl-overlay__body { flex: 1; overflow-y: auto; padding: 4px 20px 20px; }
.fl-overlay__foot { display: grid; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--fl-stroke-2); background: var(--fl-bg-1); }
.fl-drawer__section { padding: 8px 0; border-top: 1px solid var(--fl-stroke-2); }
.fl-drawer__section:first-of-type { border-top: 0; }
.fl-drawer__label { padding: 8px 8px 4px; color: var(--fl-fg-3); font: 600 12px/16px var(--fl-font); }
.fl-drawer__link { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 8px; border-radius: var(--fl-r-m); color: var(--fl-fg-1); }
.fl-drawer__link .dr-icon { width: 20px; height: 20px; color: var(--fl-fg-3); }
.fl-drawer__link:hover { background: var(--fl-subtle-hover); }
.fl-drawer__link[aria-current="page"] { background: var(--fl-brand-tint); color: var(--fl-brand-fg); font-weight: 600; }
.fl-drawer__link[aria-current="page"] .dr-icon { color: var(--fl-brand-fg); }
.fl-drawer__group summary { list-style: none; cursor: pointer; justify-content: space-between; }
.fl-drawer__group summary::-webkit-details-marker { display: none; }
.fl-drawer__group summary .dr-icon--chevron-down { transition: transform var(--fl-fast) var(--fl-ease); }
.fl-drawer__group[open] summary .dr-icon--chevron-down { transform: rotate(180deg); }
.fl-drawer__sub { display: grid; padding: 2px 0 6px; padding-inline-start: 40px; }
.fl-drawer__sub a { display: block; padding: 7px 8px; border-radius: var(--fl-r-m); color: var(--fl-fg-2); }
.fl-drawer__sub a:hover { background: var(--fl-subtle-hover); }

.fl-cart__empty { display: grid; justify-items: center; gap: 8px; padding: 48px 8px; text-align: center; }
.fl-cart__empty .dr-icon { width: 48px; height: 48px; color: var(--fl-brand-fg); margin-bottom: 4px; }
.fl-cart__lines { display: grid; }
.fl-line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--fl-stroke-2); }
.fl-line:last-child { border-bottom: 0; }
.fl-line__pic { display: block; width: 72px; height: 72px; overflow: hidden; border-radius: var(--fl-r-l); background: var(--fl-bg-3); border: 1px solid var(--fl-stroke-3); }
.fl-line__pic img { width: 100%; height: 100%; object-fit: cover; }
.fl-line__body { display: grid; gap: 6px; min-width: 0; }
.fl-line__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.fl-line__name:hover { color: var(--fl-brand-fg); }
.fl-line__format { color: var(--fl-fg-3); font-size: 12px; line-height: 16px; }
.fl-line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fl-line__price { font-weight: 600; }
.fl-line__remove { justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 6px; margin-inline-start: -6px; border-radius: var(--fl-r-m); color: var(--fl-fg-3); font-size: 12px; }
.fl-line__remove:hover { background: var(--fl-subtle-hover); color: var(--fl-danger-fg); }
.fl-line__remove .dr-icon { width: 14px; height: 14px; }

/* SpinButton-like quantity controls */
.fl-qty { display: inline-flex; align-items: center; height: 32px; border: 1px solid var(--fl-stroke-1); border-bottom-color: var(--fl-stroke-accessible); border-radius: var(--fl-r-m); background: var(--fl-bg-1); }
.fl-qty button { display: grid; place-items: center; width: 30px; height: 100%; color: var(--fl-fg-2); border-radius: var(--fl-r-s); }
.fl-qty button:hover { background: var(--fl-subtle-hover); color: var(--fl-fg-1); }
.fl-qty button .dr-icon { width: 16px; height: 16px; }
.fl-qty__value { min-width: 28px; text-align: center; font-weight: 600; }
.fl-qty input { width: 48px; height: 100%; border: 0; background: transparent; text-align: center; font-weight: 600; outline: none; -moz-appearance: textfield; }
.fl-qty input::-webkit-inner-spin-button, .fl-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fl-qty--lg { height: 40px; }
.fl-qty--lg button { width: 40px; }
.fl-qty:focus-within { border-bottom-color: var(--fl-brand-stroke); box-shadow: inset 0 -1px 0 0 var(--fl-brand-stroke); }

/* totals (rows also generated by app.js: dr-totals__row) */
.fl-totals { display: grid; gap: 8px; }
.dr-totals__row { display: flex; justify-content: space-between; gap: 12px; color: var(--fl-fg-2); }
.dr-totals__row > :last-child { color: var(--fl-fg-1); }
.dr-totals__row--promo, .dr-totals__row--promo > :last-child { color: var(--fl-success-fg); }
.fl-totals__grand { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--fl-stroke-2); }
.fl-totals__grand > span { font-weight: 600; }
.fl-totals__grand > span { min-width: 0; }
.fl-totals__grand strong { flex: none; white-space: nowrap; font: 600 20px/28px var(--fl-font-display); }
.fl-totals__note { display: block; color: var(--fl-fg-3); font-size: 12px; font-weight: 400; line-height: 16px; }

/* ---------- toasts ---------- */
.fl-toasts { position: fixed; z-index: 120; inset-inline-end: 16px; bottom: 16px; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
@media (max-width: 899px) { .fl-toasts { inset-inline: 12px; bottom: 76px; justify-items: stretch; } }
/* with the cart sheet open, toasts move to the top, clear of its checkout button */
body:has(#dr-cart-modal:not([hidden])) .fl-toasts { top: 16px; bottom: auto; }
.dr-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: min(92vw, 380px); min-height: 44px; padding: 10px 12px 10px 14px; border-radius: var(--fl-r-m); background: var(--fl-bg-1); color: var(--fl-fg-1); box-shadow: var(--fl-shadow-8); font-size: 14px; line-height: 20px; animation: fl-toast var(--fl-slow) var(--fl-decelerate); }
.dr-toast::before { content: ""; flex: none; width: 4px; align-self: stretch; border-radius: var(--fl-r-round); background: var(--fl-brand); }
.dr-toast > span { flex: 1; }
.dr-toast__action { flex: none; padding: 4px 8px; border-radius: var(--fl-r-m); color: var(--fl-brand-fg); font-weight: 600; }
.dr-toast__action:hover { background: var(--fl-subtle-hover); }
.dr-toast--buyer::before { display: none; }
.dr-toast--buyer img { width: 44px; height: 44px; border-radius: var(--fl-r-m); object-fit: cover; }
.dr-toast--buyer button { color: var(--fl-fg-3); font-size: 18px; padding: 2px 6px; }
.dr-toast__body { flex: 1; font-size: 13px; line-height: 18px; }

/* ---------- surfaces ---------- */
.fl-section { padding-block: 28px; }
@media (min-width: 1024px) { .fl-section { padding-block: 36px; } }
.fl-section--white { background: var(--fl-bg-1); }
.fl-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.fl-section__head > div { display: grid; gap: 2px; }
.fl-section__head .fl-caption { font-size: 14px; line-height: 20px; }
.fl-surface { border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-4); }
.fl-panel { padding: 20px; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-4); }
@media (min-width: 768px) { .fl-panel { padding: 24px; } }
.fl-panel__title { margin-bottom: 16px; }
.fl-divider { height: 1px; border: 0; margin: 0; background: var(--fl-stroke-2); }

.fl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; color: var(--fl-fg-3); font-size: 14px; }
.fl-crumbs a { padding: 2px 6px; border-radius: var(--fl-r-m); }
.fl-crumbs a:first-child { margin-inline-start: -6px; }
.fl-crumbs a:hover { background: var(--fl-subtle-hover); color: var(--fl-fg-1); }
.fl-crumbs [aria-current="page"] { padding: 2px 6px; color: var(--fl-fg-1); font-weight: 600; }
.fl-crumbs__sep { display: inline-grid; color: var(--fl-fg-4); }
.fl-crumbs__sep .dr-icon { width: 12px; height: 12px; }

.fl-pagehead { padding-block: 20px 8px; }
.fl-pagehead__title { display: grid; gap: 4px; margin-top: 12px; }

.fl-empty { display: grid; justify-items: center; gap: 8px; max-width: 460px; margin: 24px auto; padding: 40px 24px; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-4); text-align: center; }
.fl-empty__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: var(--fl-brand-tint); color: var(--fl-brand-fg); }
.fl-empty__icon .dr-icon { width: 32px; height: 32px; }
.fl-empty .fl-btn { margin-top: 12px; }

/* ---------- pictures (ssr::components.picture, `dr-pic`) ---------- */
.dr-pic { position: relative; display: block; width: 100%; overflow: hidden; background: var(--fl-bg-2); }
.dr-pic picture, .dr-pic img { width: 100%; height: 100%; }
.dr-pic img { object-fit: cover; transition: transform var(--fl-slow) var(--fl-ease); }
.dr-pic--contain img { object-fit: contain; }
.dr-pic__plate { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--fl-brand-tint), var(--fl-brand-tint-2)); color: var(--fl-brand-fg); font: 600 32px/1 var(--fl-font-display); letter-spacing: .04em; }

/* ---------- product card (Card) ---------- */
.fl-grid, .dr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .fl-grid, .dr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .fl-grid, .dr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .fl-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.dr-grid > [role="listitem"], .fl-rail > [role="listitem"] { display: flex; }
.dr-grid > [role="listitem"] > *, .fl-rail > [role="listitem"] > * { flex: 1; }

.fl-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 8px; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-4); transition: box-shadow var(--fl-normal) var(--fl-ease), transform var(--fl-normal) var(--fl-ease); }
.fl-card:hover { box-shadow: var(--fl-shadow-16); }
@media (hover: hover) { .fl-card:hover { transform: translateY(-2px); } }
.fl-card__media { position: relative; display: block; overflow: hidden; border-radius: var(--fl-r-l); }
.fl-card:hover .dr-pic img { transform: scale(1.04); }
.fl-card__badges { position: absolute; z-index: 2; top: 16px; inset-inline-start: 16px; inset-inline-end: 56px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.fl-card__heart { position: absolute; z-index: 3; top: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--fl-fg-2); box-shadow: var(--fl-shadow-2); transition: transform var(--fl-fast) var(--fl-ease), color var(--fl-fast) var(--fl-ease); }
.fl-card__heart:hover { color: var(--fl-danger); transform: scale(1.06); }
.fl-card__heart .dr-icon { width: 18px; height: 18px; }
.fl-heart-on { display: none; }
[aria-pressed="true"] > .fl-heart-on { display: block; color: var(--fl-danger); }
[aria-pressed="true"] > .fl-heart-off { display: none; }
.fl-card__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 10px 4px 4px; }
.fl-card__eyebrow { overflow: hidden; color: var(--fl-fg-3); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.fl-card__name { font: 600 14px/20px var(--fl-font); }
.fl-card__name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fl-card__name a:hover { color: var(--fl-brand-fg); }
.fl-card__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--fl-fg-3); font-size: 12px; line-height: 16px; }
.fl-card__foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: auto; padding-top: 6px; }
.fl-card .fl-btn--block { min-width: 0; padding-inline: 8px; }
.fl-card .fl-btn--block > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fl-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.fl-card__price s, .fl-was { color: var(--fl-fg-3); font-size: 12px; }
.fl-card__note { color: var(--fl-fg-3); font-size: 12px; }
.fl-card__stock { color: var(--fl-warning-fg); font-size: 12px; line-height: 16px; }
.fl-price { font: 600 16px/22px var(--fl-font); font-variant-numeric: tabular-nums; }
.fl-price--sale { color: var(--fl-danger-fg); }
.dr-pricegate { color: var(--fl-brand-fg); font-size: 12px; font-weight: 600; text-decoration: underline; }
.fl-stepper { display: flex; align-items: center; justify-content: space-between; height: 32px; border-radius: var(--fl-r-m); background: var(--fl-brand); color: var(--fl-on-brand); }
.fl-stepper button { display: grid; place-items: center; width: 36px; height: 100%; border-radius: var(--fl-r-m); color: inherit; }
.fl-stepper button:hover { background: var(--fl-brand-hover); }
.fl-stepper button .dr-icon { width: 16px; height: 16px; }
.fl-stepper__value { font-weight: 600; }

/* rails: horizontal scroll with snap */
.fl-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 46%); gap: 12px; margin-inline: calc(-1 * var(--fl-gutter)); padding: 4px var(--fl-gutter) 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--fl-gutter); scrollbar-width: thin; }
.fl-rail > * { scroll-snap-align: start; }
@media (min-width: 700px) { .fl-rail { grid-auto-columns: calc((100% - 2 * var(--fl-gutter) - 32px) / 3); gap: 16px; } }
@media (min-width: 1100px) { .fl-rail { grid-auto-columns: calc((100% - 2 * var(--fl-gutter) - 64px) / 5); } }

/* category tiles */
.fl-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .fl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .fl-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fl-tile { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-4); transition: box-shadow var(--fl-normal) var(--fl-ease); }
.fl-tile:hover { box-shadow: var(--fl-shadow-16); }
.fl-tile:hover .dr-pic img { transform: scale(1.04); }
.fl-tile__body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; }
.fl-tile__name { font-weight: 600; }
.fl-tile__count { color: var(--fl-fg-3); font-size: 12px; }
.fl-tile__body .dr-icon { flex: none; width: 16px; height: 16px; color: var(--fl-fg-3); }

/* compact category shortcuts (home) */
.fl-shortcuts { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 12px; margin-inline: calc(-1 * var(--fl-gutter)); padding: 4px var(--fl-gutter) 12px; overflow-x: auto; scrollbar-width: none; }
.fl-shortcuts::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .fl-shortcuts { grid-auto-flow: row; grid-template-columns: repeat(8, minmax(0, 1fr)); margin: 0; padding: 4px 0 0; overflow: visible; } }
.fl-shortcut { display: grid; justify-items: center; gap: 8px; padding: 12px 8px; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-2); text-align: center; font-size: 13px; line-height: 18px; font-weight: 600; transition: box-shadow var(--fl-normal) var(--fl-ease); }
.fl-shortcut:hover { box-shadow: var(--fl-shadow-8); color: var(--fl-brand-fg); }
.fl-shortcut .dr-pic { width: 64px; border-radius: 50%; }
.fl-shortcut span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Pivot-style chips (filters, subcategories) */
.fl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fl-chips a, .fl-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--fl-stroke-1); border-radius: var(--fl-r-round); background: var(--fl-bg-1); color: var(--fl-fg-1); font-size: 14px; }
.fl-chips a:hover { background: var(--fl-bg-1-hover); border-color: var(--fl-stroke-1-hover); }
.fl-chips a[aria-current] { background: var(--fl-brand-tint); border-color: var(--fl-brand-140); color: var(--fl-brand-fg); font-weight: 600; }
.fl-chips .dr-icon { width: 14px; height: 14px; }

/* ---------- home ---------- */
.fl-hero { padding-block: 16px 8px; }
@media (min-width: 1024px) { .fl-hero { padding-block: 28px 12px; } }
.fl-hero__card { position: relative; display: grid; gap: 24px; overflow: hidden; padding: 28px 20px; border-radius: var(--fl-r-xxl); background: radial-gradient(120% 140% at 100% 0%, var(--fl-brand-tint-2) 0%, transparent 55%), radial-gradient(90% 120% at 0% 100%, var(--fl-brand-tint) 0%, transparent 60%), var(--fl-bg-1); box-shadow: var(--fl-shadow-4); }
@media (min-width: 900px) { .fl-hero__card { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: 48px; } }
.fl-hero__text { position: relative; display: grid; gap: 16px; align-content: center; justify-items: start; }
.fl-hero__sub { max-width: 52ch; color: var(--fl-fg-2); font-size: 16px; line-height: 24px; }
.fl-hero__ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fl-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; color: var(--fl-fg-2); font-size: 13px; }
.fl-hero__facts li { display: inline-flex; align-items: center; gap: 6px; }
.fl-hero__facts .dr-icon { width: 18px; height: 18px; color: var(--fl-brand-fg); }
.fl-hero__visual { position: relative; min-width: 0; }
.fl-hero__main { overflow: hidden; border-radius: var(--fl-r-xl); box-shadow: var(--fl-shadow-16); }
.fl-hero__main .dr-pic { aspect-ratio: 4 / 3; }
.fl-hero__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.fl-hero__tile { display: grid; gap: 6px; padding: 6px; border-radius: var(--fl-r-xl); background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--fl-shadow-8); font-size: 12px; line-height: 16px; transition: box-shadow var(--fl-normal) var(--fl-ease); }
.fl-hero__tile:hover { box-shadow: var(--fl-shadow-16); }
.fl-hero__tile .dr-pic { border-radius: var(--fl-r-l); }
.fl-hero__tile span { padding: 0 2px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
@media (min-width: 1100px) { .fl-hero__tiles { position: absolute; inset-inline-start: -32px; bottom: -20px; width: 72%; margin: 0; } .fl-hero__visual { padding-bottom: 36px; } }

.fl-deal { display: grid; overflow: hidden; border-radius: var(--fl-r-xxl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-4); }
@media (min-width: 768px) { .fl-deal { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.fl-deal__media { background: var(--fl-bg-2); }
.fl-deal__media .dr-pic { height: 100%; min-height: 240px; }
.fl-deal__body { display: grid; gap: 12px; align-content: center; justify-items: start; padding: 24px; }
@media (min-width: 1024px) { .fl-deal__body { padding: 40px; } }
.fl-deal__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.fl-deal__price .fl-price { font: 600 28px/36px var(--fl-font-display); }

.fl-packs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (min-width: 700px) { .fl-packs { gap: 16px; } }
.fl-pack__items { display: grid; gap: 2px; margin-top: 2px; color: var(--fl-fg-3); font-size: 12px; line-height: 16px; }
.fl-pack__items li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-save { color: var(--fl-success-fg); font-size: 12px; font-weight: 600; }

.fl-trust { display: grid; gap: 12px; }
@media (min-width: 700px) { .fl-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.fl-trust__item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-2); }
.fl-trust__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--fl-r-xl); background: var(--fl-brand-tint); color: var(--fl-brand-fg); }
.fl-trust__icon .dr-icon { width: 22px; height: 22px; }
.fl-trust__title { font: 600 14px/20px var(--fl-font); }

/* ---------- catalogue ---------- */
.fl-toolbar { position: sticky; top: calc(var(--fl-header-h) + 0px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 calc(-1 * var(--fl-gutter)) 16px; padding: 10px var(--fl-gutter); background: rgba(245, 245, 245, .9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
@media (min-width: 900px) { .fl-toolbar { top: calc(var(--fl-header-h) + 45px); } }
.fl-toolbar__count { flex: 1; color: var(--fl-fg-3); }
.fl-sort { display: flex; align-items: center; gap: 8px; }
.fl-sort .fl-select { min-height: 32px; width: auto; min-width: 180px; }
.fl-tabs { display: flex; gap: 4px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.fl-tabs::-webkit-scrollbar { display: none; }
.fl-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 12px; border-radius: var(--fl-r-m); color: var(--fl-fg-2); white-space: nowrap; }
.fl-tab:hover { background: var(--fl-subtle-hover); color: var(--fl-fg-1); }
.fl-tab[aria-current], .fl-tab[aria-selected="true"] { color: var(--fl-fg-1); font-weight: 600; }
.fl-tab[aria-current]::after, .fl-tab[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 12px; bottom: 0; height: 3px; border-radius: var(--fl-r-round); background: var(--fl-brand); }
.fl-tab .fl-tab__count { color: var(--fl-fg-3); font-weight: 400; }
.fl-tab .dr-icon { width: 18px; height: 18px; }

.dr-pagination { position: relative; display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 32px; }
.dr-pagination__page, .dr-pagination__btn { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: var(--fl-r-m); color: var(--fl-fg-2); font-weight: 600; }
.dr-pagination__page:hover, .dr-pagination__btn:hover { background: var(--fl-subtle-hover); }
.dr-pagination__page.is-current { background: var(--fl-brand); color: var(--fl-on-brand); }
.dr-pagination.is-auto { min-height: 32px; }
.dr-pagination.is-auto > * { visibility: hidden; }
.dr-pagination.is-loading::after { content: ""; position: absolute; width: 28px; height: 28px; border: 3px solid var(--fl-brand-tint-2); border-top-color: var(--fl-brand); border-radius: 50%; animation: fl-spin .9s linear infinite; }

.dr-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; }
.dr-rating__stars { display: inline-flex; color: var(--fl-stroke-1); }
.dr-rating__star .dr-icon { width: 14px; height: 14px; }
.dr-rating__star.is-full, .dr-rating__star.is-half { color: #E8A317; }
.dr-rating__value { font-weight: 600; }
.dr-rating__count { color: var(--fl-fg-3); }
.dr-rating--compact .dr-rating__value, .dr-rating--compact .dr-rating__count { display: none; }

/* ---------- product page ---------- */
.fl-pdp { padding-block: 16px 48px; }
.fl-pdp__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 12px; }
/* two columns from a tablet: the buy box must not sit below a 720px photo (review: tablet) */
@media (min-width: 768px) { .fl-pdp__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; } }
@media (min-width: 1024px) { .fl-pdp__top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; } }
.fl-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
@media (min-width: 768px) { .fl-gallery { position: sticky; top: 132px; } }
@media (min-width: 1024px) { .fl-gallery { grid-template-columns: 72px minmax(0, 1fr); align-items: start; } .fl-gallery__main { grid-column: 2; grid-row: 1; } .fl-thumbs { grid-column: 1; grid-row: 1; flex-direction: column; } }
.fl-gallery__main { position: relative; overflow: hidden; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-4); }
.fl-gallery__main .dr-pic { aspect-ratio: 1 / 1; background: var(--fl-bg-1); }
.fl-gallery__badges { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.fl-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.fl-thumb { flex: none; width: 64px; height: 64px; overflow: hidden; border: 2px solid transparent; border-radius: var(--fl-r-l); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-2); transition: border-color var(--fl-fast) var(--fl-ease); }
.fl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fl-thumb:hover { border-color: var(--fl-stroke-1); }
.fl-thumb.is-active { border-color: var(--fl-brand); }

.fl-buy { display: grid; gap: 16px; padding: 20px; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-4); }
@media (min-width: 768px) { .fl-buy { padding: 28px; } }
.fl-buy__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.fl-buy__brand { color: var(--fl-brand-fg); font-weight: 600; }
.fl-buy__brand:hover { text-decoration: underline; }
.fl-buy__title { font: 600 24px/32px var(--fl-font-display); }
@media (min-width: 768px) { .fl-buy__title { font-size: 28px; line-height: 36px; } }
.fl-pricebox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 16px; border-radius: var(--fl-r-l); background: var(--fl-bg-2); border: 1px solid var(--fl-stroke-3); }
.fl-pricebox__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.fl-pricebox__amount { font: 600 28px/36px var(--fl-font-display); font-variant-numeric: tabular-nums; }
.fl-pricebox s, .dr-pdp__old { color: var(--fl-fg-3); font-size: 14px; }
.dr-pdp__save { display: block; margin-top: 2px; color: var(--fl-success-fg); font-size: 12px; font-weight: 600; }
.fl-pricebox__note { display: block; margin-top: 2px; color: var(--fl-fg-3); font-size: 12px; line-height: 16px; }

/* radio cards (variation / format / delivery-type pickers) */
.fl-options { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.fl-options__legend { margin-bottom: 8px; padding: 0; font-weight: 600; }
.fl-options__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.fl-option { position: relative; display: block; cursor: pointer; }
.fl-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fl-option__box { display: grid; gap: 2px; height: 100%; padding: 10px 12px; border: 1px solid var(--fl-stroke-1); border-radius: var(--fl-r-l); background: var(--fl-bg-1); transition: border-color var(--fl-fast) var(--fl-ease), background var(--fl-fast) var(--fl-ease), box-shadow var(--fl-fast) var(--fl-ease); }
.fl-option:hover .fl-option__box { border-color: var(--fl-stroke-1-hover); background: var(--fl-bg-1-hover); }
.fl-option input:checked + .fl-option__box { border-color: var(--fl-brand); background: var(--fl-brand-tint); box-shadow: inset 0 0 0 1px var(--fl-brand); }
.fl-option input:focus-visible + .fl-option__box { outline: 2px solid var(--fl-stroke-focus); outline-offset: 1px; }
.fl-option input:disabled + .fl-option__box { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.fl-option__title { font-weight: 600; }
.fl-option__meta { color: var(--fl-fg-3); font-size: 12px; line-height: 16px; }

/* quantity-tier prices (components/tiers) */
.fl-tiers { display: grid; gap: 8px; }
.fl-tiers .fl-options__legend { display: flex; align-items: center; gap: 6px; margin: 0; }
.fl-tiers .fl-options__legend .dr-icon { width: 16px; height: 16px; color: var(--fl-brand-fg); }
.fl-tiers table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--fl-r-l); box-shadow: inset 0 0 0 1px var(--fl-stroke-2); font-size: 14px; }
.fl-tiers th, .fl-tiers td { padding: 8px 12px; border-top: 1px solid var(--fl-stroke-3); text-align: start; }
.fl-tiers tr:first-child th, .fl-tiers tr:first-child td { border-top: 0; }
.fl-tiers th { color: var(--fl-fg-2); font-weight: 400; }
.fl-tiers td { text-align: end; font-weight: 600; }
.fl-tiers tr:nth-child(even) { background: var(--fl-bg-2); }
.fl-actions { display: grid; gap: 8px; }
.fl-actions__row { display: flex; gap: 8px; }
.fl-actions__row .fl-btn { flex: 1; }
.fl-incart { color: var(--fl-fg-2); font-size: 12px; }
.fl-incart a { color: var(--fl-brand-fg); font-weight: 600; text-decoration: underline; }
.fl-share { display: flex; gap: 8px; flex-wrap: wrap; }
.fl-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; padding-top: 14px; border-top: 1px solid var(--fl-stroke-2); font-size: 13px; }
.fl-meta dt { color: var(--fl-fg-3); }
.fl-assure { display: grid; gap: 8px; }
.fl-assure li { display: flex; gap: 10px; align-items: center; color: var(--fl-fg-2); font-size: 13px; }
.fl-assure .dr-icon { flex: none; width: 20px; height: 20px; color: var(--fl-brand-fg); }

.fl-details { margin-top: 28px; }
.fl-tabpanel { padding: 20px 4px 4px; }
.fl-prose { max-width: 78ch; color: var(--fl-fg-2); font-size: 14px; line-height: 22px; }
.fl-prose > * + * { margin-top: 12px; }
.fl-prose ul { list-style: disc; padding-inline-start: 20px; }
.fl-prose ol { list-style: decimal; padding-inline-start: 20px; }
.fl-prose h3, .fl-prose h4 { color: var(--fl-fg-1); font-weight: 600; font-size: 16px; }
.fl-ingredients { display: flex; flex-wrap: wrap; gap: 8px; }

/* Accordion */
.fl-accordion { display: grid; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-4); overflow: hidden; }
.fl-accordion details + details { border-top: 1px solid var(--fl-stroke-2); }
.fl-accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 600; }
.fl-accordion summary::-webkit-details-marker { display: none; }
.fl-accordion summary:hover { background: var(--fl-subtle-hover); }
.fl-accordion summary .dr-icon { flex: none; width: 20px; height: 20px; color: var(--fl-fg-3); transition: transform var(--fl-normal) var(--fl-ease); }
.fl-accordion details[open] summary .dr-icon { transform: rotate(180deg); }
.fl-accordion .fl-prose { padding: 0 16px 16px; }

.fl-reviews { display: grid; gap: 12px; }
@media (min-width: 900px) { .fl-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.fl-review { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-2); }
.fl-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fl-avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--fl-brand-tint-2); color: var(--fl-brand-fg); font-weight: 600; font-size: 13px; }
.fl-review__reply { padding: 10px 12px; border-inline-start: 3px solid var(--fl-brand); border-radius: var(--fl-r-m); background: var(--fl-bg-2); font-size: 13px; }

.fl-sticky { position: fixed; z-index: 35; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 10px var(--fl-gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--fl-shadow-28); }
.fl-sticky__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; text-align: start; border-radius: var(--fl-r-m); }
@media (max-width: 899px) { .fl-sticky { bottom: calc(56px + env(safe-area-inset-bottom)); padding-bottom: 10px; } }

/* ---------- cart page & checkout ---------- */
.fl-split { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .fl-split { grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; } .fl-split__aside { position: sticky; top: 132px; } }
.fl-promo { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 16px; }
.fl-promo .dr-field__error { grid-column: 1 / -1; }
.fl-checkout__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .fl-checkout__grid { grid-template-columns: 1fr 1fr; } }
.fl-checkout__lines { display: grid; gap: 12px; max-height: 360px; overflow-y: auto; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--fl-stroke-2); }
.dr-checkout__line { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.dr-checkout__line img { width: 48px; height: 48px; border-radius: var(--fl-r-m); object-fit: cover; background: var(--fl-bg-3); }
.dr-checkout__line-name { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dr-checkout__line-qty { color: var(--fl-fg-3); font-size: 12px; }
.dr-checkout__line > span:last-child { font-weight: 600; }
.fl-steps { display: grid; gap: 8px; }
.fl-optin { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; color: var(--fl-fg-2); cursor: pointer; }

.fl-success { display: grid; justify-items: center; gap: 12px; max-width: 560px; margin: 32px auto 64px; padding: 36px 24px; border-radius: var(--fl-r-xxl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-8); text-align: center; }
.fl-success__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--fl-success-bg); color: var(--fl-success); box-shadow: inset 0 0 0 1px var(--fl-success-stroke); }
.fl-success__icon .dr-icon { width: 36px; height: 36px; }
.fl-success dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; width: 100%; padding: 16px; border-radius: var(--fl-r-l); background: var(--fl-bg-2); text-align: start; }
.fl-success dt { color: var(--fl-fg-3); }
.fl-success dd { font-weight: 600; }

/* ---------- static pages ---------- */
.fl-static { padding-block: 16px 56px; }
.fl-cards3 { display: grid; gap: 12px; }
@media (min-width: 768px) { .fl-cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.fl-feature { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-4); }
.fl-feature__num { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 4px; border-radius: var(--fl-r-m); background: var(--fl-brand); color: var(--fl-on-brand); font-weight: 600; }
.fl-contacts { display: grid; gap: 12px; }
@media (min-width: 700px) { .fl-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.fl-contact { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-4); transition: box-shadow var(--fl-normal) var(--fl-ease); }
.fl-contact:hover { box-shadow: var(--fl-shadow-16); }
.fl-contact > .dr-icon { flex: none; width: 24px; height: 24px; color: var(--fl-brand-fg); }
.fl-promos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 24px; }
.fl-promocard { display: grid; gap: 6px; padding: 16px; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-4); border-inline-start: 4px solid var(--fl-brand); }
.fl-promocard code { padding: 1px 6px; border-radius: var(--fl-r-m); background: var(--fl-brand-tint); color: var(--fl-brand-fg); font: 600 13px/20px 'Cascadia Code', Consolas, monospace; }

/* ---------- footer ---------- */
.fl-footer { margin-top: 32px; padding-block: 40px 24px; background: var(--fl-bg-1); border-top: 1px solid var(--fl-stroke-2); color: var(--fl-fg-2); }
@media (max-width: 899px) { .fl-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); } }
.fl-footer__grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .fl-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; } }
.fl-footer__col { display: grid; gap: 8px; align-content: start; }
.fl-footer__col a { justify-self: start; border-radius: var(--fl-r-m); }
.fl-footer__col a:hover { color: var(--fl-brand-fg); text-decoration: underline; text-underline-offset: 3px; }
.fl-footer__title { margin-bottom: 4px; color: var(--fl-fg-1); font: 600 14px/20px var(--fl-font); }
.fl-footer__brand p { max-width: 38ch; }
.fl-footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--fl-stroke-2); color: var(--fl-fg-3); font-size: 12px; }
.fl-footer__legal nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fl-footer__legal a:hover { color: var(--fl-fg-1); }
.fl-footer__contact { display: inline-flex; align-items: center; gap: 8px; }
.fl-footer__contact .dr-icon { width: 16px; height: 16px; color: var(--fl-fg-3); }

/* ---------- bottom nav (phone) ---------- */
.fl-bottomnav { position: fixed; z-index: 38; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 -1px 0 var(--fl-stroke-2); }
@media (min-width: 900px) { .fl-bottomnav { display: none; } }
.fl-bottomnav a, .fl-bottomnav button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px 6px; color: var(--fl-fg-3); font-size: 10px; line-height: 14px; font-weight: 600; }
.fl-bottomnav .dr-icon { width: 22px; height: 22px; }
.fl-bottomnav [aria-current="page"] { color: var(--fl-brand-fg); }
.fl-bottomnav [aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 20px; height: 3px; border-radius: 0 0 var(--fl-r-round) var(--fl-r-round); background: var(--fl-brand); }
.fl-bottomnav .fl-count { top: 3px; inset-inline-end: calc(50% - 22px); }

/* ---------- motion ---------- */
@keyframes fl-fade { from { opacity: 0; } }
@keyframes fl-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes fl-in-start { from { transform: translateX(-100%); } }
@keyframes fl-in-end { from { transform: translateX(100%); } }
[dir="rtl"] .fl-overlay--start .fl-overlay__panel { animation-name: fl-in-end; }
[dir="rtl"] .fl-overlay--end .fl-overlay__panel { animation-name: fl-in-start; }
@keyframes fl-toast { from { opacity: 0; transform: translateY(8px); } }
@keyframes fl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ---------- high contrast (Windows forced colors) ---------- */
@media (forced-colors: active) {
  .fl-btn, .fl-card, .fl-tile, .fl-panel, .fl-option__box, .fl-buy, .dr-search { border: 1px solid CanvasText; }
  .fl-option input:checked + .fl-option__box, .fl-nav__link[aria-current="page"]::after, .fl-tab[aria-current]::after { border-color: Highlight; background: Highlight; }
}

/* sections the merchant switched off (StorefrontSeoHeadService) */
[data-sections-off~="product.reviews"] [data-theme-section="product.reviews"],
[data-sections-off~="product.faq"] [data-theme-section="product.faq"],
[data-sections-off~="product.related"] [data-theme-section="product.related"],
[data-sections-off~="product.description"] [data-theme-section="product.description"] { display: none; }

/* ---------- touch ergonomics (review M5, M8) ---------- */
@media (max-width: 899px) {
  /* 16px stops iOS Safari zooming into a focused field; 44px fields */
  .fl-input, .fl-select, .dr-search__input { font-size: 16px; }
  .fl-input, .fl-select { min-height: 44px; }
}
@media (pointer: coarse) {
  .fl-card .fl-btn--block, .fl-stepper { min-height: 40px; }
  .fl-card__heart { width: 40px; height: 40px; top: 12px; inset-inline-end: 12px; }
  .fl-qty { height: 40px; }
  .fl-qty button { width: 40px; }
  .fl-line__remove { min-height: 40px; }
  .fl-sort .fl-select { min-height: 40px; }
  .fl-btn--sm { min-height: 36px; padding: 4px 10px; }
  .fl-iconbtn { width: 44px; height: 44px; }
  .fl-crumbs a, .fl-crumbs [aria-current="page"] { display: inline-flex; align-items: center; min-height: 36px; }
  .fl-footer__col a { display: inline-flex; align-items: center; min-height: 40px; }
  .fl-bottomnav a, .fl-bottomnav button { font-size: 11px; }
}
/* the phone breadcrumb stays on one line: middle crumbs shorten */
@media (max-width: 639px) {
  .fl-crumbs { flex-wrap: nowrap; overflow: hidden; }
  .fl-crumbs > a, .fl-crumbs > [aria-current] { display: block; min-width: 0; line-height: 36px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fl-crumbs > a:first-child, .fl-crumbs__sep { flex: none; }
  /* the middle crumbs give way first; the current page keeps the most room */
  .fl-crumbs > a:not(:first-child) { flex: 0 1 auto; max-width: 28%; }
  .fl-crumbs > [aria-current] { flex: 1 1 auto; }
}

/* checkout: the delivery-mode radio cards share the row (review: minor) */
.fl-checkout__grid .fl-options__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* success page without an order: no green check, no "thank you" (review: minor) */
.fl-success:has([data-success-none]:not([hidden])) > .fl-success__icon,
.fl-success:has([data-success-none]:not([hidden])) > [data-success-title],
.fl-success:has([data-success-none]:not([hidden])) > [data-success-sub] { display: none; }

/* wishlist toggle on the product page: visible text follows its state */
.fl-wish-on { display: none; }
[aria-pressed="true"] > .fl-wish-on { display: inline; }
[aria-pressed="true"] > .fl-wish-off { display: none; }
