/* ==========================================================================
   Malina — Arabic RTL grocery storefront
   Deep crimson + white + black, small orange accents.
   Mobile-first app shell (the mobile site is the Android app), max 1200px.
   ========================================================================== */

:root {
    --c-red: #A30000;
    --c-deep: #7E0000;
    --c-bg: #F5F5F7;
    --c-card: #FFFFFF;
    --c-ink: #141414;
    --c-soft: #6B7280;
    --c-orange: #E67E22;
    --c-tile: #F3F4F6;
    --c-line: #ECECF0;
    --c-line-2: #E2E2E8;
    --r-lg: 20px;
    --r-md: 16px;
    --r-sm: 12px;
    --sh-1: 0 6px 18px rgba(20, 20, 20, .06);
    --sh-2: 0 12px 30px rgba(20, 20, 20, .10);
    --sh-red: 0 10px 24px rgba(163, 0, 0, .22);
    --f-head: 'Almarai', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-body: 'Cairo', 'Almarai', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ml-header-h: 58px;
    --ml-tabs-h: 0px;
    --ml-navh: 62px;
    --ml-stick: var(--ml-header-h);
}

/* ---- reset --------------------------------------------------------------- */

* { box-sizing: border-box; }

html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-block-end: calc(var(--ml-navh) + env(safe-area-inset-bottom));
}

body.ml-no-scroll { overflow: hidden; }

/* Direction follows <html dir>, set by js/i18n.js (rtl for Arabic, ltr for English).
   Pinning it on the shell keeps logo / icons / headings mirrored the right way
   even if a template stylesheet tries to force one direction. */
html[dir="rtl"] { direction: rtl; }
html[dir="ltr"] { direction: ltr; }

html[dir] body,
html[dir] .ml-wrap,
html[dir] .ml-header__in,
html[dir] .ml-tabs__in,
html[dir] .ml-navbar__in,
html[dir] .ml-band__in,
html[dir] .ml-sec__head,
html[dir] .ml-search,
html[dir] .ml-vendor__top,
html[dir] .ml-seg,
html[dir] .ml-promos,
html[dir] .ml-promo,
html[dir] .ml-drawer__panel,
html[dir] .ml-footer__grid,
html[dir] .ml-prow,
html[dir] .ml-grid,
html[dir] .ml-items,
html[dir] [app],
html[dir] main {
    direction: inherit;
}

/* English: Cairo carries the Latin text too, with a Latin-first fallback chain. */
html[dir="ltr"] {
    --f-head: 'Cairo', 'Almarai', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --f-body: 'Cairo', 'Almarai', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    line-height: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* Form controls: always the Arabic body font. Never let a template icon font or a
   Latin-only face reach an input (Arabic glyphs would fall back to tofu blocks). */
input,
textarea,
select {
    font-family: 'Cairo', 'Almarai', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    font-size: inherit;
    font-variant-ligatures: normal;
}

input::placeholder,
textarea::placeholder {
    font-family: 'Cairo', 'Almarai', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    color: #6B7280;
    opacity: 1;
}

h1, h2, h3, h4 {
    font-family: var(--f-head);
    font-weight: 800;
    line-height: 1.45;
    margin: 0;
    color: var(--c-ink);
}

p { margin: 0; }

[hidden] { display: none !important; }

::selection { background: rgba(163, 0, 0, .1); color: var(--c-deep); }

/* ---- helpers ------------------------------------------------------------- */

.ml-wrap {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 16px;
}

.ml-disp { display: contents; }

.ml-sec { padding-block: 22px; }

.ml-sec__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-block-end: 14px;
}

.ml-sec__head h2 {
    font-size: 19px;
    letter-spacing: -.2px;
}

.ml-sec__head a {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-red);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ml-note {
    color: var(--c-soft);
    font-size: 12.5px;
    line-height: 1.75;
    margin-block: 8px;
}

.ml-link {
    display: inline-block;
    color: var(--c-red);
    font-size: 14px;
    font-weight: 700;
}

.ml-link--center { display: block; text-align: center; margin-block-start: 12px; }

/* ---- buttons ------------------------------------------------------------- */

.ml-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--c-red);
    color: #fff;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 15px;
    border: 1px solid var(--c-red);
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.ml-btn:hover { background: var(--c-deep); border-color: var(--c-deep); }
.ml-btn:active { transform: translateY(1px); }
.ml-btn:disabled { opacity: .6; cursor: default; }

.ml-btn--ghost {
    background: #fff;
    color: var(--c-red);
    border-color: var(--c-line-2);
}

.ml-btn--ghost:hover { background: #fff; border-color: var(--c-red); color: var(--c-red); }

.ml-btn--block { display: flex; width: 100%; }
.ml-btn--lg { min-height: 52px; padding: 14px 32px; font-size: 16px; }

.ml-btn--white {
    background: #fff;
    color: var(--c-red);
    border-color: #fff;
}

.ml-btn--white:hover { background: #FFF1F1; border-color: #FFF1F1; color: var(--c-deep); }

.ml-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-ink);
    position: relative;
    transition: background .2s ease;
}

.ml-icon-btn:hover { background: rgba(20, 20, 20, .06); }

/* ---- app header ---------------------------------------------------------- */

.ml-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--c-red);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.ml-header__in {
    min-height: var(--ml-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ml-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: #fff;
}

.ml-brand__badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: var(--c-red);
    font-family: var(--f-head);
    font-weight: 800;
    font-size: 19px;
    line-height: 34px;
    text-align: center;
    flex: 0 0 auto;
}

