/* =============================================================================
   promo-badges-2026.css — how an OFFER looks on the storefront.

   One visual identity for "this is on offer", used everywhere an item or a
   basket is shown: the menu cards (storefront + table QR), the landing page's
   dishes, the product page, the offers strip, the cart, the checkouts and the
   payment page.

   One identity, deliberately, rather than a colour per offer type: a customer
   scanning a grid should learn once what "offer" looks like and then spot it
   across the room. The type still shows — in the icon and in the words ("خصم
   20%", "1+1 مجاناً", "حزمة") — but not in a rainbow.

   Scoped with the sf- prefix; nothing here restyles an existing class.
   Loaded from partials/promo_assets.blade.php in every storefront layout.
   ========================================================================== */

:root {
    --sf-promo-a: #e11d48;          /* crimson */
    --sf-promo-b: #f97316;          /* orange  */
    --sf-promo-ink: #ffffff;
    --sf-promo-soft: #fff1f2;
    --sf-promo-line: rgba(225, 29, 72, .28);
    --sf-promo-glow: rgba(225, 29, 72, .22);
    --sf-promo-grad: linear-gradient(135deg, var(--sf-promo-a) 0%, var(--sf-promo-b) 100%);
}

/* ─────────────────────────────────────────────────────────────── the card ── */

/* The whole card, framed. A ring rather than a heavier shadow so the grid's
   rhythm holds — an offer card is the same size as its neighbours, it simply
   stands out from them. */
/* No !important here on purpose: an !important declaration outranks a CSS
   animation, and sf-breathe (below) animates this very shadow. An animation
   in turn outranks every card family's own normal box-shadow, so the frame
   shows whatever stylesheet loads last. The reduced-motion block restores a
   static, !important frame for anyone who switches motion off. */
.sf-promo-card {
    position: relative;
    box-shadow:
        0 0 0 2px var(--sf-promo-a),
        0 12px 28px -12px var(--sf-promo-glow);
}
.sf-promo-card:hover {
    box-shadow:
        0 0 0 2px var(--sf-promo-b),
        0 20px 40px -14px rgba(225, 29, 72, .38) !important;
}

/* ─────────────────────────────────────────── the badge on the photo itself ── */

.sf-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 9px;
    border-radius: 999px;
    background: var(--sf-promo-grad);
    color: var(--sf-promo-ink);
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
    box-shadow: 0 6px 14px -6px rgba(225, 29, 72, .75);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.sf-badge i { font-size: 10.5px; }

/* A slow sheen — enough movement to catch the eye in a grid of still photos,
   slow enough not to nag. Off for anyone who asked for less motion. */
.sf-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: sf-sheen 3.6s ease-in-out infinite;
    z-index: -1;
}
@keyframes sf-sheen {
    0%, 55% { transform: translateX(-120%); }
    100%    { transform: translateX(120%); }
}
html[dir="rtl"] .sf-badge::after { animation-name: sf-sheen-rtl; }
@keyframes sf-sheen-rtl {
    0%, 55% { transform: translateX(120%); }
    100%    { transform: translateX(-120%); }
}

/* ─────────────────────────────────────────── the band under the photo ── */

/* Full width, between the photo and the title: the one place on the card that
   no other overlay already claims. It is a BUTTON — it opens «تفاصيل العرض» —
   so it is reset from the browser's button look and given a real focus ring.

   Two weights, and the difference is the point:
     --strong  a dish-specific offer: solid offer gradient, white type. This is
               the treatment that makes a dish stand out of the grid.
     --soft    a whole-order offer (10% off the bill): pale, so that when one is
               running every card can say so without every card shouting — the
               dishes that ALSO have their own deal still stand out. */
.sf-band {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-block: 1px solid transparent;
    border-radius: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: start;
    cursor: pointer;
    position: relative;
    transition: filter .18s ease, background-color .18s ease;
}
.sf-band:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: -3px;
}

.sf-band__ic {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 11px;
}
/* Two lines: the deal in a word on top ("خصم 25%"), the offer's own name
   under it — so a narrow card never squeezes the name down to "خـ…". */
