/* Page layouts: one block per page, added as each page is built. */

/* ════════════════ Home (index.php) ════════════════ */

/* ── hero ── */
.fl-hero { position: relative; }
/* all slides share one grid cell, so the hero keeps the height of the tallest slide and never jumps */
.fl-hero { display: grid; }
.fl-hero__slide { grid-area: 1 / 1; }
.fl-hero__slide[hidden] { display: grid !important; visibility: hidden; }
.fl-hero__eyebrow { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: var(--fw-bold); }
.fl-hero__eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.fl-hero__title { font-size: clamp(2.8rem, 1.4rem + 4.6vw, 5.8rem); line-height: 1.05; margin-block: var(--s-4) var(--s-5); }
:lang(en) .fl-hero__title { line-height: .98; }
.fl-hero__title em { font-style: normal; }
.fl-hero__lead { font-size: var(--fs-lg); max-width: 46ch; }
.fl-hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-block-start: var(--s-6); }
.fl-hero__facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.fl-hero__facts li { display: inline-flex; align-items: center; gap: 6px; }
.fl-hero__facts .fl-icon { width: 18px; height: 18px; }
.fl-hero__bar { position: absolute; inset-inline: 0; inset-block-end: clamp(24px, 3vw, 40px); z-index: 2; pointer-events: none; }
.fl-hero__bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.fl-hero__bar-in > * { pointer-events: auto; }
.fl-hero__nav { display: flex; align-items: center; gap: var(--s-3); }
.fl-hero__step { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor; background: none; color: inherit; transition: background-color var(--dur-1), color var(--dur-1); }
.fl-hero__dots { display: flex; }
.fl-hero__dot { box-sizing: content-box; width: 10px; height: 10px; padding: 7px; background-clip: content-box; border: 0; border-radius: var(--r-pill); background-color: currentColor; opacity: .35; transition: width var(--dur-2) var(--ease), opacity var(--dur-1); }
.fl-hero__dot[aria-current] { width: 28px; opacity: 1; }
.fl-hero__burst { position: absolute; z-index: 1; }

/* A: split poster — photo on one side, the green panel on the other */
.fl-hero--a .fl-hero__slide { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "txt media"; min-height: clamp(560px, 78vh, 760px); }
.fl-hero--a .fl-hero__panel { grid-area: txt; display: flex; align-items: center; background: var(--primary); color: var(--on-primary-soft); padding-block: clamp(48px, 6vw, 96px) 140px; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)) var(--gutter); }
.fl-hero--a .fl-hero__txt { max-width: 600px; }
.fl-hero--a .fl-hero__eyebrow { color: var(--fl-yellow); }
.fl-hero--a .fl-hero__title { color: var(--on-primary); }
.fl-hero--a .fl-hero__title em { color: var(--fl-yellow); }
.fl-hero--a .fl-hero__media { grid-area: media; position: relative; overflow: hidden; background: var(--panel); }
.fl-hero--a .fl-hero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fl-hero--a .fl-hero__burst { inset-block-start: 7%; inset-inline-end: 7%; }
.fl-hero--a .fl-hero__caption { position: absolute; inset-block-end: 16%; inset-inline-end: 7%; rotate: -3deg; }
.fl-hero--a .fl-hero__bar { inset-inline-end: 50%; color: var(--on-primary); }
.fl-hero--a .fl-hero__bar-in { padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)) var(--gutter); max-width: none; }
.fl-hero--a .fl-hero__facts { color: var(--on-primary-soft); }
.fl-hero--a .fl-hero__facts .fl-icon { color: var(--fl-yellow); }
.fl-hero--a .fl-hero__step:hover { background: var(--fl-yellow); border-color: var(--fl-yellow); color: var(--fl-green); }
.fl-hero--a .fl-hero__dot { color: var(--fl-yellow); }


@media (max-width: 899px) {
    .fl-hero--a .fl-hero__slide { grid-template-columns: 1fr; grid-template-areas: "media" "txt"; min-height: 0; }
    .fl-hero--a .fl-hero__media { aspect-ratio: 16 / 11; }
    .fl-hero--a .fl-hero__burst { --size: 96px; }
    .fl-hero__title { font-size: clamp(2.4rem, 1.4rem + 5vw, 3.4rem); }
    .fl-hero--a .fl-hero__panel { padding: var(--s-6) var(--gutter) var(--s-7); }
    .fl-hero__bar { position: static; padding-block: var(--s-4) var(--s-7); }
    .fl-hero--a .fl-hero__bar { background: var(--primary); }
    .fl-hero--a .fl-hero__bar-in { padding-inline: var(--gutter); }
    .fl-hero__cta .fl-btn { flex: 1; }
}



/* ── benefits ── */
.fl-benefits { padding-block: var(--section-y); }
.fl-show + .fl-benefits { padding-block-start: 0; }
.fl-benefits__list { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.fl-benefits__list li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-5); }
.fl-benefits__list li + li { border-inline-start: 1px solid var(--line); }
.fl-benefits__ic { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--second); color: var(--primary); }
.fl-benefits__ic .fl-icon { width: 26px; height: 26px; }
.fl-benefits__list b { display: block; color: var(--primary); }
.fl-benefits__list small { color: var(--ink-soft); }
@media (max-width: 899px) {
    .fl-benefits__list { grid-template-columns: 1fr 1fr; }
    .fl-benefits__list li { padding: var(--s-4); flex-direction: column; align-items: flex-start; }
    .fl-benefits__list li:nth-child(3) { border-inline-start: 0; }
    .fl-benefits__list li:nth-child(n+3) { border-block-start: 1px solid var(--line); }
}

/* ── moments: Instagram-post frames on green ── */
.fl-moments { background-color: var(--primary); }
.fl-moments .fl-intro { color: var(--on-primary-soft); }
.fl-moments__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); align-items: start; }
.fl-moments__grid > :nth-child(2) { margin-block-start: var(--s-7); }
.fl-post { padding: var(--s-3); border: 3px solid var(--fl-yellow); border-radius: 30px; background: var(--primary); color: var(--fl-yellow); }
.fl-post__top { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-2) var(--s-3); }
.fl-post__avatar { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--fl-yellow); color: var(--fl-green); }
.fl-post__avatar .fl-logo { width: 26px; height: auto; }
.fl-post__handle { font: 400 var(--fs-sm)/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; margin-inline-end: auto; }
.fl-post__top .fl-ticket { font-size: var(--fs-xs); }
.fl-post__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.fl-post__bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-2) var(--s-1); }
.fl-post__bar span { flex: 1; }
.fl-post__bar .fl-icon { width: 22px; height: 22px; }
@media (max-width: 899px) {
    .fl-moments__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
    .fl-moments__grid > * { scroll-snap-align: center; }
    .fl-moments__grid > :nth-child(2) { margin-block-start: 0; }
}

/* ── promo posters ── */
.fl-promos__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.fl-poster { position: relative; display: grid; min-height: 520px; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); isolation: isolate; }
.fl-poster--diamond { background: var(--fl-egg); --pat-color: var(--accent); place-items: center; padding: var(--s-6); }
.fl-poster__oval { position: relative; display: grid; justify-items: center; align-content: center; gap: var(--s-3); width: min(78%, 400px); aspect-ratio: 4 / 5; padding: var(--s-6); border-radius: 50%; background: var(--fl-egg); box-shadow: 0 0 0 10px var(--fl-egg), 0 0 0 14px var(--accent), inset 0 0 0 4px var(--accent); text-align: center; transition: transform var(--dur-2) var(--ease); }
.fl-poster:hover .fl-poster__oval { transform: rotate(-2deg) scale(1.02); }
.fl-poster__title { font: var(--fw-heavy) clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem)/1.15 var(--font-display); color: var(--primary); }
.fl-poster__title em { font-style: normal; color: var(--accent-strong); }
.fl-poster__oval img { width: 72%; }
.fl-poster--crate { background: var(--panel); padding: var(--s-7) var(--s-6); align-content: center; }
.fl-poster__art { position: absolute; z-index: -1; inset-block-start: 8%; inset-inline-end: -6%; width: 78%; rotate: -8deg; transition: transform var(--dur-2) var(--ease); }
.fl-poster:hover .fl-poster__art { transform: translateY(-6px) rotate(2deg); }
.fl-poster__big { font: var(--fw-heavy) clamp(2.2rem, 1.3rem + 3vw, 3.6rem)/1.05 var(--font-display); color: var(--primary); max-width: 10ch; }
.fl-poster__big em { font-style: normal; color: var(--accent-strong); }
.fl-poster__hand { margin-block-start: var(--s-4); font: var(--fw-heavy) var(--fs-xl)/1 var(--font-body); color: var(--accent-strong); rotate: -4deg; justify-self: start; }
:lang(en) .fl-poster__hand { font-family: var(--font-hand); font-style: italic; font-weight: 400; font-size: var(--fs-2xl); }
.fl-poster__mark { position: absolute; inset-block-end: var(--s-5); inset-inline-end: var(--s-5); width: 44px; height: auto; color: var(--primary); }
@media (max-width: 899px) { .fl-promos__grid { grid-template-columns: 1fr; } .fl-poster { min-height: 420px; } }

/* ── the FlexiLock way (value tickets) ── */
.fl-way { background: var(--panel); }
.fl-way .fl-head { margin-block-end: var(--s-7); }
.fl-way__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); align-items: start; }
.fl-way__list > :nth-child(1) { rotate: 2deg; margin-block-start: var(--s-5); }
.fl-way__list > :nth-child(2) { rotate: -2deg; margin-block-start: var(--s-7); }
.fl-way__list > :nth-child(3) { rotate: 1.5deg; }
[dir="rtl"] .fl-way__list > * { scale: -1 1; } [dir="rtl"] .fl-way__list > * > * { scale: -1 1; } /* mirror the tilt in Arabic, keep text upright */
@media (max-width: 899px) { .fl-way__list { grid-template-columns: 1fr; gap: var(--s-5); } .fl-way__list > * { margin-block-start: 0 !important; } }

/* ── story ── */
.fl-story { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.fl-story__txt { display: grid; align-content: center; gap: var(--s-4); padding-block: var(--section-y); padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)) var(--gutter); max-width: calc(var(--container) / 2 + var(--gutter) * 2); }
.fl-story__txt > p { color: var(--ink-soft); max-width: 52ch; }
.fl-story__txt .fl-btn--link { justify-self: start; margin-block-start: var(--s-2); }
.fl-story__panel { position: relative; display: grid; align-content: center; gap: var(--s-5); padding-block: var(--section-y); padding-inline: var(--s-7) max(var(--gutter), calc((100vw - var(--container)) / 2)); background: var(--second); --pat-color: color-mix(in srgb, var(--fl-yellow) 80%, var(--fl-orange)); }
.fl-story__kicker { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: var(--fw-bold); color: var(--primary); }
.fl-story__kicker::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.fl-story__big { font: var(--fw-heavy) clamp(3rem, 1.6rem + 5vw, 6.4rem)/1.02 var(--font-display); color: var(--primary); }
.fl-story__big em { font-style: normal; color: var(--accent-strong); }
.fl-story__en { font: 400 clamp(1.4rem, 1rem + 1.4vw, 2.2rem)/1 var(--font-display); text-transform: uppercase; color: var(--primary); }
@media (max-width: 899px) { .fl-story { grid-template-columns: 1fr; } .fl-story__txt { padding: var(--section-y) var(--gutter) var(--s-7); max-width: none; } .fl-story__panel { padding: var(--s-7) var(--gutter); } }

/* ── join (newsletter) ── */
.fl-join__in { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--s-7); }
.fl-join__art { display: flex; align-items: flex-end; gap: var(--s-4); margin-block-start: var(--s-7); }
.fl-join__obj { height: var(--h, 120px); width: auto; }
.fl-join__obj--fan { --h: 132px; } .fl-join__obj--carton { --h: 120px; } .fl-join__obj--bottle { --h: 128px; } .fl-join__obj--crate { --h: 86px; } .fl-join__obj--chair { --h: 128px; }
.fl-join__ticket {
    position: relative; display: grid; gap: var(--s-4); padding: 84px var(--s-6) var(--s-7); background: var(--second); rotate: -2deg;
    -webkit-mask: radial-gradient(circle 11px at 50% 0, #0000 96%, #000) top / 30px 51% repeat-x, radial-gradient(circle 11px at 50% 100%, #0000 96%, #000) bottom / 30px 51% repeat-x;
    mask: radial-gradient(circle 11px at 50% 0, #0000 96%, #000) top / 30px 51% repeat-x, radial-gradient(circle 11px at 50% 100%, #0000 96%, #000) bottom / 30px 51% repeat-x;
}
[dir="rtl"] .fl-join__ticket { rotate: 2deg; }
.fl-join__ticket::before { content: ""; position: absolute; inset-inline: var(--s-5); inset-block-start: 52px; height: 10px; background: radial-gradient(circle 4.5px, var(--paper) 94%, #0000) 0 50% / 22px 10px repeat-x; }
.fl-join__label { position: absolute; inset-block-start: 18px; inset-inline-end: var(--s-6); font-size: var(--fs-xs); font-weight: var(--fw-heavy); color: var(--primary); letter-spacing: .04em; }
.fl-join__ticket .fl-label { color: var(--primary); }
.fl-join__ticket .fl-input { border-color: transparent; }
.fl-join__go { justify-self: start; }
.fl-join__note { font-size: var(--fs-sm); color: var(--primary); }
@media (max-width: 899px) { .fl-join__in { grid-template-columns: 1fr; } .fl-join__art { justify-content: center; } .fl-join__obj { --h: 80px !important; } .fl-join__obj--crate { --h: 56px !important; } }
/* swipe rows: snap to the page margin, not the screen edge */
.fl-pgrid, .fl-moments__grid, .fl-insta__grid { scroll-padding-inline: var(--gutter); }

/* ── product showcase: one stage per product, alternating sides ── */
.fl-show__list { display: grid; gap: clamp(32px, 5vw, 72px); }
.fl-feat { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.fl-show__list > li:nth-child(even) .fl-feat { grid-template-columns: 1fr 1.05fr; }
.fl-show__list > li:nth-child(even) .fl-feat__media { order: 2; }
.fl-feat__media { --bg: var(--panel); position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; border-radius: var(--r-lg); background: var(--bg); overflow: hidden; isolation: isolate; }
.fl-feat--second .fl-feat__media { --bg: var(--second); }
.fl-feat--primary .fl-feat__media { --bg: var(--primary); }
.fl-feat__media::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(color-mix(in srgb, var(--fl-green) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--fl-green) 9%, transparent) 1px, transparent 1px); background-size: var(--grid-cell) var(--grid-cell); }
.fl-feat--primary .fl-feat__media::before { background-image: linear-gradient(var(--line-on-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px); }
.fl-feat__img { width: 80%; filter: drop-shadow(0 26px 22px color-mix(in srgb, var(--ink) 22%, transparent)); transition: transform .6s var(--ease), opacity .18s var(--ease); }
.fl-feat__img.is-swapping { opacity: 0; transform: scale(.94) rotate(-2deg); }
.fl-feat__no { position: absolute; inset-block-start: var(--s-4); inset-inline-start: var(--s-5); font: var(--fw-heavy) clamp(3rem, 2rem + 4vw, 6rem)/1 var(--font-display); color: color-mix(in srgb, var(--fl-green) 16%, transparent); }
.fl-feat--primary .fl-feat__no { color: color-mix(in srgb, var(--fl-yellow) 30%, transparent); }
.fl-feat__life { position: absolute; inset-block-end: var(--s-5); inset-inline-end: var(--s-5); width: 26%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px var(--surface); rotate: 6deg; transition: transform .5s var(--ease); }
.fl-feat__life img { width: 100%; height: 100%; object-fit: cover; }
.fl-feat__burst { position: absolute; inset-block-start: var(--s-5); inset-inline-end: var(--s-5); --size: 104px; }
.fl-feat__body { display: grid; gap: var(--s-3); align-content: center; }
.fl-feat__body > .fl-ticket { justify-self: start; }
.fl-feat__name { font: var(--fw-heavy) clamp(1.8rem, 1.2rem + 2vw, 2.8rem)/1.15 var(--font-body); color: var(--primary); }
.fl-feat__name a { color: inherit; text-decoration: none; }
.fl-feat__name a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--fl-yellow); }
.fl-feat__short { font-size: var(--fs-lg); color: var(--ink-soft); max-width: 46ch; }
.fl-feat__perks { display: grid; gap: var(--s-2); margin-block: var(--s-1) var(--s-2); }
.fl-feat__perks li { display: flex; align-items: center; gap: var(--s-2); font-weight: var(--fw-medium); }
.fl-feat__perks .fl-icon { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--second); color: var(--primary); stroke-width: 3; }
.fl-feat__buy { display: grid; gap: var(--s-4); padding-block-start: var(--s-4); border-block-start: 1px dashed var(--ink-faint); }
.fl-feat__price { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.fl-feat__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.fl-feat__save { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink-faint); background: var(--surface); color: var(--primary); transition: border-color var(--dur-1); }
.fl-feat__save:hover { border-color: var(--primary); }
.fl-feat__save .fl-icon:last-child, .fl-feat__save[aria-pressed="true"] .fl-icon:first-child { display: none; }
.fl-feat__save[aria-pressed="true"] .fl-icon:last-child { display: inline-block; color: var(--accent-strong); }
@media (max-width: 899px) {
    .fl-feat, .fl-show__list > li:nth-child(even) .fl-feat { grid-template-columns: 1fr; }
    .fl-show__list > li:nth-child(even) .fl-feat__media { order: 0; }
    .fl-feat__actions .fl-btn--action { flex: 1; }
}

/* ════════════════ Products (shop.php) ════════════════ */
.fl-range { padding-block-start: var(--s-7); }
.fl-range__count { font-weight: var(--fw-bold); color: var(--ink-soft); margin-block-end: var(--s-5); }
.fl-range__grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } /* auto-fill: a short list keeps normal card size */
@media (max-width: 760px) { .fl-range__grid { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; gap: var(--s-5) var(--s-3); } }

/* comparison: one column per product; first column sticks while the table scrolls on phones */
.fl-compare { background: var(--surface); }
.fl-compare .fl-head { margin-block-end: var(--s-6); }
.fl-cmp { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); } /* relative: keeps screen-reader text inside the scroll box */
.fl-cmp:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fl-cmp table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; }
.fl-cmp th, .fl-cmp td { padding: var(--s-3) var(--s-4); text-align: center; border-block-end: 1px solid var(--line); vertical-align: middle; }
.fl-cmp tbody th { text-align: start; font-weight: var(--fw-bold); color: var(--ink-soft); font-size: var(--fs-sm); white-space: nowrap; }
.fl-cmp tbody tr:nth-child(odd) > * { background: color-mix(in srgb, var(--primary-soft) 45%, var(--surface)); }
.fl-cmp tr > :first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--surface); }
.fl-cmp thead th a { display: grid; gap: var(--s-2); justify-items: center; text-decoration: none; color: var(--primary); font-weight: var(--fw-heavy); line-height: 1.35; }
.fl-cmp thead img { width: 120px; aspect-ratio: 10 / 7; object-fit: contain; padding: 8px; border-radius: var(--r-md); background: var(--panel); transition: transform var(--dur-2) var(--ease); }
.fl-cmp thead a:hover img { transform: translateY(-4px) rotate(-2deg); }
.fl-cmp tfoot td { border-block-end: 0; padding-block: var(--s-4); }
.fl-cmp__yes, .fl-cmp__no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.fl-cmp__yes { background: var(--second); color: var(--primary); }
.fl-cmp__yes .fl-icon { stroke-width: 3; width: 18px; height: 18px; }
.fl-cmp__no { color: var(--ink-soft); }
.fl-cmp__dots { display: inline-flex; gap: 4px; }
.fl-cmp__dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 1px var(--ink-faint); }

/* help band */
.fl-help-band { padding-block-end: var(--section-y); }
.fl-help-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); padding: var(--s-6) var(--s-7); border-radius: var(--r-lg); background: var(--primary); color: var(--on-primary-soft); }
.fl-help-band h2 { font: var(--fw-heavy) var(--fs-xl)/1.3 var(--font-body); color: var(--fl-yellow); margin-block-end: var(--s-1); }
@media (max-width: 640px) { .fl-help-band__in { padding: var(--s-5); } .fl-help-band .fl-cluster, .fl-help-band .fl-btn { width: 100%; } }