.ml-brand__name {
    font-family: var(--f-head);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -.2px;
    color: #fff;
}

.ml-header__acts {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
}

.ml-hbtn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    transition: background .2s ease;
}

.ml-hbtn:hover { background: rgba(255, 255, 255, .14); }

/* compact AR | EN switch, always visible in the header */
.ml-lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 30px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    flex: 0 0 auto;
}

.ml-lang__btn {
    position: relative;
    min-width: 32px;
    height: 24px;
    padding-inline: 6px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .84);
    font-family: var(--f-body);
    font-size: 11.5px;
    font-weight: 800;
    line-height: 24px;
    letter-spacing: .3px;
    text-align: center;
    transition: background .18s ease, color .18s ease;
}

.ml-lang__btn::after {
    content: '';
    position: absolute;
    inset: -7px 0;
}

.ml-lang__btn.is-on {
    background: #fff;
    color: var(--c-red);
}

.ml-lang__div {
    width: 1px;
    height: 11px;
    background: rgba(255, 255, 255, .4);
    flex: 0 0 auto;
}

.ml-badge {
    position: absolute;
    inset-block-start: 5px;
    inset-inline-start: 4px;
    min-width: 19px;
    height: 19px;
    padding-inline: 5px;
    border-radius: 999px;
    background: #fff;
    color: var(--c-red);
    font-size: 11px;
    font-weight: 800;
    line-height: 19px;
    text-align: center;
    transform: scale(0);
    transition: transform .18s ease;
}

.ml-badge.is-on { transform: scale(1); }

/* desktop tab row (replaces the bottom nav at >= 900px) */

.ml-tabs { display: none; }

/* ---- bottom nav (mobile app shell) -------------------------------------- */

.ml-navbar {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 95;
    background: #fff;
    border-block-start: 1px solid var(--c-line);
    box-shadow: 0 -6px 20px rgba(20, 20, 20, .07);
    padding-block-end: env(safe-area-inset-bottom);
}

.ml-navbar__in {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 1200px;
    margin-inline: auto;
}

.ml-navbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: var(--ml-navh);
    padding-block: 7px 6px;
    color: var(--c-ink);
    font-family: var(--f-head);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: color .18s ease;
}

.ml-navbar__item svg { display: block; }

.ml-navbar__item.is-on { color: var(--c-red); }

.ml-navbar__item:active { opacity: .75; }

/* ---- page band (red title area under the header) ------------------------ */

.ml-band {
    background: var(--c-red);
    color: #fff;
    padding-block: 6px 18px;
}

.ml-band__in {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
}

.ml-band__title {
    font-family: var(--f-head);
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.ml-band__sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .82);
    margin: 0;
}

.ml-band__acts { margin-inline-start: auto; display: flex; gap: 4px; }

/* ---- home: greeting + search -------------------------------------------- */

.ml-top {
    background: var(--c-red);
    color: #fff;
    padding-block: 8px 56px;
}

.ml-greet {
    font-family: var(--f-head);
    font-size: 23px;
    font-weight: 800;
    color: #fff;
    margin-block: 0 14px;
    letter-spacing: -.3px;
}

.ml-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 999px;
    padding: 5px 14px 5px 6px;
    min-height: 50px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
    color: var(--c-soft);
}

.ml-search__mag { flex: 0 0 auto; color: #9CA3AF; }

.ml-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--c-ink);
    font-family: 'Cairo', 'Almarai', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.5;
    padding-block: 8px;
    direction: rtl;
    text-align: right;
    -webkit-appearance: none;
    appearance: none;
}

.ml-search input:focus { outline: none; }

html[dir="ltr"] .ml-search input {
    direction: ltr;
    text-align: left;
}

.ml-search input::placeholder {
    font-family: 'Cairo', 'Almarai', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif !important;
    color: #6B7280;
    opacity: 1;
}

.ml-search input::-webkit-search-cancel-button,
.ml-search input::-webkit-search-decoration { display: none; }

.ml-search__div {
    width: 1px;
    height: 24px;
    background: var(--c-line-2);
    flex: 0 0 auto;
}

.ml-search__scan {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--c-ink);
}

/* ---- floating vendor / delivery card ------------------------------------ */

.ml-vendor { margin-block-start: -44px; position: relative; z-index: 2; }

.ml-vendor__card {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 14px 14px 12px;
    box-shadow: var(--sh-2);
}

.ml-vendor__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-block-end: 12px;
}

.ml-vendor__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding-inline: 2px;
    color: var(--c-ink);
    font-family: var(--f-head);
    font-weight: 800;
    font-size: 15px;
    min-width: 0;
}

.ml-vendor__btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-vendor__shopicon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--c-line-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-ink);
    flex: 0 0 auto;
}

.ml-vendor__info {
    margin-inline-start: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-ink);
    flex: 0 0 auto;
}

.ml-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: var(--c-tile);
    border-radius: 14px;
    padding: 4px;
}

.ml-seg__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 48px;
    border-radius: 11px;
    background: transparent;
    color: var(--c-soft);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.ml-seg__item small { font-size: 11px; font-weight: 600; color: var(--c-soft); }

.ml-seg__item.is-on {
    background: #fff;
    color: var(--c-ink);
    box-shadow: 0 2px 8px rgba(20, 20, 20, .10);
}

.ml-seg__item.is-on small { color: var(--c-soft); }