.sf-band__txt {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    overflow: hidden;
    white-space: nowrap;
}
.sf-band__txt b {
    max-width: 100%;
    font-weight: 900;
    font-size: 13px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sf-band__txt span {
    max-width: 100%;
    min-width: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    opacity: .92;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sf-band__more {
    flex: 0 0 auto;
    unicode-bidi: isolate;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
}
/* «التفاصيل ›» — says the strip is pressable before anyone presses it. */
.sf-band__go {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
}
.sf-band__chev { font-size: 9px; transition: transform .18s ease; }
[dir="ltr"] .sf-band__chev { transform: scaleX(-1); }
.sf-band:hover .sf-band__chev { transform: translateX(-2px); }
[dir="ltr"] .sf-band:hover .sf-band__chev { transform: scaleX(-1) translateX(-2px); }

/* Strong — a dish-specific offer. */
.sf-band--strong {
    background: var(--sf-promo-grad);
    color: #fff;
    border-block-color: rgba(0, 0, 0, .06);
}
.sf-band--strong:hover { filter: brightness(1.06) saturate(1.05); }
.sf-band--strong .sf-band__ic { background: rgba(255, 255, 255, .22); color: #fff; }
.sf-band--strong .sf-band__more { background: #fff; color: var(--sf-promo-a); }
.sf-band--strong .sf-band__go {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

/* Soft — a whole-order offer. */
.sf-band--soft {
    background: var(--sf-promo-soft);
    color: #9f1239;
    border-block-color: var(--sf-promo-line);
}
.sf-band--soft:hover { background: #ffe4e6; }
.sf-band--soft .sf-band__ic {
    background: var(--sf-promo-grad);
    color: #fff;
    box-shadow: 0 4px 10px -4px rgba(225, 29, 72, .7);
}
.sf-band--soft .sf-band__more {
    background: #fff;
    color: var(--sf-promo-a);
    border: 1px solid var(--sf-promo-line);
}
.sf-band--soft .sf-band__go {
    color: var(--sf-promo-a);
    box-shadow: inset 0 0 0 1px var(--sf-promo-line);
    background: #fff;
}

/* A phone's two-column grid leaves a card ~170px of strip: the word
   «التفاصيل» gives way to a round chevron so the offer itself keeps the room.
   The button's aria-label still says "offer details". */
@media (max-width: 575.98px) {
    .sf-band { gap: 6px; padding: 7px 9px; }
    .sf-band__ic { width: 22px; height: 22px; font-size: 10px; }
    .sf-band__go {
        width: 24px;
        height: 24px;
        padding: 0;
        justify-content: center;
    }
    .sf-band__go-t { display: none; }
    .sf-band__chev { font-size: 10px; }
}

/* Compact cards (theme1 / theme3 / the default theme's tiles) have no photo
   bleed to run into: the strip sits in the body as a rounded bar. */
.th1-card__b > .sf-band,
.th3-card__b > .sf-band,
.wsus__offer_item_single .sf-band {
    border-radius: 10px;
    border: 0;
    margin: 0 0 10px;
}
/* The default theme styles every <span> inside its tiles (cursive, 20px,
   block). Undo that inside the strip. */
.wsus__offer_item_single .sf-band span,
.wsus__offer_item_single .sf-band b {
    font-family: inherit;
    font-size: inherit;
    letter-spacing: normal;
    text-transform: none;
    display: inline;
    color: inherit;
}
.wsus__offer_item_single .sf-band__txt,
.wsus__offer_item_single .sf-band__go,
.wsus__offer_item_single .sf-band__ic { display: inline-flex; }
/* The band runs edge to edge: it pulls itself out through the body's own
   side padding (--sf-band-bleed, per card family) and up through its top
   padding, so it reads as a strip across the card rather than a box in it. */
.qrm-card__body > .sf-band:first-child,
.nx-product-card__body > .sf-band:first-child,
.lp-dish__body > .sf-band:first-child {
    /* width:100% would pin the strip to the content box, so the negative
       margin on the far side could not widen it — size it to the bleed. */
    width: calc(100% + var(--sf-band-bleed, 14px) * 2);
    max-width: none;
    margin-top: calc(var(--sf-band-top, 12px) * -1);
    margin-bottom: 4px;
    margin-inline: calc(var(--sf-band-bleed, 14px) * -1);
    border-top: 0;
}
.qrm-card__body        { --sf-band-bleed: 13px; --sf-band-top: 12px; }
.lp-dish__body         { --sf-band-bleed: 13px; --sf-band-top: 12px; }
.nx-product-card__body { --sf-band-bleed: 14px; --sf-band-top: 14px; }

/* Landing dish: the photo has only the calorie chip, bottom-start, so the
   offer takes the top-start corner. */
.lp-dish__promo {
    position: absolute;
    inset-block-start: 9px;
    inset-inline-start: 9px;
    z-index: 2;
}

/* The list view on the classic grid puts the photo beside the body, so the
   band sits at the head of the text column instead of spanning the card. */
.m-view-list .nx-product-card__body > .sf-band:first-child {
    width: 100%;
    margin-inline: 0;
    border-radius: 8px;
    border: 1px solid var(--sf-promo-line);
}

/* ───────────────────────────────────── the landing page's offers strip ── */

.sf-offers {
    margin: 0 0 22px;
}
.sf-offers__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.sf-offers__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #1a0f08;
}
.sf-offers__title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--sf-promo-grad);
    color: #fff;
    font-size: 13px;
    box-shadow: 0 6px 14px -6px rgba(225, 29, 72, .75);
}
.sf-offers__count {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--sf-promo-soft);
    color: var(--sf-promo-a);
    font-size: 11.5px;
    font-weight: 800;
}

/* Horizontal on a phone (swipe), wrapped on a desktop. */
.sf-offers__list {
    display: flex;
    gap: 12px;
    column-gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    list-style: none;
    margin: 0;
}
/* On a wide screen the offers share the row evenly instead of wrapping 3 + 1
   and leaving a half-empty line — a grid that fits as many 260px columns as
   the row allows and stretches them to fill it. */
@media (min-width: 992px) {
    .sf-offers .sf-offers__list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        column-gap: 14px;
        row-gap: 14px;
        overflow: visible;
    }
    /* Scoped so it outranks the base .sf-offer width, which is declared
       further down this file and would otherwise win: a 290px card in a
       272px column spills over and swallows the gap. */
    .sf-offers .sf-offer { width: auto; min-width: 0; }
}

.sf-offer {
    flex: 0 0 auto;
    width: min(290px, 82vw);
    scroll-snap-align: start;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--sf-promo-line);
    box-shadow: 0 10px 24px -16px rgba(225, 29, 72, .55);
    position: relative;
    overflow: hidden;
}
/* A notch of the offer colour on the leading edge. */
.sf-offer::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 4px;
    background: var(--sf-promo-grad);
}
.sf-offer__ic {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--sf-promo-grad);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 8px 18px -8px rgba(225, 29, 72, .8);
}
.sf-offer__body { min-width: 0; flex: 1 1 auto; }
.sf-offer__short {
    display: block;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--sf-promo-a);
}
.sf-offer__name {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #1a0f08;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.sf-offer__meta {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #6b5246;
    line-height: 1.45;
}
.sf-offer__code {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px dashed var(--sf-promo-a);
    color: var(--sf-promo-a);
    font-size: 11.5px;
    font-weight: 800;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    direction: ltr;
    unicode-bidi: isolate;
}