/* comparison on phones: one spec card per product, swiped (the table is desktop/tablet only) */
.fl-cmpc { display: none; }
@media (max-width: 760px) {
    .fl-cmp { display: none; }
    .fl-cmpc { display: block; }
    .fl-cmpc__track { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: var(--s-1) var(--gutter) var(--s-3); }
    .fl-cmpc__track::-webkit-scrollbar { display: none; }
    .fl-cmpc__card { position: relative; scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: 0 10px 24px -20px color-mix(in srgb, var(--ink) 60%, transparent); }
    .fl-cmpc__head { display: grid; gap: var(--s-1); justify-items: center; padding: var(--s-3) var(--s-4); background: var(--panel); text-decoration: none; text-align: center; }
    .fl-cmpc__head img { width: 44%; aspect-ratio: 3 / 2; object-fit: contain; }
    .fl-cmpc__head span { font-weight: var(--fw-heavy); font-size: var(--fs-lg); color: var(--on-panel); line-height: 1.35; }
    .fl-cmpc dl { margin: 0; padding: var(--s-1) var(--s-4); }
    .fl-cmpc dl > div { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 44px; border-block-end: 1px solid var(--line); }
    .fl-cmpc dl > div:last-child { border-block-end: 0; }
    .fl-cmpc dt { font-size: var(--fs-sm); color: var(--ink-soft); font-weight: var(--fw-bold); }
    .fl-cmpc dd { margin: 0; font-weight: var(--fw-bold); text-align: end; }
    .fl-cmpc .is-no dt { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-soft) 55%, transparent); } /* the strike says "no"; the text keeps a readable colour */
    .fl-cmpc__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4) var(--s-4); background: color-mix(in srgb, var(--primary-soft) 45%, var(--surface)); }
    .fl-cmpc__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-block-start: var(--s-3); font-size: var(--fs-sm); color: var(--ink-soft); }
    .fl-cmpc__count { font-weight: var(--fw-bold); color: var(--primary); min-width: 3.5em; }
    .fl-cmpc__dots { display: flex; gap: 6px; }
    .fl-cmpc__dots i { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--ink-faint); transition: width var(--dur-2) var(--ease), background-color var(--dur-2); }
    .fl-cmpc__dots i.is-on { width: 22px; background: var(--primary); }
    .fl-cmpc__hint { display: inline-flex; align-items: center; gap: 4px; min-width: 3.5em; justify-content: flex-end; }
    .fl-cmpc__hint .fl-icon { width: 16px; height: 16px; }
}
/* swipe rows in RTL: Chrome drops the scroll box's start padding, so the first/last items carry the page margin (phones only) */
@media (max-width: 899px) {
    [dir="rtl"] :is(.fl-moments__grid) { padding-inline: 0; }
    [dir="rtl"] :is(.fl-moments__grid) > :first-child { margin-inline-start: var(--gutter); }
    [dir="rtl"] :is(.fl-moments__grid) > :last-child { margin-inline-end: var(--gutter); }
}
@media (max-width: 760px) {
    [dir="rtl"] :is(.fl-cmpc__track, .fl-pgrid:not(.fl-range__grid)) { padding-inline: 0; }
    [dir="rtl"] :is(.fl-cmpc__track, .fl-pgrid:not(.fl-range__grid)) > :first-child { margin-inline-start: var(--gutter); }
    [dir="rtl"] :is(.fl-cmpc__track, .fl-pgrid:not(.fl-range__grid)) > :last-child { margin-inline-end: var(--gutter); }
}

/* ════════════════ Product (product.php) ════════════════ */
.fl-pdp__crumbs { padding-block: var(--s-4); }
.fl-pdp__top { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; padding-block-end: var(--section-y); }

/* gallery */
.fl-gal { position: sticky; inset-block-start: calc(var(--header-h) + 16px); display: grid; gap: var(--s-3); }
.fl-gal__stage { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--panel); isolation: isolate; }
.fl-gal__stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(color-mix(in srgb, var(--fl-green) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--fl-green) 9%, transparent) 1px, transparent 1px); background-size: var(--grid-cell) var(--grid-cell); }
.fl-gal__no { position: absolute; inset-block-start: var(--s-4); inset-inline-start: var(--s-5); z-index: 1; font: 400 var(--fs-xl)/1 var(--font-display); letter-spacing: .06em; color: color-mix(in srgb, var(--fl-green) 45%, transparent); direction: ltr; }
.fl-gal__slide { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: zoom-in; }
.fl-gal__slide[hidden] { display: none; }
.fl-gal__slide img { width: 100%; height: 100%; object-fit: cover; }
.fl-gal__slide.is-cut img { object-fit: contain; padding: 12%; filter: drop-shadow(0 30px 26px color-mix(in srgb, var(--ink) 22%, transparent)); transition: filter .45s var(--ease), transform .6s var(--ease); }
.fl-gal__slide.is-cut img.is-swapping { transform: scale(.94) rotate(-2deg); }
.fl-gal__hint { position: absolute; inset-block-end: var(--s-4); inset-inline-end: var(--s-4); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--primary); pointer-events: none; }
.fl-gal__thumbs { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; }
.fl-gal__thumb { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: var(--r-md); overflow: hidden; background: var(--panel); transition: border-color var(--dur-1); }
.fl-gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fl-gal__thumb:first-child img { object-fit: contain; padding: 8px; }
.fl-gal__thumb[aria-current] { border-color: var(--primary); }
.fl-gal__thumb:hover { border-color: var(--ink-faint); }
.fl-zoom { width: min(1000px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--panel); overflow: hidden; }
.fl-zoom::backdrop { background: color-mix(in srgb, var(--fl-green) 80%, transparent); }
.fl-zoom img { width: 100%; height: auto; max-height: 92vh; object-fit: contain; }
.fl-zoom__close { position: absolute; inset-block-start: var(--s-3); inset-inline-end: var(--s-3); width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--primary); }

/* buy box */
.fl-buy { display: grid; gap: var(--s-4); }
.fl-buy__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.fl-buy__rating { display: inline-flex; align-items: center; min-height: 24px; gap: var(--s-2); text-decoration: none; color: var(--ink-soft); font-size: var(--fs-sm); }
.fl-buy__rating:hover span:last-child { color: var(--primary); text-decoration: underline; }
.fl-buy__name { font: var(--fw-heavy) clamp(2rem, 1.3rem + 2.4vw, 3.2rem)/1.12 var(--font-body); color: var(--primary); }
.fl-buy__short { font-size: var(--fs-lg); color: var(--ink-soft); }
.fl-buy__price { line-height: 1.1; }
.fl-buy__price .fl-price { line-height: 1.1; }
.fl-buy__price .fl-price__now { transition: color var(--dur-2); }
.fl-buy__price.is-flash .fl-price__now { color: var(--accent-strong); }
.fl-stock { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.fl-stock::before { flex: none; content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.fl-stock--in { color: var(--success); } .fl-stock--low { color: var(--warning); } .fl-stock--out { color: var(--danger); }
.fl-stock__bar { flex-basis: 100%; height: 6px; border-radius: 6px; background: var(--warning-soft); overflow: hidden; }
.fl-stock__bar i { display: block; height: 100%; background: var(--warning); border-radius: inherit; }
.fl-buy__form { display: grid; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.fl-buy__row { display: flex; gap: var(--s-3); align-items: center; }
.fl-buy__qtybox { display: contents; }
.fl-notify { display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); align-items: end; padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px dashed var(--line); }
@media (max-width: 480px) { .fl-notify { grid-template-columns: 1fr; } }
.fl-buy__add { flex: 1; }
.fl-size.is-off span, .fl-swatch.is-off span { opacity: .45; }
.fl-size.is-off span { text-decoration: line-through; }
.fl-swatch.is-off span::after { content: ""; position: absolute; inset: 50% -2px auto; height: 2px; background: var(--ink); rotate: -45deg; }
.fl-swatch span { position: relative; }

/* size guide: the sizes drawn to scale */
.fl-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.fl-sizes__item { display: grid; justify-items: center; align-content: end; gap: 2px; padding: var(--s-3) var(--s-2); border-radius: var(--r-md); background: var(--paper); text-align: center; transition: background-color var(--dur-2), box-shadow var(--dur-2); }
.fl-sizes__art { display: grid; place-items: end center; height: 56px; width: 100%; }
.fl-sizes__art img { width: calc(78% * var(--k)); opacity: .45; transition: opacity var(--dur-2), transform var(--dur-2) var(--ease); }
.fl-sizes__item b { font-size: var(--fs-sm); color: var(--ink); }
.fl-sizes__item small { font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.4; }
.fl-sizes__item.is-on { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); }
.fl-sizes__item.is-on img { opacity: 1; transform: translateY(-3px); }
.fl-sizes__item.is-on b { color: var(--primary); }

/* delivery ticket + trust */
.fl-eta { display: grid; grid-template-columns: 56px 1fr; align-items: center; background: var(--second); border-radius: var(--r-md); overflow: hidden;
    -webkit-mask: radial-gradient(circle 7px at var(--nx, 56px) 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 7px at var(--nx, 56px) 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 7px at var(--nx, 56px) 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 7px at var(--nx, 56px) 100%, #0000 96%, #000) bottom / 100% 51% no-repeat; }
[dir="rtl"] .fl-eta { --nx: calc(100% - 56px); }
.fl-eta__stub { display: grid; place-items: center; height: 100%; min-height: 64px; background: var(--primary); color: var(--fl-yellow); }
.fl-eta > div { display: grid; padding: var(--s-3) var(--s-4); color: var(--on-second); }
.fl-eta small { font-size: var(--fs-xs); }
.fl-buy__trust { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); color: var(--ink-soft); }
.fl-buy__trust li { display: inline-flex; align-items: center; gap: 6px; }
.fl-buy__trust .fl-icon { width: 18px; height: 18px; color: var(--primary); }
.fl-buy__trust a { color: var(--primary); font-weight: var(--fw-bold); }

/* how it locks: hotspots on the line drawing */
.fl-locks { background-color: var(--primary); color: var(--on-primary-soft); }
.fl-locks__in { display: grid; grid-template-columns: 1fr 1.2fr; grid-template-areas: "head art" "list art"; gap: var(--s-5) var(--s-7); align-items: center; }
.fl-locks .fl-head { grid-area: head; }
.fl-locks__art { grid-area: art; position: relative; padding: var(--s-6); border-radius: var(--r-lg); background: var(--fl-egg); }
.fl-locks__art img { width: 100%; }
.fl-spot { position: absolute; inset-inline-start: var(--x); inset-block-start: var(--y); translate: -50% -50%; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--primary); color: var(--fl-yellow); font-weight: var(--fw-heavy); cursor: pointer; box-shadow: 0 0 0 5px color-mix(in srgb, var(--fl-green) 25%, transparent); transition: transform var(--dur-2) var(--ease), background-color var(--dur-1); }
[dir="rtl"] .fl-spot { translate: 50% -50%; }
.fl-spot[aria-expanded="true"] { background: var(--fl-yellow); color: var(--fl-green); transform: scale(1.12); box-shadow: 0 0 0 6px color-mix(in srgb, var(--fl-yellow) 35%, transparent); }
@media (prefers-reduced-motion: no-preference) { .fl-spot[aria-expanded="false"] { animation: fl-ping 2.4s var(--ease) infinite; } }
@keyframes fl-ping { 0%, 70%, 100% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--fl-green) 25%, transparent); } 35% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--fl-green) 0%, transparent); } }
.fl-locks__list { grid-area: list; display: grid; gap: var(--s-2); }
.fl-locks__list li { cursor: pointer; display: flex; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); transition: background-color var(--dur-2); }
.fl-locks__list li.is-on { background: color-mix(in srgb, var(--fl-egg) 10%, transparent); }
.fl-locks__list li:not(.is-on) p { display: none; }
.fl-locks__n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--line-on-dark); color: var(--on-primary); font-weight: var(--fw-heavy); font-size: var(--fs-sm); }
.fl-locks__list li.is-on .fl-locks__n { background: var(--fl-yellow); color: var(--fl-green); }
.fl-locks__list b { color: var(--on-primary); }
.fl-locks__list p { font-size: var(--fs-sm); margin-block-start: 2px; }

/* details + product label */
.fl-details__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.fl-rich { display: grid; gap: var(--s-3); margin-block-start: var(--s-5); color: var(--ink-soft); font-size: var(--fs-lg); max-width: 60ch; }
.fl-rich ul { display: grid; gap: var(--s-2); padding-inline-start: 1.2em; }
.fl-rich li::marker { color: var(--accent-strong); }
.fl-inbox { margin-block-start: var(--s-5); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--panel); }
.fl-inbox b { color: var(--primary); }
.fl-plabel { position: relative; padding: var(--s-5) var(--s-5) var(--s-6); background: var(--surface); border: 2px solid var(--primary); border-radius: var(--r-md); rotate: 1.5deg; box-shadow: 8px 8px 0 var(--second); }
[dir="rtl"] .fl-plabel { rotate: -1.5deg; box-shadow: -8px 8px 0 var(--second); }
.fl-plabel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block-end: var(--s-3); border-block-end: 6px solid var(--primary); color: var(--primary); }
.fl-plabel__head .fl-logo { height: 24px; width: auto; }
.fl-plabel__head b { font: 400 var(--fs-lg)/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
:lang(ar) .fl-plabel__head b { font: var(--fw-heavy) var(--fs-lg)/1 var(--font-body); }
.fl-plabel dl { margin: 0; }
.fl-plabel dl > div { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: 10px; border-block-end: 1px solid var(--line); font-size: var(--fs-sm); }
.fl-plabel dl > div:nth-child(2) { border-block-end: 3px solid var(--primary); }
.fl-plabel dt { font-weight: var(--fw-bold); color: var(--ink); }
.fl-plabel dd { margin: 0; text-align: end; color: var(--ink-soft); }
.fl-plabel__foot { margin-block-start: var(--s-3); font: 400 var(--fs-sm)/1 var(--font-display); color: var(--primary); letter-spacing: .04em; }

/* reviews */
.fl-reviews { background: var(--surface); }
.fl-reviews__in { display: grid; grid-template-columns: 280px 1fr 1fr; gap: var(--s-6); align-items: start; }
.fl-reviews__sum { display: grid; justify-items: center; gap: var(--s-2); text-align: center; }
.fl-reviews__sum .fl-burst b { display: block; font: var(--fw-heavy) 2.6rem/1 var(--font-body); }
.fl-reviews__sum .fl-burst small { font-size: var(--fs-sm); font-family: var(--font-body); font-style: normal; }
.fl-reviews__sum > p { color: var(--ink-soft); font-size: var(--fs-sm); }
.fl-bars { display: grid; gap: 6px; width: 100%; margin-block-start: var(--s-2); }
.fl-bars li { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); }
.fl-bars li > span:first-child { display: inline-flex; align-items: center; gap: 2px; font-weight: var(--fw-bold); }
.fl-bars .fl-icon { width: 14px; height: 14px; color: #E8A400; }
.fl-bars__track { height: 8px; border-radius: 8px; background: var(--paper); overflow: hidden; }
.fl-bars__track i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.fl-reviews__list { display: grid; gap: var(--s-3); }
.fl-review { display: grid; gap: var(--s-2); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--paper); }
.fl-review__head { display: flex; align-items: center; gap: var(--s-3); }
.fl-review__head > div { display: grid; margin-inline-end: auto; }
.fl-review__head small { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.fl-review__head small .fl-icon { width: 14px; height: 14px; }
.fl-review__head time { font-size: var(--fs-xs); color: var(--ink-soft); }
.fl-review__avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--second); color: var(--primary); font-weight: var(--fw-heavy); }
.fl-reviews__form { display: grid; gap: var(--s-4); }
.fl-reviews__form h3 { font-size: var(--fs-xl); color: var(--primary); }
.fl-stars { border: 0; padding: 0; margin: 0; }
.fl-stars__row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.fl-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fl-stars label { cursor: pointer; color: var(--line); transition: color var(--dur-1), transform var(--dur-1) var(--ease); }
.fl-stars label .fl-icon { width: 34px; height: 34px; }
.fl-stars label:hover, .fl-stars label:hover ~ label, .fl-stars input:checked ~ label { color: #E8A400; }
.fl-stars label:hover { transform: scale(1.12); }
.fl-stars input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* sticky add-to-cart (phones) */
.fl-sticky { position: fixed; z-index: calc(var(--z-tabbar) - 1); inset-inline: var(--s-3); inset-block-end: calc(var(--tabbar-h) + 12px + var(--safe-bottom)); display: none; align-items: center; gap: var(--s-3); padding: var(--s-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--ink) 45%, transparent); border: 1px solid var(--line); animation: fl-rise var(--dur-2) var(--ease); }
.fl-sticky img { width: 52px; height: 52px; object-fit: contain; border-radius: var(--r-md); background: var(--panel); padding: 4px; }
.fl-sticky > div { flex: 1; min-width: 0; display: grid; }
.fl-sticky b { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-sticky[hidden] { display: none !important; }

@media (max-width: 1023px) { .fl-reviews__in { grid-template-columns: 1fr 1fr; } .fl-reviews__sum { grid-column: 1 / -1; } }
@media (max-width: 899px) {
    .fl-pdp__top { grid-template-columns: 1fr; }
    .fl-gal { position: static; }
    .fl-gal__stage { border-radius: var(--r-md); aspect-ratio: 4 / 3; }
    .fl-gal__thumb { width: 60px; height: 60px; }
    .fl-locks__in { grid-template-columns: 1fr; grid-template-areas: "head" "art" "list"; }
    .fl-details__in { grid-template-columns: 1fr; }
    .fl-reviews__in { grid-template-columns: 1fr; }
    .fl-sticky { display: flex; }
    .fl-pdp .fl-fab { inset-block-end: calc(var(--tabbar-h) + 92px + var(--safe-bottom)); }
}
@media (max-width: 480px) { .fl-buy__form { padding: var(--s-4); } .fl-buy__row { flex-wrap: wrap; } .fl-buy__add { flex-basis: calc(100% - 64px); order: -1; } .fl-buy__row .fl-qty { flex: 1; justify-content: space-between; } }
@media (max-width: 899px) { .fl-locks__art { padding: var(--s-5) var(--s-4); } .fl-spot { width: 36px; height: 36px; font-size: var(--fs-sm); } }


/* hero height: Arabic needs taller lines, so its headline is a touch smaller and the panel tighter; fits one screen */
:lang(ar) .fl-hero__title { font-size: clamp(2.3rem, 1.2rem + 3.4vw, 4.4rem); margin-block: var(--s-3) var(--s-4); }
.fl-hero--a .fl-hero__slide { min-height: clamp(520px, calc(100vh - var(--header-h) - 40px), 700px); }
.fl-hero--a .fl-hero__panel { padding-block: clamp(32px, 4vw, 64px) 120px; }
.fl-hero__cta { margin-block-start: var(--s-5); }
@media (max-width: 899px) { .fl-hero--a .fl-hero__slide { min-height: 0; } .fl-hero--a .fl-hero__panel { padding-block: var(--s-5) var(--s-5); } }
@media (max-width: 899px) {
    .fl-hero--a .fl-hero__media { aspect-ratio: 16 / 9; }
    .fl-hero__title, :lang(ar) .fl-hero__title { font-size: clamp(1.9rem, 1.2rem + 3.6vw, 2.6rem); }
    .fl-hero__lead { font-size: var(--fs-base); }
    .fl-hero--a .fl-hero__bar { padding-block: var(--s-3) var(--s-6); }
    .fl-hero__facts { gap: var(--s-1) var(--s-4); }
}
/* phones: the tilted ribbon tucks under the hero, so the slider controls need room above it */
@media (max-width: 899px) {
    .fl-hero--a .fl-hero__bar { padding-block-end: calc(var(--s-6) + 30px); }
    .fl-ribbon { margin-block-start: -24px; }
}

/* ════════════════ Cart & wishlist ════════════════ */

/* side drawer (cart, wishlist): slides in from the reading end */
.fl-drawer { margin: 0; margin-inline-start: auto; inset-block: 0; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); max-width: 100vw; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.fl-drawer[open] { display: flex; flex-direction: column; animation: fl-drawer-in var(--dur-2) var(--ease); }
[dir="rtl"] .fl-drawer[open] { animation-name: fl-drawer-in-rtl; }
@keyframes fl-drawer-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes fl-drawer-in-rtl { from { transform: translateX(-40px); opacity: 0; } }
.fl-drawer::backdrop { background: color-mix(in srgb, var(--fl-green) 55%, transparent); }
.fl-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border-block-end: 1px solid var(--line); background: var(--surface); }
.fl-drawer__head h2 { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xl); }
.fl-drawer__n { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding-inline: 8px; border-radius: var(--r-pill); background: var(--second); color: var(--primary); font: var(--fw-heavy) var(--fs-sm)/1 var(--font-body); }
.fl-drawer__body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: var(--s-4) var(--s-5); display: grid; align-content: start; gap: var(--s-4); }
.fl-drawer__foot { display: grid; gap: var(--s-3); padding: var(--s-4) var(--s-5) calc(var(--s-4) + var(--safe-bottom)); border-block-start: 1px solid var(--line); background: var(--surface); }
.fl-drawer__sub { display: flex; justify-content: space-between; align-items: baseline; font-weight: var(--fw-bold); }
.fl-drawer__sub b { font-size: var(--fs-xl); color: var(--primary); }
.fl-drawer__note { font-size: var(--fs-xs); color: var(--ink-soft); margin-block-start: -8px; }