/* ---- promo carousel ------------------------------------------------------ */

.ml-promos {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-block: 4px 6px;
    margin-block-start: 18px;
}

.ml-promos::-webkit-scrollbar { display: none; }

.ml-promo {
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 9px;
    min-height: 0;
    padding: 22px 20px 24px;
    border-radius: var(--r-lg);
    background:
        radial-gradient(circle at 4% 116%, rgba(255, 255, 255, .07) 0 86px, transparent 87px),
        linear-gradient(135deg, #A30000 0%, #7E0000 100%);
    color: #fff;
    box-shadow: var(--sh-red);
}

/* keep every line box and the pill from shrinking when cards share a row height */
.ml-promo > * {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.ml-promo__kicker {
    font-family: var(--f-head);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-orange);
}

.ml-promo__title {
    font-family: var(--f-head);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    color: #fff;
    margin: 0;
    letter-spacing: -.3px;
    max-width: 16ch;
}

.ml-promo__sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .85);
    margin: 0;
}

.ml-promo__btn {
    align-self: flex-start;
    margin-block-start: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 20px;
    border-radius: 999px;
    background: #fff;
    color: var(--c-red);
    font-family: var(--f-head);
    font-weight: 800;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.ml-promo__btn:hover { background: #FFF1F1; }

/* ---- categories ---------------------------------------------------------- */

.ml-cats {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 104px;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-block-end: 4px;
}

.ml-cats::-webkit-scrollbar { display: none; }

.ml-cat {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.ml-cat__img {
    width: 104px;
    height: 104px;
    border-radius: var(--r-md);
    background: var(--c-tile);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-head);
    font-size: 26px;
    font-weight: 800;
    color: var(--c-red);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ml-cat:hover .ml-cat__img { transform: translateY(-2px); box-shadow: var(--sh-1); }

.ml-cat__img img { width: 100%; height: 100%; object-fit: cover; }

.ml-cat__name {
    font-family: var(--f-head);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-ink);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 104px;
}

.ml-cat--skeleton { pointer-events: none; }

/* categories page: grouped sections */

.ml-catgroup {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 16px 14px;
    box-shadow: var(--sh-1);
    margin-block-end: 14px;
}

.ml-catgroup__title {
    font-size: 17px;
    font-weight: 800;
    margin-block-end: 12px;
}

.ml-catgroup .ml-cats { padding-inline: 2px; }

/* ---- product cards ------------------------------------------------------- */

.ml-prow {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 152px;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-block-end: 4px;
}

.ml-prow::-webkit-scrollbar { display: none; }

.ml-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ml-pcard {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--sh-1);
    transition: transform .2s ease, box-shadow .2s ease;
    min-width: 0;
}

.ml-pcard:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }

.ml-pcard__link { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.ml-pcard__photo {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--c-tile);
    overflow: hidden;
}

.ml-pcard__photo img { width: 100%; height: 100%; object-fit: cover; }

.ml-pcard__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--c-ink);
    padding: 9px 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.ml-pcard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px 9px 10px;
    margin-block-start: auto;
}

.ml-pcard__prices {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.ml-price {
    font-family: var(--f-head);
    font-weight: 800;
    color: var(--c-ink);
    font-size: 14.5px;
    white-space: nowrap;
}

.ml-old {
    font-size: 11.5px;
    color: var(--c-soft);
    text-decoration: line-through;
    white-space: nowrap;
}

.ml-pcard__add {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex: 0 0 auto;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-red);
    color: #fff;
    box-shadow: 0 4px 12px rgba(163, 0, 0, .24);
    transition: background .18s ease, transform .18s ease;
}

.ml-pcard__add::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
}

.ml-pcard__add:hover { background: var(--c-deep); }
.ml-pcard__add:active { transform: scale(.94); }
.ml-pcard__add.is-added { background: #1F7A4C; box-shadow: 0 4px 12px rgba(31, 122, 76, .28); }

.ml-tag-sold {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-start: 8px;
    background: rgba(20, 20, 20, .82);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}

.ml-pcard.is-sold { opacity: .75; }
.ml-pcard.is-sold .ml-pcard__add { display: none; }

/* ---- skeletons ----------------------------------------------------------- */

.ml-skel {
    background: linear-gradient(100deg, #ECECF0 28%, #F8F8FA 48%, #ECECF0 68%);
    background-size: 220% 100%;
    animation: mlShine 1.5s linear infinite;
    border-radius: var(--r-md);
}

.ml-skel--card { aspect-ratio: 1 / 1; }
.ml-skel--line { height: 14px; border-radius: 8px; }
.ml-skel--tile { width: 104px; height: 104px; }

@keyframes mlShine {
    0% { background-position: 220% 0; }
    100% { background-position: -220% 0; }
}

/* ---- empty + error states ------------------------------------------------ */

.ml-empty {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--sh-1);
    color: var(--c-soft);
    font-size: 14px;
}

.ml-empty__icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--c-tile);
    color: var(--c-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-empty strong {
    display: block;
    font-family: var(--f-head);
    font-size: 16.5px;
    font-weight: 800;
    color: var(--c-ink);
    margin-block-end: 6px;
}

.ml-empty span { display: block; line-height: 1.8; }

.ml-empty .ml-btn { margin-block-start: 16px; }

.ml-empty--error .ml-empty__icon { background: rgba(163, 0, 0, .08); }
.ml-empty--error strong { color: var(--c-red); }

.ml-state {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 30px 20px;
    text-align: center;
    color: var(--c-soft);
    font-size: 14px;
    box-shadow: var(--sh-1);
}

.ml-state strong {
    display: block;
    font-family: var(--f-head);
    font-size: 16.5px;
    font-weight: 800;
    color: var(--c-ink);
    margin-block-end: 6px;
}

.ml-state .ml-btn { margin-block-start: 14px; }

/* ---- red banner ---------------------------------------------------------- */

.ml-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #A30000 0%, #7E0000 100%);
    border-radius: var(--r-lg);
    padding: 24px 20px;
    color: #fff;
    box-shadow: var(--sh-red);
}

