/* ============================================================
   BLOOM — Flower Boutique store theme (theme code: bloom-store)
   Soft botanical romance · petal pink / deep rose / leaf green
   Playfair Display display · Karla body · Tajawal (Arabic)
   Mobile-first · RTL-safe (logical properties) · reduced-motion aware
   ============================================================ */

:root {
    /* ── Tokenised brand (mechanism-A): bg=petal · primary=rose · secondary=leaf · text=ink ── */
    --petal: var(--tk-bg, #FDF2F4);
    --petal-2: color-mix(in srgb, var(--tk-bg, #FDF2F4), var(--tk-primary, #B23A52) 7%);
    --blush: color-mix(in srgb, var(--tk-bg, #FDF2F4), var(--tk-primary, #B23A52) 16%);
    --cream: color-mix(in srgb, var(--tk-bg, #FDF2F4), #fff 80%);
    --rose: var(--tk-primary, #B23A52);
    --rose-deep: color-mix(in srgb, var(--tk-primary, #B23A52), #000 22%);
    --rose-soft: color-mix(in srgb, var(--tk-primary, #B23A52), #fff 73%);
    --leaf: var(--tk-secondary, #5E7D5A);
    --leaf-deep: color-mix(in srgb, var(--tk-secondary, #5E7D5A), #000 26%);
    --leaf-soft: color-mix(in srgb, var(--tk-secondary, #5E7D5A), #fff 86%);
    --plum: var(--tk-accent3, #7B4660);
    --stem: color-mix(in srgb, var(--tk-secondary, #5E7D5A), #000 50%);
    --ink: var(--tk-text, #46232D);
    --muted: color-mix(in srgb, var(--tk-text, #46232D), var(--tk-bg, #FDF2F4) 42%);
    --line: rgb(from var(--tk-primary, #B23A52) r g b / .16);
    --line-soft: rgb(from var(--tk-primary, #B23A52) r g b / .08);
    --grad-rose: linear-gradient(135deg, color-mix(in srgb, var(--tk-primary, #B23A52), #fff 14%) 0%, var(--tk-primary, #B23A52) 55%, color-mix(in srgb, var(--tk-primary, #B23A52), #000 13%) 100%);
    --shadow-1: 0 4px 14px -6px rgb(from var(--tk-primary, #B23A52) r g b / .18);
    --shadow-2: 0 18px 40px -20px rgb(from var(--tk-primary, #B23A52) r g b / .30);
    --shadow-rose: 0 10px 24px -10px rgb(from var(--tk-primary, #B23A52) r g b / .55);
    --r: 26px;
    --r-md: 18px;
    --r-sm: 12px;
    --r-pill: 999px;
    --font-d: var(--tk-font-header, 'Playfair Display'), 'Tajawal', Georgia, serif;
    --font-b: var(--tk-font-content, 'Karla'), 'Tajawal', system-ui, sans-serif;
    --ease: cubic-bezier(.33, .8, .44, 1);
    --header-h: 64px;
    --dock-h: 70px;
}

/* ---------- Base ---------- */
html { background: var(--petal); scroll-behavior: smooth; }

body.bloom {
    background: var(--petal);
    color: var(--ink);
    font-family: var(--font-b);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    padding-block-end: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
}

body.bloom[dir="rtl"] { font-family: 'Tajawal', var(--font-b); }

/* Watercolor blush wash */
body.bloom::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(560px 440px at 90% -6%, rgb(from var(--tk-accent2, #E294A7) r g b / .30), transparent 70%),
        radial-gradient(460px 400px at -8% 24%, rgb(from var(--tk-secondary, #5E7D5A) r g b / .14), transparent 70%),
        radial-gradient(660px 540px at 50% 110%, rgb(from var(--tk-primary, #B23A52) r g b / .10), transparent 72%);
}

::selection { background: var(--rose); color: #fff; }
img { max-width: 100%; }
a { color: var(--rose-deep); }
a:hover { color: var(--rose); }
.cursor-pointer { cursor: pointer; }

.bloom-wrap {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 18px;
    position: relative;
    z-index: 1;
}

.bloom-section { margin-block: 34px; }
.bloom-section.tight { margin-block: 22px; }

/* ---------- Floating petal particles (4 CSS shapes, slow) ---------- */
.bloom-ambient {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.bloom-ambient i {
    position: absolute;
    inset-block-start: -8vh;
    display: block;
    background: linear-gradient(140deg, color-mix(in srgb, var(--tk-accent2, #E294A7), #fff 40%) 10%, var(--tk-accent2, #E294A7) 90%);
    border-radius: 78% 4% 60% 50% / 55% 4% 78% 50%;
    opacity: .5;
    filter: blur(.5px);
    animation: bloomFall linear infinite;
}

.bloom-ambient i:nth-child(1) { inset-inline-start: 10%; width: 22px; height: 22px; animation-duration: 27s; animation-delay: -6s; }
.bloom-ambient i:nth-child(2) { inset-inline-start: 36%; width: 15px; height: 15px; animation-duration: 34s; animation-delay: -19s; opacity: .38; }
.bloom-ambient i:nth-child(3) { inset-inline-start: 64%; width: 26px; height: 26px; animation-duration: 23s; animation-delay: -12s; }
.bloom-ambient i:nth-child(4) { inset-inline-start: 86%; width: 18px; height: 18px; animation-duration: 31s; animation-delay: -25s; opacity: .42; }

@keyframes bloomFall {
    0%   { transform: translate3d(0, -10vh, 0) rotate(0deg); }
    25%  { transform: translate3d(3vw, 22vh, 0) rotate(80deg); }
    50%  { transform: translate3d(-2.4vw, 52vh, 0) rotate(165deg); }
    75%  { transform: translate3d(2.6vw, 82vh, 0) rotate(250deg); }
    100% { transform: translate3d(-1.6vw, 112vh, 0) rotate(335deg); }
}

/* ---------- Type ---------- */
.bloom-display { font-family: var(--font-d); font-weight: 600; line-height: 1.16; color: var(--ink); }

.bloom-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rose);
}
.bloom-kicker i { font-size: 1rem; }

.bloom-sec-head { margin-block-end: 16px; }
.bloom-sec-title {
    font-family: var(--font-d);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 2px 0 0;
    color: var(--ink);
}

/* ---------- Header ---------- */
.bloom-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 1030;
    background: rgb(from var(--tk-bg, #FDF2F4) r g b / .88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-block-end: 1px solid var(--line-soft);
}

.bloom-header-inner {
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 18px;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bloom-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}
.bloom-logo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--cream);
    flex-shrink: 0;
}
.bloom-logo-name {
    font-family: var(--font-d);
    font-weight: 600;
    font-size: 1.06rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bloom-header-actions { display: flex; align-items: center; gap: 10px; }

.bloom-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--r-pill);
    background: var(--grad-rose);
    color: #fff !important;
    font-size: 1.2rem;
    box-shadow: var(--shadow-rose);
    cursor: pointer;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.bloom-cart-btn:hover { transform: translateY(-2px); }

.bloom-badge {
    position: absolute;
    inset-block-start: -5px;
    inset-inline-end: -5px;
    min-width: 20px;
    height: 20px;
    padding-inline: 5px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-pill);
    background: var(--leaf);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border: 2px solid var(--petal);
}

/* ---------- Buttons ---------- */
.bloom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border: 0;
    border-radius: var(--r-pill);
    font-family: var(--font-b);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .45s var(--ease);
}
.bloom-btn i { font-size: 1.15rem; }

.bloom-btn-rose { background: var(--grad-rose); color: #fff !important; box-shadow: var(--shadow-rose); }
.bloom-btn-rose:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgb(from var(--tk-primary, #B23A52) r g b / .6); }

.bloom-btn-ghost {
    background: var(--cream);
    color: var(--rose-deep) !important;
    border: 1.5px solid var(--rose-soft);
    box-shadow: var(--shadow-1);
}
.bloom-btn-ghost:hover { transform: translateY(-2px); border-color: var(--rose); }

.bloom-btn.w-100 { width: 100%; }

/* ---------- Hero ---------- */
.bloom-hero { padding-block: 26px 8px; }

.bloom-hero-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }

.bloom-hero-title {
    font-family: var(--font-d);
    font-weight: 600;
    font-size: clamp(2.1rem, 8vw, 3.4rem);
    line-height: 1.12;
    margin: 12px 0 10px;
    color: var(--ink);
}
.bloom-hero-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--rose);
}

.bloom-hero-sub {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 44ch;
    margin: 0 0 16px;
}

.bloom-chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-end: 20px; }

.bloom-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: var(--r-pill);
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: .82rem;
    font-weight: 700;
}
.bloom-chip i { color: var(--rose); font-size: 1rem; }

.bloom-chip.sameday { background: var(--leaf-soft); border-color: rgb(from var(--tk-secondary, #5E7D5A) r g b / .3); color: var(--leaf-deep); }
.bloom-chip.sameday i { color: var(--leaf); }

.bloom-chip .bloom-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.bloom-chip.is-open .bloom-dot { background: var(--leaf); box-shadow: 0 0 0 4px rgb(from var(--tk-secondary, #5E7D5A) r g b / .2); }
.bloom-chip.is-closed .bloom-dot { background: var(--rose); box-shadow: 0 0 0 4px rgb(from var(--tk-primary, #B23A52) r g b / .15); }
.bloom-chip.is-hidden { display: none; }

.bloom-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Cover media — squircle frame on a leafy blob */
.bloom-hero-media { position: relative; }
.bloom-hero-media::before {
    content: "";
    position: absolute;
    inset: -14px -8px 6px -8px;
    background: linear-gradient(150deg, var(--leaf-soft), var(--petal-2));
    border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
    z-index: 0;
}

.bloom-cover-rail {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: var(--r);
}
.bloom-cover-rail::-webkit-scrollbar { display: none; }

.bloom-cover-slide { flex: 0 0 100%; scroll-snap-align: center; }
.bloom-cover-slide img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: var(--r);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    background: var(--cream);
}

.bloom-cover-hint {
    position: absolute;
    z-index: 2;
    inset-block-end: 10px;
    inset-inline-end: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: rgb(from var(--tk-text, #46232D) r g b / .65);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
}

/* ---------- Freshness trust strip ---------- */
.bloom-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 4px;
}

.bloom-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    background: var(--cream);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-1);
    color: var(--ink);
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}
.bloom-trust-item i { color: var(--leaf); font-size: 1.05rem; }

/* Stem divider */
.bloom-stem-divider {
    height: 22px;
    margin-block: 14px 2px;
    background:
        radial-gradient(circle 4px at 50% 50%, var(--rose-soft) 98%, transparent) 50% 50% / 22px 22px no-repeat,
        linear-gradient(to right, transparent 0 32%, var(--line) 32% 68%, transparent 68%) 50% 50% / 100% 1px no-repeat;
}

/* ---------- Occasion tiles (ribbon labels) ---------- */
.bloom-occasion-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 4px 18px;
}
.bloom-occasion-rail::-webkit-scrollbar { display: none; }

.bloom-occasion-tile {
    position: relative;
    flex: 0 0 44%;
    max-width: 196px;
    aspect-ratio: 4 / 5;
    border-radius: var(--r);
    overflow: hidden;
    scroll-snap-align: start;
    text-decoration: none !important;
    background: var(--petal-2);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-1);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.bloom-occasion-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

.bloom-occasion-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.bloom-occasion-tile:hover img { transform: scale(1.05); }

.bloom-occasion-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(from var(--tk-text, #46232D) r g b / .55) 0%, transparent 46%);
    pointer-events: none;
}

.bloom-occasion-tile.is-active { outline: 3px solid var(--rose); outline-offset: 2px; }

/* The ribbon — notched ends, rotating tint */
.bloom-ribbon {
    position: absolute;
    z-index: 2;
    inset-block-end: 14px;
    inset-inline: 10px;
    margin-inline: auto;
    width: fit-content;
    max-width: calc(100% - 20px);
    padding: 6px 18px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%, 9px 50%);
    background: var(--rose);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: capitalize;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bloom-occasion-tile:nth-child(3n+2) .bloom-ribbon { background: var(--leaf); }
.bloom-occasion-tile:nth-child(3n) .bloom-ribbon { background: var(--plum); }

/* "All flowers" tile (no thumbnail) */
.bloom-occasion-tile.all-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(140px 120px at 80% 0%, rgb(from var(--tk-accent2, #E294A7) r g b / .4), transparent 70%),
        linear-gradient(160deg, var(--cream), var(--petal-2));
}
.bloom-occasion-tile.all-tile::after { background: none; }
.bloom-occasion-tile.all-tile i {
    font-size: 2.6rem;
    color: var(--rose);
}

/* Categories page grid variant */
.bloom-occasion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-block: 6px 12px;
}
.bloom-occasion-grid .bloom-occasion-tile { flex: initial; max-width: none; width: 100%; min-width: 0; }

/* ---------- Toolbar (florist counter) ---------- */
.bloom-toolbar {
    background: var(--cream);
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    box-shadow: var(--shadow-1);
    padding: 14px;
    display: grid;
    gap: 10px;
    margin-block: 18px;
}

.bloom-input,
.bloom select.bloom-input {
    width: 100%;
    min-width: 0; /* number inputs in a grid must shrink, never crowd */
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--petal);
    color: var(--ink);
    font-family: var(--font-b);
    font-size: .92rem;
    font-weight: 500;
    outline: none;
    transition: border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.bloom-input::placeholder { color: var(--muted); }
.bloom-input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgb(from var(--tk-primary, #B23A52) r g b / .12); background: #fff; }

.bloom-search-row { display: grid; gap: 10px; }
.bloom-filter-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }

.bloom-toolbar-btn {
    padding: 11px 18px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--grad-rose);
    color: #fff;
    font-family: var(--font-b);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-rose);
    transition: transform .45s var(--ease);
}
.bloom-toolbar-btn:hover { transform: translateY(-1px); }

/* ---------- Product rails & cards ---------- */
.bloom-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 4px 22px;
}
.bloom-rail::-webkit-scrollbar { display: none; }
.bloom-rail > * { flex: 0 0 72%; max-width: 270px; min-width: 0; scroll-snap-align: start; }

.bloom-grid {
    display: grid;
    /* minmax(0,1fr) — NOT 1fr (=minmax(auto,1fr)) — so a nowrap card name/sub
       can never blow a column wider than its share and overflow the viewport
       (founder: "mis-sized / overflowing tiles"). */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-block: 6px;
}

.bloom-card {
    display: flex;
    flex-direction: column;
    min-width: 0; /* grid/flex child must be allowed to shrink below content */
    background: var(--cream);
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    box-shadow: var(--shadow-1);
    padding: 12px 12px 16px;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.bloom-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

.bloom-card-link { text-decoration: none !important; color: inherit; display: flex; flex-direction: column; flex: 1; min-width: 0; }

/* Vase-shadow media: bouquet sits on a shelf */
.bloom-card-media {
    position: relative;
    margin-block-end: 14px;
}
.bloom-card-media .bloom-media-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--petal-2);
}
.bloom-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.bloom-card-media img.img-alt { opacity: 0; }
.bloom-card:hover .bloom-card-media img.img-alt { opacity: 1; transform: scale(1.04); }
.bloom-card:hover .bloom-card-media img.img-main { transform: scale(1.04); }

/* the vase shadow */
.bloom-card-media::after {
    content: "";
    position: absolute;
    inset-inline: 18%;
    inset-block-end: -9px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgb(from var(--tk-text, #46232D) r g b / .26), transparent 68%);
    filter: blur(2px);
    transition: inset-inline .45s var(--ease), opacity .45s var(--ease);
}
.bloom-card:hover .bloom-card-media::after { inset-inline: 14%; opacity: .85; }

/* product badge ribbon */
.bloom-card-badge {
    position: absolute;
    z-index: 2;
    inset-block-start: 10px;
    inset-inline-start: -4px;
    padding: 4px 12px 4px 10px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
    background: var(--rose);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.bloom-card-name {
    font-family: var(--font-d);
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.3;
    margin: 0 2px 2px;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bloom-card-sub {
    margin: 0 2px 10px;
    color: var(--muted);
    font-size: .82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bloom-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-block-start: auto;
    padding-inline: 2px;
}

.bloom-price { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; min-width: 0; }
/* Prices read left-to-right even under RTL (currency symbol + grouped digits
   must never reorder); isolate keeps them from disturbing neighbouring bidi. */
.bloom-price-now,
.bloom-price-was {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: start;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.bloom-price-now { color: var(--rose-deep); font-weight: 800; font-size: 1rem; }
.bloom-price-was { color: var(--muted); font-size: .8rem; }

.bloom-add-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r-pill);
    background: var(--grad-rose);
    color: #fff !important;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-rose);
    transition: transform .45s var(--ease);
}
.bloom-add-btn:hover { transform: translateY(-2px) rotate(90deg); }

.bloom-soldout {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: var(--r-pill);
    background: var(--petal-2);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ---------- Pagination ---------- */
.bloom-pagination { margin-block: 22px 8px; }
.bloom-pagination .justify-content-end { justify-content: center !important; }
.bloom .pagination { gap: 6px; margin: 0; }
.bloom .pagination .page-link {
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--cream);
    color: var(--rose-deep);
    font-weight: 700;
    min-width: 38px;
    text-align: center;
    box-shadow: none;
}
.bloom .pagination .page-item.active .page-link { background: var(--grad-rose); border-color: transparent; color: #fff; }
.bloom .pagination .page-item.disabled .page-link { opacity: .45; }

/* ---------- Empty states (CSS flower / bouquet) ---------- */
.bloom-empty { text-align: center; padding: 36px 18px 30px; }

.bloom-empty-flower {
    position: relative;
    width: 86px;
    height: 96px;
    margin: 0 auto 18px;
}
.bloom-empty-flower::before {
    /* petals + heart of a daisy via box-shadow ring */
    content: "";
    position: absolute;
    inset-block-start: 18px;
    inset-inline-start: 50%;
    width: 18px;
    height: 18px;
    margin-inline-start: -9px;
    border-radius: 50%;
    background: var(--rose);
    box-shadow:
        0 -16px 0 -1px var(--blush),
        14px -8px 0 -1px var(--blush),
        14px 8px 0 -1px var(--blush),
        0 16px 0 -1px var(--blush),
        -14px 8px 0 -1px var(--blush),
        -14px -8px 0 -1px var(--blush);
}
.bloom-empty-flower::after {
    /* stem + leaf */
    content: "";
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 50%;
    width: 3px;
    height: 44px;
    margin-inline-start: -1.5px;
    border-radius: 3px;
    background: var(--leaf);
    box-shadow: 7px 26px 0 2px var(--leaf-soft);
}

.bloom-empty-title { font-family: var(--font-d); font-weight: 600; font-size: 1.25rem; margin: 0 0 4px; color: var(--ink); }
.bloom-empty-sub { color: var(--muted); font-size: .92rem; margin: 0; }

/* Empty cart bouquet cone */
.bloom-empty-bouquet {
    position: relative;
    width: 90px;
    height: 100px;
    margin: 18px auto 16px;
}
.bloom-empty-bouquet::before {
    /* kraft wrap cone */
    content: "";
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 50%;
    width: 64px;
    height: 60px;
    margin-inline-start: -32px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background: linear-gradient(160deg, var(--tk-accent4, #EAD9C5), color-mix(in srgb, var(--tk-accent4, #EAD9C5), #000 14%));
    border-radius: 4px;
}
.bloom-empty-bouquet::after {
    /* blooms peeking out */
    content: "";
    position: absolute;
    inset-block-start: 14px;
    inset-inline-start: 50%;
    width: 20px;
    height: 20px;
    margin-inline-start: -10px;
    border-radius: 50%;
    background: var(--rose-soft);
    box-shadow:
        -18px 6px 0 -2px var(--blush),
        18px 6px 0 -2px var(--rose),
        -7px -8px 0 -4px var(--leaf-soft),
        9px -7px 0 -3px var(--rose-soft);
}

/* ---------- Footer (stem green w/ petal scallop) ---------- */
.bloom-footer-scallop {
    position: relative;
    z-index: 1;
    height: 14px;
    margin-block-start: 30px;
    background-image: radial-gradient(circle 11px at 12px 0, transparent 11px, var(--stem) 11.6px);
    background-size: 24px 14px;
    background-repeat: repeat-x;
}

.bloom-footer {
    position: relative;
    z-index: 1;
    background: var(--stem);
    color: #EDE7DC;
    padding: 26px 0 30px;
    font-size: .9rem;
}
.bloom-footer a { color: #fff; font-weight: 700; text-decoration: none; }
.bloom-footer a:hover { color: var(--rose-soft); }

.bloom-footer-grid { display: grid; gap: 18px; text-align: center; }
.bloom-footer-brand .f-display { font-family: var(--font-d); }
.bloom-footer i.ti-heart { color: var(--rose-soft); }

.bloom-socials { display: flex; align-items: center; justify-content: center; gap: 10px; }
.bloom-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff !important;
    font-size: 1.05rem;
    transition: background-color .45s var(--ease), transform .45s var(--ease);
}
.bloom-social-btn:hover { background: var(--rose); transform: translateY(-2px); }

.bloom-policy-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin: 20px 0 0;
    padding: 0;
}
.bloom-policy-links a { font-weight: 500; font-size: .82rem; color: rgba(255, 255, 255, .75); }
.bloom-policy-links a:hover { color: #fff; }

/* ---------- Mobile dock ---------- */
.bloom-dock {
    position: fixed;
    inset-block-end: 0;
    inset-inline: 0;
    z-index: 1035;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: var(--dock-h);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 253, 251, .94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-block-start: 1px solid var(--line-soft);
    box-shadow: 0 -8px 24px -16px rgb(from var(--tk-primary, #B23A52) r g b / .35);
}

.bloom-dock-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px 8px;
    color: var(--muted) !important;
    font-size: .66rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}
.bloom-dock-link i { font-size: 1.3rem; }
.bloom-dock-link.is-active { color: var(--rose-deep) !important; }

.bloom-dock-badge {
    position: absolute;
    inset-block-start: -2px;
    inset-inline-end: 0;
    min-width: 17px;
    height: 17px;
    padding-inline: 4px;
    display: none;
    border-radius: var(--r-pill);
    background: var(--leaf);
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.bloom-dock-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    border-radius: var(--r-pill);
    background: var(--grad-rose);
    color: #fff !important;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: var(--shadow-rose);
    cursor: pointer;
    white-space: nowrap;
}
.bloom-dock-cta i { font-size: 1.1rem; }

/* ---------- Cart drawer ---------- */
body.bloom .offcanvas {
    background: var(--petal);
    border-inline-start: 1px solid var(--line-soft);
    max-width: 420px;
}
body.bloom .offcanvas-header { border-block-end: 1px solid var(--line-soft); padding: 18px 20px; }
body.bloom .offcanvas-title { font-family: var(--font-d); font-weight: 600; color: var(--ink); font-size: 1.3rem; }
body.bloom .offcanvas-footer { padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-block-start: 1px solid var(--line-soft); background: var(--cream); }

.bloom-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--cream);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-1);
    padding: 12px;
    margin-block-end: 10px;
}

.bloom-cart-thumb {
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: var(--r-sm);
    background: var(--petal-2);
}

.bloom-cart-info { flex: 1; min-width: 0; }
.bloom-cart-name { font-family: var(--font-d); font-weight: 600; font-size: .98rem; margin: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bloom-cart-sub { display: block; color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bloom-cart-price { color: var(--rose-deep); font-weight: 800; font-size: .95rem; margin: 4px 0 8px; direction: ltr; unicode-bidi: isolate; text-align: start; }

.bloom-qty { display: flex; align-items: center; gap: 6px; }
.bloom-qty-btn,
.bloom-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--line);
    background: var(--petal);
    color: var(--ink);
    cursor: pointer;
    padding: 0;
    transition: background-color .45s var(--ease), color .45s var(--ease);
}
.bloom-qty-btn svg, .bloom-remove-btn svg { width: 15px; height: 15px; }
.bloom-qty-btn:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.bloom-qty-num { min-width: 24px; text-align: center; font-weight: 800; font-size: .95rem; }
.bloom-remove-btn { margin-inline-start: 8px; border-color: transparent; background: var(--petal-2); color: var(--rose-deep); }
.bloom-remove-btn:hover { background: var(--rose-deep); color: #fff; }

.bloom-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-d);
    font-size: 1.1rem;
    color: var(--ink);
    margin-block-end: 12px;
}
.bloom-cart-total b { color: var(--rose-deep); font-size: 1.25rem; direction: ltr; unicode-bidi: isolate; }

/* Gift-note moment — visible only when cart has items
   (jQuery hides #empty-cart with an inline display:none) */
.bloom-gift-note {
    display: none;
    align-items: flex-start;
    gap: 10px;
    border: 1.5px dashed var(--rose);
    background: color-mix(in srgb, var(--tk-accent2, #E294A7) 9%, #fff);
    border-radius: var(--r-md);
    padding: 12px 14px;
    margin-block-start: 6px;
}
#empty-cart[style*="display: none"] ~ .bloom-gift-note { display: flex; }
.bloom-gift-note i { color: var(--rose); font-size: 1.35rem; flex-shrink: 0; margin-block-start: 2px; }
.bloom-gift-note strong { display: block; font-size: .9rem; color: var(--ink); }
.bloom-gift-note span { font-size: .8rem; color: var(--muted); line-height: 1.45; }

/* Place-order button — id-styled (machinery rewrites its class list) */
body.bloom #place-order {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--grad-rose) !important;
    color: #fff !important;
    font-family: var(--font-b);
    font-size: 1rem !important;
    font-weight: 700;
    box-shadow: var(--shadow-rose);
    cursor: pointer;
}
body.bloom #place-order.d-none { display: none !important; }

#empty-cart { text-align: center; }
#empty-cart .bloom-empty-title { margin-block-end: 2px; }
#empty-cart .bloom-empty-sub { margin-block-end: 18px; }

/* ---------- Modals (order / newsletter / info / PWA) ---------- */
body.bloom .modal-content {
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    background: var(--cream);
    box-shadow: var(--shadow-2);
}
body.bloom .modal-header { border-block-end: 1px solid var(--line-soft); }
body.bloom .modal-title { font-family: var(--font-d); font-weight: 600; color: var(--ink); }
body.bloom .modal-footer { border-block-start: 1px solid var(--line-soft); }

body.bloom .modal .form-control,
body.bloom .modal textarea {
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    background: var(--petal);
    color: var(--ink);
    padding: 10px 14px;
}
body.bloom .modal .form-control:focus,
body.bloom .modal textarea:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgb(from var(--tk-primary, #B23A52) r g b / .12);
    background: #fff;
}
body.bloom .modal .form-label { font-weight: 700; color: var(--ink); }
body.bloom .modal .form-check-input:checked { background-color: var(--rose); border-color: var(--rose); }

/* Highlighted gift-note field in the order modal */
body.bloom .bloom-note-field { border: 1.5px dashed var(--rose); background: color-mix(in srgb, var(--tk-accent2, #E294A7) 9%, #fff); border-radius: var(--r-md); padding: 12px; }
body.bloom .bloom-note-field textarea { background: #fff; }
body.bloom .bloom-note-field .bloom-note-hint { display: flex; align-items: center; gap: 6px; color: var(--rose-deep); font-size: .78rem; font-weight: 700; margin-block-start: 6px; unicode-bidi: plaintext; }
/* Customer-notes helper (mixed AR + "WhatsApp") — keep punctuation attached */
body.bloom .modal-body small { unicode-bidi: plaintext; }

body.bloom .modal .btn-warning {
    background: var(--grad-rose);
    border: 0;
    border-radius: var(--r-pill);
    color: #fff;
    font-weight: 700;
    padding: 10px 22px;
    box-shadow: var(--shadow-rose);
}
body.bloom .modal .btn-dark {
    background: transparent;
    border: 1.5px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--ink);
    font-weight: 700;
    padding: 10px 22px;
}

.bloom-news-row { display: grid; gap: 10px; }

/* ---------- Alerts / preloader fallback ---------- */
.alert-float {
    position: fixed;
    border-radius: var(--r-pill) !important;
    color: #fff !important;
    bottom: -100px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    transition: bottom .8s ease-in-out, opacity .8s ease-in-out;
    z-index: 2000;
    opacity: 0;
    display: none;
}
.alert-float.show { bottom: calc(var(--dock-h) + 16px); opacity: 1; }
body.bloom .alert-success.alert-float { background: var(--leaf); border: 0; }
body.bloom .alert-danger.alert-float { background: var(--rose-deep); border: 0; }

body.bloom .preloader-wrapper {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: var(--petal);
    display: flex;
    align-items: center;
    justify-content: center;
}
body.bloom .preloader-wrapper .spinner-border { color: var(--rose); }

.bloom-flash { border-radius: var(--r-md) !important; margin-block: 14px; }

/* ---------- Single product ---------- */
.bloom-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-block: 18px 6px;
    color: var(--rose-deep) !important;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none !important;
}
.bloom-back i { transition: transform .45s var(--ease); }
.bloom-back:hover i { transform: translateX(-3px); }
[dir="rtl"] .bloom-back i { transform: scaleX(-1); }
[dir="rtl"] .bloom-back:hover i { transform: scaleX(-1) translateX(-3px); }

.bloom-product { display: grid; grid-template-columns: 1fr; gap: 26px; padding-block: 10px 18px; }

.bloom-gallery-main {
    position: relative;
    display: block;
    border-radius: var(--r);
    overflow: visible;
    margin-block-end: 18px;
}
.bloom-gallery-main img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: var(--r);
    border: 1px solid var(--line-soft);
    background: var(--petal-2);
    box-shadow: var(--shadow-2);
}
.bloom-gallery-main::after {
    content: "";
    position: absolute;
    inset-inline: 16%;
    inset-block-end: -11px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgb(from var(--tk-text, #46232D) r g b / .28), transparent 68%);
    filter: blur(2px);
}

.bloom-thumb-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-block: 4px 8px;
}
.bloom-thumb-rail::-webkit-scrollbar { display: none; }
.bloom-thumb {
    flex: 0 0 76px;
    scroll-snap-align: start;
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 1.5px solid var(--line-soft);
    transition: border-color .45s var(--ease), transform .45s var(--ease);
}
.bloom-thumb:hover { border-color: var(--rose); transform: translateY(-2px); }
.bloom-thumb img { width: 76px; height: 76px; object-fit: cover; display: block; cursor: pointer; }

.bloom-product-name {
    font-family: var(--font-d);
    font-weight: 600;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.18;
    margin: 8px 0 6px;
    color: var(--ink);
}

.bloom-product-sub { color: var(--muted); font-size: 1rem; margin: 0 0 14px; }

.bloom-pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 4px 14px; }
.bloom-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: var(--r-pill);
    font-size: .78rem;
    font-weight: 700;
    background: var(--petal-2);
    color: var(--rose-deep);
}
.bloom-pill.stock-in { background: var(--leaf-soft); color: var(--leaf-deep); }
.bloom-pill.stock-out { background: var(--petal-2); color: var(--muted); }

.bloom-product-price { display: flex; align-items: baseline; gap: 12px; margin-block: 6px 16px; flex-wrap: wrap; }
.bloom-product-price .now,
.bloom-product-price .was { direction: ltr; unicode-bidi: isolate; }
.bloom-product-price .now { font-family: var(--font-d); font-weight: 700; font-size: 1.9rem; color: var(--rose-deep); }
.bloom-product-price .was { color: var(--muted); font-size: 1rem; }

.bloom-gift-hint {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-block: 14px 4px;
    padding: 11px 14px;
    border-radius: var(--r-md);
    border: 1.5px dashed var(--rose);
    background: color-mix(in srgb, var(--tk-accent2, #E294A7) 9%, #fff);
    color: var(--rose-deep);
    font-size: .85rem;
    font-weight: 700;
    width: fit-content;
}
.bloom-gift-hint i { font-size: 1.2rem; }

.bloom-product-desc { color: var(--ink); font-size: .97rem; margin-block: 16px 6px; }
.bloom-product-desc img { border-radius: var(--r-md); }

/* share include polish */
body.bloom .product-share-card .share-title { font-family: var(--font-d); color: var(--ink); font-weight: 600; }
body.bloom .share-icon { border-color: var(--line-soft); background: var(--cream); }

/* ---------- Policy ---------- */
.bloom-policy { padding-block: 26px 10px; min-height: 46vh; }
.bloom-policy-title {
    font-family: var(--font-d);
    font-weight: 600;
    font-size: clamp(1.7rem, 6vw, 2.3rem);
    color: var(--ink);
    margin: 0 0 6px;
}
.bloom-policy-underline {
    width: 74px;
    height: 5px;
    border-radius: var(--r-pill);
    background: linear-gradient(to right, var(--rose) 0 60%, var(--leaf) 60%);
    margin-block-end: 22px;
}
.bloom-prose { color: var(--ink); font-size: .97rem; }
.bloom-prose h1, .bloom-prose h2, .bloom-prose h3, .bloom-prose h4 { font-family: var(--font-d); color: var(--ink); }
.bloom-prose a { color: var(--rose); }
.bloom-prose img { border-radius: var(--r-md); }

/* ---------- Wallet buttons spacing ---------- */
.scaanme-wallet-buttons { margin-block: 26px 10px !important; position: relative; z-index: 1; }

/* ---------- Language switcher harmony ---------- */
body.bloom .bloom-header-actions .btn,
body.bloom .bloom-header-actions .dropdown-toggle {
    border-radius: var(--r-pill);
    border-color: var(--line);
    background: var(--cream);
    color: var(--ink);
}

/* ============================================================
   RTL hardening (logical props already do most of the work; this
   block fixes mixed EN/AR bidi punctuation drift + mirrored notches)
   ============================================================ */
/* Headings/labels that may hold mixed EN brand + AR copy: let each line
   pick its own base direction so a trailing "." / ":" stays attached to
   its sentence instead of jumping to the opposite edge. */
.bloom-hero-title,
.bloom-sec-title,
.bloom-card-name,
.bloom-cart-name,
.bloom-product-name,
.bloom-policy-title,
body.bloom .modal-title,
body.bloom .offcanvas-title,
.bloom-footer-brand {
    unicode-bidi: plaintext;
}

/* Card badge ribbon notch points "inward" from the start edge — mirror it
   for RTL so the cut stays on the trailing side, not biting into the card. */
[dir="rtl"] .bloom-card-badge {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
    padding: 4px 10px 4px 12px;
}

/* Filter "Min / Max" number inputs strip native spinners so the value never
   crowds the pill edge in either direction. */
.bloom-filter-row input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.bloom-filter-row input[type="number"]::-webkit-outer-spin-button,
.bloom-filter-row input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ============================================================
   ≥760px layer
   ============================================================ */
@media (min-width: 760px) {
    body.bloom { padding-block-end: 0; }
    .bloom-dock { display: none; }

    .bloom-hero { padding-block: 44px 14px; }
    .bloom-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 44px; }
    .bloom-hero-media::before { inset: -22px -14px 10px -14px; }

    .bloom-sec-title { font-size: 1.85rem; }

    .bloom-toolbar { grid-template-columns: 1.3fr 1.7fr .8fr; align-items: center; padding: 16px 18px; }
    .bloom-search-row { grid-template-columns: 1fr; }

    .bloom-occasion-rail { gap: 16px; }
    .bloom-occasion-tile { flex-basis: 196px; }
    .bloom-occasion-grid { gap: 16px; }

    .bloom-rail > * { flex-basis: 250px; }
    .bloom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .bloom-occasion-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .bloom-card { padding: 12px 12px 16px; }
    .bloom-card-name { font-size: 1.08rem; }

    .bloom-footer-grid { grid-template-columns: 1fr auto; text-align: start; align-items: center; }
    .bloom-policy-links { justify-content: flex-start; }

    .bloom-product { grid-template-columns: 1fr 1fr; gap: 44px; padding-block: 18px 30px; }
    .alert-float.show { bottom: 24px; }
}

@media (min-width: 1024px) {
    .bloom-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
   Reduced motion — kill ambient + transitions
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .bloom-ambient { display: none; }
    body.bloom *,
    body.bloom *::before,
    body.bloom *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ============================================================
   Cart toast — bulletproof compact pill.
   Overrides the legacy inline showAlert() sizing (width:75% /
   inset-inline:0) that made the Tabler solid alert blow up to a
   half-screen green panel. Forces a centered top toast, auto height.
   ============================================================ */
.alert-float {
    position: fixed !important;
    inset-block-start: 16px !important;
    inset-block-end: auto !important;
    bottom: auto !important;
    inset-inline: 16px !important;
    z-index: 4000;
    width: auto !important;
    max-width: 420px !important;
    margin-inline: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 13px 20px !important;
    border: 0 !important;
    border-radius: 14px !important;
    text-align: center !important;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.4;
    background: var(--tk-success, #1f7a4d) !important;
    color: #fff !important;
    box-shadow: 0 16px 38px -10px rgba(0, 0, 0, .42);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.alert-float.show {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
}
.alert-float .btn-close,
.alert-float .alert-icon { display: none !important; }
@media (prefers-reduced-motion: reduce) {
    .alert-float { transition: none; }
}


/* ============================================================
   GLOBAL CONTAINMENT BASELINE (founder remark: diagonal-scroll
   drift / horizontal "wiggle" on mobile + zoom-out).
   overflow-x:clip on html is sticky-safe (unlike hidden) and
   stops the horizontal pan; overscroll-behavior-x:none kills the
   rubber-band; max-width:100% + min-width:0 prevent any child
   from forcing the document wider than the viewport.
   ============================================================ */
html { overflow-x: clip; }
body { overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; }
/* horizontal scrollers keep their swipe to themselves */
.car-track, .reel, .film-reel, .tm-track, .letters, .marquee, .marquee-track,
[class*="-track"], [class*="-rail"], [class*="-carousel"], [class*="-scroll"] {
    overscroll-behavior-x: contain;
    max-width: 100vw;
}