/* free-delivery road: two stops — the padlock (minimum order) and the house (free delivery) */
.fl-road { display: grid; gap: var(--s-3); padding: var(--s-3) var(--s-4) var(--s-4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.fl-road__msg { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--primary); }
.fl-road__msg .fl-money { color: var(--accent-strong); }
.fl-road__track { position: relative; height: 54px; margin-inline: 4px 22px; }
.fl-road__track::before { content: ""; position: absolute; inset-inline: 0; inset-block-end: 20px; height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--line) 0 12px, transparent 12px 20px); }
.fl-road__fill { position: absolute; inset-inline-start: 0; inset-block-end: 20px; height: 6px; width: var(--p); border-radius: 6px; background: var(--fl-yellow); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fl-green) 20%, transparent); transition: width .6s var(--ease), background-color var(--dur-2); }
.fl-road__van { position: absolute; z-index: 2; inset-block-end: 25px; inset-inline-start: var(--p); translate: -50% 0; color: var(--primary); transition: inset-inline-start .6s var(--ease); }
[dir="rtl"] .fl-road__van { translate: 50% 0; }
.fl-road__van .fl-icon { width: 28px; height: 28px; }
.fl-road__stop { position: absolute; inset-block-end: 6px; display: grid; justify-items: center; gap: 2px; translate: -50% 0; }
[dir="rtl"] .fl-road__stop { translate: 50% 0; }
.fl-road__stop--lock { inset-inline-start: var(--lock); }
.fl-road__stop--home { inset-inline-start: 100%; }
.fl-road__stop .fl-icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--paper); color: var(--ink-faint); box-shadow: 0 0 0 2px var(--surface); transition: background-color var(--dur-2), color var(--dur-2); }
.fl-road__stop small { font: var(--fw-bold) 10px/1 var(--font-body); color: var(--ink-soft); translate: 0 26px; position: absolute; }
.fl-road__stop--lock .fl-icon:last-of-type { display: none; }
/* below the minimum: padlock closed and orange; passed: open and green */
.fl-road.is-min .fl-road__stop--lock .fl-icon { background: var(--accent-strong); color: #fff; }
.fl-road.is-min .fl-road__fill { background: color-mix(in srgb, var(--fl-orange) 70%, var(--fl-yellow)); }
.fl-road:not(.is-min) .fl-road__stop--lock .fl-icon:first-of-type { display: none; }
.fl-road:not(.is-min) .fl-road__stop--lock .fl-icon:last-of-type { display: block; background: var(--primary); color: var(--fl-yellow); }
.fl-road.is-done .fl-road__stop--home .fl-icon { background: var(--primary); color: var(--fl-yellow); }
.fl-road.is-done .fl-road__fill { background: var(--primary); }
@media (prefers-reduced-motion: no-preference) {
    .fl-road.is-free .fl-road__stop--lock .fl-icon, .fl-road.is-done .fl-road__stop--home .fl-icon { animation: fl-pop-heart .5s var(--ease); }
}

/* gap filler: the product that closes the distance, one tap */
.fl-gap { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); border: 1.5px dashed color-mix(in srgb, var(--fl-green) 35%, transparent); background: color-mix(in srgb, var(--second) 22%, var(--surface)); }
.fl-gap__img { aspect-ratio: 1; border-radius: var(--r-sm); background: var(--panel); overflow: hidden; }
.fl-gap__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.fl-gap__txt { display: grid; gap: 1px; min-width: 0; line-height: 1.35; }
.fl-gap__txt small { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--accent-strong); }
.fl-gap__txt b { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-gap__add { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--action); color: var(--on-action); transition: transform var(--dur-1) var(--ease); }
.fl-gap__add:hover { transform: rotate(90deg); }
.fl-gap__add[aria-busy="true"] { color: transparent; }
.fl-gap__add[aria-busy="true"]::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--on-action); border-inline-end-color: transparent; animation: fl-spin .7s linear infinite; }

/* checkout button: a padlock that opens when checkout is allowed */
.fl-checkout-btn__lock { position: relative; display: inline-grid; }
.fl-checkout-btn__lock .fl-icon:last-child { display: none; }
.fl-checkout-btn:not([aria-disabled]) .fl-checkout-btn__lock .fl-icon:first-child { display: none; }
.fl-checkout-btn:not([aria-disabled]) .fl-checkout-btn__lock .fl-icon:last-child { display: inline-block; }
.fl-checkout-btn[aria-disabled="true"] { --btn-bg: var(--line); --btn-fg: var(--ink-soft); cursor: not-allowed; }
.fl-receipt__min { display: flex; gap: 6px; align-items: flex-start; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: color-mix(in srgb, var(--fl-orange) 10%, var(--surface)); color: var(--accent-strong); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.fl-receipt__min .fl-icon { flex: none; width: 16px; height: 16px; }
.fl-receipt__min[hidden] { display: none; }

/* ════ Wishlist: your shelf ════ */
.fl-shelfscene { background-color: var(--primary); color: var(--on-primary-soft); padding-block: var(--s-5) var(--section-y); }
.fl-shelfscene .fl-crumbs a, .fl-shelfscene .fl-crumbs span { color: var(--on-primary); }
.fl-shelfscene .fl-head { margin-block: var(--s-5) var(--s-7); }
.fl-shelf { position: relative; }
.fl-shelf__row { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 4vw, 56px); padding-inline: var(--s-5); }
/* the plank: a thick yellow shelf with a front edge and a soft shadow underneath */
.fl-shelf__plank { position: relative; display: block; height: 22px; margin-block-start: -4px; border-radius: 6px; background: linear-gradient(var(--fl-yellow) 0 55%, color-mix(in srgb, var(--fl-yellow) 75%, var(--fl-orange)) 55%); box-shadow: 0 22px 26px -18px #000; }
.fl-shelf__plank::before, .fl-shelf__plank::after { content: ""; position: absolute; inset-block-start: 100%; width: 14px; height: 34px; background: color-mix(in srgb, var(--fl-yellow) 65%, var(--fl-orange)); clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%); }
.fl-shelf__plank::before { inset-inline-start: 8%; } .fl-shelf__plank::after { inset-inline-end: 8%; scale: -1 1; }
.fl-shelf__item { position: relative; display: grid; justify-items: center; width: clamp(170px, 22vw, 260px); }
.fl-shelf__prod { display: block; width: 100%; transition: transform .45s var(--ease); }
.fl-shelf__prod img { width: 100%; height: auto; filter: drop-shadow(0 16px 10px rgba(0,0,0,.28)); }
.fl-shelf__item:hover .fl-shelf__prod { transform: translateY(-10px) rotate(-2deg); }
.fl-shelf__remove { position: absolute; z-index: 2; inset-block-start: -6px; inset-inline-end: 4px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--accent-strong); box-shadow: 0 6px 14px -8px #000; transition: transform var(--dur-1) var(--ease); }
.fl-shelf__remove:hover { transform: scale(1.1); }
.fl-shelf__remove .fl-icon { width: 20px; height: 20px; }
/* the hanging price tag: string from the plank's edge, the tag swings a little on hover */
.fl-shelf__string { position: absolute; inset-block-start: 100%; width: 2px; height: 34px; background: color-mix(in srgb, var(--fl-egg) 70%, transparent); }
.fl-shelf__tag { position: absolute; inset-block-start: calc(100% + 30px); z-index: 2; display: grid; justify-items: center; gap: 4px; width: 100%; padding: var(--s-4) var(--s-3) var(--s-3); border-radius: var(--r-md); background: var(--surface); color: var(--ink); text-align: center; box-shadow: 0 16px 28px -18px #000; rotate: var(--tilt); transform-origin: 50% -30px; transition: rotate .6s var(--ease); }
.fl-shelf__tag::before { content: ""; position: absolute; inset-block-start: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: inset 0 0 0 3px var(--paper); }
.fl-shelf__item:hover .fl-shelf__tag { rotate: calc(var(--tilt) * -1.4); }
.fl-shelf__name { font-size: var(--fs-sm); line-height: 1.35; }
.fl-shelf__dots { display: flex; gap: 6px; margin-block: 2px; }
.fl-shelf__dot { position: relative; cursor: pointer; }
.fl-shelf__dot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fl-shelf__dot span { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 1px var(--ink-faint); }
.fl-shelf__dot input:checked + span { box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 2px var(--primary); }
.fl-shelf__dot input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.fl-shelf__cart { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-block-start: 4px; height: 36px; padding-inline: var(--s-3); border: 0; border-radius: var(--r-pill); background: var(--action); color: var(--on-action); font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.fl-shelf__cart:hover { background: var(--action-strong); }
.fl-shelf__cart .fl-icon { width: 16px; height: 16px; }
.fl-shelf__cart[aria-busy="true"] { color: transparent; }
.fl-shelf__cart[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--on-action); border-inline-end-color: transparent; animation: fl-spin .7s linear infinite; }
.fl-shelf__out { font-weight: var(--fw-bold); color: var(--danger); }
.fl-shelf__item.is-going { opacity: 0; transform: translateY(-20px) scale(.9); transition: opacity .3s, transform .3s var(--ease); }
.fl-shelf { padding-block-end: 250px; } /* room for the hanging tags */
/* shelf summary ticket */
.fl-shelfsum { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; max-width: 880px; margin-inline: auto; background: var(--surface); color: var(--ink); border-radius: var(--r-md); overflow: hidden;
    -webkit-mask: radial-gradient(circle 9px at var(--nx, 96px) 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at var(--nx, 96px) 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 9px at var(--nx, 96px) 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at var(--nx, 96px) 100%, #0000 96%, #000) bottom / 100% 51% no-repeat; }
[dir="rtl"] .fl-shelfsum { --nx: calc(100% - 96px); }
.fl-shelfsum__stub { display: grid; place-items: center; align-content: center; gap: 2px; height: 100%; min-height: 104px; background: var(--second); color: var(--accent-strong); }
.fl-shelfsum__stub b { font: var(--fw-heavy) var(--fs-2xl)/1 var(--font-body); color: var(--primary); }
.fl-shelfsum__txt { display: grid; gap: 2px; padding: var(--s-4) var(--s-5); }
.fl-shelfsum__txt p { font-size: var(--fs-sm); color: var(--ink-soft); }
.fl-shelfsum__txt > b { font-size: var(--fs-xl); color: var(--primary); }
.fl-shelfsum__txt small { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-bold); color: var(--success); }
.fl-shelfsum__txt small .fl-icon { width: 18px; height: 18px; }
.fl-shelfsum__acts { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-4) var(--s-5); }
/* empty shelf: dashed outlines where products would stand */
.fl-shelf--empty { padding-block-end: 0; }
.fl-shelf__ghost { width: clamp(150px, 20vw, 230px); padding: var(--s-4); border: 2px dashed var(--line-on-dark); border-block-end: 0; border-radius: var(--r-md) var(--r-md) 0 0; opacity: .5; }
.fl-shelf__ghost img { width: 100%; filter: brightness(0) invert(1); opacity: .5; }
.fl-shelf__emptytxt { display: grid; justify-items: center; gap: var(--s-2); margin-block-start: var(--s-7); text-align: center; }
.fl-shelf__emptytxt h3 { color: var(--fl-yellow); font-size: var(--fs-xl); }
/* mini shelf in the drawer */
.fl-shelf--mini { padding-block-end: 210px; margin-block-start: var(--s-4); }
.fl-shelf--mini .fl-shelf__row { gap: var(--s-3); padding-inline: var(--s-2); flex-wrap: nowrap; }
.fl-shelf--mini .fl-shelf__item { width: 33%; }
.fl-shelf--mini .fl-shelf__ghost { flex: 1 1 0; width: auto; min-width: 0; max-width: 170px; }
.fl-shelf--mini .fl-shelf__tag { padding: var(--s-3) 6px var(--s-2); }
.fl-shelf--mini .fl-shelf__name { font-size: var(--fs-xs); }
.fl-shelf--mini .fl-shelf__remove { width: 30px; height: 30px; }
.fl-shelf--mini .fl-shelf__cart span { display: none; }
.fl-shelf--mini .fl-shelf__cart { width: 34px; padding: 0; justify-content: center; }
.fl-shelf--mini .fl-shelf__string { height: 24px; }
.fl-shelf--mini .fl-shelf__tag { inset-block-start: calc(100% + 20px); }
.fl-drawer .fl-shelf--empty .fl-shelf__ghost { border-color: var(--line); }
.fl-drawer .fl-shelf--empty .fl-shelf__ghost img { filter: none; opacity: .35; }
.fl-drawer .fl-shelf__emptytxt h3 { color: var(--primary); }
@media (max-width: 760px) {
    .fl-shelf__row { flex-wrap: wrap; row-gap: 280px; }
    .fl-shelf__item { width: calc(50% - 12px); }
    .fl-shelfsum { grid-template-columns: 72px 1fr; --nx: 72px; }
    [dir="rtl"] .fl-shelfsum { --nx: calc(100% - 72px); }
    .fl-shelfsum__stub { grid-row: 1 / span 2; } /* the yellow stub runs the whole card; the button sits beside it */
    .fl-shelfsum__acts { grid-column: 2; padding-block-start: 0; }
    .fl-shelfsum__acts .fl-btn { flex: 1; }
}

/* cart line */
.fl-clines { display: grid; gap: var(--s-3); }
.fl-cline { position: relative; display: grid; grid-template-columns: 72px 1fr auto; grid-template-areas: "img info remove" "img qty price"; gap: var(--s-2) var(--s-3); padding: var(--s-3); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: opacity var(--dur-2), transform var(--dur-2) var(--ease); }
.fl-cline__img { grid-area: img; align-self: start; display: block; aspect-ratio: 1; border-radius: var(--r-sm); background: var(--panel); overflow: hidden; }
.fl-cline__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.fl-cline__info { grid-area: info; display: grid; gap: 4px; min-width: 0; }
.fl-cline__name { font-weight: var(--fw-bold); color: var(--ink); text-decoration: none; line-height: 1.4; }
.fl-cline__name:hover { color: var(--primary); }
.fl-cline__variant { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--ink-soft); }
.fl-cline__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px var(--ink-faint); }
.fl-cline__note { display: flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.fl-cline__note .fl-icon { width: 15px; height: 15px; }
.fl-cline__note--bad { color: var(--danger); } .fl-cline__note--warn { color: var(--warning); } .fl-cline__note--info { color: var(--primary); }
.fl-cline__qty { grid-area: qty; align-self: center; }
.fl-cline__price { grid-area: price; display: grid; justify-items: end; align-self: center; line-height: 1.3; }
.fl-cline__price b { color: var(--primary); font-size: var(--fs-lg); }
.fl-cline__price small, .fl-cline__price s { font-size: var(--fs-xs); color: var(--ink-soft); }
.fl-cline__remove { grid-area: remove; align-self: start; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); transition: background-color var(--dur-1), color var(--dur-1); }
.fl-cline__remove:hover { background: var(--danger-soft); color: var(--danger); }
.fl-cline__remove .fl-icon { width: 20px; height: 20px; }
.fl-cline.is-off { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); background: color-mix(in srgb, var(--danger-soft) 40%, var(--surface)); }
.fl-cline.is-off .fl-cline__img { filter: grayscale(.8); opacity: .6; }
.fl-cline.is-going { opacity: 0; transform: translateX(24px); }
[dir="rtl"] .fl-cline.is-going { transform: translateX(-24px); }
/* wide (cart page) */
.fl-cline--wide { grid-template-columns: 104px 1fr auto auto 40px; grid-template-areas: "img info qty price remove"; align-items: center; padding: var(--s-4); }
.fl-cline--wide .fl-cline__price { min-width: 110px; }
.fl-cline--wide .fl-cline__remove { align-self: center; }
@media (max-width: 640px) { .fl-cline--wide { grid-template-columns: 80px 1fr auto; grid-template-areas: "img info remove" "img qty price"; padding: var(--s-3); } }

/* cart page */
.fl-cartpage__grid { display: grid; grid-template-columns: 1fr 380px; gap: var(--s-6); align-items: start; padding-block-end: var(--section-y); }
.fl-cartpage__lines { display: grid; gap: var(--s-4); }
.fl-cartpage__back { justify-self: start; }
.fl-cartpage__empty { padding-block: var(--s-7) var(--section-y); }
@media (max-width: 1023px) { .fl-cartpage__grid { grid-template-columns: 1fr; } }