.ml-banner::after {
    content: "";
    position: absolute;
    inset-block-end: -60px;
    inset-inline-start: -40px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
}

.ml-banner h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.3px;
    margin-block-end: 6px;
}

.ml-banner p {
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    margin-block-end: 16px;
}

.ml-banner .ml-btn { position: relative; z-index: 1; }

/* ---- sort / filter chips ------------------------------------------------- */

.ml-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-block: 2px 4px;
}

.ml-chips::-webkit-scrollbar { display: none; }

.ml-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--c-line-2);
    background: #fff;
    color: var(--c-soft);
    font-family: var(--f-head);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.ml-chip:hover { border-color: var(--c-red); color: var(--c-red); }

.ml-chip.is-on {
    background: var(--c-red);
    border-color: var(--c-red);
    color: #fff;
}

.ml-sortbar {
    position: sticky;
    top: var(--ml-stick);
    z-index: 60;
    background: var(--c-bg);
    padding-block: 10px;
    margin-block-end: 12px;
    border-block-end: 1px solid var(--c-line);
}

.ml-count {
    font-size: 12.5px;
    color: var(--c-soft);
    margin-block: 2px 12px;
}

/* ---- page shell ---------------------------------------------------------- */

.ml-page { padding-block: 16px 28px; }

.ml-page__title {
    font-size: 22px;
    margin-block-end: 4px;
}

.ml-page__sub {
    color: var(--c-soft);
    font-size: 13.5px;
    margin-block-end: 16px;
}

/* ---- shop search bar ----------------------------------------------------- */

.ml-shopbar { display: flex; gap: 8px; margin-block-end: 12px; }

.ml-input {
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid var(--c-line-2);
    background: #fff;
    color: var(--c-ink);
    font-size: 14.5px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ml-input::placeholder { color: #9CA3AF; }

.ml-input:focus {
    outline: none;
    border-color: var(--c-red);
    box-shadow: 0 0 0 3px rgba(163, 0, 0, .08);
}

.ml-shopbar .ml-btn { flex: 0 0 auto; }

/* ---- product page -------------------------------------------------------- */

.ml-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--c-soft);
    margin-block-end: 12px;
}

.ml-crumbs a:hover { color: var(--c-red); }
.ml-crumbs span[aria-current] { color: var(--c-ink); }

.ml-product__grid { display: grid; gap: 18px; align-items: start; }

.ml-gal__main {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-tile);
    aspect-ratio: 1 / 1;
    touch-action: pan-y;
}

.ml-gal__main img { width: 100%; height: 100%; object-fit: cover; }

.ml-gal__arrow {
    position: absolute;
    inset-block-start: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .94);
    color: var(--c-ink);
    box-shadow: var(--sh-1);
    transition: color .2s ease;
}

.ml-gal__arrow:hover { color: var(--c-red); }
.ml-gal__arrow--prev { inset-inline-start: 10px; }
.ml-gal__arrow--next { inset-inline-end: 10px; }

.ml-gal__thumbs {
    display: flex;
    gap: 10px;
    margin-block-start: 10px;
    overflow-x: auto;
    padding-block-end: 4px;
    scrollbar-width: none;
}

.ml-gal__thumbs::-webkit-scrollbar { display: none; }

.ml-thumb {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--c-tile);
    padding: 0;
    transition: border-color .2s ease;
}

.ml-thumb.is-on { border-color: var(--c-red); }
.ml-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ml-pinfo {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 16px;
    box-shadow: var(--sh-1);
}

.ml-pinfo h1 {
    font-size: 19px;
    line-height: 1.5;
    margin-block-end: 8px;
}

.ml-pinfo__prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-block: 4px 12px;
}

.ml-pinfo__prices .ml-price { font-size: 22px; color: var(--c-red); }
.ml-pinfo__prices .ml-old { font-size: 14px; }

.ml-desc {
    color: var(--c-soft);
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-line;
    margin-block: 10px 16px;
}

.ml-desc img { border-radius: var(--r-sm); margin-block: 10px; }
.ml-desc ul, .ml-desc ol { padding-inline-start: 20px; margin-block: 10px; }

.ml-block { margin-block-start: 18px; }

.ml-block__label {
    font-family: var(--f-head);
    font-size: 13.5px;
    font-weight: 800;
    margin-block-end: 10px;
    color: var(--c-ink);
}

.ml-vars { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.ml-var { display: inline-flex; align-items: center; gap: 8px; }

.ml-var__lbl { font-size: 12.5px; color: var(--c-soft); }

.ml-var__btn {
    min-height: 38px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--c-line-2);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-soft);
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.ml-var__btn:hover { border-color: var(--c-red); color: var(--c-red); }

.ml-var__btn.is-on {
    background: var(--c-red);
    border-color: var(--c-red);
    color: #fff;
}

.ml-specs {
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    overflow: hidden;
    background: #fff;
}