/* ────────────────────────────────────── the product page's offer panel ── */

.sf-pdp-offers {
    margin: 14px 0;
    padding: 14px;
    border-radius: 14px;
    background: var(--sf-promo-soft);
    border: 1px solid var(--sf-promo-line);
}
.sf-pdp-offers__t {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
    color: #9f1239;
}
.sf-pdp-offers__t i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--sf-promo-grad);
    color: #fff;
    font-size: 11.5px;
}
.sf-pdp-offers__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sf-pdp-offers__row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid rgba(225, 29, 72, .14);
}
.sf-pdp-offers__row .sf-badge { flex: 0 0 auto; }
.sf-pdp-offers__row b { display: block; font-size: 13px; color: #1a0f08; }
.sf-pdp-offers__row small { display: block; font-size: 11.5px; color: #6b5246; margin-top: 2px; line-height: 1.45; }

/* ──────────────────────────── the offers that fired, in a bill summary ── */

.sf-applied {
    list-style: none;
    margin: 4px 0 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--sf-promo-soft);
    border: 1px dashed var(--sf-promo-line);
    display: grid;
    gap: 5px;
}
.sf-applied__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #9f1239;
}
.sf-applied__name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.sf-applied__name span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.sf-applied__name i { color: var(--sf-promo-a); }
.sf-applied__amt {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}
.sf-applied__amt .Saudi_Riyal { width: 12px; height: auto; }