/* order summary as a receipt ticket: perforated, scalloped ends */
.fl-receipt { position: sticky; inset-block-start: calc(var(--header-h) + 16px); display: grid; gap: var(--s-4); padding: var(--s-6) var(--s-5) var(--s-6); background: var(--surface); filter: drop-shadow(0 14px 22px color-mix(in srgb, var(--ink) 14%, transparent));
    -webkit-mask: radial-gradient(circle 9px at 50% 0, #0000 96%, #000) top / 26px 51% repeat-x, radial-gradient(circle 9px at 50% 100%, #0000 96%, #000) bottom / 26px 51% repeat-x;
    mask: radial-gradient(circle 9px at 50% 0, #0000 96%, #000) top / 26px 51% repeat-x, radial-gradient(circle 9px at 50% 100%, #0000 96%, #000) bottom / 26px 51% repeat-x; }
.fl-receipt__head { display: grid; justify-items: center; gap: var(--s-2); padding-block-end: var(--s-3); border-block-end: 2px dashed var(--line); color: var(--primary); text-align: center; }
.fl-receipt__head .fl-logo { height: 22px; width: auto; }
.fl-receipt__head h2 { font: var(--fw-heavy) var(--fs-lg)/1.3 var(--font-body); }
.fl-receipt dl { margin: 0; display: grid; gap: var(--s-2); }
.fl-receipt dl > div { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-sm); }
.fl-receipt dt { color: var(--ink-soft); }
.fl-receipt dd { margin: 0; font-weight: var(--fw-bold); }
.fl-receipt .is-save dd { color: var(--success); }
.fl-receipt .is-total { margin-block-start: var(--s-2); padding-block-start: var(--s-3); border-block-start: 2px dashed var(--line); font-size: var(--fs-lg); }
.fl-receipt .is-total dt { color: var(--ink); font-weight: var(--fw-bold); }
.fl-receipt .is-total dd { color: var(--primary); font-size: var(--fs-xl); }
.fl-receipt__free { display: inline-block; padding: 0 var(--s-2); border-radius: var(--r-pill); background: var(--second); color: var(--primary); }
.fl-receipt__note, .fl-receipt__guest { font-size: var(--fs-xs); color: var(--ink-soft); text-align: center; }
.fl-receipt__guest a { color: var(--primary); font-weight: var(--fw-bold); }
.fl-receipt__trust { display: grid; gap: 6px; padding-block-start: var(--s-3); border-block-start: 2px dashed var(--line); font-size: var(--fs-xs); color: var(--ink-soft); }
.fl-receipt__trust li { display: flex; align-items: center; gap: 6px; }
.fl-receipt__trust .fl-icon { width: 16px; height: 16px; color: var(--primary); }
@media (max-width: 1023px) { .fl-receipt { position: static; } }
/* brand objects at the shelf ends make it read as a real kitchen shelf (decoration only) */
.fl-shelf__deco { align-self: flex-end; height: 150px; opacity: .9; }
.fl-shelf__deco img { height: 100%; width: auto; }
@media (max-width: 760px) { .fl-shelf__deco { display: none; } }
/* phones: two products per row, so each one stands on its own plank segment (segments meet into one shelf) */
@media (max-width: 760px) {
    .fl-shelf:not(.fl-shelf--mini):not(.fl-shelf--empty) > .fl-shelf__plank { display: none; }
    .fl-shelf:not(.fl-shelf--mini):not(.fl-shelf--empty) .fl-shelf__item::after { content: ""; position: absolute; inset-block-start: calc(100% - 4px); inset-inline: -14px; height: 18px; background: linear-gradient(var(--fl-yellow) 0 55%, color-mix(in srgb, var(--fl-yellow) 75%, var(--fl-orange)) 55%); box-shadow: 0 18px 22px -16px #000; }
    .fl-shelf:not(.fl-shelf--mini):not(.fl-shelf--empty) .fl-shelf__string { inset-block-start: calc(100% + 14px); height: 22px; }
    .fl-shelf:not(.fl-shelf--mini):not(.fl-shelf--empty) .fl-shelf__tag { inset-block-start: calc(100% + 32px); }
}
.fl-road__stop .fl-icon { color: var(--ink-soft); box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 1.5px var(--line); }
.fl-gap[hidden] { display: none; }
/* stops keep their size even at the very end of the track (an absolute box at 100% has no room and shrank the icon) */
.fl-road__stop { width: 30px; justify-items: center; }
.fl-road__stop .fl-icon { flex: none; width: 30px; min-width: 30px; height: 30px; }
/* once delivery is free the van parks at the house instead of hiding behind it */
.fl-road.is-done .fl-road__van { inset-inline-start: calc(100% - 34px); }

/* ════ Cart: your order crate ════ */
.fl-cartscene { background-color: var(--primary); color: var(--on-primary-soft); padding-block: var(--s-5) var(--s-6); overflow: hidden; }
.fl-cartscene .fl-crumbs a, .fl-cartscene .fl-crumbs span { color: var(--on-primary); }
.fl-cartscene__in { display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: var(--s-6); }
.fl-cartscene__txt { display: grid; gap: var(--s-5); align-content: start; padding-block-end: var(--s-3); }
.fl-cartscene .fl-head { margin-block-start: var(--s-3); }
.fl-cartscene .fl-road { background: color-mix(in srgb, var(--surface) 96%, transparent); }
/* the crate: products stand behind the crate art, so they show over the rim and through the slats */
.fl-crate { position: relative; justify-self: center; width: min(100%, 440px); }
.fl-crate__box { --crate: var(--fl-yellow); --crate-rim: color-mix(in srgb, var(--fl-yellow) 78%, var(--fl-orange)); --crate-in: color-mix(in srgb, var(--fl-yellow) 70%, var(--fl-green)); --crate-hole: color-mix(in srgb, var(--fl-yellow) 45%, var(--fl-green)); position: relative; aspect-ratio: 400 / 300; }
.fl-crate__back, .fl-crate__fronts { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fl-crate__back { z-index: 1; }
.fl-crate__fronts { z-index: 3; filter: drop-shadow(0 16px 14px rgba(0,0,0,.28)); }
.fl-crate__item { position: absolute; z-index: 2; left: var(--x); top: 11%; width: var(--w, 40%); /* physical: the crate art is not mirrored */ rotate: var(--r); transform-origin: 50% 100%; }
.fl-crate__item img { width: 100%; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.fl-crate__item.is-off img { filter: grayscale(.9) opacity(.55); }
.fl-crate__qty { position: absolute; z-index: 4; inset-block-start: -10px; right: 12%; min-width: 34px; height: 30px; padding-inline: 8px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; direction: ltr; border-radius: var(--r-pill); background: var(--accent-strong); color: #fff; font-size: var(--fs-sm); box-shadow: 0 0 0 3px var(--primary); }
.fl-crate__ground { display: block; height: 14px; margin-inline: 6%; margin-block-start: -10px; border-radius: 50%; background: rgba(0,0,0,.28); filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) {
    .fl-crate__item { animation: fl-pack .7s var(--ease) both; animation-delay: var(--d, 0ms); }
    .fl-crate__item.is-bump { animation: fl-bump .5s var(--ease); }
    .fl-crate__item.is-out { animation: fl-unpack .5s var(--ease) forwards; }
    .fl-crate:hover .fl-crate__item { translate: 0 -6px; transition: translate .4s var(--ease); }
}
@keyframes fl-pack { from { translate: 0 -120px; opacity: 0; } 60% { translate: 0 8px; opacity: 1; } }
@keyframes fl-bump { 40% { translate: 0 -22px; } 70% { translate: 0 4px; } }
@keyframes fl-unpack { to { translate: 0 -140px; rotate: 18deg; opacity: 0; } }
@media (max-width: 899px) {
    .fl-cartscene__in { grid-template-columns: 1fr; }
    .fl-crate { width: min(70%, 280px); margin-block-start: var(--s-2); }
}

/* packing slip: a perforated delivery note with numbered rows */
.fl-slip { position: relative; display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); counter-reset: slip; }
.fl-slip::before { content: ""; position: absolute; inset-inline: 0; inset-block-end: 100%; height: 12px; background: radial-gradient(circle 6px at 50% 0, transparent 96%, var(--surface)) 0 0 / 20px 12px repeat-x; }
.fl-slip__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); padding-block-end: var(--s-3); border-block-end: 2px dashed var(--line); }
.fl-slip__head > div { display: grid; }
.fl-slip__head b { font: var(--fw-heavy) var(--fs-lg)/1.3 var(--font-body); color: var(--primary); }
.fl-slip__head small { font: 600 var(--fs-xs)/1.4 ui-monospace, Consolas, monospace; color: var(--ink-soft); letter-spacing: .04em; text-align: start; }
.fl-slip__lines { list-style: none; padding: 0; margin: 0; }
.fl-slip__lines > .fl-cline { counter-increment: slip; border-style: dashed; padding-inline-start: 44px; }
.fl-slip__lines > .fl-cline::before { content: counter(slip, decimal-leading-zero); position: absolute; inset-inline-start: 12px; inset-block-start: 50%; translate: 0 -50%; font: var(--fw-heavy) var(--fs-sm)/1 var(--font-body); color: var(--ink-faint); }
.fl-slip__foot { display: flex; align-items: center; gap: var(--s-2); padding-block-start: var(--s-3); border-block-start: 2px dashed var(--line); font-size: var(--fs-xs); color: var(--ink-soft); }
.fl-slip__foot::before { content: ""; width: 26px; height: 18px; flex: none; background: var(--primary); -webkit-mask: url("../img/brand/flexilock-mark-green.svg") center / contain no-repeat; mask: url("../img/brand/flexilock-mark-green.svg") center / contain no-repeat; }
@media (max-width: 640px) { .fl-slip { padding: var(--s-3); } .fl-slip__lines > .fl-cline { padding-inline-start: var(--s-3); } .fl-slip__lines > .fl-cline::before { display: none; } }
.fl-cartpage .fl-cartpage__grid { padding-block-start: var(--s-7); }
/* small phones: grid children may shrink below their content (fixes the slip overflowing at ≤ 375px) */
.fl-cartpage__grid > *, .fl-slip, .fl-slip__lines, .fl-cline__info { min-width: 0; }
@media (max-width: 400px) {
    .fl-slip { padding: var(--s-3) var(--s-2); }
    .fl-cline--wide { grid-template-columns: 64px 1fr auto; gap: var(--s-2); padding: var(--s-2); }
    .fl-cline--wide .fl-cline__price { min-width: 0; }
    .fl-cline__price b { font-size: var(--fs-base); }
    .fl-gap { grid-template-columns: 48px 1fr auto; gap: var(--s-2); }
}
@media (max-width: 400px) {
    .fl-cline--wide, .fl-cline { grid-template-areas: "img info info" "qty qty price"; grid-template-columns: 64px 1fr auto; }
    .fl-cline--wide .fl-cline__remove, .fl-cline .fl-cline__remove { position: absolute; inset-block-start: 4px; inset-inline-end: 4px; width: 32px; height: 32px; }
    .fl-cline__info { padding-inline-end: 30px; }
    .fl-cline__price small { white-space: nowrap; }
}
/* notes are one text run (money inside them must not become separate flex items) */
.fl-cline__note { display: block; line-height: 1.5; }
.fl-cline__note .fl-icon { display: inline-block; vertical-align: -3px; margin-inline-end: 4px; }
/* two plain (same-background) sections in a row share one gap instead of doubling it */
.fl-section:not(.is-dark):not(.fl-way):not(.fl-compare):not(.fl-reviews) + .fl-section:not(.is-dark):not(.fl-way):not(.fl-compare):not(.fl-reviews) { padding-block-start: 0; }
.fl-row-head { margin-block-end: var(--s-5); }
.fl-way .fl-head { margin-block-end: var(--s-6); }
.fl-cartpage__grid + .fl-section, .fl-story + .fl-section, .fl-pdp__top + * { padding-block-start: 0; }
.fl-story__txt { padding-block: var(--section-y); }

/* hero balance: headline sized to the panel (not the window), facts + arrows stacked in a reserved band so they never meet the buttons */
.fl-hero--a .fl-hero__panel { container-type: inline-size; padding-block-end: 150px; }
.fl-hero--a .fl-hero__title { font-size: clamp(2.2rem, 9.5cqi, 4.2rem); }
:lang(ar) .fl-hero--a .fl-hero__title { font-size: clamp(2.1rem, 8.5cqi, 3.9rem); }
.fl-hero--a .fl-hero__txt { max-width: 520px; }
.fl-hero__lead { max-width: 42ch; }
.fl-hero--a .fl-hero__bar-in { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.fl-hero__facts { gap: var(--s-1) var(--s-4); }
@media (max-width: 899px) {
    .fl-hero--a .fl-hero__panel { padding-block-end: var(--s-5); }
    .fl-hero--a .fl-hero__title { font-size: clamp(2rem, 10cqi, 2.8rem); }
    :lang(ar) .fl-hero--a .fl-hero__title { font-size: clamp(1.9rem, 9cqi, 2.6rem); }
}

/* ════════════════ Checkout (checkout.php): "label your crate" ════════════════ */
.fl-cohead { background-color: var(--primary); color: var(--on-primary-soft); padding-block: var(--s-5) var(--s-6); }
.fl-cohead .fl-crumbs a, .fl-cohead .fl-crumbs span { color: var(--on-primary); }
.fl-cohead__in { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--s-5) var(--s-7); }
.fl-cohead .fl-head { margin-block-start: var(--s-3); }

/* the order stops: cart → address & payment → confirmation */
.fl-costeps { display: flex; align-items: flex-start; gap: 0; color: var(--on-primary-soft); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.fl-costeps li { position: relative; display: grid; justify-items: center; gap: var(--s-2); min-width: 104px; text-align: center; }
.fl-costeps li + li::before { content: ""; position: absolute; inset-block-start: 21px; inset-inline-end: calc(50% + 26px); width: calc(100% - 52px); border-block-start: 2px dashed color-mix(in srgb, var(--on-primary) 45%, transparent); }
.fl-costeps li.is-done + li::before { border-block-start-style: solid; border-color: var(--fl-yellow); }
.fl-costeps a { display: contents; color: inherit; text-decoration: none; }
.fl-costeps__dot { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--on-primary) 45%, transparent); }
.fl-costeps__dot .fl-icon { width: 20px; height: 20px; }
.fl-costeps .is-done .fl-costeps__dot { background: var(--fl-yellow); border-color: var(--fl-yellow); color: var(--fl-green); }
.fl-costeps .is-now { color: var(--on-primary); }
.fl-costeps .is-now .fl-costeps__dot { background: var(--surface); border-color: var(--surface); color: var(--primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--fl-yellow) 55%, transparent); }
.fl-costeps a:hover .fl-costeps__dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--fl-yellow) 40%, transparent); }

.fl-cogrid { display: grid; grid-template-columns: 1fr 400px; gap: var(--s-6); align-items: stretch; padding-block: var(--s-7) var(--section-y); }
.fl-coparts { display: grid; gap: var(--s-5); align-content: start; min-width: 0; }
.fl-coside { display: flex; flex-direction: column; gap: var(--s-6); min-width: 0; }
.fl-coside .fl-receipt { inset-block-start: calc(var(--header-h) + 16px); }

/* a numbered part */
.fl-copart { display: grid; gap: var(--s-4); padding: var(--s-5) var(--s-6) var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.fl-copart__title { display: flex; align-items: center; gap: var(--s-3); font: var(--fw-heavy) var(--fs-xl)/1.35 var(--font-body); color: var(--primary); }
.fl-copart__title .fl-ticket { font-size: var(--fs-sm); }
.fl-copart > .fl-check { justify-self: start; }

/* saved addresses: small label cards */
.fl-addrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: var(--s-3); }
.fl-addr { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 4px var(--s-2); padding: var(--s-4); padding-inline-end: var(--s-7); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; font-size: var(--fs-sm); color: var(--ink-soft); transition: border-color var(--dur-1), background-color var(--dur-1), translate var(--dur-2) var(--ease); }
.fl-addr input { position: absolute; opacity: 0; pointer-events: none; }
.fl-addr > b, .fl-addr > span:not(.fl-addr__tag):not(.fl-addr__def):not(.fl-addr__tick):not(.fl-addr__plus) { flex-basis: 100%; }
.fl-addr > b { color: var(--ink); font-size: var(--fs-base); margin-block-start: var(--s-2); }
.fl-addr:hover { border-color: var(--ink-faint); translate: 0 -2px; }
.fl-addr:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface)); box-shadow: inset 0 0 0 1px var(--primary); }
.fl-addr:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.fl-addr__tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--second); color: var(--primary); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.fl-addr__tag .fl-icon { width: 14px; height: 14px; }
.fl-addr__def { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: color-mix(in srgb, var(--success) 80%, var(--ink)); } /* 4.5+ on the tinted selected card */
.fl-addr__meta { font-size: var(--fs-xs); }
.fl-addr__tick { position: absolute; inset-block-start: var(--s-3); inset-inline-end: var(--s-3); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); color: transparent; transition: background-color var(--dur-1), color var(--dur-1); }
.fl-addr__tick .fl-icon { width: 16px; height: 16px; }
.fl-addr:has(input:checked) .fl-addr__tick { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.fl-addr--new { border-style: dashed; align-content: center; }
.fl-addr__plus { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); color: var(--primary); }
.fl-coaddr { padding-block-start: var(--s-2); }
.fl-cobilling { padding: var(--s-4); border-radius: var(--r-md); background: var(--paper); border: 1px dashed var(--line); }
.fl-cobilling__t { display: flex; align-items: center; gap: var(--s-2); font: var(--fw-heavy) var(--fs-base)/1.4 var(--font-body); color: var(--primary); }
.fl-cobilling__t .fl-icon { width: 20px; height: 20px; }