.ml-spec {
    display: grid;
    grid-template-columns: minmax(92px, 40%) 1fr;
    gap: 12px;
    padding: 10px 14px;
    font-size: 13.5px;
    border-block-end: 1px solid var(--c-line);
}

.ml-spec:last-child { border-block-end: 0; }
.ml-spec__k { color: var(--c-soft); }
.ml-spec__v { color: var(--c-ink); font-weight: 600; }

.ml-buyrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-block-start: 18px;
}

.ml-buyrow .ml-btn { flex: 1 1 150px; }

.ml-paynote {
    margin-block-start: 14px;
    font-size: 12px;
    color: var(--c-soft);
    background: var(--c-tile);
    border-radius: var(--r-sm);
    padding: 11px 13px;
    line-height: 1.8;
}

.ml-paynote strong { display: block; margin-block-end: 2px; color: var(--c-ink); }

.ml-wish {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--c-line-2);
    background: #fff;
    color: var(--c-ink);
    font-family: var(--f-head);
    font-size: 13px;
    font-weight: 700;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.ml-wish svg { color: var(--c-soft); transition: color .18s ease, fill .18s ease; }
.ml-wish:hover { border-color: var(--c-red); color: var(--c-red); }
.ml-wish.is-on { border-color: var(--c-red); color: var(--c-red); background: rgba(163, 0, 0, .05); }
.ml-wish.is-on svg { color: var(--c-red); fill: var(--c-red); }

/* sticky buy bar above the bottom nav */

.ml-stickybar {
    position: fixed;
    inset-inline: 0;
    inset-block-end: calc(var(--ml-navh) + env(safe-area-inset-bottom));
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: #fff;
    border-block-start: 1px solid var(--c-line);
    box-shadow: 0 -8px 22px rgba(20, 20, 20, .08);
}

.ml-stickybar__price {
    font-family: var(--f-head);
    font-weight: 800;
    color: var(--c-red);
    font-size: 15px;
    line-height: 1.25;
    white-space: nowrap;
}

.ml-stickybar__old {
    display: block;
    font-size: 11px;
    color: var(--c-soft);
    text-decoration: line-through;
    font-weight: 400;
}

.ml-stickybar .ml-btn { flex: 1; }

.ml-sticky-spacer { height: 76px; }

/* ---- quantity stepper ---------------------------------------------------- */

.ml-qty {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--c-line-2);
    border-radius: 999px;
    background: #fff;
    padding: 3px;
}

.ml-qty__b {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    color: var(--c-red);
    transition: background .18s ease;
}

.ml-qty__b::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
}

.ml-qty__b:hover { background: rgba(163, 0, 0, .07); }

.ml-qty__n {
    min-width: 26px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.ml-qty--sm .ml-qty__b { width: 30px; height: 30px; font-size: 15px; }

.ml-qty--lg { padding: 4px; }
.ml-qty--lg .ml-qty__b { width: 38px; height: 38px; font-size: 19px; }
.ml-qty--lg input {
    width: 46px;
    text-align: center;
    border: 0;
    background: transparent;
    font-weight: 700;
    -moz-appearance: textfield;
    appearance: textfield;
}
.ml-qty--lg input::-webkit-outer-spin-button,
.ml-qty--lg input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- cart drawer --------------------------------------------------------- */

.ml-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
}

.ml-drawer.is-open { pointer-events: auto; visibility: visible; }

.ml-drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, .45);
    opacity: 0;
    transition: opacity .25s ease;
}

.ml-drawer.is-open .ml-drawer__scrim { opacity: 1; }

.ml-drawer__panel {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(430px, 100%);
    background: var(--c-bg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .26s cubic-bezier(.32, .72, 0, 1);
    box-shadow: 0 0 40px rgba(20, 20, 20, .18);
}

html[dir="rtl"] .ml-drawer__panel { transform: translateX(-100%); }

.ml-drawer.is-open .ml-drawer__panel { transform: translateX(0); }

.ml-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--c-red);
    color: #fff;
}

.ml-drawer__title { font-size: 17px; color: #fff; }

.ml-drawer__head .ml-icon-btn { color: #fff; }
.ml-drawer__head .ml-icon-btn:hover { background: rgba(255, 255, 255, .16); }

.ml-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 4px 12px 8px;
    -webkit-overflow-scrolling: touch;
}

.ml-drawer__foot {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    border-block-start: 1px solid var(--c-line);
    background: #fff;
}

.ml-drawer__foot .ml-btn { margin-block-start: 8px; }

/* line items (drawer + cart page) */

.ml-line {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
    align-items: start;
    padding-block: 12px;
    border-block-end: 1px solid var(--c-line);
}

.ml-line:last-child { border-block-end: 0; }

.ml-line__img {
    width: 70px;
    height: 70px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--c-tile);
}

.ml-line__img img { width: 100%; height: 100%; object-fit: cover; }

.ml-line__main { min-width: 0; }

.ml-line__title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.55;
    display: block;
    color: var(--c-ink);
}

.ml-line__var { font-size: 12px; color: var(--c-soft); margin-block-start: 2px; }

.ml-line__price {
    font-family: var(--f-head);
    font-size: 13.5px;
    font-weight: 800;
    color: var(--c-red);
    margin-block-start: 3px;
}

.ml-line__rm {
    color: var(--c-soft);
    padding: 6px;
    border-radius: 8px;
    transition: color .18s ease, background .18s ease;
}