/* Inside the payment page's summary list the row already provides padding. */
.is-offers { display: block !important; padding: 0 !important; border: 0 !important; }

/* QR checkout: an offer row in the totals list reads as a discount row. */
.sf-offer-line span:first-child { display: inline-flex; align-items: center; gap: 6px; color: #9f1239; font-weight: 700; }
.sf-offer-line i { color: var(--sf-promo-a); }

/* The cart's totals while the server re-prices the basket. */
#cart_sum.is-pending [data-cart="discount"],
#cart_sum.is-pending [data-cart="grand"],
#cart_sum.is-pending [data-cart="vat"],
#cart_sum.is-pending #cart_offers {
    opacity: .45;
    transition: opacity .15s ease;
}

/* ───────────────────────────────────────────────────────────── motion ── */

@media (prefers-reduced-motion: reduce) {
    .sf-badge::after { animation: none; display: none; }
    .sf-promo-card, .sf-promo-card:hover { transition: none; }
}

/* ─────────────────────────── compact cards (theme1 / theme3 / default) ── */

/* Those cards have no body to carry the band, so the badge alone marks the
   offer, pinned to the photo's top-start corner. The --end variant is for the
   default theme's "today special" tiles, whose own "% off" chip already sits
   at the start. */
.sf-card-corner {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    z-index: 3;
    line-height: 0;
}
.sf-card-corner--end {
    inset-inline-start: auto;
    inset-inline-end: 10px;
}
.th1-card__img, .th3-card__img { position: relative; }

/* The default theme styles every <span> inside a "today special" tile
   (cursive, 20px, brand colour, display:block). Undo that for the offer badge
   and its parts, or the badge would render as a large cursive block. */
.wsus__offer_item_single { position: relative; }
.wsus__offer_item_single .sf-card-corner,
.wsus__offer_item_single .sf-badge,
.wsus__offer_item_single .sf-badge span {
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
}
.wsus__offer_item_single .sf-card-corner { display: block; }
.wsus__offer_item_single .sf-badge {
    display: inline-flex;
    font-size: 11.5px;
    color: var(--sf-promo-ink);
}
.wsus__offer_item_single .sf-badge span {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* ───────────────────────────────────── the offer card, breathing ── */

/* A dish with its own offer gets a slow glow on its frame — movement is what
   the eye catches first in a grid of still photos. Slow and faint, and off for
   anyone who asked for less motion. */
@keyframes sf-breathe {
    0%, 100% { box-shadow: 0 0 0 2px var(--sf-promo-a), 0 12px 28px -12px rgba(225, 29, 72, .22); }
    50%      { box-shadow: 0 0 0 2px var(--sf-promo-b), 0 14px 34px -10px rgba(249, 115, 22, .38); }
}
.sf-promo-card { animation: sf-breathe 3.2s ease-in-out infinite; }
.sf-promo-card:hover { animation-play-state: paused; }

/* ───────────────────────────────────────── «تفاصيل العرض» popup ── */

.sf-od {
    /* The storefront themes reset every element's margin to 0, which would
       pin a modal <dialog> to the top corner — centre it explicitly. */
    position: fixed;
    inset: 0;
    margin: auto;
    border: 0;
    padding: 0;
    width: min(560px, calc(100vw - 24px));
    max-height: min(86vh, 760px);
    border-radius: 22px;
    background: #fff;
    color: #1a0f08;
    box-shadow: 0 40px 90px -30px rgba(20, 10, 6, .65);
    overflow: hidden;
}
.sf-od[open] {
    display: flex;
    flex-direction: column;
    animation: sf-od-in .22s cubic-bezier(.2, .7, .3, 1) both;
}
.sf-od::backdrop {
    background: rgba(20, 10, 6, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
@keyframes sf-od-in {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

/* Fallback for a browser without <dialog>: pinned, centred, over a page lock. */
html.sf-od-lock { overflow: hidden; }
html.sf-od-lock .sf-od[open] {
    position: fixed;
    inset: 0;
    margin: auto;
    z-index: 2147483000;
}

.sf-od__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--sf-promo-grad);
    color: #fff;
}
.sf-od__head-ic {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .2);
    font-size: 18px;
}
.sf-od__titles { flex: 1 1 auto; min-width: 0; }
.sf-od__title {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sf-od__sub {
    margin: 2px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    opacity: .9;
}
.sf-od__x {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s ease;
}
.sf-od__x:hover { background: rgba(255, 255, 255, .32); }
.sf-od__x:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.sf-od__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    gap: 12px;
    background: #fff8f8;
    overscroll-behavior: contain;
}

.sf-od__offer {
    background: #fff;
    border: 1px solid rgba(225, 29, 72, .16);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 20px -16px rgba(225, 29, 72, .6);
    position: relative;
    overflow: hidden;
}
.sf-od__offer::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 4px;
    background: var(--sf-promo-grad);
}
.sf-od__offer-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.sf-od__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--sf-promo-grad);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 6px 14px -6px rgba(225, 29, 72, .75);
}
.sf-od__scope {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--sf-promo-soft);
    color: #9f1239;
    font-size: 11.5px;
    font-weight: 800;
}
.sf-od__name {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    color: #1a0f08;
}
.sf-od__type {
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #8a6d5f;
}
.sf-od__desc {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.65;
    color: #4a3328;
    white-space: pre-line;
}
.sf-od__lines {
    list-style: none;
    margin: 10px 0 0;
    padding: 10px 0 0;
    border-top: 1px dashed rgba(225, 29, 72, .2);
    display: grid;
    gap: 7px;
}
.sf-od__line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #3b2a20;
}
.sf-od__line-ic {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--sf-promo-soft);
    color: var(--sf-promo-a);
    font-size: 11px;
}