/* delivery estimate */
.fl-codel { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); border-radius: var(--r-md); background: var(--tint-yellow); }
.fl-codel__van { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--second); color: var(--primary); }
.fl-codel__van .fl-icon { width: 28px; height: 28px; }
.fl-codel__txt { flex: 1; display: grid; gap: 2px; min-width: 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.fl-codel__txt b { color: var(--ink); font-size: var(--fs-base); }
.fl-codel__txt small { font-size: var(--fs-xs); }
.fl-codel__fee { display: grid; justify-items: end; text-align: end; }
.fl-codel__fee small { font-size: var(--fs-xs); color: var(--ink-soft); }
.fl-codel__fee b { font-size: var(--fs-lg); color: var(--primary); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .fl-codel.is-new .fl-codel__van .fl-icon { animation: fl-drive .6s var(--ease); } }
@keyframes fl-drive { from { translate: -24px 0; opacity: 0; } }
[dir="rtl"] .fl-codel.is-new .fl-codel__van .fl-icon { animation-name: fl-drive-rtl; }
@keyframes fl-drive-rtl { from { translate: 24px 0; opacity: 0; } }

.fl-paylist { display: grid; gap: var(--s-3); }

/* the shipping label, taped to a slice of the yellow crate */
.fl-shiplabel { --crate: var(--fl-yellow); padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); background: var(--crate); box-shadow: inset 0 -10px 0 color-mix(in srgb, var(--fl-yellow) 78%, var(--fl-orange)); }
.fl-shiplabel__card { position: relative; display: grid; padding: var(--s-4); background: #fff; color: #111; border-radius: 6px; rotate: -1.5deg; box-shadow: 0 14px 24px -12px rgba(0,0,0,.45); font-size: var(--fs-sm); }
.fl-shiplabel__card::before, .fl-shiplabel__card::after { content: ""; position: absolute; inset-block-start: -10px; width: 64px; height: 22px; background: color-mix(in srgb, #E9D3A4 85%, transparent); rotate: -8deg; }
.fl-shiplabel__card::before { inset-inline-start: -14px; }
.fl-shiplabel__card::after { inset-inline-end: -14px; rotate: 8deg; }
.fl-shiplabel__card > * { padding-block: var(--s-2); border-block-end: 2px solid #111; }
.fl-shiplabel__card > :last-child { border: 0; padding-block-end: 0; }
.fl-shiplabel__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding-block-start: 0 !important; }
.fl-shiplabel__top .fl-logo { height: 18px; width: auto; color: #111; }
.fl-shiplabel__top span { padding: 2px 8px; background: #111; color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.fl-shiplabel small { display: block; font-size: 11px; font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; color: #555; }
.fl-shiplabel__from p { font-size: var(--fs-xs); }
.fl-shiplabel__to { display: grid; gap: 2px; }
.fl-shiplabel__name { font: var(--fw-heavy) var(--fs-xl)/1.3 var(--font-body); }
.fl-shiplabel__addr { line-height: 1.5; }
.fl-shiplabel__phone { font: 700 var(--fs-sm)/1.4 ui-monospace, Consolas, monospace; text-align: start; }
[dir="rtl"] .fl-shiplabel__phone { text-align: end; }
.fl-shiplabel [data-out], .fl-shiplabel .is-empty { transition: color var(--dur-1), background-color var(--dur-2); border-radius: 3px; }
.fl-shiplabel .is-empty { color: #A3A3A3; font-weight: 400; }
.fl-shiplabel .is-typed { background: color-mix(in srgb, var(--fl-yellow) 55%, transparent); }
.fl-shiplabel__foot { display: flex; align-items: stretch; justify-content: space-between; gap: var(--s-2); }
.fl-shiplabel__zone { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #111; color: #fff; font-weight: var(--fw-heavy); font-size: var(--fs-base); }
.fl-shiplabel__zone .fl-icon { width: 18px; height: 18px; color: var(--fl-yellow); }
.fl-shiplabel__zone .is-empty { color: #888; }
.fl-shiplabel__up { display: inline-flex; align-items: center; padding-inline: 6px; border: 2px solid #111; }
.fl-shiplabel__up .fl-icon { width: 18px; height: 18px; }
.fl-shiplabel__code { display: grid; justify-items: center; gap: 4px; }
.fl-shiplabel__bars { display: block; width: 100%; height: 42px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 7px, transparent 7px 9px, #111 9px 10px, transparent 10px 13px, #111 13px 17px, transparent 17px 19px); }
.fl-shiplabel__code small { font: 600 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .2em; color: #111; }
/* placing the order: the label gets stamped */
.fl-shiplabel.is-stamped .fl-shiplabel__card { animation: fl-press .5s var(--ease); }
.fl-shiplabel.is-stamped .fl-shiplabel__card .fl-stamp { display: grid; }
.fl-shiplabel .fl-stamp { display: none; inset-block-start: 30%; inset-inline-end: 6%; }
@keyframes fl-press { 40% { scale: .97; } }
.fl-shiplabel--flat { padding: 0; background: none; box-shadow: none; }
.fl-shiplabel--flat .fl-shiplabel__card { rotate: none; border: 2px solid #111; box-shadow: none; }
.fl-shiplabel--flat .fl-shiplabel__card::before, .fl-shiplabel--flat .fl-shiplabel__card::after { display: none; }

/* checkout summary */
.fl-coreceipt { padding-block-start: var(--s-5); }
.fl-coreceipt__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding-block-end: var(--s-3); border-block-end: 2px dashed var(--line); }
.fl-coreceipt__head h2 { display: flex; align-items: center; gap: var(--s-2); font: var(--fw-heavy) var(--fs-lg)/1.3 var(--font-body); color: var(--primary); }
.fl-coitems { display: grid; gap: var(--s-3); }
.fl-coitems li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.fl-coitems__img { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); background: var(--panel); }
.fl-coitems__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.fl-coitems__img b { position: absolute; inset-block-start: -6px; inset-inline-end: -6px; min-width: 22px; height: 22px; display: grid; place-items: center; padding-inline: 4px; border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary); font-size: 12px; box-shadow: 0 0 0 2px var(--surface); }
.fl-coitems__name { display: grid; line-height: 1.4; min-width: 0; }
.fl-coitems__name small { font-weight: 400; font-size: var(--fs-xs); color: var(--ink-soft); }

/* promo code: a tear-off ticket stub */
.fl-promo { display: grid; gap: var(--s-2); }
.fl-promo__form { display: flex; align-items: stretch; min-height: 48px; border: 1.5px dashed var(--ink-faint); border-radius: var(--r-md); overflow: hidden; background: var(--surface); transition: border-color var(--dur-1); }
.fl-promo__form:focus-within { border-color: var(--primary); border-style: solid; }
.fl-promo.is-invalid .fl-promo__form { border-color: var(--danger); border-style: solid; }
.fl-promo__stub { flex: none; width: 46px; display: grid; place-items: center; background: var(--second); color: var(--primary); border-inline-end: 2px dashed color-mix(in srgb, var(--fl-yellow) 60%, var(--fl-orange)); }
.fl-promo__input { flex: 1; min-width: 0; padding-inline: var(--s-3); border: 0; background: none; font: 700 var(--fs-sm)/1 ui-monospace, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.fl-promo__input::placeholder { font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-weight: 400; }
.fl-promo__input:focus { outline: 0; }
.fl-promo__apply { padding-inline: var(--s-4); border: 0; background: var(--primary); color: var(--on-primary); font-weight: var(--fw-bold); font-size: var(--fs-sm); transition: background-color var(--dur-1); }
.fl-promo__apply:hover { background: var(--primary-strong); }
.fl-promo__apply[aria-busy="true"] { opacity: .7; }
.fl-promo__on { display: flex; align-items: center; gap: var(--s-2); padding: 6px 6px 6px var(--s-3); padding-inline: var(--s-3) 6px; border-radius: var(--r-pill); background: var(--success-soft); color: var(--success); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.fl-promo__on > span { flex: 1; }
.fl-promo__x { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: inherit; }
.fl-promo__x:hover { background: color-mix(in srgb, var(--success) 15%, transparent); }
.fl-promo__x .fl-icon { width: 16px; height: 16px; }
/* a code goes on: the stub tears off upward, the green ticket drops in, the discount row flashes once (ui.js adds is-torn, then is-promo-fresh for 1.6 s) */
.fl-promo__form.is-torn { pointer-events: none; overflow: visible; }
.fl-promo__form.is-torn .fl-promo__stub { animation: fl-tear .32s var(--ease) both; }
.fl-promo__form.is-torn > :not(.fl-promo__stub) { animation: fl-fade .3s reverse both; }
.fl-coreceipt.is-promo-fresh .fl-promo__on { animation: fl-ticket-in .55s cubic-bezier(.2, 1.5, .4, 1) both; }
.fl-coreceipt.is-promo-fresh .fl-promo__on > .fl-icon { animation: fl-pop-heart .5s .25s both; }
.fl-coreceipt.is-promo-fresh .is-save { border-radius: var(--r-sm); animation: fl-flash 1.4s ease-out; }
.fl-coreceipt.is-promo-fresh .is-save dd { animation: fl-pop-heart .5s .1s both; }
@keyframes fl-tear { 55% { opacity: 1; } to { translate: 0 -26px; rotate: -18deg; opacity: 0; } }
@keyframes fl-ticket-in { from { translate: 0 -26px; rotate: -5deg; opacity: 0; } 60% { translate: 0 3px; rotate: 1deg; opacity: 1; } }
@keyframes fl-flash { from { background-color: color-mix(in srgb, var(--fl-yellow) 75%, transparent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--fl-yellow) 75%, transparent); } }
.fl-receipt__note a { color: var(--primary); font-weight: var(--fw-bold); }

@media (max-width: 1023px) {
    .fl-cogrid { grid-template-columns: 1fr; }
    .fl-coside { display: contents; }
    .fl-coside .fl-shiplabel { order: -1; }
}
@media (max-width: 899px) {
    .fl-cohead__in { grid-template-columns: 1fr; }
    .fl-costeps { justify-content: space-between; }
    .fl-costeps li { min-width: 0; flex: 1; }
}
@media (max-width: 640px) {
    .fl-copart { padding: var(--s-4); }
    .fl-copart__title { font-size: var(--fs-lg); }
    .fl-shiplabel { padding: var(--s-5) var(--s-4); }
    /* phones: the label sits above the form, so it keeps only the "to" part and the zone */
    .fl-shiplabel:not(.fl-shiplabel--flat) :is(.fl-shiplabel__from, .fl-shiplabel__code) { display: none; }
    .fl-shiplabel:not(.fl-shiplabel--flat) .fl-shiplabel__foot { border: 0; padding-block-end: 0; }
    .fl-shiplabel__name { font-size: var(--fs-lg); }
    .fl-codel { flex-wrap: wrap; }
    .fl-codel__fee { flex-basis: 100%; grid-auto-flow: column; justify-content: space-between; align-items: center; padding-block-start: var(--s-2); border-block-start: 1px dashed color-mix(in srgb, var(--ink) 20%, transparent); }
}

/* ════════════════ Order received (order-success.php) ════════════════ */
.fl-osscene .fl-costeps { justify-self: start; }
/* the sealed crate */
.fl-sealed { position: relative; justify-self: center; width: min(100%, 440px); }
.fl-sealed .fl-crate__box { position: relative; }
.fl-sealed .fl-crate__fronts { position: absolute; inset: 0; width: 100%; height: 100%; }
.fl-sealed__lid { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; }
.fl-sealed__label { position: absolute; z-index: 5; left: 7%; top: 58%; width: 30%; display: grid; gap: 4px; padding: 8px; background: #fff; color: #111; border-radius: 3px; rotate: -4deg; box-shadow: 0 6px 12px -4px rgba(0,0,0,.35); font-size: 11px; }
.fl-sealed__label .fl-logo { height: 10px; width: auto; color: #111; }
.fl-sealed__label .fl-shiplabel__bars { height: 16px; }
.fl-stamp { position: absolute; z-index: 6; right: 5%; top: 44%; width: 118px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 4px solid var(--accent-strong); outline: 2px dashed var(--accent-strong); outline-offset: -12px; background: color-mix(in srgb, #fff 82%, transparent); color: var(--accent-strong); rotate: -14deg; font: var(--fw-heavy) var(--fs-base)/1.1 var(--font-display); text-align: center; text-transform: uppercase; }
.fl-stamp > span { display: grid; justify-items: center; gap: 2px; }
.fl-stamp .fl-icon { width: 26px; height: 26px; stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) {
    .fl-sealed__lid { animation: fl-lid .7s .15s var(--ease) both; }
    .fl-sealed__label { animation: fl-stick .5s .7s var(--ease) both; }
    .fl-stamp { animation: fl-stamp .45s 1.1s cubic-bezier(.2, 1.6, .5, 1) both; }
}
@keyframes fl-lid { from { translate: 0 -60px; opacity: 0; } 70% { translate: 0 4px; opacity: 1; } }
@keyframes fl-stick { from { scale: 1.3; opacity: 0; rotate: -12deg; } }
@keyframes fl-stamp { from { scale: 2.4; opacity: 0; } }

/* order number ticket + copy */
.fl-osno { display: inline-flex; align-items: center; justify-self: start; gap: var(--s-3); padding-inline-end: var(--s-2); background: var(--surface); color: var(--ink); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 10px 20px -12px rgba(0,0,0,.4); }
.fl-osno__stub { align-self: stretch; width: 54px; display: grid; place-items: center; background: var(--second); color: var(--primary); border-inline-end: 2px dashed color-mix(in srgb, var(--fl-yellow) 60%, var(--fl-orange)); }
.fl-osno__stub .fl-icon { width: 24px; height: 24px; }
.fl-osno > div { display: grid; padding-block: var(--s-2); }
.fl-osno small { font-size: var(--fs-xs); color: var(--ink-soft); }
.fl-osno b { font: 800 var(--fs-lg)/1.3 ui-monospace, Consolas, monospace; letter-spacing: .04em; color: var(--primary); }
.fl-copy { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--primary); transition: background-color var(--dur-1), border-color var(--dur-1); }
.fl-copy:hover { background: var(--primary-soft); border-color: var(--primary); }
.fl-copy .fl-icon { width: 18px; height: 18px; }
.fl-copy.is-done { background: var(--success); border-color: var(--success); color: #fff; }

/* tracking road */
.fl-osmain__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.fl-osmain__t { font: var(--fw-heavy) var(--fs-2xl)/1.35 var(--font-display); color: var(--primary); margin-block-start: var(--s-3); }
.fl-track { display: grid; gap: var(--s-4); padding: var(--s-6) var(--s-5) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.fl-track ol { display: grid; grid-template-columns: repeat(4, 1fr); }
.fl-track li { position: relative; display: grid; justify-items: center; gap: var(--s-2); text-align: center; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--ink-soft); }
.fl-track li + li::before { content: ""; position: absolute; inset-block-start: 26px; inset-inline-end: calc(50% + 30px); width: calc(100% - 60px); height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 16px); }
.fl-track li.is-done + li::before, .fl-track li.is-done::before { background: var(--primary); }
.fl-track__dot { position: relative; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); color: var(--ink-soft); }
.fl-track__dot .fl-icon { width: 26px; height: 26px; }
.fl-track .is-done .fl-track__dot { background: var(--primary); color: var(--on-primary); }
.fl-track .is-now { color: var(--primary); }
.fl-track .is-now .fl-track__dot { background: var(--second); color: var(--primary); }
@media (prefers-reduced-motion: no-preference) { .fl-track .is-now .fl-track__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--second); animation: fl-ring 2s var(--ease) infinite; } }
@keyframes fl-ring { to { scale: 1.6; opacity: 0; } }
.fl-track__eta { display: flex; align-items: center; justify-content: center; gap: var(--s-2); padding-block-start: var(--s-4); border-block-start: 2px dashed var(--line); font-weight: var(--fw-bold); color: var(--ink); }
.fl-track__eta .fl-icon { color: var(--primary); }

/* what happens next */
.fl-osnext { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); counter-reset: next; }
.fl-osnext li { position: relative; display: grid; align-content: start; gap: var(--s-2); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); counter-increment: next; }
.fl-osnext li::after { content: counter(next, decimal-leading-zero); position: absolute; inset-block-start: var(--s-4); inset-inline-end: var(--s-5); font: var(--fw-heavy) var(--fs-2xl)/1 var(--font-display); color: color-mix(in srgb, var(--primary) 14%, transparent); }
.fl-osnext__ic { width: 48px; height: 48px; display: grid; place-items: center; margin-block-end: var(--s-2); border-radius: 50%; background: var(--tint-yellow); color: var(--primary); }
.fl-osnext b { font-size: var(--fs-lg); color: var(--primary); line-height: 1.4; }
.fl-osnext p { font-size: var(--fs-sm); color: var(--ink-soft); }
.fl-osnext .is-key { background: var(--second); border-color: var(--second); }
.fl-osnext .is-key .fl-osnext__ic { background: var(--primary); color: var(--fl-yellow); }
.fl-osnext .is-key p { color: var(--primary); }
.fl-osnext .is-key::after { color: color-mix(in srgb, var(--primary) 22%, transparent); }
.fl-bank { display: grid; gap: var(--s-4); padding: var(--s-5); border: 2px dashed var(--line); border-radius: var(--r-lg); background: var(--surface); }
.fl-bank h3 { display: flex; align-items: center; gap: var(--s-2); font: var(--fw-heavy) var(--fs-lg)/1.3 var(--font-body); color: var(--primary); }
.fl-bank dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--s-3); }
.fl-bank dl > div { display: grid; gap: 2px; padding: var(--s-3); border-radius: var(--r-md); background: var(--paper); }
.fl-bank dt { font-size: var(--fs-xs); color: var(--ink-soft); }
.fl-bank dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); font: 700 var(--fs-sm)/1.4 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.fl-bank .fl-btn { justify-self: start; }

/* order slip lines (read-only) + receipt */
.fl-cline--ro { grid-template-columns: 104px 1fr auto auto; grid-template-areas: "img info qty price"; }
.fl-cline--ro .fl-cline__qty { font-size: var(--fs-sm); color: var(--ink-soft); }
.fl-orderpage .fl-cartpage__grid { padding-block-start: 0; }
.fl-osreceipt .fl-ospay dd { display: inline-flex; align-items: center; gap: 6px; }
.fl-osreceipt .fl-ospay .fl-icon { width: 18px; height: 18px; color: var(--primary); }
.fl-osreceipt .fl-ospay { padding-block-start: var(--s-2); border-block-start: 1px dashed var(--line); }
.fl-osreceipt__to { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--ink-soft); }
/* next to the slip: the "all set" card with the order actions */
.fl-osacts { position: relative; display: grid; justify-items: start; gap: var(--s-3); padding: var(--s-6); padding-inline-end: 34%; border-radius: var(--r-lg); background-color: var(--primary); color: var(--on-primary-soft); overflow: hidden; }
.fl-osacts h2 { font: var(--fw-heavy) var(--fs-xl)/1.35 var(--font-body); color: var(--on-primary); }
.fl-osacts p { font-size: var(--fs-sm); max-width: 48ch; }
.fl-osacts__btns { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-block-start: var(--s-2); }
.fl-osacts__help { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--fl-yellow); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.fl-osacts__art { position: absolute; inset-inline-end: -4%; inset-block-end: -10%; width: 36%; opacity: .9; rotate: -8deg; filter: brightness(0) invert(1); opacity: .16; pointer-events: none; }
@media (max-width: 899px) {
    .fl-osnext { grid-template-columns: 1fr; }
    .fl-sealed { width: min(80%, 320px); }
    .fl-stamp { width: 92px; font-size: var(--fs-sm); }
}
@media (max-width: 640px) {
    .fl-track { padding: var(--s-5) var(--s-3) var(--s-4); }
    .fl-track li { font-size: var(--fs-xs); }
    .fl-track__dot { width: 44px; height: 44px; }
    .fl-track__dot .fl-icon { width: 22px; height: 22px; }
    .fl-track li + li::before { inset-block-start: 20px; inset-inline-end: calc(50% + 24px); width: calc(100% - 48px); }
    .fl-cline--ro { grid-template-columns: 72px 1fr auto; grid-template-areas: "img info info" "img qty price"; }
    .fl-osacts { padding: var(--s-5); }
    .fl-orderpage .fl-cartpage__lines { display: contents; } /* phones: slip → receipt → actions */
    .fl-orderpage .fl-osacts { order: 2; }
    .fl-osacts__art { width: 50%; }
    .fl-osacts__btns, .fl-osacts .fl-btn { width: 100%; }
}

/* ════════════════ Sign-in screens (login, register, verify, forgot, reset): "seal it" ════════════════ */
.fl-auth { padding-block: var(--s-7) var(--section-y); }
.fl-auth__box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); min-height: 620px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--ink) 45%, transparent); }
.fl-auth__main { display: grid; align-content: center; gap: var(--s-5); width: 100%; max-width: 520px; justify-self: center; padding: var(--s-7) var(--s-6); }
.fl-auth__head { display: grid; gap: var(--s-2); }
.fl-auth__head h1 { font: var(--fw-heavy) var(--fs-2xl)/1.3 var(--font-body); color: var(--primary); }
.fl-auth__head .fl-intro { font-size: var(--fs-base); }
.fl-auth .fl-form { gap: var(--s-4); }
.fl-auth__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.fl-auth__row .fl-check { padding-block: 4px; min-height: 0; }
.fl-auth__link { display: inline-flex; align-items: center; min-height: 24px; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--primary); }
.fl-auth__switch { font-size: var(--fs-sm); color: var(--ink-soft); text-align: center; padding-block-start: var(--s-4); border-block-start: 1px dashed var(--line); }
.fl-auth__switch a { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: var(--fw-bold); }
.fl-auth__switch .fl-icon { width: 18px; height: 18px; }
.fl-google { gap: var(--s-3); }
.fl-google .fl-icon { width: 20px; height: 20px; }
.fl-or { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.fl-or::before, .fl-or::after { content: ""; flex: 1; border-block-start: 1px dashed var(--line); }
.fl-verify .fl-help { display: flex; align-items: center; gap: 6px; }
.fl-verify .fl-help .fl-icon { width: 16px; height: 16px; }
.fl-verify .fl-code { justify-self: start; }

/* password rules tick green as they are met */
.fl-pwrules { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-block-start: calc(var(--s-2) * -1); font-size: var(--fs-xs); color: var(--ink-soft); }
.fl-pwrules li { display: inline-flex; align-items: center; gap: 6px; transition: color var(--dur-1); }
.fl-pwrules .fl-icon { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--line); color: transparent; transition: background-color var(--dur-1), color var(--dur-1); }
.fl-pwrules .is-ok { color: var(--success); font-weight: var(--fw-bold); }
.fl-pwrules .is-ok .fl-icon { background: var(--success); color: #fff; }

/* "link sent" panel (forgot) */
.fl-auth__sent { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-6) var(--s-5); text-align: center; border: 2px dashed var(--line); border-radius: var(--r-lg); background: var(--paper); }
.fl-auth__sent-ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--second); color: var(--primary); }
.fl-auth__sent-ic .fl-icon { width: 30px; height: 30px; }
.fl-auth__sent h2 { font: var(--fw-heavy) var(--fs-xl)/1.3 var(--font-body); color: var(--primary); }
.fl-auth__sent p { color: var(--ink-soft); }

/* the poster */
.fl-auth__poster { position: relative; display: grid; align-content: center; justify-items: center; gap: var(--s-4); padding: var(--s-7) var(--s-6); background-color: var(--primary); color: var(--on-primary-soft); text-align: center; }
.fl-auth__ptitle { font: var(--fw-heavy) clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem)/1.25 var(--font-display); color: var(--on-primary); }
:lang(ar) .fl-auth__ptitle { line-height: 1.5; }
.fl-auth__ptitle em { font-style: normal; color: var(--fl-yellow); }
.fl-auth__hint { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--on-primary) 10%, transparent); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--on-primary); }
.fl-auth__hint .fl-icon { width: 16px; height: 16px; color: var(--fl-yellow); }
.fl-auth__ptext { max-width: 34ch; font-size: var(--fs-sm); }
.fl-auth__perks { display: grid; gap: var(--s-2); justify-items: start; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: color-mix(in srgb, var(--on-primary) 8%, transparent); font-size: var(--fs-sm); color: var(--on-primary); text-align: start; }
.fl-auth__perks li { display: flex; align-items: center; gap: var(--s-2); }
.fl-auth__perks .fl-icon { width: 18px; height: 18px; color: var(--fl-yellow); }