.ml-line__rm:hover { color: var(--c-red); background: rgba(163, 0, 0, .07); }

.ml-line .ml-qty { margin-block-start: 7px; }

.ml-cart-empty {
    text-align: center;
    padding: 44px 16px;
    color: var(--c-soft);
}

.ml-cart-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--c-tile);
    color: var(--c-red);
    margin-block-end: 12px;
}

.ml-cart-empty p { margin-block-end: 16px; color: var(--c-soft); }

/* ---- cart page ----------------------------------------------------------- */

.ml-cartpage { display: grid; gap: 14px; align-items: start; }

.ml-cartpage__list {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 2px 14px;
    box-shadow: var(--sh-1);
}

.ml-cartpage__list .ml-line:last-child { border-block-end: 0; }

.ml-cardbox {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 16px;
    box-shadow: var(--sh-1);
}

.ml-cardbox__title { font-size: 16px; margin-block-end: 10px; }

.ml-sum__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    color: var(--c-soft);
    padding-block: 6px;
}

.ml-sum__row strong { color: var(--c-ink); }

.ml-sum__row--total {
    border-block-start: 1px solid var(--c-line);
    margin-block-start: 8px;
    padding-block-start: 11px;
    font-family: var(--f-head);
    font-size: 15px;
    font-weight: 800;
    color: var(--c-ink);
}

.ml-sum__row--total strong { color: var(--c-red); font-size: 17px; }

.ml-sumline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    padding-block: 6px;
    border-block-end: 1px dashed var(--c-line);
    color: var(--c-ink);
}

.ml-sumline em { font-style: normal; color: var(--c-soft); }
.ml-sumline b { font-weight: 700; color: var(--c-soft); }
.ml-sumline__p { white-space: nowrap; font-weight: 700; }

/* ---- checkout ------------------------------------------------------------ */

.ml-checkout { display: grid; gap: 14px; align-items: start; }

.ml-form { display: grid; gap: 12px; }

.ml-field { display: grid; gap: 5px; }

.ml-field > label,
.ml-field__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-ink);
}

.ml-field > label i {
    font-style: normal;
    color: var(--c-red);
}

.ml-field .ml-hint { font-size: 11.5px; color: var(--c-soft); }

.ml-field input,
.ml-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-line-2);
    background: #fff;
    color: var(--c-ink);
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ml-field textarea { resize: vertical; min-height: 88px; }

.ml-field input:focus,
.ml-field textarea:focus {
    outline: none;
    border-color: var(--c-red);
    box-shadow: 0 0 0 3px rgba(163, 0, 0, .08);
}

.ml-paylist { display: grid; gap: 9px; margin-block-start: 2px; }

.ml-pay {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 12px 15px;
    border: 1.5px solid var(--c-line-2);
    border-radius: var(--r-sm);
    background: #fff;
    position: relative;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.ml-pay:hover { border-color: rgba(163, 0, 0, .45); }

.ml-pay:focus-within {
    border-color: var(--c-red);
    box-shadow: 0 0 0 3px rgba(163, 0, 0, .10);
}

.ml-pay input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.ml-pay__body { display: grid; gap: 1px; min-width: 0; }

.ml-pay__body strong {
    font-family: var(--f-head);
    font-size: 14.5px;
    font-weight: 800;
    color: var(--c-ink);
}

.ml-pay__body small { font-size: 11.5px; color: var(--c-soft); }

.ml-pay__dot {
    margin-inline-start: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--c-line-2);
    flex: 0 0 auto;
    position: relative;
    transition: border-color .2s ease;
}

.ml-pay__dot::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--c-red);
    transform: scale(0);
    transition: transform .18s ease;
}

.ml-pay.is-on,
.ml-pay:has(input:checked) {
    border-color: var(--c-red);
    background: rgba(163, 0, 0, .04);
    box-shadow: 0 4px 14px rgba(163, 0, 0, .08);
}

.ml-pay.is-on .ml-pay__dot,
.ml-pay:has(input:checked) .ml-pay__dot { border-color: var(--c-red); }

.ml-pay.is-on .ml-pay__dot::after,
.ml-pay:has(input:checked) .ml-pay__dot::after { transform: scale(1); }

.ml-form__msg { font-size: 13px; line-height: 1.8; }
.ml-form__msg:empty { display: none; }
.ml-form__msg.is-err { color: #A30000; }
.ml-form__msg.is-ok { color: #1F6B45; }

/* order done */

.ml-done {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--sh-1);
}

.ml-done__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(163, 0, 0, .08);
    color: var(--c-red);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-done h2 { font-size: 19px; margin-block-end: 8px; }
.ml-done p { color: var(--c-soft); font-size: 14px; margin-block-end: 6px; }
.ml-done__no { font-family: var(--f-head); }
.ml-done__no strong { color: var(--c-red); letter-spacing: .5px; }
.ml-done .ml-btn { margin-block-start: 16px; }

/* ---- orders / buy again -------------------------------------------------- */

.ml-orders { display: grid; gap: 12px; }

.ml-order {
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
    overflow: hidden;
}

.ml-order__head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    text-align: start;
}

.ml-order__main { display: grid; gap: 2px; min-width: 0; }