.sf-od__foot {
    display: flex;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid rgba(225, 29, 72, .12);
}
.sf-od__add {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 13px;
    background: var(--sf-promo-grad);
    color: #fff;
    font: inherit;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px -10px rgba(225, 29, 72, .85);
    transition: transform .15s ease, filter .15s ease;
}
.sf-od__add:hover { transform: translateY(-1px); filter: brightness(1.05); }
.sf-od__add:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.sf-od__add[hidden] { display: none; }
.sf-od__close {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(26, 15, 8, .14);
    border-radius: 13px;
    background: #fff;
    color: #4a3328;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.sf-od__close:hover { background: #faf5f0; }
.sf-od__close:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* A phone: a bottom sheet, the way a thumb expects it. */
@media (max-width: 575.98px) {
    .sf-od {
        width: 100vw;
        max-width: 100vw;
        max-height: 88vh;
        margin: auto 0 0;
        border-radius: 22px 22px 0 0;
    }
    .sf-od[open] { animation-name: sf-od-up; }
    @keyframes sf-od-up {
        from { transform: translateY(40px); opacity: .4; }
        to   { transform: none; opacity: 1; }
    }
    .sf-od__title { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    .sf-promo-card, .sf-od[open] { animation: none; }
    .sf-promo-card {
        box-shadow:
            0 0 0 2px var(--sf-promo-a),
            0 12px 28px -12px var(--sf-promo-glow) !important;
    }
}

/* Product page panel: the scope pill and the condition lines. */
.sf-pdp-offers__body { min-width: 0; }
.sf-pdp-offers__scope {
    display: inline-block !important;
    margin-top: 4px !important;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--sf-promo-soft);
    color: #9f1239 !important;
    font-weight: 700;
}
.sf-pdp-offers__lines {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 7px;
}
.sf-pdp-offers__line {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #4a3328;
}
.sf-pdp-offers__line i { color: var(--sf-promo-a); font-size: 10.5px; }

/* ───────────────────────────── «تم تحديث العروض» — offers changed while open ── */
/* Shown by promo-offers-2026.js when the shop's offers changed while the page
   was open and refreshing on its own would interrupt the visitor (typing, a
   dialog open, the basket or checkout). */
.sf-fresh {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 2147482500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 24px);
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    background: #1a0f08;
    color: #fff;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55);
    font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
    transform: translate(-50%, 140%);
    opacity: 0;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s ease;
}
[dir="rtl"] .sf-fresh { padding: 8px 16px 8px 8px; }
.sf-fresh.is-in { transform: translate(-50%, 0); opacity: 1; }
.sf-fresh > i { color: #fbbf24; font-size: 14px; }
.sf-fresh .sf-fresh__t { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-fresh .sf-fresh__go {
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--sf-promo-grad, linear-gradient(135deg, #e11d48, #f97316));
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}
.sf-fresh .sf-fresh__x {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
}
.sf-fresh button:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
@media (max-width: 575.98px) {
    .sf-fresh { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
    .sf-fresh { transition: none; }
}