/* the container from above: four clips, open until their step is done */
.fl-seal { --seal-open: color-mix(in srgb, var(--on-primary) 30%, transparent); position: relative; width: min(100%, 380px); }
.fl-seal__art { display: block; width: 100%; overflow: visible; }
.fl-seal__body { fill: color-mix(in srgb, var(--fl-blue) 45%, #fff); stroke: color-mix(in srgb, var(--fl-blue) 70%, #fff); stroke-width: 2; }
.fl-seal__lid { fill: var(--fl-yellow); transition: filter var(--dur-2); }
.fl-seal__rim { fill: none; stroke: color-mix(in srgb, var(--fl-yellow) 72%, var(--fl-orange)); stroke-width: 4; }
.fl-seal__clip { transform-box: fill-box; transition: scale .45s cubic-bezier(.3, 1.6, .5, 1); }
.fl-seal__clip rect { fill: var(--seal-open); stroke: color-mix(in srgb, var(--on-primary) 55%, transparent); stroke-width: 2; stroke-dasharray: 5 4; transition: fill var(--dur-1), stroke var(--dur-1); }
.fl-seal__clip path { stroke: color-mix(in srgb, var(--on-primary) 60%, transparent); stroke-width: 3; stroke-linecap: round; }
/* open = folded out past the hinge (mirrored), shut = folded over the lid edge */
.fl-seal__clip--t { transform-origin: 50% 0; scale: 1 -1; }
.fl-seal__clip--b { transform-origin: 50% 100%; scale: 1 -1; }
.fl-seal__clip--l { transform-origin: 0 50%; scale: -1 1; }
.fl-seal__clip--r { transform-origin: 100% 50%; scale: -1 1; }
.fl-seal__clip.is-shut { scale: 1 1; }
.fl-seal__clip.is-shut rect { fill: var(--fl-green); stroke: color-mix(in srgb, var(--fl-green) 70%, #000); stroke-dasharray: none; }
.fl-seal__clip.is-shut path { stroke: var(--fl-yellow); }
.fl-seal__mark { position: absolute; left: 50%; top: 50%; width: 22%; height: auto; translate: -50% -50%; color: var(--fl-green); opacity: .85; }
.fl-seal__badge { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--fl-yellow); color: var(--fl-green); font-size: var(--fs-sm); font-weight: var(--fw-heavy); box-shadow: 0 0 0 4px var(--primary); opacity: 0; scale: .6; transition: opacity var(--dur-2), scale var(--dur-2) cubic-bezier(.3, 1.6, .5, 1); }
.fl-seal__badge .fl-icon { width: 16px; height: 16px; }
.fl-seal.is-sealed .fl-seal__badge { opacity: 1; scale: 1; }
.fl-seal.is-sealed .fl-seal__lid { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--fl-yellow) 70%, transparent)); }
/* submitting: the sealed box gives a small press */
@media (prefers-reduced-motion: no-preference) {
    .fl-seal.is-locking .fl-seal__art { animation: fl-press .5s var(--ease); }
    .fl-seal.is-locking .fl-seal__badge { animation: fl-ring-badge .9s var(--ease); }
}
@keyframes fl-ring-badge { 50% { box-shadow: 0 0 0 4px var(--primary), 0 0 0 12px color-mix(in srgb, var(--fl-yellow) 35%, transparent); } }
@media (prefers-reduced-motion: reduce) { .fl-seal__clip { transition: none; } }

@media (max-width: 899px) {
    .fl-auth { padding-block-start: var(--s-5); }
    .fl-auth__box { grid-template-columns: 1fr; min-height: 0; }
    /* phones: the poster becomes a short band above the form, the box beside its title */
    .fl-auth__poster { order: -1; grid-template-columns: 1fr 120px; justify-items: start; align-items: center; gap: var(--s-2) var(--s-4); padding: var(--s-5); text-align: start; }
    .fl-auth__ptitle { font-size: var(--fs-xl); grid-column: 1; }
    .fl-auth__poster .fl-seal { grid-column: 2; grid-row: 1 / span 2; width: 120px; }
    .fl-auth__hint { grid-column: 1; }
    .fl-auth__ptext, .fl-auth__perks { display: none; }
    .fl-seal__badge { font-size: 11px; padding: 3px 8px; bottom: -10px; }
    .fl-auth__main { padding: var(--s-5) var(--s-4) var(--s-6); max-width: none; }
}

/* ════════════════ Account (account.php, order.php): member card, order tickets, label cards ════════════════ */
.fl-acchead { background-color: var(--primary); color: var(--on-primary-soft); padding-block: var(--s-5) var(--s-7); overflow: hidden; }
.fl-acchead .fl-crumbs a, .fl-acchead .fl-crumbs span { color: var(--on-primary); }
.fl-acchead__in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-6); }
.fl-acchead__txt { display: grid; gap: var(--s-5); }
.fl-acchead .fl-head { margin-block-start: var(--s-3); }

/* stats as rubber stamps */
.fl-stamps { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.fl-stamps li { width: 96px; aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 2px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--fl-yellow) 70%, transparent); outline: 1px dashed color-mix(in srgb, var(--fl-yellow) 50%, transparent); outline-offset: -8px; text-align: center; rotate: -6deg; }
.fl-stamps li:nth-child(2) { rotate: 4deg; }
.fl-stamps li:nth-child(3) { rotate: -2deg; border-color: color-mix(in srgb, var(--on-primary) 35%, transparent); outline-color: color-mix(in srgb, var(--on-primary) 25%, transparent); }
.fl-stamps b { font: var(--fw-heavy) var(--fs-2xl)/1 var(--font-display); color: var(--fl-yellow); }
.fl-stamps li:nth-child(3) b { color: var(--on-primary); }
.fl-stamps span { font-size: 11px; font-weight: var(--fw-bold); color: var(--on-primary); }

/* the member card */
.fl-member { position: relative; width: 340px; aspect-ratio: 1.6; display: grid; align-content: space-between; padding: var(--s-5); border-radius: 18px; background: var(--fl-yellow); color: var(--fl-green); rotate: -5deg; overflow: hidden; box-shadow: 0 24px 40px -18px rgba(0,0,0,.55), inset 0 -8px 0 color-mix(in srgb, var(--fl-yellow) 80%, var(--fl-orange)); transition: rotate .5s var(--ease), translate .5s var(--ease); }
.fl-member:hover { rotate: -1deg; translate: 0 -6px; }
.fl-member__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.fl-member__top .fl-logo { height: 20px; width: auto; }
.fl-member__top span { padding: 2px 10px; border-radius: var(--r-pill); background: var(--fl-green); color: var(--fl-yellow); font-size: 11px; font-weight: var(--fw-bold); }
.fl-member__name { font: var(--fw-heavy) var(--fs-xl)/1.2 var(--font-body); }
.fl-member > small { font-size: var(--fs-xs); font-weight: var(--fw-bold); opacity: .8; margin-block-start: -24px; }
.fl-member__code { display: grid; gap: 4px; width: 55%; }
.fl-member__code .fl-shiplabel__bars { height: 26px; background: repeating-linear-gradient(90deg, var(--fl-green) 0 2px, transparent 2px 4px, var(--fl-green) 4px 7px, transparent 7px 9px, var(--fl-green) 9px 10px, transparent 10px 13px); }
.fl-member__code small { font: 600 10px/1 ui-monospace, Consolas, monospace; letter-spacing: .2em; text-align: start; }
.fl-member__mark { position: absolute; inset-inline-end: -14px; inset-block-end: -18px; width: 44%; height: auto; opacity: .14; }

/* layout: side nav + sections */
.fl-accgrid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: var(--s-7); align-items: start; padding-block: var(--s-7) var(--section-y); }
.fl-accnav { position: sticky; inset-block-start: calc(var(--header-h) + 16px); display: grid; gap: var(--s-3); }
.fl-accnav ul { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.fl-accnav a, .fl-accnav__out { position: relative; display: flex; align-items: center; gap: var(--s-3); width: 100%; padding: var(--s-3) var(--s-4); border: 0; border-radius: var(--r-md); background: none; color: var(--ink-soft); font: var(--fw-bold) var(--fs-base)/1.4 var(--font-body); text-decoration: none; text-align: start; transition: background-color var(--dur-1), color var(--dur-1); }
.fl-accnav a:hover, .fl-accnav__out:hover { background: var(--panel); color: var(--ink); }
.fl-accnav a[aria-current] { background: var(--surface); color: var(--primary); box-shadow: inset 0 0 0 1px var(--line); }
.fl-accnav a[aria-current]::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 10px; width: 4px; border-radius: 4px; background: var(--fl-yellow); }
.fl-accnav form { padding-block-start: var(--s-3); border-block-start: 1px dashed var(--line); }
.fl-accnav__out { color: var(--danger); }
.fl-accmain { display: grid; gap: var(--s-8, 64px); min-width: 0; }
.fl-accsec { display: grid; gap: var(--s-5); scroll-margin-top: calc(var(--header-h) + 24px); }
.fl-accsec__head { display: grid; gap: var(--s-2); }
.fl-accsec__head h2 { font: var(--fw-heavy) var(--fs-2xl)/1.35 var(--font-display); color: var(--primary); }
.fl-accsec__head p { color: var(--ink-soft); }

/* order status: chip + tones */
.fl-status { --st: var(--ink-soft); --st-bg: var(--panel); display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--st-bg); color: var(--st); font-size: var(--fs-xs); font-weight: var(--fw-bold); white-space: nowrap; }
.fl-status .fl-icon { width: 14px; height: 14px; }
.fl-status--warn, .fl-orow--warn { --st: color-mix(in srgb, var(--warning) 80%, #000); --st-bg: var(--warning-soft); }
.fl-status--info, .fl-orow--info { --st: var(--primary); --st-bg: var(--tint-blue); }
.fl-status--ship, .fl-orow--ship { --st: var(--primary); --st-bg: var(--second); }
.fl-status--ok, .fl-orow--ok { --st: var(--success); --st-bg: var(--success-soft); }
.fl-status--off, .fl-orow--off { --st: var(--danger); --st-bg: var(--danger-soft); }

/* overlapped product thumbnails */
.fl-thumbs { display: inline-flex; align-items: center; }
.fl-thumbs > * { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--surface); background: var(--panel); }
.fl-thumbs > * + * { margin-inline-start: -14px; }
.fl-thumbs img { object-fit: contain; padding: 4px; }
.fl-thumbs span { display: flex; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--primary); }

/* the newest open order */
.fl-latest { display: grid; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 2px solid var(--primary); }
.fl-latest__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.fl-latest__head > div { flex: 1 1 220px; display: grid; }
.fl-latest__head b { font: 800 var(--fs-lg)/1.3 ui-monospace, Consolas, monospace; color: var(--primary); }
.fl-latest .fl-track { padding: 0; border: 0; background: none; }
.fl-latest > .fl-btn { justify-self: start; }

/* each order as a ticket: status stub | number + date | thumbs | items | total | chip */
.fl-orows { display: grid; gap: var(--s-3); }
.fl-orow a { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto auto auto 110px 20px; align-items: center; gap: var(--s-4); padding-inline-end: var(--s-4); min-height: 76px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color var(--dur-1), translate var(--dur-2) var(--ease), box-shadow var(--dur-2); }
.fl-orow a:hover { border-color: var(--primary); translate: 0 -2px; box-shadow: 0 12px 20px -16px color-mix(in srgb, var(--ink) 50%, transparent); }
.fl-orow__stub { align-self: stretch; display: grid; place-items: center; background: var(--st-bg); color: var(--st); border-inline-end: 2px dashed color-mix(in srgb, var(--st) 30%, transparent); }
.fl-orow__id { display: grid; gap: 2px; }
.fl-orow__id b { font: 800 var(--fs-base)/1.3 ui-monospace, Consolas, monospace; letter-spacing: .02em; }
.fl-orow__id small, .fl-orow__n { font-size: var(--fs-xs); color: var(--ink-soft); }
.fl-orow__total { color: var(--primary); white-space: nowrap; }
.fl-orow .fl-status { justify-self: start; }
.fl-orow__go { width: 18px; height: 18px; color: var(--ink-faint); }
.fl-orow--off .fl-orow__id b, .fl-orow--off .fl-orow__total { color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 1px; }

/* address book: label cards with actions */
.fl-book > li:not(.fl-addr) { display: grid; }
.fl-addr--book { cursor: default; }
.fl-addr--book:hover { translate: none; }
.fl-addr--book.is-default { border-color: var(--primary); background: color-mix(in srgb, var(--primary-soft) 45%, var(--surface)); }
.fl-addr--book .fl-addr__def { display: inline-flex; align-items: center; gap: 2px; }
.fl-addr--book .fl-addr__def .fl-icon { width: 14px; height: 14px; }
.fl-addr__acts { flex-basis: 100%; display: flex; align-items: center; gap: var(--s-4); margin-block-start: var(--s-3); padding-block-start: var(--s-3); border-block-start: 1px dashed var(--line); }
.fl-addr__acts .fl-btn--link { font-size: var(--fs-sm); }
.fl-addr__del { margin-inline-start: auto; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); transition: background-color var(--dur-1), color var(--dur-1); }
.fl-addr__del:hover { background: var(--danger-soft); color: var(--danger); }
.fl-addr__del .fl-icon { width: 18px; height: 18px; }
button.fl-addr--new { display: grid; justify-items: center; align-content: center; gap: var(--s-2); width: 100%; min-height: 150px; padding: var(--s-4); font: inherit; text-align: center; color: var(--ink-soft); }
button.fl-addr--new > * { flex-basis: auto; }
button.fl-addr--new b { margin: 0; }
.fl-book__empty { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--ink-soft); }
.fl-drawer__form { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.fl-drawer__form .fl-drawer__body { flex: 1; overflow-y: auto; }

/* details, password, delete */
.fl-profile { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: start; }
.fl-profile .fl-card { gap: var(--s-4); }
.fl-profile .fl-card .fl-btn { justify-self: start; }
.fl-profile__t { display: flex; align-items: center; gap: var(--s-2); font: var(--fw-heavy) var(--fs-lg)/1.3 var(--font-body); color: var(--primary); }
.fl-profile__t .fl-icon { width: 22px; height: 22px; }
.fl-profile__email { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-height: 48px; padding-inline: var(--s-4); border-radius: var(--r-md); background: var(--paper); font-weight: var(--fw-bold); }
.fl-profile__email .fl-badge { display: inline-flex; align-items: center; gap: 4px; }
.fl-profile__email .fl-icon { width: 14px; height: 14px; }
.fl-danger { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); background: color-mix(in srgb, var(--danger-soft) 45%, var(--surface)); }
.fl-danger .fl-profile__t { color: var(--danger); }
.fl-danger p { max-width: 60ch; font-size: var(--fs-sm); color: var(--ink-soft); }
#fl-delete .fl-field { width: 100%; text-align: start; }

/* order detail header */
.fl-ordhead__no { font-family: ui-monospace, Consolas, monospace; font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); letter-spacing: .02em; }
.fl-ordhead__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.fl-ordhead__acts .fl-status { font-size: var(--fs-sm); padding: 6px 14px; }
.fl-ordhead__note { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); }
.fl-ordhead__note .fl-icon { width: 16px; height: 16px; color: var(--fl-yellow); }
.fl-stamp--off { border-color: var(--danger); outline-color: var(--danger); color: var(--danger); }

@media (max-width: 1023px) {
    .fl-accgrid { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding-block-start: var(--s-4); }
    /* the nav becomes a row of pills under the band */
    .fl-accnav { position: sticky; z-index: 5; inset-block-start: var(--header-h); display: flex; gap: var(--s-2); margin-inline: calc(var(--gutter) * -1); padding: var(--s-2) var(--gutter); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); overflow-x: auto; scrollbar-width: none; }
    .fl-accnav ul { display: flex; gap: var(--s-2); }
    .fl-accnav a, .fl-accnav__out { width: auto; white-space: nowrap; padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); font-size: var(--fs-sm); box-shadow: inset 0 0 0 1px var(--line); }
    .fl-accnav a[aria-current] { background: var(--primary); color: var(--on-primary); box-shadow: none; }
    .fl-accnav a[aria-current]::before { display: none; }
    .fl-accnav form { padding: 0; border: 0; }
    .fl-profile { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
    .fl-acchead__in { grid-template-columns: 1fr; }
    .fl-member { width: min(100%, 300px); justify-self: center; rotate: -3deg; }
}
@media (max-width: 760px) {
    .fl-orow a { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "stub id total" "stub thumbs chip"; gap: var(--s-2) var(--s-3); padding-block: var(--s-3); }
    .fl-orow__stub { grid-area: stub; margin-block: calc(var(--s-3) * -1); }
    .fl-orow__id { grid-area: id; } .fl-orow .fl-thumbs { grid-area: thumbs; } .fl-orow__total { grid-area: total; justify-self: end; } .fl-orow .fl-status { grid-area: chip; justify-self: end; }
    .fl-orow__n, .fl-orow__go { display: none; }
    .fl-stamps li { width: 80px; }
    .fl-stamps b { font-size: var(--fs-xl); }
}