.ml-order__no {
    font-family: var(--f-head);
    font-size: 14.5px;
    font-weight: 800;
    color: var(--c-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-order__meta { font-size: 12px; color: var(--c-soft); }

.ml-order__total {
    margin-inline-start: auto;
    font-family: var(--f-head);
    font-size: 14.5px;
    font-weight: 800;
    color: var(--c-red);
    white-space: nowrap;
}

.ml-order__chev { color: var(--c-soft); flex: 0 0 auto; transition: transform .2s ease; }
.ml-order.is-open .ml-order__chev { transform: rotate(180deg); }

.ml-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    margin-block-start: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--c-tile);
    color: var(--c-soft);
    font-size: 11px;
    font-weight: 700;
}

.ml-status--new { background: rgba(230, 126, 34, .12); color: #B45F11; }
.ml-status--done { background: rgba(31, 107, 69, .12); color: #1F6B45; }
.ml-status--off { background: rgba(163, 0, 0, .09); color: var(--c-red); }

.ml-order__body {
    padding: 0 16px 14px;
    border-block-start: 1px solid var(--c-line);
    margin-block-start: 2px;
    padding-block-start: 12px;
}

.ml-order__items { display: grid; gap: 8px; margin-block-end: 10px; }

.ml-orderitem {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: var(--c-ink);
}

.ml-orderitem span:first-child { min-width: 0; }
.ml-orderitem em { font-style: normal; color: var(--c-soft); font-size: 12px; }
.ml-orderitem b { font-weight: 700; color: var(--c-soft); white-space: nowrap; }

.ml-order__rows { display: grid; gap: 4px; }

/* buy again rows */

.ml-buyagain { display: grid; gap: 10px; }

.ml-buyrowitem {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
    background: #fff;
    border-radius: var(--r-md);
    padding: 10px;
    box-shadow: var(--sh-1);
}

.ml-buyrowitem__img {
    width: 64px;
    height: 64px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--c-tile);
}

.ml-buyrowitem__img img { width: 100%; height: 100%; object-fit: cover; }

.ml-buyrowitem__main { min-width: 0; }

.ml-buyrowitem__title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--c-ink);
    display: block;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-buyrowitem__var { font-size: 12px; color: var(--c-soft); }
.ml-buyrowitem__price {
    font-family: var(--f-head);
    font-size: 13.5px;
    font-weight: 800;
    color: var(--c-red);
}

/* ---- more page ----------------------------------------------------------- */

.ml-moreband {
    background: var(--c-red);
    padding-block: 10px 26px;
    color: #fff;
}

.ml-account {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    border-radius: var(--r-md);
    background: #fff;
    color: var(--c-ink);
    font-family: var(--f-head);
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
    transition: background .2s ease, transform .2s ease;
}

.ml-account:hover { background: #FFF7F7; }
.ml-account:active { transform: translateY(1px); }

.ml-more { padding-block: 18px 26px; }

.ml-list {
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
    overflow: hidden;
    margin-block-end: 14px;
}

.ml-item {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 60px;
    padding: 12px 16px;
    text-align: start;
    border-block-end: 1px solid var(--c-line);
    transition: background .18s ease;
}

.ml-item:last-child { border-block-end: 0; }
.ml-item:hover { background: #FAFAFB; }

.ml-item__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--c-ink);
}

.ml-item__icon--red { color: var(--c-red); }

.ml-item__main { display: grid; gap: 1px; min-width: 0; }

.ml-item__title {
    font-family: var(--f-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--c-ink);
    line-height: 1.4;
}