/* ════════════════ About (about.php): our story in chapters ════════════════ */
/* hero: pinned while the container closes (the section is taller than the screen; reduced motion = no pin, shown closed) */
.fl-abhero { background-color: var(--primary); color: var(--on-primary-soft); height: 190vh; }
.fl-abhero .fl-crumbs a, .fl-abhero .fl-crumbs span { color: var(--on-primary); }
.fl-abhero__pin { position: sticky; inset-block-start: var(--header-h); height: calc(100vh - var(--header-h)); display: grid; align-items: center; overflow: hidden; }
.fl-abhero__in { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--s-7); }
.fl-abhero__txt { display: grid; gap: var(--s-5); }
.fl-abhero .fl-title { font-size: clamp(2.6rem, 1.4rem + 4vw, 4.8rem); }
.fl-abhero .fl-intro { max-width: 44ch; font-size: var(--fs-lg); }
.fl-abhero__hint, .fl-abhero__done { display: inline-flex; align-items: center; gap: var(--s-2); justify-self: start; padding: 6px 14px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: var(--fw-bold); transition: opacity var(--dur-2), translate var(--dur-2); }
.fl-abhero__hint { background: color-mix(in srgb, var(--on-primary) 12%, transparent); color: var(--on-primary); }
.fl-abhero__hint .fl-icon { width: 18px; height: 18px; color: var(--fl-yellow); }
@media (prefers-reduced-motion: no-preference) { .fl-abhero__hint .fl-icon { animation: fl-pin 1.4s var(--ease) infinite; } }
.fl-abhero__done { display: none; background: var(--fl-yellow); color: var(--fl-green); }
.fl-abhero__done .fl-icon { width: 18px; height: 18px; }
.fl-abhero.is-shut .fl-abhero__hint { display: none; }
.fl-abhero.is-shut .fl-abhero__done { display: inline-flex; animation: fl-stamp .4s cubic-bezier(.2, 1.6, .5, 1); }
/* the container from the side */
.fl-closing { --l: 1; --c: 1; position: relative; width: min(100%, 520px); justify-self: center; }
.fl-closing__art { display: block; width: 100%; overflow: visible; }
.fl-closing__fill { fill: color-mix(in srgb, var(--fl-blue) 30%, #fff); }
.fl-closing__body { fill: rgba(255,255,255,.12); stroke: color-mix(in srgb, #fff 75%, var(--fl-blue)); stroke-width: 3; }
.fl-closing__shine { stroke: rgba(255,255,255,.7); stroke-width: 5; stroke-linecap: round; fill: none; }
.fl-closing__lid { transform-box: view-box; transform-origin: 220px 145px; transform: translateY(calc(var(--l) * -120px)) rotate(calc(var(--l) * -9deg)); }
.fl-closing__lidbody { fill: var(--fl-yellow); }
.fl-closing__rim { fill: color-mix(in srgb, var(--fl-yellow) 72%, var(--fl-orange)); }
.fl-closing__clip rect { fill: var(--fl-yellow); stroke: color-mix(in srgb, var(--fl-yellow) 60%, var(--fl-orange)); stroke-width: 2; }
.fl-closing__clip path { stroke: color-mix(in srgb, var(--fl-yellow) 55%, var(--fl-orange)); stroke-width: 4; stroke-linecap: round; fill: none; }
.fl-closing__clip { transform-box: view-box; }
.fl-closing__clip--l { transform-origin: 57px 145px; transform: rotate(calc(var(--c) * 115deg)); }
.fl-closing__clip--r { transform-origin: 383px 145px; transform: rotate(calc(var(--c) * -115deg)); }
.fl-closing__clip--f { transform-origin: 220px 158px; transform: scaleY(calc(1 - var(--c) * 2)); }
.fl-closing__mark { position: absolute; left: 50%; top: 39%; width: 9%; height: auto; translate: -50% 0; color: var(--fl-green); opacity: 0; transition: opacity .3s; }
.fl-abhero.is-shut .fl-closing__mark { opacity: .8; }
.fl-closing__click { position: absolute; top: 4%; right: 6%; padding: 6px 16px; border-radius: var(--r-pill); background: var(--accent-strong); color: #fff; font: var(--fw-heavy) var(--fs-xl)/1.2 var(--font-display); rotate: 10deg; opacity: 0; scale: .4; transition: opacity .25s, scale .35s cubic-bezier(.2, 1.8, .5, 1); }
.fl-abhero.is-shut .fl-closing__click { opacity: 1; scale: 1; }
@media (prefers-reduced-motion: reduce) { .fl-abhero { height: auto; } .fl-abhero__pin { position: static; height: auto; padding-block: var(--s-6); } .fl-closing { --l: 0; --c: 0; } }

/* chapter heads: the big outlined number beside eyebrow + title */
.fl-chapter { display: flex; align-items: flex-start; gap: var(--s-5); margin-block-end: var(--s-6); }
.fl-chapter__no::before, .fl-station__no::before { content: attr(data-no); direction: ltr; unicode-bidi: isolate; } /* decorative numerals as generated content: not read aloud, not contrast-checked */
.fl-chapter__no { flex: none; font: var(--fw-heavy) clamp(4rem, 2rem + 6vw, 7.5rem)/.85 var(--font-display); color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--primary) 45%, transparent); }
.is-dark .fl-chapter__no { -webkit-text-stroke-color: color-mix(in srgb, var(--fl-yellow) 60%, transparent); }

/* chapter 1: the beginning */
.fl-abbegin__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-7); align-items: center; }
.fl-abbegin__txt { display: grid; gap: var(--s-4); }
.fl-abbegin__txt > p { color: var(--ink-soft); line-height: 1.9; max-width: 56ch; }
.fl-abbegin__lead { font-size: var(--fs-xl); color: var(--ink) !important; line-height: 1.7 !important; }
.fl-pullquote { position: relative; margin: var(--s-4) 0 0; padding: var(--s-5) var(--s-6); padding-inline-start: 84px; border-radius: var(--r-lg); background: var(--second); color: var(--primary); }
.fl-pullquote .fl-icon { position: absolute; inset-inline-start: var(--s-5); inset-block-start: var(--s-5); width: 44px; height: 44px; }
.fl-pullquote p { font: var(--fw-heavy) var(--fs-xl)/1.6 var(--font-body); }
.fl-abbegin__photo { position: relative; margin: 0; }
.fl-abbegin__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); rotate: 2deg; box-shadow: 0 30px 50px -30px rgba(0,0,0,.5); }
.fl-abbegin__photo figcaption { position: absolute; inset-inline-start: -18px; inset-block-end: 28px; max-width: 70%; padding: var(--s-3) var(--s-4); background: #fff; color: var(--ink); font: 400 var(--fs-lg)/1.4 var(--font-hand); rotate: -4deg; box-shadow: 0 10px 20px -10px rgba(0,0,0,.4); }
.fl-abbegin__photo figcaption::before { content: ""; position: absolute; inset-block-start: -10px; left: 50%; translate: -50% 0; width: 70px; height: 20px; background: color-mix(in srgb, #E9D3A4 85%, transparent); rotate: 3deg; }

/* chapter 2: the production line */
.fl-abline { background: var(--surface); padding-block-start: calc(var(--section-y) + var(--s-7)); } /* room above "Chapter 2" after chapter 1's photo note */
.fl-belt { position: relative; margin-block: var(--s-4) var(--s-6); padding-block-start: 70px; }
.fl-belt__sign { position: absolute; inset-block-start: 0; left: 50%; translate: -50% 0; padding: 8px 22px; border: 4px solid transparent; border-image: repeating-linear-gradient(-45deg, var(--fl-yellow) 0 10px, var(--ink) 10px 20px) 4; background: var(--ink); color: var(--fl-yellow); font-size: var(--fs-sm); font-weight: var(--fw-heavy); white-space: nowrap; }
.fl-belt__run { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fl-belt__items { display: flex; gap: 56px; width: max-content; padding-inline: 28px; }
.fl-belt__items img { width: 170px; height: auto; flex: none; filter: drop-shadow(0 10px 8px rgba(0,0,0,.2)); }
@media (prefers-reduced-motion: no-preference) {
    .fl-belt__items { animation: fl-belt 22s linear infinite; }
    [dir="rtl"] .fl-belt__items { animation-name: fl-belt-rtl; }
    .fl-belt:hover .fl-belt__items, .fl-belt:hover .fl-belt__surface { animation-play-state: paused; }
    .fl-belt__surface { animation: fl-belt-surface 1s linear infinite; }
    [dir="rtl"] .fl-belt__surface { animation-direction: reverse; }
}
@keyframes fl-belt { to { translate: -50% 0; } }
@keyframes fl-belt-rtl { to { translate: 50% 0; } }
@keyframes fl-belt-surface { to { background-position: 40px 0, 0 0; } }
.fl-belt__surface { display: block; height: 26px; margin-block-start: -8px; border-radius: 13px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 4px, transparent 4px 40px), linear-gradient(var(--ink), color-mix(in srgb, var(--ink) 80%, #fff)); box-shadow: 0 10px 0 -4px color-mix(in srgb, var(--ink) 60%, transparent), inset 0 3px 0 rgba(255,255,255,.15); }
.fl-stations { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); counter-reset: st; }
.fl-stations li { position: relative; display: grid; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.fl-stations li + li::before { content: ""; position: absolute; inset-inline-end: calc(100% + 2px); inset-block-start: 44px; width: calc(var(--s-4) - 4px); border-block-start: 3px dashed var(--fl-yellow); }
.fl-station__ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--primary); color: var(--fl-yellow); }
.fl-station__ic .fl-icon { width: 26px; height: 26px; }
.fl-station__no { position: absolute; inset-block-start: var(--s-4); inset-inline-end: var(--s-5); font: var(--fw-heavy) var(--fs-2xl)/1 var(--font-display); color: color-mix(in srgb, var(--primary) 15%, transparent); }
.fl-stations h3 { font: var(--fw-heavy) var(--fs-lg)/1.4 var(--font-body); color: var(--primary); }
.fl-stations p { font-size: var(--fs-sm); color: var(--ink-soft); }

/* chapter 3: a fan of lid-coloured cards */
.fl-abfan__in { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: var(--s-6); }
.fl-abfan .fl-chapter { margin: 0; }
.fl-fan { --dir: 1; position: relative; height: 380px; }
[dir="rtl"] .fl-fan { --dir: -1; }
.fl-fan li { position: absolute; left: 50%; bottom: 20px; width: 200px; height: 280px; translate: calc(-50% + var(--k) * var(--dir) * 150px) calc(var(--k) * var(--k) * 8px); display: grid; align-content: center; justify-items: center; gap: var(--s-2); padding: var(--s-5); border-radius: 18px; background: color-mix(in srgb, var(--lid) 18%, #fff); border: 2px solid color-mix(in srgb, var(--lid) 45%, #fff); text-align: center; transform-origin: 50% 100%; rotate: calc(var(--k) * var(--dir) * 6deg); box-shadow: 0 20px 30px -20px rgba(0,0,0,.4); transition: rotate .5s cubic-bezier(.3, 1.4, .5, 1), translate .5s cubic-bezier(.3, 1.4, .5, 1); }
.fl-fan li:hover { z-index: 2; rotate: 0deg; translate: calc(-50% + var(--k) * var(--dir) * 150px) -18px; }
.fl-fan li .fl-jar__lid { inset-inline: -3px; border-radius: 14px 14px 6px 6px; }
.fl-fan b { font: var(--fw-heavy) 3.6rem/1 var(--font-display); color: var(--primary); }
.fl-fan b s { text-decoration-thickness: 6px; text-decoration-color: var(--accent-strong); font-size: 2.6rem; }
.fl-fan span:not(.fl-jar__lid) { font-weight: var(--fw-bold); color: var(--ink); max-width: 12ch; line-height: 1.4; }

/* chapter 4: the manifesto */
.fl-abmani { background-color: var(--primary); color: var(--on-primary-soft); }
.fl-manifesto { display: grid; gap: var(--s-3); margin-block-end: var(--s-7); }
.fl-manifesto li { font: var(--fw-heavy) clamp(1.6rem, 1rem + 2.2vw, 2.8rem)/1.5 var(--font-body); color: color-mix(in srgb, var(--on-primary) 30%, transparent); transition: color .5s var(--ease); }
.fl-manifesto span { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--fl-yellow) 55%, transparent) 62% 92%, transparent 92%) no-repeat 100% 0 / 0 100%; transition: background-size .8s var(--ease); }
[dir="ltr"] .fl-manifesto span { background-position: 0 0; }
.fl-manifesto li.is-lit { color: var(--on-primary); }
.fl-manifesto li.is-lit span { background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) { .fl-manifesto li { color: var(--on-primary); } }
.fl-abnotes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.fl-abnotes > div { display: grid; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-lg); border: 1px dashed color-mix(in srgb, var(--on-primary) 35%, transparent); }
.fl-abnotes h3 { display: flex; align-items: center; gap: var(--s-2); font: var(--fw-heavy) var(--fs-lg)/1.3 var(--font-body); color: var(--fl-yellow); }
.fl-abnotes p { font-size: var(--fs-lg); line-height: 1.7; color: var(--on-primary); }
.fl-abnotes__sign { grid-column: 1 / -1; justify-self: end; font: 400 var(--fs-xl)/1.3 var(--font-hand); color: var(--fl-yellow); rotate: -3deg; }

/* chapter 5: the fridge door */
.fl-fridge { position: relative; padding: var(--s-7) var(--s-6); padding-inline-end: 90px; border-radius: 34px; background: linear-gradient(135deg, #F7F9FA, #E3E9EC); box-shadow: inset 0 0 0 2px #fff, 0 30px 50px -36px rgba(0,0,0,.5); }
.fl-fridge__handle { position: absolute; inset-inline-end: 30px; inset-block: 18%; width: 18px; border-radius: 9px; background: linear-gradient(90deg, #C9D2D7, #F4F7F8, #B9C3C9); box-shadow: 0 6px 10px -4px rgba(0,0,0,.3); }
.fl-fridge__board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); align-items: start; }
.fl-fridge__board > li:nth-child(2) { margin-block-start: 60px; } .fl-fridge__board > li:nth-child(4) { margin-block-start: 30px; } .fl-fridge__board > li:nth-child(5) { margin-block-start: 90px; }
.fl-fridge__board > li { position: relative; padding: var(--s-6) var(--s-4) var(--s-4); box-shadow: 0 12px 18px -12px rgba(0,0,0,.4); transition: rotate .3s var(--ease); }
.fl-fridge__board > li:hover { rotate: 0deg !important; }
.fl-magnet { position: absolute; inset-block-start: -14px; left: 50%; translate: -50% 0; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.7), transparent 40%), var(--m, var(--fl-yellow)); box-shadow: 0 5px 8px -2px rgba(0,0,0,.35); }
.fl-magnet--logo { width: 52px; height: 52px; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.6), transparent 40%), var(--fl-yellow); color: var(--fl-green); inset-block-start: -22px; }
.fl-magnet--logo .fl-logo { width: 30px; height: auto; }
.fl-note { display: grid; gap: var(--s-2); }
.fl-note p { font: 400 var(--fs-base)/1.7 var(--font-hand); color: var(--ink); }
.fl-note b { font-size: var(--fs-sm); color: var(--ink-soft); }
.fl-note--1 { background: #FFF3A6; rotate: -3deg; }
.fl-note--2 { background: #fff; rotate: 2deg; background-image: repeating-linear-gradient(transparent 0 27px, #DCE7F5 27px 28px); }
.fl-note--3 { background: #FFD6E8; rotate: -1.5deg; }
.fl-polaroid { display: grid; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-4) !important; background: #fff; rotate: 3deg; }
.fl-polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.fl-polaroid > span:last-child { font: 400 var(--fs-base)/1.4 var(--font-hand); text-align: center; color: var(--ink); }
.fl-list { background: #fff; rotate: -2deg; background-image: linear-gradient(90deg, transparent 34px, #F2B8B8 34px 36px, transparent 36px), repeating-linear-gradient(transparent 0 31px, #DCE7F5 31px 32px); }
[dir="rtl"] .fl-list { background-image: linear-gradient(270deg, transparent 34px, #F2B8B8 34px 36px, transparent 36px), repeating-linear-gradient(transparent 0 31px, #DCE7F5 31px 32px); }
.fl-list b { font: 400 var(--fs-lg)/1.4 var(--font-hand); color: var(--primary); }
.fl-list ul { display: grid; gap: 4px; margin-block-start: var(--s-2); }
.fl-list li { display: flex; align-items: center; gap: var(--s-2); font: 400 var(--fs-base)/1.6 var(--font-hand); color: var(--ink-soft); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.fl-list li .fl-icon { width: 16px; height: 16px; color: var(--success); }
.fl-list li.is-key { text-decoration: none; color: var(--primary); font-weight: 700; }
.fl-list li.is-key .fl-icon { padding: 2px; border-radius: 50%; background: var(--fl-yellow); color: var(--fl-green); }

/* closing call to action */
.fl-abcta__in { display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: var(--s-6); padding: var(--s-6) var(--s-7); border-radius: var(--r-lg); background-color: var(--primary); color: var(--on-primary-soft); }
.fl-abcta h2 { font: var(--fw-heavy) var(--fs-2xl)/1.35 var(--font-display); color: var(--on-primary); }
.fl-abcta h2 em { font-style: normal; color: var(--fl-yellow); }
.fl-abcta__in img { rotate: -6deg; filter: drop-shadow(0 16px 14px rgba(0,0,0,.35)); }
.fl-abcta__in p { margin-block-start: var(--s-2); }
.fl-abcta .fl-cluster { display: grid; gap: var(--s-3); } /* two buttons, one equal width, stacked */
.fl-abcta .fl-cluster .fl-btn { justify-content: center; text-align: center; }

@media (max-width: 899px) {
    .fl-abhero { height: 160vh; }
    .fl-abhero__in { grid-template-columns: 1fr; gap: var(--s-3); }
    .fl-abhero .fl-intro { font-size: var(--fs-base); }
    .fl-abhero .fl-crumbs { display: none; }
    .fl-closing { width: min(78%, 340px); }
    .fl-abbegin__in, .fl-abfan__in, .fl-abnotes { grid-template-columns: 1fr; }
    .fl-abbegin__photo { max-width: 420px; justify-self: center; }
    .fl-stations { grid-template-columns: 1fr 1fr; }
    .fl-stations li::before { display: none; }
    .fl-belt__items img { width: 120px; }
    .fl-fan { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
    .fl-fan li, .fl-fan:hover li { position: relative; left: auto; bottom: auto; translate: none; rotate: none; width: auto; height: 200px; }
    .fl-fridge { padding: var(--s-6) var(--s-4); padding-inline-end: 52px; }
    .fl-fridge__board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fl-fridge__board > li { margin-block-start: 0 !important; }
    .fl-fridge__handle { inset-inline-end: 16px; width: 14px; }
    .fl-abcta__in { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: var(--s-6) var(--s-5); }
    .fl-abcta__in img { width: 160px; }
    .fl-abcta .fl-cluster { width: min(100%, 340px); }
    .fl-chapter { gap: var(--s-3); }
}
@media (min-width: 900px) and (max-width: 1180px) { .fl-fridge__board { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fl-fan li { translate: calc(-50% + var(--k) * var(--dir) * 110px) calc(var(--k) * var(--k) * 8px); width: 170px; } }
@media (max-width: 480px) { .fl-fridge__board { grid-template-columns: 1fr; } .fl-stations { grid-template-columns: 1fr; } .fl-pullquote { padding-inline-start: var(--s-5); padding-block-start: 64px; } }

/* ════════════════ Contact (contact.php): a postcard to FlexiLock ════════════════ */
.fl-ctpage { padding-block: var(--s-5) var(--section-y); }
.fl-ctpage .fl-head { margin-block: var(--s-4) var(--s-6); }
.fl-ctpage__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }

.fl-postcard { position: relative; display: grid; gap: var(--s-5); padding: var(--s-6); border-radius: var(--r-md); background: var(--surface); box-shadow: 0 24px 40px -28px rgba(0,0,0,.45); rotate: -.6deg;
    border: 10px solid transparent; border-image: repeating-linear-gradient(-45deg, var(--fl-green) 0 14px, #fff 14px 22px, var(--fl-yellow) 22px 36px, #fff 36px 44px) 10; }
.fl-postcard__head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); padding-block-end: var(--s-4); border-block-end: 2px solid var(--ink); }
.fl-postcard__to { display: grid; gap: 2px; }
.fl-postcard__to small { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.fl-postcard__to b { font: var(--fw-heavy) var(--fs-xl)/1.3 var(--font-body); color: var(--primary); }
.fl-postcard__to span { font-size: var(--fs-sm); color: var(--ink-soft); }
.fl-pstamp { flex: none; width: 92px; height: 108px; padding: 6px; rotate: 4deg; background: radial-gradient(circle at 50% 50%, transparent 3px, var(--fl-yellow) 3.5px) -5px -5px / 10px 10px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.fl-pstamp__in { display: grid; place-items: center; gap: 2px; height: 100%; padding: 8px; background: var(--fl-yellow); border: 2px solid var(--fl-green); color: var(--fl-green); }
.fl-pstamp__in .fl-logo { width: 46px; height: auto; }
.fl-pstamp__in small { font-size: 11px; font-weight: var(--fw-heavy); }
.fl-postmark { position: absolute; inset-inline-end: 64px; inset-block-start: 26px; pointer-events: none; }
.fl-postmark--waves { width: 120px; height: 46px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='46' viewBox='0 0 40 46' fill='none' stroke='%230D3A34' stroke-opacity='.5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M0 6q10 -6 20 0t20 0M0 17q10 -6 20 0t20 0M0 28q10 -6 20 0t20 0M0 39q10 -6 20 0t20 0'/%3E%3C/svg%3E") 0 0 / 40px 46px repeat-x; -webkit-mask: linear-gradient(90deg, transparent, #000 30%); mask: linear-gradient(90deg, transparent, #000 30%); opacity: .7; }
.fl-postmark:not(.fl-postmark--waves) { width: 104px; aspect-ratio: 1; display: grid; place-content: center; justify-items: center; border-radius: 50%; border: 3px double var(--accent-strong); color: var(--accent-strong); rotate: -16deg; font-weight: var(--fw-heavy); background: color-mix(in srgb, #fff 55%, transparent); animation: fl-stamp .45s .2s cubic-bezier(.2, 1.6, .5, 1) both; }
.fl-postmark small { font: 600 11px/1 ui-monospace, Consolas, monospace; }
.fl-postcard__topics { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.fl-postcard__topics > div { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.fl-chipradio input { position: absolute; opacity: 0; pointer-events: none; }
.fl-chipradio span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--ink-soft); cursor: pointer; transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1); }
.fl-chipradio span:hover { border-color: var(--primary); }
.fl-chipradio input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.fl-chipradio input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
/* the message area is lined paper */
.fl-postcard__lines textarea { line-height: 32px; padding-block: 6px; background: repeating-linear-gradient(transparent 0 31px, color-mix(in srgb, var(--primary) 18%, transparent) 31px 32px) 0 5px / 100% 32px local, var(--surface); }
.fl-postcard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.fl-postcard__from { font-size: var(--fs-sm); color: var(--ink-soft); }
.fl-postcard__sent { display: grid; justify-items: center; gap: var(--s-3); padding-block: var(--s-6); text-align: center; }
.fl-postcard__sent > .fl-icon { width: 56px; height: 56px; color: var(--success); }
.fl-postcard__sent h2 { font: var(--fw-heavy) var(--fs-2xl)/1.3 var(--font-display); color: var(--primary); }
.fl-postcard__sent p { color: var(--ink-soft); }
.fl-postcard.is-sending { animation: fl-send .7s var(--ease) forwards; }
@keyframes fl-send { 40% { rotate: 1deg; scale: .98; } to { translate: 0 -30px; opacity: 0; } }

/* ways to reach us */
.fl-ways { display: grid; gap: var(--s-4); }
.fl-ways__list { display: grid; gap: var(--s-3); }
.fl-way-stub { display: flex; align-items: center; gap: var(--s-4); padding-inline-end: var(--s-4); min-height: 76px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color var(--dur-1), translate var(--dur-2) var(--ease); }
.fl-way-stub:hover { border-color: var(--primary); translate: 0 -2px; }
.fl-way-stub__ic { align-self: stretch; width: 64px; display: grid; place-items: center; background: var(--tint-yellow); color: var(--primary); border-inline-end: 2px dashed color-mix(in srgb, var(--primary) 25%, transparent); }
.fl-way-stub__ic .fl-icon { width: 26px; height: 26px; }
.fl-way-stub__txt { flex: 1; display: grid; min-width: 0; }
.fl-way-stub__txt span { font-size: var(--fs-sm); color: var(--ink-soft); overflow-wrap: anywhere; }
[dir="rtl"] .fl-way-stub__txt span[dir="ltr"] { text-align: end; }
.fl-way-stub__go { width: 18px; height: 18px; color: var(--ink-faint); }
.fl-way-stub.is-main { background: var(--success); border-color: var(--success); color: #fff; }
.fl-way-stub.is-main .fl-way-stub__ic { background: color-mix(in srgb, #000 12%, transparent); color: #fff; border-color: rgba(255,255,255,.4); }
.fl-way-stub.is-main span, .fl-way-stub.is-main .fl-way-stub__go { color: #fff; }
/* the drawn map */
.fl-mapcard { position: relative; display: grid; min-height: 260px; border-radius: var(--r-lg); overflow: hidden; background-color: var(--primary); }
.fl-mapcard__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.fl-mapcard__art path { fill: none; stroke-linecap: round; }
.fl-mapcard__road { stroke: var(--fl-yellow); stroke-width: 14; }
.fl-mapcard__st { stroke: color-mix(in srgb, var(--on-primary) 25%, transparent); stroke-width: 6; }
.fl-mapcard::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--on-primary) 8%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--on-primary) 8%, transparent) 1px, transparent 1px); background-size: 28px 28px; }
.fl-mapcard__pin { position: absolute; left: 52%; top: 22%; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--accent-strong); color: #fff; box-shadow: 0 10px 18px -6px rgba(0,0,0,.5); z-index: 1; }
.fl-mapcard__pin .fl-icon { rotate: 45deg; width: 26px; height: 26px; }
@media (prefers-reduced-motion: no-preference) { .fl-mapcard__pin { animation: fl-pin 1.8s var(--ease) infinite; } }
@keyframes fl-pin { 50% { translate: 0 -8px; } }
.fl-mapcard__txt { position: relative; z-index: 1; align-self: end; display: grid; gap: 2px; margin: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); background: var(--surface); box-shadow: 0 10px 20px -12px rgba(0,0,0,.5); font-size: var(--fs-sm); }
.fl-mapcard__txt b { color: var(--primary); }
.fl-mapcard__txt small { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.fl-mapcard__txt small .fl-icon { width: 15px; height: 15px; }
.fl-mapcard__txt .fl-btn { justify-self: start; margin-block-start: var(--s-2); }
.fl-ways__follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: 1px dashed var(--line); }
@media (max-width: 1023px) { .fl-ctpage__grid { grid-template-columns: 1fr; } .fl-postcard { rotate: none; } }
@media (max-width: 640px) { .fl-postcard { padding: var(--s-4); } .fl-pstamp { width: 72px; height: 86px; } .fl-postmark--waves { display: none; } .fl-postcard__foot .fl-btn { width: 100%; } }

/* ════════════════ FAQs (faqs.php): every answer kept in a container ════════════════ */
.fl-faqhead { background-color: var(--primary); color: var(--on-primary-soft); padding-block: var(--s-5) var(--s-7); }
.fl-faqhead .fl-crumbs a, .fl-faqhead .fl-crumbs span { color: var(--on-primary); }
.fl-faqhead__in { display: grid; grid-template-columns: 1fr minmax(0, 460px); align-items: end; gap: var(--s-6); }
.fl-faqhead .fl-head { margin-block-start: var(--s-3); }
.fl-faqsearch { position: relative; display: grid; gap: var(--s-2); }
.fl-faqsearch > .fl-icon { position: absolute; inset-inline-start: 20px; inset-block-start: 18px; width: 22px; height: 22px; color: var(--primary); pointer-events: none; }
.fl-faqsearch input { width: 100%; height: 58px; padding-inline: 54px var(--s-4); border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font: inherit; box-shadow: 0 0 0 4px color-mix(in srgb, var(--fl-yellow) 0%, transparent); transition: box-shadow var(--dur-1); }
.fl-faqsearch input:focus { outline: 0; box-shadow: 0 0 0 4px var(--fl-yellow); }
.fl-faqsearch small { padding-inline-start: var(--s-4); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--on-primary); }
.fl-faqs__in { display: grid; gap: var(--s-6); }
.fl-jars { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); align-items: start; }
/* a container: the coloured lid (with two clips) on a clear body */
.fl-jar { position: relative; border-radius: 14px 14px var(--r-lg) var(--r-lg); background: color-mix(in srgb, var(--fl-blue) 10%, var(--surface)); border: 2px solid color-mix(in srgb, var(--fl-blue) 30%, var(--line)); border-block-start: 0; padding-block-start: 18px; transition: border-color var(--dur-1), box-shadow var(--dur-2); }
.fl-jar:hover { box-shadow: 0 16px 28px -22px color-mix(in srgb, var(--ink) 60%, transparent); }
.fl-jar[hidden] { display: none; }
.fl-jar summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5) var(--s-4); cursor: pointer; list-style: none; }
.fl-jar summary::-webkit-details-marker { display: none; }
.fl-jar summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-md); }
.fl-jar__lid { position: absolute; inset-inline: -4px; inset-block-start: 0; height: 22px; border-radius: 12px 12px 6px 6px; background: var(--lid); box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--lid) 70%, #000); transform-origin: 0 100%; transition: rotate .45s cubic-bezier(.3, 1.5, .5, 1), translate .45s cubic-bezier(.3, 1.5, .5, 1); }
[dir="rtl"] .fl-jar__lid { transform-origin: 100% 100%; }
/* the two clips on the lid's front edge */
.fl-jar__lid i { position: absolute; inset-block-start: 14px; width: 30px; height: 16px; border-radius: 0 0 6px 6px; background: color-mix(in srgb, var(--lid) 80%, #000); }
.fl-jar__lid i:first-child { inset-inline-start: 22%; } .fl-jar__lid i:last-child { inset-inline-end: 22%; }
.fl-jar[open] .fl-jar__lid { translate: 0 -6px; rotate: -1.5deg; }
[dir="rtl"] .fl-jar[open] .fl-jar__lid { rotate: 1.5deg; }
.fl-jar[open] .fl-jar__lid i { height: 6px; }
.fl-jar__no { font: var(--fw-heavy) var(--fs-sm)/1 var(--font-display); color: var(--ink-soft); }
.fl-jar__q { font-weight: var(--fw-bold); font-size: var(--fs-lg); color: var(--ink); line-height: 1.45; }
.fl-jar__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line); color: var(--primary); transition: rotate var(--dur-2) var(--ease), background-color var(--dur-1); }
.fl-jar__icon .fl-icon { width: 18px; height: 18px; }
.fl-jar[open] .fl-jar__icon { rotate: 45deg; background: var(--lid); border-color: var(--lid); color: var(--on-lid, #fff); }
.fl-jar[open] { border-color: color-mix(in srgb, var(--lid) 60%, var(--line)); }
.fl-jar__a { padding: 0 var(--s-5) var(--s-5); padding-inline-start: calc(var(--s-5) + 26px); color: var(--ink-soft); line-height: 1.8; }
@media (prefers-reduced-motion: no-preference) { .fl-jar[open] .fl-jar__a { animation: fl-rise .35s var(--ease); } }
@keyframes fl-rise { from { opacity: 0; translate: 0 -6px; } }
.fl-jar mark { background: color-mix(in srgb, var(--fl-yellow) 70%, transparent); color: inherit; border-radius: 3px; }
.fl-faqask { position: relative; display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-7) var(--s-5); border-radius: var(--r-lg); background-color: var(--primary); color: var(--on-primary-soft); text-align: center; overflow: hidden; }
.fl-faqask img { width: 150px; filter: brightness(0) invert(1); opacity: .5; }
.fl-faqask h2 { font: var(--fw-heavy) var(--fs-2xl)/1.3 var(--font-display); color: var(--on-primary); }
@media (max-width: 899px) { .fl-faqhead__in { grid-template-columns: 1fr; } .fl-jars { grid-template-columns: 1fr; } .fl-jar__q { font-size: var(--fs-base); } }

/* ════════════════ Policies (policy.php): a product leaflet ════════════════ */
.fl-readbar { position: fixed; inset-inline-start: 0; inset-block-start: 0; z-index: 60; height: 4px; width: calc(var(--read, 0) * 100%); background: var(--fl-yellow); }
.fl-polhead { padding-block: var(--s-5) var(--s-6); }
.fl-polhead__in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-6); }
.fl-polhead .fl-head { margin-block-start: var(--s-3); }
.fl-polhead__stamp { position: relative; inset: auto; width: 150px; font-size: var(--fs-xs); text-transform: none; color: var(--primary); border-color: var(--primary); outline-color: var(--primary); animation: none; }
.fl-polhead__stamp b { font: 800 var(--fs-base)/1.2 ui-monospace, Consolas, monospace; }
.fl-polhead__stamp .fl-icon { width: 22px; height: 22px; stroke-width: 2; }
.fl-poltabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; border-block-end: 2px solid var(--line); }
.fl-poltabs a { display: block; padding: var(--s-3) var(--s-4); border-radius: var(--r-md) var(--r-md) 0 0; color: var(--ink-soft); font-weight: var(--fw-bold); text-decoration: none; white-space: nowrap; margin-block-end: -2px; border-block-end: 2px solid transparent; }
.fl-poltabs a:hover { color: var(--primary); background: var(--panel); }
.fl-poltabs a[aria-current] { color: var(--primary); border-color: var(--fl-yellow); border-block-end-width: 4px; background: var(--surface); }
.fl-polgrid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-7); align-items: start; padding-block: var(--s-6) var(--section-y); }
.fl-poltoc { position: sticky; inset-block-start: calc(var(--header-h) + 16px); display: grid; gap: var(--s-3); }
.fl-poltoc h2 { font-size: var(--fs-sm); font-weight: var(--fw-heavy); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.fl-poltoc ol { display: grid; gap: 2px; list-style: none; padding: 0; margin: 0; }
.fl-poltoc a { display: flex; align-items: baseline; gap: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); color: var(--ink-soft); font-size: var(--fs-sm); font-weight: var(--fw-bold); text-decoration: none; }
.fl-poltoc a span { color: var(--ink-soft); font-size: var(--fs-xs); }
.fl-poltoc a:hover { background: var(--panel); color: var(--ink); }
.fl-poltoc a[aria-current] { background: var(--second); color: var(--primary); }
.fl-poltoc a[aria-current] span { color: var(--primary); }
.fl-poltoc .fl-btn { justify-self: start; }
/* the leaflet: product-insert paper with the brand stripe on top */
.fl-leaflet { position: relative; display: grid; gap: var(--s-6); padding: var(--s-7); border-radius: 6px; background: var(--surface);
    box-shadow: 0 1px 0 var(--line), 0 30px 50px -40px rgba(0,0,0,.5); }
.fl-leaflet::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; height: 8px; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(90deg, var(--fl-green) 0 40px, var(--fl-yellow) 40px 80px); }
.fl-leaflet__updated { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 12px; border-radius: var(--r-pill); background: var(--panel); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--ink-soft); }
.fl-leaflet__updated .fl-icon { width: 16px; height: 16px; }
.fl-leaflet__sec { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-4); scroll-margin-top: calc(var(--header-h) + 24px); padding-block-end: var(--s-6); border-block-end: 1px dashed var(--line); }
.fl-leaflet__sec:last-of-type { border: 0; padding: 0; }
.fl-leaflet__no { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--second); color: var(--primary); font: var(--fw-heavy) var(--fs-xl)/1 var(--font-display); }
.fl-leaflet h2 { font: var(--fw-heavy) var(--fs-xl)/1.4 var(--font-body); color: var(--primary); margin-block-end: var(--s-2); }
.fl-leaflet p { color: var(--ink-soft); line-height: 1.9; max-width: 68ch; }
.fl-leaflet__help { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); background: var(--paper); font-weight: var(--fw-bold); }
.fl-leaflet__help .fl-logo { width: 40px; height: auto; color: var(--primary); }
.fl-leaflet__help a { color: var(--primary); }
@media (max-width: 899px) {
    .fl-polhead__in { grid-template-columns: 1fr; }
    .fl-polhead__stamp { display: none; }
    .fl-polgrid { grid-template-columns: 1fr; gap: var(--s-4); }
    .fl-poltoc { position: static; padding: var(--s-4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
    .fl-leaflet { padding: var(--s-5) var(--s-4); }
    .fl-leaflet__sec { grid-template-columns: 1fr; gap: var(--s-2); }
    .fl-leaflet__no { width: 44px; height: 44px; font-size: var(--fs-lg); }
}
@media print {
    .fl-header, .fl-announce, .fl-footer, .fl-poltabs, .fl-poltoc, .fl-tabbar, .fl-fabs, .tpl-bar, .fl-readbar, .fl-insta, .fl-polhead__stamp { display: none !important; }
    .fl-polgrid { grid-template-columns: 1fr; padding: 0; }
    .fl-leaflet { box-shadow: none; padding: 0; background: none; }
}

/* ════════════════ Error pages (error.php): the zeros are containers ════════════════ */
.fl-err { padding-block: var(--s-7) var(--section-y); }
.fl-err__in { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--s-7); }
.fl-err__art { --h: clamp(130px, 6rem + 10vw, 250px); position: relative; display: grid; justify-items: center; }
.fl-err__txt { display: grid; gap: var(--s-4); }
.fl-err__txt .fl-title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); }
.fl-err__txt .fl-intro { max-width: 46ch; }
.fl-err__wait { font-weight: var(--fw-bold); color: var(--accent-strong); }
.fl-err__more { display: grid; gap: var(--s-4); margin-block-start: var(--section-y); }
/* the digits: big outlined numbers; zeros = the container from above, at digit height */
.fl-errcode { display: flex; align-items: center; gap: 2%; direction: ltr; }
.fl-errcode__d { font: var(--fw-heavy) var(--h)/1 var(--font-display); color: var(--primary); text-shadow: 6px 6px 0 var(--second); }
.fl-errcode__zero { position: relative; display: grid; place-items: center; width: calc(var(--h) * 1.1); height: var(--h); }
.fl-errcode__zero .fl-seal { width: 100%; --seal-open: color-mix(in srgb, var(--primary) 18%, transparent); }
.fl-errcode__zero .fl-seal__clip rect { stroke: color-mix(in srgb, var(--primary) 45%, transparent); }
.fl-errcode__zero .fl-seal__clip path { stroke: color-mix(in srgb, var(--primary) 50%, transparent); }
.fl-errcode__zero .fl-seal__badge { display: none; }
/* 404: no lid — the body shows empty, the lid floats off */
.is-lost .fl-seal__lid, .is-lost .fl-seal__rim, .is-lost .fl-seal__mark { display: none; }
.is-lost .fl-seal__body { stroke-dasharray: 10 8; }
.fl-errlid { position: absolute; inset-block-start: -14%; inset-inline-end: -46%; width: 64%; height: 40%; border-radius: 16px; background: var(--fl-yellow); box-shadow: inset 0 0 0 7px color-mix(in srgb, var(--fl-yellow) 72%, var(--fl-orange)); rotate: 18deg; }
@media (prefers-reduced-motion: no-preference) { .fl-errlid { animation: fl-float 3.2s var(--ease) infinite; } }
@keyframes fl-float { 50% { translate: 8px -14px; rotate: 26deg; } }
/* 403: sealed + a lock on top */
.fl-errlock { position: absolute; inset-block-end: 2%; inset-inline-end: 2%; width: 34%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--accent-strong); color: #fff; box-shadow: 0 0 0 6px var(--paper); }
.fl-errlock .fl-icon { width: 55%; height: 55%; }
/* 500: the second zero tipped over, spilling */
.is-spilt .fl-seal { rotate: 72deg; translate: 0 10%; }
.is-spilt i { position: absolute; inset-block-end: 2%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: #F28C28; }
.is-spilt i:nth-of-type(1) { inset-inline-start: -10%; } .is-spilt i:nth-of-type(2) { inset-inline-start: -28%; width: 10%; background: #8BC34A; }
.is-spilt i:nth-of-type(3) { inset-inline-start: -44%; width: 12%; background: #E53935; } .is-spilt i:nth-of-type(4) { inset-inline-start: 4%; inset-block-end: -6%; width: 30%; height: 8%; aspect-ratio: auto; background: color-mix(in srgb, #F28C28 50%, transparent); }
@media (prefers-reduced-motion: no-preference) { .is-spilt i:nth-of-type(-n+3) { animation: fl-roll 1.2s var(--ease) both; } }
@keyframes fl-roll { from { translate: 60px -20px; opacity: 0; } }
/* 503: half sealed with hazard tape across */
.fl-errtape { position: absolute; width: 130%; height: 18%; background: repeating-linear-gradient(-45deg, var(--fl-yellow) 0 14px, var(--ink) 14px 28px); rotate: -14deg; box-shadow: 0 6px 10px -6px rgba(0,0,0,.4); }
/* 419: a food expiry label stuck on the digits */
.fl-errexp { position: relative; margin-block-start: calc(var(--h) * -.3); margin-inline-start: 25%; display: grid; justify-items: center; gap: 2px; padding: var(--s-3) var(--s-5); background: #fff; border: 2px solid var(--ink); border-radius: 6px; rotate: -6deg; box-shadow: 0 12px 20px -10px rgba(0,0,0,.4); }
.fl-errexp small { font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.fl-errexp b { font: 800 var(--fs-xl)/1.2 ui-monospace, Consolas, monospace; color: var(--ink); text-decoration: line-through; text-decoration-color: var(--danger); text-decoration-thickness: 3px; }
.fl-errexp__stamp { position: absolute; inset-block-start: -26px; inset-inline-end: -40px; padding: 4px 14px; border: 3px solid var(--danger); border-radius: 6px; color: var(--danger); font-weight: var(--fw-heavy); text-transform: uppercase; rotate: 14deg; background: color-mix(in srgb, #fff 80%, transparent); }
/* 429: a clock over the digits */
.fl-errwait { position: absolute; inset-block-start: calc(var(--h) * -.3); inset-inline-end: 0; width: calc(var(--h) * .45); height: calc(var(--h) * .45); display: grid; place-items: center; border-radius: 50%; background: var(--second); color: var(--primary); box-shadow: 0 0 0 6px var(--paper); }
.fl-errwait .fl-icon { width: 60%; height: 60%; }
@media (prefers-reduced-motion: no-preference) { .fl-errwait .fl-icon { animation: fl-tick 1s steps(2) infinite; } }
@keyframes fl-tick { 50% { rotate: 8deg; } }
/* 500 / 503: the minimal layout (no site header) */
.fl-errorpage.is-minimal { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.fl-errhead { display: flex; justify-content: center; padding: var(--s-5) var(--gutter); border-block-end: 1px solid var(--line); background: var(--surface); }
.fl-errhead .fl-logo { height: 40px; width: auto; color: var(--primary); }
.is-minimal .fl-err { display: grid; align-content: center; }
@media (max-width: 899px) {
    .fl-err__in { grid-template-columns: 1fr; gap: var(--s-6); text-align: center; }
    .fl-err__txt { justify-items: center; }
    .fl-err__txt .fl-cluster { justify-content: center; }
    .fl-err__art { --h: clamp(90px, 26vw, 150px); }
    .fl-errexp { margin-inline-start: 0; margin-block-start: -12px; }
    .fl-errexp__stamp { inset-inline-end: -24px; }
}