.ml-item__sub {
    font-size: 12px;
    color: var(--c-soft);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-item__chev { margin-inline-start: auto; color: #B0B4BC; flex: 0 0 auto; }

.ml-version {
    text-align: center;
    font-size: 12px;
    color: #9CA3AF;
    padding-block: 10px 18px;
}

/* ---- prose pages (about / privacy / terms) ------------------------------ */

.ml-prose {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 20px 18px;
    box-shadow: var(--sh-1);
    max-width: 780px;
}

.ml-prose h2 { font-size: 16.5px; margin-block: 16px 8px; }
.ml-prose h2:first-of-type { margin-block-start: 0; }
.ml-prose p { color: var(--c-soft); font-size: 14px; line-height: 1.9; margin-block-end: 10px; }
.ml-prose p:last-child { margin-block-end: 0; }
.ml-prose ul { margin: 0 0 10px; padding-inline-start: 20px; color: var(--c-soft); font-size: 14px; line-height: 1.9; }
.ml-prose .ml-btn { margin-block-start: 14px; }

.ml-contact-grid { display: grid; gap: 14px; align-items: start; }

/* ---- trust strip --------------------------------------------------------- */

.ml-trust {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ml-trust li {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border-radius: var(--r-sm);
    padding: 12px 14px;
    font-size: 13px;
    color: var(--c-ink);
    box-shadow: var(--sh-1);
}

.ml-trust svg { color: var(--c-red); flex: 0 0 auto; }

/* ---- footer -------------------------------------------------------------- */

.ml-footer {
    background: #fff;
    border-block-start: 1px solid var(--c-line);
    margin-block-start: 26px;
    padding-block: 26px 18px;
}

.ml-footer__grid { display: grid; gap: 20px; }

.ml-footer__brand .ml-brand__name { color: var(--c-ink); }
.ml-footer__brand .ml-brand__badge { background: var(--c-red); color: #fff; }

.ml-footer__brand p {
    color: var(--c-soft);
    font-size: 13px;
    line-height: 1.9;
    margin-block-start: 10px;
    max-width: 38ch;
}

.ml-footer h3 {
    font-size: 14px;
    font-weight: 800;
    margin-block-end: 10px;
}

.ml-footer__links { display: grid; gap: 7px; align-content: start; }

.ml-footer__links a { font-size: 13.5px; color: var(--c-soft); }
.ml-footer__links a:hover { color: var(--c-red); }

.ml-footer__contact .ml-form { gap: 9px; }

.ml-footer .ml-field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ml-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-block-start: 22px;
    padding-block-start: 14px;
    border-block-start: 1px solid var(--c-line);
    font-size: 12px;
    color: var(--c-soft);
}

.ml-footer__bottom nav { display: flex; gap: 14px; flex-wrap: wrap; }
.ml-footer__bottom a:hover { color: var(--c-red); }

/* ---- toast --------------------------------------------------------------- */

.ml-toast {
    position: fixed;
    inset-inline: 0;
    inset-block-end: calc(var(--ml-navh) + 18px + env(safe-area-inset-bottom));
    z-index: 300;
    margin-inline: auto;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 10px 20px;
    border-radius: 999px;
    background: #141414;
    color: #fff;
    font-family: var(--f-head);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: var(--sh-2);
}

.ml-toast.is-on { opacity: 1; transform: translateY(0); }

/* ---- responsive ---------------------------------------------------------- */

@media (min-width: 480px) {
    .ml-promos { grid-auto-columns: 70%; }
    .ml-prow { grid-auto-columns: 168px; }
}

@media (min-width: 700px) {
    .ml-wrap { padding-inline: 24px; }
    .ml-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .ml-promos {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-columns: auto;
        overflow: visible;
        scroll-snap-type: none;
        padding-block: 0;
        margin-block-start: 20px;
    }
    .ml-cats { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); overflow: visible; }
    .ml-prow { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
    .ml-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ml-product__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .ml-gal__arrow { display: flex; }
    .ml-cartpage { grid-template-columns: 1.5fr .9fr; }
    .ml-cartpage__side { position: sticky; top: calc(var(--ml-stick) + 14px); }
    .ml-checkout { grid-template-columns: 1.35fr 1fr; }
    .ml-checkout__aside { position: sticky; top: calc(var(--ml-stick) + 14px); }
    .ml-contact-grid { grid-template-columns: 1.2fr .8fr; }
    .ml-footer__grid { grid-template-columns: 1.2fr .6fr 1fr; gap: 26px; }
    .ml-sec { padding-block: 26px; }
    .ml-sec__head h2 { font-size: 21px; }
}

@media (min-width: 900px) {
    :root {
        --ml-header-h: 62px;
        --ml-tabs-h: 50px;
        --ml-stick: calc(var(--ml-header-h) + var(--ml-tabs-h));
    }

    body { padding-block-end: 0; }

    .ml-navbar { display: none; }

    .ml-tabs {
        display: block;
        background: #fff;
        border-block-start: 1px solid rgba(255, 255, 255, .14);
    }

    .ml-tabs__in {
        display: flex;
        align-items: center;
        gap: 6px;
        min-height: var(--ml-tabs-h);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .ml-tabs__in::-webkit-scrollbar { display: none; }

    .ml-tabs a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 38px;
        padding: 7px 14px;
        border-radius: 999px;
        color: var(--c-soft);
        font-family: var(--f-head);
        font-size: 13.5px;
        font-weight: 700;
        white-space: nowrap;
        transition: background .18s ease, color .18s ease;
    }

    .ml-tabs a:hover { background: var(--c-tile); color: var(--c-ink); }

    .ml-tabs a.is-on { color: var(--c-red); background: rgba(163, 0, 0, .07); }

    .ml-top { padding-block: 20px 66px; }
    .ml-greet { font-size: 27px; }

    .ml-vendor { margin-block-start: -50px; }

    .ml-greet,
    .ml-search { max-width: 720px; }

    .ml-prow { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }

    .ml-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .ml-stickybar { display: none; }
    .ml-sticky-spacer { display: none; }

    .ml-banner { display: flex; align-items: center; gap: 22px; padding: 28px 30px; }
    .ml-banner__text { flex: 1; }
    .ml-banner h2 { font-size: 26px; margin-block-end: 4px; }
    .ml-banner p { margin-block-end: 0; }
    .ml-banner .ml-btn { flex: 0 0 auto; }

    .ml-toast { inset-block-end: 26px; }

    .ml-page { padding-block: 24px 40px; }

    .ml-filters { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
}

@media (min-width: 1100px) {
    .ml-promos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ml-promo { padding: 22px 20px 24px; }
    .ml-promo__title { font-size: 21px; }
    .ml-greet { font-size: 29px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---- English (ltr) mirrors -------------------------------------------------
   Arrow / chevron glyphs point "forward" in Arabic (left), so they flip when the
   shell turns left-to-right. Text handles, inputs and the cart drawer already
   use logical properties, so they mirror on their own. */
html[dir="ltr"] .ml-sec__head a svg,
html[dir="ltr"] .ml-item__chev svg,
html[dir="ltr"] .ml-empty__btn svg,
html[dir="ltr"] .ml-catall svg {
    transform: scaleX(-1);
}

html[dir="ltr"] .ml-gal__arrow svg { transform: scaleX(-1); }

/* the language row inside /more is a real button, so it needs the reset */
.ml-item--btn {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    border-block-end: 1px solid var(--c-line);
    cursor: pointer;
}

.ml-item--btn:hover { background: #FAFAFB; }

.ml-item__langval {
    font-family: var(--f-body);
    font-weight: 600;
    color: var(--c-red);
}

