@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700&family=Readex+Pro:wght@400;500;600;700&display=swap');

/* =====================================================================
   LUNA — digital products, dark & elegant
   Night surfaces, a soft lavender glow and moonlight gold.
   Everything lives in this file (CSS only): preloader, sticky header,
   floating category sidebar, marquee notify bar, slider motion,
   scroll reveals and the dark skin for Angle's light base.

    0. Tokens & dark base        9. Brands (card turn)
    1. Preloader (moon)         10. Store features
    2. Section titles & links   11. Customer reviews + FAQ
    3. Store-notify ticker      12. Footer
    4. Header + category panel  13. Product page
    5. Mobile drawer            14. Cart page
    6. Page reveals             15. Floating bits & dark base fixes
    7. Product cards            16. Responsive & reduced motion
    8. Categories (orbit tiles)
   ===================================================================== */

/* ---------- 0. Tokens & dark base ---------- */
:root {
    /* night surfaces */
    --luna-night: #0a0c14;     /* page */
    --luna-deep: #07080e;      /* footer */
    --luna-surface: #10131f;   /* header, cards */
    --luna-surface-2: #161a2a; /* raised panels */
    --luna-surface-3: #1e2337;
    --luna-ink: #0d1020;       /* nav row */
    --luna-ink-2: #171b2c;     /* search pill */
    --luna-ink-3: #20253a;
    /* text */
    --luna-text: #e9ebf3;
    --luna-text-2: #c3c8d8;
    --luna-steel: #9097ae;
    --luna-mist: #6c7390;
    --luna-line: rgba(255, 255, 255, .08);
    --luna-line-2: rgba(255, 255, 255, .14);
    --luna-page: #0a0c14;
    --luna-white: #ffffff;
    /* light */
    --luna-flame: var(--tw-accent, #8b7cf6);     /* lavender: primary accent */
    --luna-flame-d: var(--tw-accent-dark, #6d5ce8);
    --luna-volt: #e8c27a;      /* moonlight gold */
    --luna-volt-d: #c9a258;
    --luna-rose: #ff5d7a;      /* deals */
    --luna-teal: #3ddc97;      /* success / new */
    --luna-grad: linear-gradient(135deg, var(--tw-accent-light, #9d8cff) 0%, var(--luna-flame-d) 55%, var(--tw-accent-dark, #4f46e5) 100%);
    --luna-glow: 0 0 0 1px rgba(var(--tw-accent-rgb, 139, 124, 246), .45), 0 18px 40px -18px rgba(var(--tw-accent-rgb, 139, 124, 246), .55);

    --luna-r-sm: 12px;
    --luna-r: 18px;
    --luna-r-lg: 24px;
    --luna-shadow: 0 16px 34px -22px rgba(0, 0, 0, .8);
    --luna-shadow-lg: 0 28px 56px -28px rgba(0, 0, 0, .9);
    --luna-snap: cubic-bezier(.83, 0, .17, 1);
    --luna-ease: cubic-bezier(.2, .8, .2, 1);
    --luna-glide: cubic-bezier(.65, 0, .35, 1);
    --luna-bounce: cubic-bezier(.34, 1.4, .64, 1);
    --luna-head: 'Readex Pro', var(--font-main), 'Alexandria', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: dark;
}

/* the whole store goes dark (a dark theme can't keep a light channel background pattern) */
html, html body {
    background: var(--luna-night) !important;
    color: var(--luna-text);
    font-family: var(--font-main), 'Alexandria', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}
body ::selection { background: var(--luna-flame); color: var(--tw-accent-text, #fff); }

/* Angle's load-time animate.css is replaced by Luna's own motion */
body .angel_anime.animate__fadeInUp,
body .angel_anime.animate__fadeIn { animation-name: none; }

/* ---------- 1. Preloader: a crescent moon with an orbiting star ---------- */
/* night sky */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
    background:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .7), transparent),
        radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, .5), transparent),
        radial-gradient(1.5px 1.5px at 85% 70%, rgba(255, 255, 255, .6), transparent),
        radial-gradient(1px 1px at 35% 80%, rgba(255, 255, 255, .45), transparent),
        radial-gradient(1px 1px at 55% 55%, rgba(255, 255, 255, .35), transparent),
        radial-gradient(circle at 50% 46%, #1a1d33 0, var(--luna-night) 62%);
    animation: luna-pl-hide .6s var(--luna-ease) 1.35s forwards;
}
/* the store logo above the moon (layout passes it as --luna-logo; no logo → just the moon) */
body[style*="--luna-logo"]::before {
    background:
        var(--luna-logo) center calc(50% - 118px) / auto 60px no-repeat,
        radial-gradient(160px 80px at 50% calc(50% - 118px), rgba(var(--tw-accent-rgb, 139, 124, 246), .18), transparent 70%),
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .7), transparent),
        radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, .5), transparent),
        radial-gradient(1.5px 1.5px at 85% 70%, rgba(255, 255, 255, .6), transparent),
        radial-gradient(1px 1px at 35% 80%, rgba(255, 255, 255, .45), transparent),
        radial-gradient(1px 1px at 55% 55%, rgba(255, 255, 255, .35), transparent),
        radial-gradient(circle at 50% 46%, #1a1d33 0, var(--luna-night) 62%);
    animation:
        luna-logo-in .8s var(--luna-ease) both,
        luna-pl-hide .6s var(--luna-ease) 1.35s forwards;
}
@keyframes luna-logo-in { from { background-position: center calc(50% - 100px), 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; } }
/* crescent */
body::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -40px 0 0 -32px;
    z-index: 100002;
    pointer-events: none;
    border-radius: 50%;
    box-shadow: inset -15px 8px 0 0 var(--luna-volt);
    filter: drop-shadow(0 0 14px rgba(232, 194, 122, .55));
    animation:
        luna-moon 1.3s var(--luna-ease) both,
        luna-pl-pop .55s var(--luna-ease) 1.35s forwards;
}
/* orbiting star */
html::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 112px;
    height: 112px;
    margin: -64px 0 0 -56px;
    z-index: 100001;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(var(--tw-accent-rgb, 139, 124, 246), .25);
    background: radial-gradient(circle at 50% 0, #fff 0 2.5px, rgba(157, 140, 255, .9) 3px, transparent 7px);
    animation:
        luna-orbit 1.2s linear infinite,
        luna-pl-pop .55s var(--luna-ease) 1.35s forwards;
}
/* loading hairline */
html::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 2px;
    margin: 30px 0 0 -60px;
    z-index: 100001;
    pointer-events: none;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--luna-flame), var(--luna-volt)) 0 0 / var(--luna-load) 100% no-repeat, rgba(255, 255, 255, .08);
    animation:
        luna-load 1.25s var(--luna-glide) forwards,
        luna-pl-hide .4s ease 1.35s forwards;
}
@property --luna-load { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes luna-load { to { --luna-load: 100%; } }
@keyframes luna-moon { from { transform: rotate(-40deg) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes luna-orbit { to { transform: rotate(360deg); } }
@keyframes luna-pl-hide { to { opacity: 0; visibility: hidden; } }
@keyframes luna-pl-pop { to { opacity: 0; transform: scale(1.25); visibility: hidden; } }

/* ---------- 2. Section titles & links ---------- */
body .s-block__title h2,
body .s-slider-block__title h2,
body .s-block__title .da-cp {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: auto !important;
    font-family: var(--luna-head) !important;
    font-weight: 600 !important;
    font-size: clamp(21px, 2.3vw, 28px) !important;
    letter-spacing: -.01em;
    line-height: 1.3 !important;
    color: var(--luna-text) !important;
}
/* a small glowing crescent before every title */
body .s-block__title h2::before,
body .s-slider-block__title h2::before {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: inset -5px 3px 0 0 var(--luna-volt);
    filter: drop-shadow(0 0 6px rgba(232, 194, 122, .6));
    transition: transform .6s var(--luna-ease);
}
body .s-block:hover .s-block__title h2::before,
body .s-block:hover .s-slider-block__title h2::before { transform: rotate(-30deg); }
body .s-block__title p,
body .s-block__title .da-ts { color: var(--luna-steel) !important; }
body .s-block__title { margin-bottom: 20px !important; }
body .s-slider-block__title { align-items: center !important; margin-bottom: 20px; gap: 12px; }
body .s-slider-block__title-right { flex: 1 1 auto; min-width: 0; width: auto !important; }
body .s-slider-block__title-left { flex: none; display: flex !important; align-items: center; gap: 10px; }

body .s-slider-block__display-all {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    padding: 8px 16px !important;
    border-radius: 999px;
    background: rgba(var(--tw-accent-rgb, 139, 124, 246), .12);
    border: 1px solid rgba(var(--tw-accent-rgb, 139, 124, 246), .3) !important;
    color: #c9c0ff !important;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background-color .25s ease, color .2s ease, box-shadow .3s ease;
}
body .s-slider-block__display-all * { color: inherit !important; }
body .s-slider-block__display-all::after { content: "←"; transition: transform .3s var(--luna-ease); }
html[dir="ltr"] body .s-slider-block__display-all::after { content: "→"; }
body .s-slider-block__display-all:hover { background: var(--luna-flame); color: var(--tw-accent-text, #fff) !important; box-shadow: 0 10px 24px -12px rgba(var(--tw-accent-rgb, 139, 124, 246), .8); }
body .s-slider-block__display-all:hover::after { transform: translateX(-4px); }
html[dir="ltr"] body .s-slider-block__display-all:hover::after { transform: translateX(4px); }

body .s-slider-block__title-nav { display: flex !important; gap: 8px; }
body .s-slider-block__title-nav .s-slider-nav-arrow,
body .s-slider-nav-arrow {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: var(--luna-surface-2) !important;
    border: 1px solid var(--luna-line-2) !important;
    color: var(--luna-text) !important;
    display: grid !important;
    place-items: center;
    transition: background-color .2s ease, transform .35s var(--luna-bounce), box-shadow .3s ease;
}
body .s-slider-nav-arrow svg { width: 22px; height: 22px; fill: currentColor; }
body .s-slider-block__title-nav .s-slider-nav-arrow:not(.swiper-button-disabled):hover,
body .s-slider-nav-arrow:not(.swiper-button-disabled):hover { background: var(--luna-flame) !important; color: var(--tw-accent-text, #fff) !important; border-color: var(--luna-flame) !important; transform: scale(1.08); box-shadow: 0 0 18px rgba(var(--tw-accent-rgb, 139, 124, 246), .5); }
body .s-slider-nav-arrow.swiper-button-disabled { opacity: .3; }

/* banners */
body .s-block--fixed-banner .banner,
body .s-block--banners .banner { border-radius: var(--luna-r-lg) !important; overflow: hidden; box-shadow: 0 0 0 1px var(--luna-line); }
body .s-block--fixed-banner .banner img,
body .s-block--banners .banner img { transition: transform 1.1s var(--luna-ease); }
body .s-block--fixed-banner .banner:hover img,
body .s-block--banners .banner:hover img { transform: scale(1.03); }
body .s-block--fixed-banner,
body .s-block--banners { background: transparent !important; }

/* ---------- 3. Store-notify: glassy ticker with a light sweep ---------- */
body .store-notify {
    position: relative;
    z-index: 160;
    overflow: hidden;
    /* keeps the merchant's colour, deepened with a night gradient */
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .25)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
/* a slow band of moonlight sweeps across every few seconds */
body .store-notify::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 30%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
    transform: translateX(-120%);
    animation: luna-sweep 6s var(--luna-glide) infinite;
}
@keyframes luna-sweep { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(450%); } }
body .store-notify > .container {
    position: relative;
    overflow: hidden;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
body .store-notify h2 {
    flex: none !important;
    white-space: nowrap;
    padding-inline-start: 100%;
    font-family: var(--luna-head);
    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: .02em;
    animation: luna-marquee-rtl 24s linear infinite;
    will-change: transform;
}
html[dir="ltr"] body .store-notify h2 { animation-name: luna-marquee-ltr; }
body .store-notify:hover h2 { animation-play-state: paused; }
body .store-notify h2 a { color: inherit !important; text-decoration: none; }
body .store-notify h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* the icon twinkles */
body .store-notify h2 i { display: inline-block; animation: luna-twinkle 3s ease-in-out infinite; }
@keyframes luna-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes luna-marquee-ltr { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes luna-twinkle { 0%, 100% { opacity: 1; transform: none; } 50% { opacity: .55; transform: scale(.85) rotate(-10deg); } }
body .store-notify .ad-close {
    position: absolute;
    inset-inline-end: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0 !important;
    background: rgba(0, 0, 0, .3);
    color: inherit;
    font-size: 11px;
    transition: transform .35s var(--luna-bounce), background-color .2s ease;
}
body .store-notify .ad-close:hover { transform: translateY(-50%) rotate(90deg); background: rgba(0, 0, 0, .5); }

/* more than one ad: each gets its own style */
/* 2nd: a fine digital dot-matrix, scrolling the other way */
body .store-notify ~ .store-notify {
    z-index: 159;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.3px) !important;
    background-size: 7px 7px;
}
body .store-notify ~ .store-notify::after { display: none; }
body .store-notify ~ .store-notify h2 { animation-direction: reverse; animation-duration: 28s; letter-spacing: .06em; }
/* 3rd: centred and still, with a soft glow pulse */
body .store-notify ~ .store-notify ~ .store-notify {
    z-index: 158;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, .3), transparent 30%, transparent 70%, rgba(0, 0, 0, .3)) !important;
    background-size: auto;
}
body .store-notify ~ .store-notify ~ .store-notify > .container { -webkit-mask-image: none; mask-image: none; }
body .store-notify ~ .store-notify ~ .store-notify h2 { animation: luna-glow-pulse 3.2s ease-in-out infinite; padding-inline-start: 0; flex: 1 !important; white-space: normal; }
@keyframes luna-glow-pulse { 0%, 100% { opacity: 1; text-shadow: 0 0 0 transparent; } 50% { opacity: .82; text-shadow: 0 0 12px rgba(255, 255, 255, .45); } }

/* ---------- 4. Header + floating "All categories" panel ---------- */
body header.store-header {
    position: sticky !important;
    top: 0;
    z-index: 150;
    background: var(--luna-surface-2);
}
/* scroll-linked: shadow appears once the page scrolls (no JS needed) */
@supports (animation-timeline: scroll()) {
    body header.store-header {
        animation: luna-header-shadow linear both;
        animation-timeline: scroll(root);
        animation-range: 0 140px;
    }
    body header.store-header .navbar-brand img {
        animation: luna-logo-shrink linear both;
        animation-timeline: scroll(root);
        animation-range: 0 140px;
    }
}
@keyframes luna-header-shadow { to { box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .55); } }
@keyframes luna-logo-shrink { to { max-height: 48px; } }

body header.store-header #mainnav { box-shadow: none !important; }
body header.store-header #mainnav > .inner { background: var(--luna-surface) !important; }
body header.store-header #mainnav .container > .flex { min-height: 0 !important; padding: 6px 0; }
body header.store-header .navbar-brand { padding: 4px !important; display: inline-flex; }
body header.store-header .navbar-brand img {
    max-height: 68px;
    min-height: 40px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    transition: transform .5s var(--luna-ease);
}
body header.store-header .navbar-brand:hover img { transform: scale(1.04) rotate(-2deg); }

/* icons: account, cart, search, burger, language */
body header.store-header #customerLogin,
body header.store-header .s-cart-summary-wrapper,
body header.store-header .search-btn,
body header.store-header .mburger {
    position: relative;
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    display: inline-grid !important;
    place-items: center;
    padding: 0 !important;
    background: var(--luna-page) !important;
    border: 1px solid var(--luna-line) !important;
    color: var(--luna-text) !important;
    transition: background-color .25s ease, color .2s ease, transform .35s var(--luna-ease), border-color .2s ease;
}
body header.store-header .s-cart-summary-wrapper { width: auto !important; min-width: 42px; padding: 0 12px !important; display: inline-flex !important; gap: 8px; align-items: center; }
body header.store-header #customerLogin:hover,
body header.store-header .s-cart-summary-wrapper:hover,
body header.store-header .search-btn:hover,
body header.store-header .mburger:hover {
    background: var(--luna-ink) !important;
    border-color: var(--luna-ink) !important;
    color: var(--luna-volt) !important;
    transform: translateY(-2px);
}
body header.store-header #customerLogin i,
body header.store-header .search-btn i,
body header.store-header .mburger i,
body header.store-header #s-cart-icon i { color: inherit !important; font-size: 18px !important; }
body header.store-header .s-cart-summary-wrapper:hover * { color: var(--luna-volt) !important; }
body header.store-header .s-cart-summary-count {
    top: -7px !important;
    inset-inline-end: -7px;
    left: auto;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 5px;
    border-radius: 999px !important;
    background: var(--luna-flame) !important;
    color: var(--tw-accent-text, #fff) !important;
    font-size: 11px !important;
    font-weight: 800;
    line-height: 20px !important;
    text-align: center;
    border: 2px solid var(--luna-surface);
}
body header.store-header .s-cart-summary-content { margin: 0 !important; font-weight: 800; font-size: 13px; color: var(--luna-text); }
body header.store-header .lang.btn {
    height: 40px;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1px solid var(--luna-line) !important;
    background: var(--luna-surface) !important;
    font-weight: 700;
    color: var(--luna-text) !important;
    transition: background-color .2s ease, color .2s ease;
}
body header.store-header .lang.btn:hover { background: var(--luna-ink) !important; color: #fff !important; }

/* nav row: ink bar with volt underline (fixed design colour, not the merchant nav colour) */
body header.store-header .inner.nav-header {
    background: var(--luna-ink) !important;
    position: relative;
}
body header.store-header .inner.nav-header::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--luna-volt) 0 34%, var(--luna-flame) 34% 40%, transparent 40%);
}
/* desktop: "All categories" bar + floating category panel (like a department menu) */
body header.store-header .inner.nav-header > .container { align-items: stretch !important; gap: 24px; }
body header.store-header .inner.nav-header > .container > div:first-child {
    position: relative;
    flex: none;
    width: 290px !important;
    min-height: 58px;
    display: block !important;
    z-index: 60;
}
/* the bar */
body header.store-header .inner.nav-header > .container > div:first-child::before {
    content: "جميع الأقسام";
    display: flex;
    align-items: center;
    height: 58px;
    padding-inline: 62px 20px;
    border-radius: 14px 14px 0 0;
    background: var(--tw-nav-bg, var(--luna-flame));
    color: var(--tw-nav-text); /* unset = inherited */
    font-family: var(--luna-head);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .02em;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
}
html:not([lang="ar"]) body header.store-header .inner.nav-header > .container > div:first-child::before { content: "All categories"; }
/* list icon drawn on the start side of the bar */
body header.store-header .inner.nav-header > .container > div:first-child::after {
    content: "";
    position: absolute;
    top: 20px;
    inset-inline-start: 24px;
    width: 22px;
    height: 18px;
    background:
        radial-gradient(circle, var(--tw-nav-text, #fff) 0 2px, transparent 2.5px) 0 0 / 5px 6px repeat-y,
        linear-gradient(var(--tw-nav-text, #fff), var(--tw-nav-text, #fff)) 8px 1px / 14px 2.5px no-repeat,
        linear-gradient(var(--tw-nav-text, #fff), var(--tw-nav-text, #fff)) 8px 7.5px / 14px 2.5px no-repeat,
        linear-gradient(var(--tw-nav-text, #fff), var(--tw-nav-text, #fff)) 8px 14px / 14px 2.5px no-repeat;
    pointer-events: none;
}
html[dir="rtl"] body header.store-header .inner.nav-header > .container > div:first-child::after { transform: scaleX(-1); }
/* the floating panel: the nav is the frame, the list inside it scrolls.
   Sub-menus anchor to the frame (not the scrolling list), so they fly out in front instead of being clipped. */
body header.store-header .inner.nav-header nav.mobile-menu {
    position: absolute !important;
    top: 58px;
    inset-inline-start: 0;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    background: var(--luna-surface-2);
    border: 3px solid var(--tw-nav-line, var(--luna-flame));
    border-top: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 26px 46px -24px rgba(0, 0, 0, .55);
}
body header.store-header .inner.nav-header .main-menu {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    max-height: min(430px, calc(100vh - 190px));
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--luna-flame) transparent;
    margin: 0;
    padding: 4px 0 !important;
    border-radius: 0 0 13px 13px;
    background: transparent;
}
/* inner pages: closed until the bar is hovered, so it never covers the page */
body header.store-header .inner.nav-header nav.mobile-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .35s var(--luna-ease), visibility 0s linear .35s;
}
body header.store-header .inner.nav-header > .container > div:first-child:hover nav.mobile-menu,
body header.store-header .inner.nav-header > .container > div:first-child:focus-within nav.mobile-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .3s var(--luna-ease), visibility 0s;
}
/* home page: open by default over the hero; folds away as you scroll and the bar brings it back on hover */
body:has(.main-container-wrapper .s-block--fixed-banner):not(:has(.container > .nav-header.bg-gray-100)) header.store-header .inner.nav-header nav.mobile-menu { opacity: 1; visibility: visible; transform: none; }
@supports (animation-timeline: scroll()) {
    body:has(.main-container-wrapper .s-block--fixed-banner):not(:has(.container > .nav-header.bg-gray-100)) header.store-header .inner.nav-header nav.mobile-menu {
        animation: luna-panel-fold linear both;
        animation-timeline: scroll(root);
        animation-range: 40px 220px;
    }
    body:has(.main-container-wrapper .s-block--fixed-banner):not(:has(.container > .nav-header.bg-gray-100)) header.store-header .inner.nav-header > .container > div:first-child:hover nav.mobile-menu,
    body:has(.main-container-wrapper .s-block--fixed-banner):not(:has(.container > .nav-header.bg-gray-100)) header.store-header .inner.nav-header > .container > div:first-child:focus-within nav.mobile-menu { animation: none; }
}
@keyframes luna-panel-fold { to { opacity: 0; visibility: hidden; transform: translateY(10px); } }

body header.store-header .inner.nav-header .main-menu > li {
    display: block !important;
    position: static !important;
    width: 100%;
    border-bottom: 1px solid var(--luna-line);
}
body header.store-header .inner.nav-header .main-menu > li:last-child { border-bottom: 0; }
body header.store-header .inner.nav-header .main-menu > li > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    min-height: 44px;
    padding: 0 24px !important;
    color: var(--luna-text-2) !important;
    font-size: 14.5px;
    font-weight: 500;
    transition: color .2s ease, background-color .2s ease, padding .3s var(--luna-ease);
}
body header.store-header .inner.nav-header .main-menu > li > a * { color: inherit !important; }
body header.store-header .inner.nav-header .main-menu > li > a > div { flex: 1 1 auto; min-width: 0; }
body header.store-header .inner.nav-header .main-menu > li:has(> a span:empty),
body header.store-header .inner.nav-header .main-menu > li.mobile-menu-slider,
body header.store-header .inner.nav-header .main-menu > li.lg\:hidden,
body header.store-header .inner.nav-header .main-menu > li > a:empty,
body header.store-header .inner.nav-header .main-menu > li.menu-user-login,
body header.store-header .inner.nav-header .main-menu > li:has(.mburger, .search-btn, .s-user-menu-login-btn),
body header.store-header .inner.nav-header .main-menu > li:not(:has(span)) { display: none !important; }
body header.store-header .inner.nav-header .main-menu > li:hover > a {
    background: rgba(var(--tw-accent-rgb, 139, 124, 246), .12);
    color: var(--luna-flame) !important;
    padding-inline-start: 30px !important;
}
/* chevron on items with sub-categories */
body header.store-header .inner.nav-header .main-menu > li.has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    border: 0 !important;
    border-top: 2px solid currentColor !important;
    border-right: 2px solid currentColor !important;
    transform: rotate(45deg);
    opacity: .5;
    flex: none;
    position: static !important;
    align-self: center !important;
    margin-inline-start: 10px;
    background: none !important;
    inset: auto !important;
}
html[dir="rtl"] body header.store-header .inner.nav-header .main-menu > li.has-children > a::after { transform: rotate(-135deg); }
/* sub-categories fly out beside the panel, level with their row */
body header.store-header .inner.nav-header .main-menu > li > .sub-menu {
    position: absolute !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    inset-inline-start: calc(100% + 6px) !important;
    margin: -45px 0 0 !important;
    width: 240px !important;
    transform: none !important;
    background: var(--luna-surface-2);
    border-radius: 14px;
    border: 1px solid var(--luna-line);
    border-inline-start: 4px solid var(--luna-volt);
    box-shadow: var(--luna-shadow-lg);
    overflow: visible !important;
    z-index: 5;
}
/* invisible bridge over the gap so the pointer can reach the flyout */
body header.store-header .inner.nav-header .sub-menu::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: -12px;
    width: 12px;
}
/* keep the flyout level with its row even when the list is scrolled */
@supports (anchor-name: --a) {
    body header.store-header .inner.nav-header .main-menu > li:has(> .sub-menu) { anchor-name: --luna-row; }
    body header.store-header .inner.nav-header .main-menu > li > .sub-menu {
        position-anchor: --luna-row;
        top: anchor(top) !important;
        margin: 0 !important;
    }
}
body header.store-header .inner.nav-header .main-menu::-webkit-scrollbar { width: 6px; }
body header.store-header .inner.nav-header .main-menu::-webkit-scrollbar-thumb { background: var(--luna-flame); border-radius: 6px; }
body header.store-header .inner.nav-header .main-menu::-webkit-scrollbar-track { background: transparent; }
body header.store-header .inner.nav-header .sub-menu li { display: block !important; position: relative !important; border-bottom: 1px solid var(--luna-line); }
/* deeper levels fly out beside their row too */
body header.store-header .inner.nav-header .sub-menu .sub-menu {
    position: absolute !important;
    top: -1px !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    inset-inline-start: calc(100% + 6px) !important;
    width: 220px !important;
    margin: 0 !important;
    transform: none !important;
    background: var(--luna-surface-2);
    border-radius: 12px;
    border: 1px solid var(--luna-line) !important;
    border-inline-start: 4px solid var(--luna-flame) !important;
    box-shadow: var(--luna-shadow-lg) !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
}
body header.store-header .inner.nav-header .sub-menu .sub-menu a { min-height: 38px; font-size: 13px; }
body header.store-header .inner.nav-header .sub-menu li.has-children > a { justify-content: space-between; }
body header.store-header .inner.nav-header .sub-menu li.has-children > a::after {
    content: "" !important;
    width: 6px;
    height: 6px;
    border: 0 !important;
    border-top: 2px solid currentColor !important;
    border-right: 2px solid currentColor !important;
    transform: rotate(45deg);
    opacity: .5;
    flex: none;
    position: static !important;
    align-self: center !important;
    margin-inline-start: 10px;
    background: none !important;
    inset: auto !important;
}
html[dir="rtl"] body header.store-header .inner.nav-header .sub-menu li.has-children > a::after { transform: rotate(-135deg); }
body header.store-header .inner.nav-header .sub-menu li:last-child { border-bottom: 0; }
body header.store-header .inner.nav-header .sub-menu a {
    display: flex !important;
    align-items: center;
    min-height: 42px;
    padding: 0 20px !important;
    color: var(--luna-text-2) !important;
    font-size: 14px;
    transition: color .2s ease, background-color .2s ease, padding .3s var(--luna-ease);
}
body header.store-header .inner.nav-header .sub-menu a * { color: inherit !important; }
body header.store-header .inner.nav-header .sub-menu a:hover { background: var(--luna-page); color: var(--luna-text) !important; padding-inline-start: 26px !important; }

/* the search takes the rest of the row */
body header.store-header .inner.nav-header > .container > div:nth-child(2) { flex: 1 1 auto; justify-content: flex-start !important; gap: 10px; }
body header.store-header .inner.nav-header .s-search-container { flex: 1 1 auto; max-width: 760px; }
body header.store-header .inner.nav-header .s-search-input-wrapper,
body header.store-header .inner.nav-header .s-search-input { width: 100% !important; }

/* search pill in the nav row */
body header.store-header .s-search-input {
    height: 42px !important;
    border-radius: 999px !important;
    border: 2px solid transparent !important;
    background: var(--luna-ink-2) !important;
    color: #fff !important;
    font-size: 13.5px;
    height: 46px !important;
    padding-left: 42px !important;
    padding-right: 18px !important;
    transition: border-color .25s ease, background-color .25s ease, box-shadow .3s ease;
}
html[dir="rtl"] body header.store-header .s-search-input { padding-left: 18px !important; padding-right: 42px !important; }
body header.store-header .s-search-input::placeholder { color: var(--luna-mist); }
body header.store-header .s-search-input:focus { outline: none; border-color: var(--luna-volt) !important; background: var(--luna-ink-3) !important; box-shadow: 0 0 0 4px rgba(var(--tw-accent-rgb, 139, 124, 246), .15); }
body header.store-header .s-search-icon { left: 15px !important; right: auto !important; color: var(--luna-volt) !important; z-index: 1; }
html[dir="rtl"] body header.store-header .s-search-icon { left: auto !important; right: 15px !important; }
body header.store-header .s-search-icon .icon-search { color: var(--luna-volt) !important; }
body header.store-header .camera-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    display: grid !important;
    place-items: center;
    background: var(--luna-ink-2);
    color: var(--luna-volt) !important;
    transition: transform .35s var(--luna-ease), background-color .2s ease;
}
body header.store-header .camera-btn span { color: inherit !important; }
body header.store-header .camera-btn:hover { background: var(--luna-volt); color: var(--luna-text) !important; transform: rotate(-10deg); }

/* ---------- 5. Mobile drawer: "all categories" panel ---------- */
body .mm-ocd__content {
    background: var(--luna-surface) !important;
    border-inline-start: 0;
    box-shadow: 0 0 60px rgba(0, 0, 0, .35);
}
body .mm-ocd__backdrop { background: rgba(0, 0, 0, .55) !important; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
body #mobile-menu.mm-spn {
    --mm-spn-item-height: 54px;
    --mm-spn-item-indent: 24px;
    background: var(--luna-surface) !important;
    color: var(--luna-text) !important;
    font-family: inherit;
}
/* title bar */
body #mobile-menu.mm-spn.mm-spn--navbar::after {
    opacity: 1 !important;
    height: 64px !important;
    line-height: 64px !important;
    background: var(--luna-flame);
    color: var(--tw-accent-text, #fff);
    font-family: var(--luna-head);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-align: start !important;
    padding-inline: 64px 56px !important;
    z-index: 3;
}
/* main level reads "All categories", like a category panel */
html[lang="ar"] body #mobile-menu.mm-spn.mm-spn--navbar.mm-spn--main::after { content: "جميع الأقسام"; }
html:not([lang="ar"]) body #mobile-menu.mm-spn.mm-spn--navbar.mm-spn--main::after { content: "All categories"; }
/* list icon in the title bar (main level) */
body #mobile-menu.mm-spn.mm-spn--navbar.mm-spn--main::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    top: 23px !important;
    inset-inline-start: 24px;
    left: auto;
    width: 22px !important;
    height: 18px !important;
    margin: 0;
    border: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: 4;
    background:
        radial-gradient(circle, #fff 0 2px, transparent 2.5px) 0 0 / 5px 6px repeat-y,
        linear-gradient(#fff, #fff) 8px 1px / 14px 2.5px no-repeat,
        linear-gradient(#fff, #fff) 8px 7.5px / 14px 2.5px no-repeat,
        linear-gradient(#fff, #fff) 8px 14px / 14px 2.5px no-repeat;
}
html[dir="rtl"] body #mobile-menu.mm-spn.mm-spn--navbar.mm-spn--main::before { transform: scaleX(-1) !important; }
/* back chevron in sub levels */
body #mobile-menu.mm-spn.mm-spn--navbar:not(.mm-spn--main)::before { color: #fff; opacity: 1 !important; top: 32px !important; z-index: 4; }
body #mobile-menu.mm-spn.mm-spn--navbar ul { top: 64px !important; }
body #mobile-menu.mm-spn.mm-spn--navbar ul::before { display: none !important; }
body #mobile-menu.mm-spn ul { background: var(--luna-surface-2); border-inline: 3px solid var(--luna-flame); border-bottom: 3px solid var(--luna-flame); }
body #mobile-menu.mm-spn li { border-bottom: 1px solid var(--luna-line); }
body #mobile-menu.mm-spn li::after { display: none !important; }
body #mobile-menu.mm-spn li > a,
body #mobile-menu.mm-spn li > span {
    display: flex !important;
    align-items: center;
    min-height: 54px;
    padding: 0 28px !important;
    color: var(--luna-text-2) !important;
    font-size: 15.5px;
    font-weight: 500;
    transition: background-color .2s ease, color .2s ease, padding .3s var(--luna-ease);
}
body #mobile-menu.mm-spn li > a span { color: inherit !important; }
body #mobile-menu.mm-spn li:hover > a,
body #mobile-menu.mm-spn li > a:active { background: rgba(var(--tw-accent-rgb, 139, 124, 246), .12); color: var(--luna-flame) !important; padding-inline-start: 34px !important; }
body #mobile-menu.mm-spn li::before { opacity: .5 !important; color: var(--luna-flame); }
body #mobile-menu .currency { padding: 14px 24px; border-bottom: 0; }
body #mobile-menu .currency .lang.btn { border-radius: 999px !important; border: 1px solid var(--luna-line) !important; padding: 8px 16px !important; }
body #mobile-menu .close-mobile-menu {
    top: 14px !important;
    inset-inline-end: 14px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2) !important;
    color: #fff !important;
    display: grid;
    place-items: center;
    transition: transform .3s var(--luna-ease), background-color .2s ease;
}
body #mobile-menu .close-mobile-menu:hover { transform: rotate(90deg); background: rgba(255, 255, 255, .35) !important; }



/* ---------- 4b. Header: Luna night skin ---------- */
/* no backdrop-filter on the header: it made the header the containing block of the phone
   account sheet (position: fixed), which then opened above the screen — near-opaque instead */
body header.store-header,
body header.store-header #mainnav > .inner { background: rgba(16, 19, 31, .97) !important; }
@keyframes luna-header-shadow { to { box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .06); } }
/* icon buttons: glass */
body header.store-header #customerLogin,
body header.store-header .s-cart-summary-wrapper,
body header.store-header .search-btn,
body header.store-header .mburger,
body header.store-header .s-user-menu-trigger-slot {
    background: rgba(255, 255, 255, .05) !important;
    border: 1px solid var(--luna-line-2) !important;
    color: var(--luna-text) !important;
}
body header.store-header .s-user-menu-wrapper { padding: 0 !important; }
body header.store-header .s-user-menu-trigger-slot { width: 42px; height: 42px; border-radius: 12px; display: grid !important; place-items: center; cursor: pointer; transition: background-color .25s ease, box-shadow .3s ease, transform .35s var(--luna-ease); }
body header.store-header #customerLogin i,
body header.store-header .search-btn i,
body header.store-header .mburger i,
body header.store-header .s-user-menu-trigger-slot i,
body header.store-header #s-cart-icon i,
body header.store-header .s-cart-summary-wrapper * { color: var(--luna-text) !important; }
body header.store-header #customerLogin:hover,
body header.store-header .s-cart-summary-wrapper:hover,
body header.store-header .search-btn:hover,
body header.store-header .mburger:hover,
body header.store-header .s-user-menu-trigger-slot:hover {
    background: rgba(var(--tw-accent-rgb, 139, 124, 246), .16) !important;
    border-color: rgba(var(--tw-accent-rgb, 139, 124, 246), .55) !important;
    box-shadow: 0 0 18px -4px rgba(var(--tw-accent-rgb, 139, 124, 246), .6);
    transform: translateY(-2px);
}
body header.store-header .s-cart-summary-wrapper:hover * { color: #fff !important; }
body header.store-header .s-cart-summary-count { background: var(--tw-header-text, var(--luna-grad)) !important; color: var(--tw-header-text-on, var(--tw-accent-text, #fff)) !important; border-color: var(--tw-header-bg, var(--luna-surface)) !important; }
body header.store-header .lang.btn { background: rgba(255, 255, 255, .05) !important; border-color: var(--luna-line-2) !important; color: var(--luna-text) !important; }
body header.store-header .lang.btn * { color: inherit !important; }
body header.store-header .lang.btn:hover { background: var(--luna-flame) !important; border-color: var(--luna-flame) !important; color: var(--tw-accent-text, #fff) !important; }
body header.store-header .s-user-menu-dropdown { background: var(--luna-surface-2) !important; border: 1px solid var(--luna-line-2); border-radius: var(--luna-r) !important; box-shadow: var(--luna-shadow-lg) !important; }
body header.store-header .s-user-menu-dropdown * { color: var(--luna-text-2) !important; }
body header.store-header .s-user-menu-dropdown-header { background: var(--luna-surface-3) !important; }
body header.store-header .s-user-menu-dropdown-item a:hover { background: rgba(var(--tw-accent-rgb, 139, 124, 246), .12) !important; }
/* wallet balance badge (logged in): riyal symbol in white */
body header.store-header .s-wallet-summary-count {
    top: -7px !important;
    inset-inline-end: -7px;
    left: auto;
    display: inline-flex !important;
    align-items: center;
    gap: 2px;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: var(--tw-header-text, var(--luna-grad)) !important;
    color: var(--tw-header-text-on, #fff) !important;
    font-size: 11px !important;
    font-weight: 700;
    line-height: 1 !important;
    border: 2px solid var(--tw-header-bg, var(--luna-surface));
    white-space: nowrap;
}
body header.store-header .s-wallet-summary-count *,
body header.store-header .s-wallet-summary-count i { color: var(--tw-header-text-on, #fff) !important; padding: 0 !important; }
body header.store-header .s-wallet-summary-count img { filter: var(--tw-header-text-on-filter, brightness(0) invert(1)) !important; width: 9px !important; height: auto; }

/* nav row: deep night with a lavender → gold hairline */
body header.store-header .inner.nav-header { background: var(--luna-ink) !important; border-top: 1px solid var(--luna-line); }
body header.store-header .inner.nav-header > .container { border-color: transparent !important; }
body header.store-header .inner.nav-header::after {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--luna-flame) 25%, var(--luna-volt) 75%, transparent);
    opacity: .8;
}
/* the category bar: the navbar colour, lavender gradient by default */
body header.store-header .inner.nav-header > .container > div:first-child::before {
    background: var(--tw-nav-bg, var(--luna-grad));
    font-weight: 600;
    letter-spacing: .03em;
    box-shadow: 0 10px 24px -14px var(--tw-nav-line, rgba(var(--tw-accent-rgb, 139, 124, 246), .9));
}
/* the floating panel: raised night glass with a lavender frame */
body header.store-header .inner.nav-header nav.mobile-menu {
    background: var(--luna-surface-2) !important;
    border-color: var(--tw-nav-line, rgba(var(--tw-accent-rgb, 139, 124, 246), .6)) !important;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .95), 0 0 30px -10px rgba(var(--tw-accent-rgb, 139, 124, 246), .35) !important;
}
body header.store-header .inner.nav-header .main-menu > li { border-bottom-color: var(--luna-line) !important; }
body header.store-header .inner.nav-header .main-menu > li > a { color: var(--luna-text-2) !important; }
body header.store-header .inner.nav-header .main-menu > li:hover > a { background: rgba(var(--tw-accent-rgb, 139, 124, 246), .12) !important; color: #fff !important; }
body header.store-header .inner.nav-header .sub-menu {
    background: var(--luna-surface-3) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-color: var(--luna-line-2) !important;
}
body header.store-header .inner.nav-header .main-menu > li > .sub-menu { border-inline-start-color: var(--luna-volt) !important; }
body header.store-header .inner.nav-header .sub-menu li { border-bottom-color: var(--luna-line) !important; }
body header.store-header .inner.nav-header .sub-menu a { color: var(--luna-text-2) !important; }
body header.store-header .inner.nav-header .sub-menu a:hover { background: rgba(var(--tw-accent-rgb, 139, 124, 246), .14) !important; color: #fff !important; }
body header.store-header .inner.nav-header .main-menu::-webkit-scrollbar-thumb { background: var(--luna-flame); }
/* search */
body header.store-header .s-search-input { background: var(--luna-ink-2) !important; color: var(--luna-text) !important; border-color: var(--luna-line) !important; }
body header.store-header .s-search-input:focus { border-color: var(--luna-flame) !important; background: var(--luna-ink-3) !important; box-shadow: 0 0 0 4px rgba(var(--tw-accent-rgb, 139, 124, 246), .18) !important; }
body header.store-header .s-search-input::placeholder { color: rgba(233, 235, 243, .7) !important; opacity: 1 !important; }
body header.store-header .s-search-input::-webkit-input-placeholder { color: rgba(233, 235, 243, .7) !important; opacity: 1 !important; }
body header.store-header .s-search-icon,
body header.store-header .s-search-icon .icon-search,
body header.store-header .camera-btn { color: var(--luna-volt) !important; }
body header.store-header .camera-btn { background: var(--luna-ink-2); border: 1px solid var(--luna-line); }
body header.store-header .camera-btn:hover { background: var(--luna-flame); color: var(--tw-accent-text, #fff) !important; }
/* mobile drawer */
body .mm-ocd__content { background: var(--luna-surface) !important; }
body #mobile-menu.mm-spn { background: var(--luna-surface) !important; color: var(--luna-text) !important; }
body #mobile-menu.mm-spn.mm-spn--navbar::after { background: var(--luna-grad); font-weight: 600; }
body #mobile-menu.mm-spn ul { background: var(--luna-surface) !important; border-color: rgba(var(--tw-accent-rgb, 139, 124, 246), .5) !important; }
body #mobile-menu.mm-spn li { border-bottom-color: var(--luna-line) !important; }
body #mobile-menu.mm-spn li > a,
body #mobile-menu.mm-spn li > span { color: var(--luna-text-2) !important; }
body #mobile-menu.mm-spn li:hover > a,
body #mobile-menu.mm-spn li > a:active { background: rgba(var(--tw-accent-rgb, 139, 124, 246), .12) !important; color: #fff !important; }
body #mobile-menu.mm-spn li::before { color: var(--luna-volt); }
body #mobile-menu .currency .lang.btn { background: rgba(255, 255, 255, .05) !important; border-color: var(--luna-line-2) !important; color: var(--luna-text) !important; }

/* ---------- 6. Page reveals ---------- */
@keyframes luna-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes luna-rise-in { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

body .main-container-wrapper > .container > .s-block:nth-child(-n+3) { animation: luna-rise .9s var(--luna-ease) both; }
body .main-container-wrapper > .container > .s-block:nth-child(1) { animation-delay: 1.4s; }
body .main-container-wrapper > .container > .s-block:nth-child(2) { animation-delay: 1.52s; }
body .main-container-wrapper > .container > .s-block:nth-child(3) { animation-delay: 1.64s; }
/* fade only, and "backwards": a transform left on these columns trapped the phone account sheet too */
@keyframes luna-fade-in { from { opacity: 0; } }
body header.store-header #mainnav .container > .flex > * { animation: luna-fade-in .75s var(--luna-ease) backwards; }
body header.store-header #mainnav .container > .flex > *:nth-child(1) { animation-delay: 1.35s; }
body header.store-header #mainnav .container > .flex > *:nth-child(2) { animation-delay: 1.45s; }
body header.store-header #mainnav .container > .flex > *:nth-child(3) { animation-delay: 1.55s; }

@supports (animation-timeline: view()) {
    body .main-container-wrapper > .container > .s-block:nth-child(n+4),
    body .store-footer .footer-container > div,
    body section.product-detail,
    body .products-container > .product-entry,
    body .main-content .cart-item {
        animation: luna-rise linear both !important;
        animation-timeline: view() !important;
        animation-range: entry 0% entry 55% !important;
    }
    body .products-container > .product-entry { animation-name: luna-rise-in !important; }
}

/* ---------- 7. Product cards: night glass ---------- */
body .product-entry.product-entry--vertical {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    padding: 8px;
    background: linear-gradient(180deg, var(--luna-surface-2), var(--luna-surface)) !important;
    border: 1px solid var(--luna-line) !important;
    border-radius: var(--luna-r) !important;
    overflow: hidden !important;
    position: relative;
    box-shadow: none;
    transition: transform .5s var(--luna-ease), box-shadow .45s ease, border-color .3s ease;
}
@media (hover: hover) {
    body .product-entry.product-entry--vertical:hover {
        transform: translateY(-6px);
        border-color: rgba(var(--tw-accent-rgb, 139, 124, 246), .55) !important;
        box-shadow: var(--luna-glow);
    }
}
/* image: true colours on a slightly raised plate */
body .product-entry.product-entry--vertical > a {
    display: block;
    position: relative;
    background: var(--luna-surface-3);
    border-radius: calc(var(--luna-r) - 6px);
    overflow: hidden;
}
body .product-entry.product-entry--vertical > a img { transition: transform .8s var(--luna-ease); }
body .product-entry.product-entry--vertical:hover > a img { transform: scale(1.06); }
/* a moonlight sheen passes over the image on hover */
body .product-entry.product-entry--vertical > a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform .9s var(--luna-ease);
    pointer-events: none;
}
body .product-entry.product-entry--vertical:hover > a::after { transform: translateX(100%); }

/* badges */
body .product-entry .promo-title {
    top: 10px !important;
    inset-inline-start: 10px !important;
    left: auto;
    max-width: calc(100% - 20px) !important;
    padding: 5px 11px !important;
    border-radius: 8px !important;
    background: var(--luna-rose) !important;
    border: 0;
    color: #fff !important;
    box-shadow: 0 6px 16px -6px rgba(255, 93, 122, .8);
    opacity: 1 !important;
    font-size: 11px !important;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
body .product-entry .sticker.new {
    top: 10px !important;
    inset-inline-end: 10px;
    left: auto;
    z-index: 3;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    background: var(--luna-volt) !important;
    border: 0;
    color: var(--luna-night) !important;
    font-size: 11px !important;
    font-weight: 600;
}

/* text */
body .product-entry .donating-wrap { padding: 12px 6px 4px !important; gap: 6px; flex: 1; background: transparent !important; }
body .product-entry .title-wrapper { text-align: start !important; }
body .product-entry .product-entry__title { margin: 0; }
body .product-entry .product-entry__title a {
    color: var(--luna-text) !important;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.5;
    transition: color .2s ease;
}
body .product-entry .product-entry__title a:hover { color: #c9c0ff !important; }
body .product-entry .s-product-card-content-subtitle { font-size: 12px; color: var(--luna-steel) !important; margin: 2px 0 0; }
body .product-entry .s-product-card-content-subtitle:empty { display: none; }
body .product-entry .price-wrapper { margin: 2px 0 8px !important; }
body .product-entry .price-wrapper .on-sale { justify-content: flex-start !important; align-items: baseline !important; gap: 6px; }
body .product-entry .price-label,
body .product-entry .price.d-flex,
body .product-entry .final-price { color: var(--luna-text) !important; font-weight: 600 !important; font-size: 17px; font-family: var(--luna-head); }
body .product-entry .price-label *,
body .product-entry .final-price * { color: inherit !important; }
body .product-entry .special-price { color: var(--luna-volt) !important; font-weight: 600 !important; font-size: 17px; font-family: var(--luna-head); }
body .product-entry .regular-price { color: var(--luna-mist) !important; font-size: 12.5px; }
body .product-entry img.sar-icon,
body section.product-detail img.sar-icon,
body .main-content img.sar-icon,
body .main-content ~ .sticky img.sar-icon { filter: brightness(0) invert(1); opacity: .85; }

/* add to cart: lavender gradient pill with a light sweep */
body .product-entry .product-footer { margin-top: auto !important; }
body .product-entry .cart-wish-wrap,
body .product-entry .cart-wish-wrap form { width: 100%; display: block; }
body .product-entry .addToCart {
    height: 44px !important;
    width: 100%;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--luna-grad) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .3s var(--luna-ease), box-shadow .35s ease !important;
}
body .product-entry .addToCart::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform .7s var(--luna-ease);
}
body .product-entry .addToCart * { color: inherit !important; }
body .product-entry .addToCart:not([disabled]):hover { box-shadow: 0 12px 26px -12px rgba(var(--tw-accent-rgb, 139, 124, 246), .95); transform: translateY(-1px); }
body .product-entry .addToCart:not([disabled]):hover::before { transform: translateX(110%); }
body .product-entry .addToCart:not([disabled]):active { transform: scale(.97); }
body .product-entry .addToCart[disabled],
body .product-entry .addToCart.s-button-disabled {
    background: rgba(255, 255, 255, .05) !important;
    color: var(--luna-mist) !important;
    border: 1px solid var(--luna-line) !important;
    cursor: not-allowed;
    opacity: 1 !important;
}
body .product-entry .addToCart[disabled]::before { display: none; }

body .products-container.grid { gap: 18px !important; }
body .s-block--best-offers .swiper-slide,
body .mySwiper .slide--one-sixth { height: auto; padding-bottom: 10px; }

/* ---------- 8. Categories: orbit tiles ---------- */
body .s-block:has(.mySwiper .banner-square:not(.max--3)) .mySwiper { overflow: hidden; padding: 10px 2px 14px; }
/* slow, graceful glide between slides */
body .s-block:has(.mySwiper .banner-square:not(.max--3)) .swiper-wrapper { transition-timing-function: var(--luna-glide) !important; }
body .mySwiper .banner-square:not(.max--3) {
    --luna-gap: 7px;
    position: relative;
    height: auto;
    padding: 8px 8px 14px !important;
    border-inline: var(--luna-gap) solid transparent !important;
    border-radius: calc(var(--luna-r-lg) + var(--luna-gap)) / var(--luna-r-lg);
    background: linear-gradient(180deg, var(--luna-surface-2), var(--luna-surface)) !important;
    background-clip: padding-box !important;
    box-shadow: inset 0 0 0 1px var(--luna-line);
    text-align: center;
    transition: transform .5s var(--luna-ease), box-shadow .4s ease;
}
body .mySwiper .banner-square:not(.max--3) > a { display: block; position: relative; }
body .mySwiper .banner-square:not(.max--3) .box-img {
    width: 100%;
    aspect-ratio: 1;
    height: auto !important;
    border-radius: var(--luna-r) !important;
    overflow: hidden;
    background: var(--luna-surface-3);
}
body .mySwiper .banner-square:not(.max--3) .box-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: none !important;
    transition: transform .9s var(--luna-ease);
}
body .mySwiper .banner-square:not(.max--3) > div.relative {
    position: relative !important;
    inset: auto;
    padding: 12px 2px 0 !important;
    background: none !important;
    text-align: center !important;
}
body .mySwiper .banner-square:not(.max--3) h3 {
    display: inline-block;
    width: auto !important;
    max-width: 100%;
    color: var(--luna-text) !important;
    font-family: var(--luna-head);
    font-weight: 500;
    font-size: 15px !important;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .25s ease;
}
/* a gold underline grows under the name on hover */
body .mySwiper .banner-square:not(.max--3) > div.relative::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    margin: 6px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--luna-flame), var(--luna-volt));
    transition: width .45s var(--luna-ease);
}
@media (hover: hover) {
    body .mySwiper .banner-square:not(.max--3):hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(var(--tw-accent-rgb, 139, 124, 246), .55), 0 22px 40px -22px rgba(var(--tw-accent-rgb, 139, 124, 246), .6); }
    body .mySwiper .banner-square:not(.max--3):hover .box-img img { transform: scale(1.08); }
    body .mySwiper .banner-square:not(.max--3):hover h3 { color: #fff !important; }
    body .mySwiper .banner-square:not(.max--3):hover > div.relative::after { width: 42px; }
}
/* every slide step: the lead tile rises into place out of the dark */
body .mySwiper .banner-square:not(.max--3).swiper-slide-active .box-img { animation: luna-emerge .9s var(--luna-ease); }
@keyframes luna-emerge { from { opacity: .35; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* ---------- 9. Brands: cards that turn into view ---------- */
body .s-block:has(.banner-square.max--3) .mySwiper { overflow: hidden; padding: 12px 2px 16px; perspective: 1000px; }
body .s-block:has(.banner-square.max--3) .swiper-wrapper { transition-timing-function: var(--luna-ease) !important; }
body .mySwiper .banner-square.max--3 {
    --luna-gap: 8px;
    max-width: none !important;
    position: relative;
    height: auto;
    padding: 12px 12px 16px;
    border-inline: var(--luna-gap) solid transparent !important;
    border-block: 0 !important;
    background: linear-gradient(180deg, var(--luna-surface-2), var(--luna-surface)) !important;
    background-clip: padding-box !important;
    border-radius: calc(var(--luna-r) + var(--luna-gap)) / var(--luna-r);
    box-shadow: inset 0 0 0 1px var(--luna-line);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .35s ease, transform .5s var(--luna-ease);
}
/* logos sit on a soft light chip so dark logos stay readable on the night surface */
body .mySwiper .banner-square.max--3 .box-img {
    aspect-ratio: 16 / 10;
    border-radius: var(--luna-r-sm) !important;
    background: #f3f4f9;
    display: grid;
    grid-template: 100% / 100%;
    place-items: center;
    padding: 10px;
    overflow: hidden;
}
body .mySwiper .banner-square.max--3 .box-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    filter: none !important;
    transition: transform .6s var(--luna-ease);
}
body .mySwiper .banner-square.max--3 > div.relative { padding: 0 !important; }
body .mySwiper .banner-square.max--3 h3 {
    font-family: var(--luna-head);
    font-weight: 500;
    font-size: 13.5px !important;
    color: var(--luna-steel) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .25s ease;
}
/* a logo that fails to load becomes a name label (img::before only renders for broken images) */
body .mySwiper .banner-square.max--3 .box-img img { color: transparent; font-size: 0; position: relative; display: block; min-width: 100%; min-height: 100%; }
body .mySwiper .banner-square.max--3 .box-img img::before {
    content: attr(alt);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 10px;
    background: var(--luna-grad);
    color: #fff;
    font-family: var(--luna-head);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
}
/* the lead brand turns into view like a card being flipped over */
body .mySwiper .banner-square.max--3.swiper-slide-active { box-shadow: inset 0 0 0 1px rgba(232, 194, 122, .6), 0 0 26px -10px rgba(232, 194, 122, .5); }
body .mySwiper .banner-square.max--3.swiper-slide-active h3 { color: var(--luna-volt) !important; }
body .mySwiper .banner-square.max--3.swiper-slide-active .box-img { animation: luna-turn .85s var(--luna-ease); }
@keyframes luna-turn { from { transform: rotateY(-80deg); opacity: .3; } to { transform: none; opacity: 1; } }
@media (hover: hover) {
    body .mySwiper .banner-square.max--3:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgba(var(--tw-accent-rgb, 139, 124, 246), .6), 0 20px 36px -20px rgba(var(--tw-accent-rgb, 139, 124, 246), .6); }
    body .mySwiper .banner-square.max--3:hover .box-img img { transform: scale(1.06); }
    body .mySwiper .banner-square.max--3:hover h3 { color: #fff !important; }
}

/* ---------- 10. Store features: glowing rings ---------- */
body .myStoreSwiper { overflow: hidden; padding: 4px 2px 12px !important; }
body .myStoreSwiper .swiper-wrapper { transition-timing-function: var(--luna-glide) !important; }
body .myStoreSwiper .swiper-slide { height: auto; margin-top: 0 !important; }
body .myStoreSwiper .s-block--features__item {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    text-align: start !important;
    gap: 6px;
    padding: 26px 24px 24px !important;
    border-radius: var(--luna-r-lg) !important;
    background:
        radial-gradient(120% 80% at 100% 0, rgba(var(--tw-accent-rgb, 139, 124, 246), .14), transparent 60%),
        linear-gradient(180deg, var(--luna-surface-2), var(--luna-surface)) !important;
    border: 1px solid var(--luna-line);
    overflow: hidden;
    isolation: isolate;
    box-shadow: none !important;
    transition: transform .5s var(--luna-ease), box-shadow .4s ease, border-color .3s ease;
}
html[dir="rtl"] body .myStoreSwiper .s-block--features__item {
    background:
        radial-gradient(120% 80% at 0 0, rgba(var(--tw-accent-rgb, 139, 124, 246), .14), transparent 60%),
        linear-gradient(180deg, var(--luna-surface-2), var(--luna-surface)) !important;
}
/* icon inside a gradient ring that spins slowly on hover */
@property --luna-spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
body .myStoreSwiper .feature-icon {
    width: 60px !important;
    height: 60px !important;
    margin: 0 0 10px !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--luna-surface-2), var(--luna-surface-2)) padding-box,
        conic-gradient(from var(--luna-spin), var(--luna-flame), var(--luna-volt), var(--luna-flame)) border-box !important;
    color: var(--luna-volt) !important;
    box-shadow: 0 0 22px -8px rgba(var(--tw-accent-rgb, 139, 124, 246), .7);
}
body .myStoreSwiper .feature-icon i { color: inherit !important; font-size: 25px !important; }
body .myStoreSwiper .s-block--features__item h2 {
    margin: 0 !important;
    font-family: var(--luna-head);
    font-weight: 600 !important;
    font-size: 17.5px !important;
    line-height: 1.45 !important;
    color: var(--luna-text) !important;
    text-align: start !important;
}
body .myStoreSwiper .s-block--features__item p {
    margin: 2px 0 0 !important;
    font-size: 13.5px !important;
    line-height: 1.8 !important;
    color: var(--luna-steel) !important;
    text-align: start !important;
}
@media (hover: hover) {
    body .myStoreSwiper .s-block--features__item:hover { transform: translateY(-6px); border-color: rgba(var(--tw-accent-rgb, 139, 124, 246), .45); box-shadow: var(--luna-glow) !important; }
    body .myStoreSwiper .s-block--features__item:hover .feature-icon { animation: luna-ring 2.4s linear infinite; }
}
@keyframes luna-ring { to { --luna-spin: 360deg; } }

/* ---------- 11. Customer reviews: glass cards ---------- */
body .myReviewSwiper { overflow: hidden; padding: 4px 2px 12px !important; }
body .myReviewSwiper .swiper-wrapper { transition-timing-function: var(--luna-ease) !important; }
body .myReviewSwiper .swiper-slide { height: auto; margin-top: 46px !important; }
body .myReviewSwiper .swiper-slide > div {
    height: 100%;
    border-radius: var(--luna-r-lg) !important;
    background: linear-gradient(180deg, var(--luna-surface-2), var(--luna-surface)) !important;
    border: 1px solid var(--luna-line);
    position: relative;
    overflow: visible;
    box-shadow: none !important;
    transition: transform .5s var(--luna-ease), box-shadow .4s ease, border-color .3s ease;
}
body .myReviewSwiper .swiper-slide > div * { color: var(--luna-text-2); }
body .myReviewSwiper .swiper-slide > div::before {
    content: "”";
    position: absolute;
    top: 8px;
    inset-inline-end: 20px;
    font-family: Georgia, serif;
    font-size: 70px;
    line-height: 1;
    color: rgba(var(--tw-accent-rgb, 139, 124, 246), .35);
    transition: color .3s ease;
}
body .myReviewSwiper .testimonial__icon { display: none; }
body .myReviewSwiper .testimonial__avatar {
    width: 76px !important;
    height: 76px !important;
    border: 3px solid var(--luna-night);
    box-shadow: 0 0 0 2px var(--luna-volt), 0 0 24px -6px rgba(232, 194, 122, .6) !important;
    background: var(--luna-surface-3);
    transition: transform .5s var(--luna-bounce);
}
body .myReviewSwiper .s-testimonials--slider--img > p {
    font-family: var(--luna-head);
    font-weight: 600;
    font-size: 16.5px !important;
    color: var(--luna-text) !important;
}
body .myReviewSwiper .s-rating-stars-wrapper i { font-size: 15px; }
body .myReviewSwiper .s-rating-stars-wrapper i[style*="255, 215, 0"] { color: var(--luna-volt) !important; }
body .myReviewSwiper .swiper-slide > div > div > p {
    margin-top: 10px !important;
    padding-top: 12px;
    border-top: 1px dashed var(--luna-line-2);
    font-size: 14.5px !important;
    line-height: 1.85 !important;
    color: var(--luna-text-2) !important;
}
@media (hover: hover) {
    body .myReviewSwiper .swiper-slide > div:hover { transform: translateY(-6px); border-color: rgba(var(--tw-accent-rgb, 139, 124, 246), .45); box-shadow: var(--luna-glow) !important; }
    body .myReviewSwiper .swiper-slide > div:hover::before { color: var(--luna-volt); }
    body .myReviewSwiper .swiper-slide > div:hover .testimonial__avatar { transform: rotate(-6deg) scale(1.05); }
}
body .myReviewSwiper .swiper-slide-active > div { border-color: rgba(232, 194, 122, .35); }

/* FAQ */
body .accordion { display: grid; gap: 10px; }
body .accordion .accordion-item {
    border: 1px solid var(--luna-line) !important;
    border-radius: var(--luna-r) !important;
    background: var(--luna-surface) !important;
    overflow: hidden;
    box-shadow: none !important;
    transition: border-color .3s ease, box-shadow .35s ease;
}
body .accordion .accordion-item:hover,
body .accordion .accordion-item.active { border-color: rgba(var(--tw-accent-rgb, 139, 124, 246), .5) !important; box-shadow: 0 0 26px -12px rgba(var(--tw-accent-rgb, 139, 124, 246), .6) !important; }
body .accordion .accordion-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 16px 20px !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--luna-text) !important;
    font-family: var(--luna-head);
    font-weight: 500;
    font-size: 15.5px !important;
    line-height: 1.5;
    text-align: start;
}
body .accordion .accordion-icon {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(var(--tw-accent-rgb, 139, 124, 246), .14);
    color: #c9c0ff !important;
    font-size: 10px !important;
    transition: transform .45s var(--luna-bounce), background-color .25s ease, color .25s ease;
}
body .accordion .accordion-item.active .accordion-icon { transform: rotate(180deg); background: var(--luna-flame); color: var(--tw-accent-text, #fff) !important; }
body .accordion .accordion-content { padding: 0 20px !important; background: transparent !important; }
body .accordion .accordion-item.active .accordion-content { padding-bottom: 16px !important; }
body .accordion .accordion-content p {
    padding-top: 12px !important;
    border-top: 1px dashed var(--luna-line-2);
    color: var(--luna-steel) !important;
    font-size: 14px;
    line-height: 1.85;
}

/* ---------- 12. Footer: deep night with star dust ---------- */
body .store-footer { position: relative; margin-top: 70px; background: transparent !important; }
body .store-footer .store-footer__inner {
    background:
        radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, .35), transparent),
        radial-gradient(1px 1px at 38% 64%, rgba(255, 255, 255, .25), transparent),
        radial-gradient(1px 1px at 66% 30%, rgba(255, 255, 255, .3), transparent),
        radial-gradient(1px 1px at 88% 76%, rgba(255, 255, 255, .25), transparent),
        radial-gradient(60% 120% at 50% 0, rgba(var(--tw-accent-rgb, 139, 124, 246), .12), transparent 70%),
        var(--luna-deep) !important;
    color: var(--luna-text-2);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--luna-line);
}
body .store-footer .store-footer__inner::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--luna-flame) 30%, var(--luna-volt) 70%, transparent);
}
body .store-footer .to-top { padding-top: 24px; }
body .store-footer .to-top a {
    padding: 9px 20px !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--luna-line-2);
    color: var(--luna-text) !important;
    transition: background-color .2s ease, box-shadow .3s ease, transform .4s var(--luna-bounce);
}
body .store-footer .to-top a * { color: inherit !important; }
body .store-footer .to-top a:hover { background: var(--luna-flame); color: var(--tw-accent-text, #fff) !important; transform: translateY(-4px); box-shadow: 0 0 22px -6px rgba(var(--tw-accent-rgb, 139, 124, 246), .8); }
body .store-footer .footer-container { border-color: var(--luna-line) !important; padding: 34px 0 20px !important; }
body .store-footer .logo-footer {
    padding: 12px 18px;
    border-radius: var(--luna-r);
    background: rgba(255, 255, 255, .92);
    width: max-content;
    margin-inline: auto;
    transition: transform .5s var(--luna-ease), box-shadow .4s ease;
}
body .store-footer .logo-footer:hover { transform: translateY(-3px); box-shadow: 0 0 30px -8px rgba(232, 194, 122, .5); }
body .store-footer .logo-footer img { max-height: 60px; width: auto; }
body .store-footer p,
body .store-footer .da-tm,
body .store-footer span { color: var(--luna-steel) !important; }
body .store-footer h3 {
    position: relative;
    font-family: var(--luna-head);
    font-weight: 600 !important;
    font-size: 17px !important;
    color: var(--luna-text) !important;
    padding-bottom: 12px;
    margin-bottom: 14px !important;
}
body .store-footer h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 36px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--luna-flame), var(--luna-volt));
}
html[dir="rtl"] body .store-footer h3::after { background: linear-gradient(270deg, var(--luna-flame), var(--luna-volt)); }
body .store-footer h3.text-center::after { inset-inline-start: 50%; translate: 50% 0; }
html[dir="ltr"] body .store-footer h3.text-center::after { translate: -50% 0; }
body .store-footer .footer-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--luna-text-2) !important;
    line-height: 2.1;
    transition: color .2s ease, transform .3s var(--luna-ease);
}
body .store-footer .footer-list a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--luna-volt);
    box-shadow: 0 0 8px var(--luna-volt);
    transform: scale(0);
    transition: transform .35s var(--luna-bounce);
}
body .store-footer .footer-list a:hover { color: #fff !important; transform: translateX(-4px); }
html[dir="ltr"] body .store-footer .footer-list a:hover { transform: translateX(4px); }
body .store-footer .footer-list a:hover::before { transform: scale(1); }
body .store-footer .social-links a {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-grid !important;
    place-items: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--luna-line);
    transition: background-color .2s ease, transform .4s var(--luna-bounce), box-shadow .3s ease;
}
body .store-footer .social-links a img,
body .store-footer .social-links a svg { filter: brightness(0) invert(1); max-height: 16px; opacity: .85; }
body .store-footer .social-links a:hover { background: var(--luna-flame); transform: translateY(-4px); box-shadow: 0 0 20px -6px rgba(var(--tw-accent-rgb, 139, 124, 246), .9); }
body .store-footer .contact-links a {
    min-width: 64px;
    padding: 12px 10px !important;
    border-radius: var(--luna-r) !important;
    background: rgba(255, 255, 255, .05) !important;
    border: 1px solid var(--luna-line);
    color: var(--luna-text) !important;
    transition: background-color .2s ease, transform .4s var(--luna-bounce), box-shadow .3s ease;
}
body .store-footer .contact-links a * { color: inherit !important; }
body .store-footer .contact-links a:hover { background: var(--luna-flame) !important; color: var(--tw-accent-text, #fff) !important; transform: translateY(-4px); box-shadow: 0 0 20px -6px rgba(var(--tw-accent-rgb, 139, 124, 246), .9); }
body .store-footer .footer-vat { align-items: center; }
body .store-footer .footer-vat > a:first-child img { border-radius: 8px; background: #fff; padding: 3px; }
body .store-footer .vat-num,
body .store-footer .vat-num * { color: var(--luna-text-2) !important; }
body .store-footer .footer-bottom { border-top: 1px solid var(--luna-line); padding-top: 18px !important; }
body .store-footer .footer-bottom .pay-mada { border-radius: 8px !important; transition: transform .35s var(--luna-ease); }
body .store-footer .footer-bottom .pay-mada:hover { transform: translateY(-3px); }
body .store-footer .copyrights p { color: var(--luna-mist) !important; }

/* ---------- 13. Product page ---------- */
body section.product-detail { color: var(--luna-text); }
body section.product-detail .sidebar { top: 140px !important; }
body section.product-detail .product-hero-image {
    position: relative;
    border-radius: var(--luna-r-lg) !important;
    background: var(--luna-surface) !important;
    border: 1px solid var(--luna-line);
    overflow: hidden;
    padding: 14px;
    box-shadow: 0 0 60px -30px rgba(var(--tw-accent-rgb, 139, 124, 246), .5);
}
body section.product-detail .product-hero-image img { border-radius: var(--luna-r) !important; transition: transform .8s var(--luna-ease); }
@media (hover: hover) { body section.product-detail .product-hero-image:hover img { transform: scale(1.04); } }
body section.product-detail .discountPercentage {
    position: absolute;
    bottom: 22px;
    top: auto;
    inset-inline-start: 22px;
    z-index: 3;
    padding: 6px 14px !important;
    border-radius: 10px !important;
    background: var(--luna-rose) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 13px !important;
    box-shadow: 0 0 20px -4px rgba(255, 93, 122, .7);
}
body section.product-detail .thumb-frame,
body section.product-detail .gallery-thumb,
body section.product-detail [class*="thumbnails"] img {
    border-radius: var(--luna-r-sm) !important;
    border: 1px solid var(--luna-line-2) !important;
    background: var(--luna-surface);
    transition: border-color .2s ease;
}
body section.product-detail .thumb-frame.active,
body section.product-detail .gallery-thumb.active { border-color: var(--luna-flame) !important; box-shadow: 0 0 14px -4px rgba(var(--tw-accent-rgb, 139, 124, 246), .8); }
body section.product-detail .swiper-button-next,
body section.product-detail .swiper-button-prev {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50%;
    background: rgba(16, 19, 31, .85);
    border: 1px solid var(--luna-line-2);
    color: var(--luna-text) !important;
    transition: transform .35s var(--luna-bounce), background-color .2s ease;
}
body section.product-detail .swiper-button-next::after,
body section.product-detail .swiper-button-prev::after { font-size: 15px !important; font-weight: 900; }
body section.product-detail .swiper-button-next:hover,
body section.product-detail .swiper-button-prev:hover { transform: scale(1.1); background: var(--luna-flame); color: var(--tw-accent-text, #fff) !important; }
body section.product-detail .wishlist-btn,
body section.product-detail [class*="wishlist"] { color: var(--luna-text) !important; }

body section.product-detail h1 {
    font-family: var(--luna-head);
    font-weight: 600 !important;
    font-size: clamp(23px, 2.5vw, 31px) !important;
    line-height: 1.4 !important;
    color: var(--luna-text) !important;
}
body section.product-detail .s-rating-stars-wrapper i { color: var(--luna-volt) !important; }
body section.product-detail .price { margin-top: 18px !important; }
body section.product-detail .productDetails { gap: 12px !important; align-items: baseline !important; }
body section.product-detail .special-price,
body section.product-detail .price-label,
body section.product-detail .final-price { font-family: var(--luna-head); font-weight: 600 !important; font-size: 30px !important; color: var(--luna-text) !important; }
body section.product-detail .regular-price ~ .special-price { color: var(--luna-volt) !important; }
body section.product-detail .regular-price { color: var(--luna-mist) !important; font-size: 16px !important; }

/* spec rows: a clean spec sheet */
body section.product-detail section.details {
    background: var(--luna-surface) !important;
    border: 1px solid var(--luna-line) !important;
    border-radius: var(--luna-r-sm) !important;
    margin: 0 0 8px !important;
    transition: border-color .25s ease;
}
body section.product-detail section.details:hover { border-color: rgba(var(--tw-accent-rgb, 139, 124, 246), .45) !important; }
body section.product-detail .details__title,
body section.product-detail .details__title * { color: var(--luna-steel) !important; font-weight: 500; }
body section.product-detail .details__action,
body section.product-detail .details__action * { font-weight: 600; color: var(--luna-text) !important; font-family: var(--luna-head); letter-spacing: .02em; }
body section.product-detail .product-metadata.weight,
body section.product-detail .product-metadata.weight * { color: var(--luna-steel) !important; font-size: 13px; }
body section.product-detail .product-metadata.weight { margin: 10px 0; }

/* buy bar */
body section.product-detail .sticky-product-bar {
    border-radius: var(--luna-r) !important;
    background: var(--luna-surface) !important;
    border: 1px solid var(--luna-line);
    box-shadow: var(--luna-shadow) !important;
}
body .s-quantity-input-container {
    border: 1px solid var(--luna-line-2) !important;
    border-radius: 12px !important;
    background: var(--luna-ink-2) !important;
    padding: 3px;
    overflow: hidden;
}
body .s-quantity-input-button {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .06) !important;
    color: var(--luna-text) !important;
    font-weight: 900;
    transition: background-color .2s ease, color .2s ease, transform .3s var(--luna-bounce);
}
body .s-quantity-input-button:hover { background: var(--luna-flame) !important; color: var(--tw-accent-text, #fff) !important; }
body .s-quantity-input-button:active { transform: scale(.88); }
body .s-quantity-input-input { background: transparent !important; font-weight: 700 !important; color: var(--luna-text) !important; border: 0 !important; }
body section.product-detail .sticky-product-bar button[type="submit"] {
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--luna-grad) !important;
    color: #fff !important;
    font-weight: 600 !important;
    min-height: 50px;
    position: relative;
    overflow: hidden;
    transition: transform .3s var(--luna-ease), box-shadow .35s ease !important;
}
body section.product-detail .sticky-product-bar button[type="submit"] * { color: inherit !important; }
body section.product-detail .sticky-product-bar button[type="submit"]:hover { box-shadow: 0 14px 30px -12px rgba(var(--tw-accent-rgb, 139, 124, 246), .95); transform: translateY(-1px); }
body section.product-detail .sticky-product-bar button[type="submit"]:active { transform: scale(.98); }
body section.product-detail .s-quick-buy-button {
    border-radius: 12px !important;
    border: 1px solid rgba(232, 194, 122, .6) !important;
    background: transparent !important;
    color: var(--luna-volt) !important;
    font-weight: 600 !important;
    min-height: 50px;
    transition: background-color .25s ease, color .2s ease, box-shadow .3s ease;
}
body section.product-detail .s-quick-buy-button * { color: inherit !important; }
body section.product-detail .s-quick-buy-button:hover { background: var(--luna-volt) !important; color: var(--luna-night) !important; box-shadow: 0 0 24px -6px rgba(232, 194, 122, .8); }

/* tabs (offers / reviews) */
body section.product-detail .s-product-tabs .nav-tabs { gap: 8px; border: 0 !important; }
body section.product-detail .s-product-tabs .nav-link {
    border-radius: 999px !important;
    background: var(--luna-surface) !important;
    border: 1px solid var(--luna-line-2) !important;
    color: var(--luna-steel) !important;
    font-weight: 500;
    padding: 8px 18px !important;
    transition: background-color .2s ease, color .2s ease;
}
body section.product-detail .s-product-tabs .nav-link * { color: inherit !important; }
body section.product-detail .s-product-tabs .nav-link.active,
body section.product-detail .s-product-tabs .nav-link:hover { background: var(--luna-flame) !important; color: var(--tw-accent-text, #fff) !important; border-color: var(--luna-flame) !important; }
body section.product-detail .s-product-tabs .tab-content {
    margin-top: 12px;
    border-radius: var(--luna-r) !important;
    border: 1px solid var(--luna-line);
    background: var(--luna-surface) !important;
}
body section.product-detail .s-product-tabs .tab-content * { color: var(--luna-text-2); }
body section.product-detail .s-comment-form-content textarea,
body section.product-detail .s-comment-form-input {
    border-radius: var(--luna-r-sm) !important;
    border: 1px solid var(--luna-line-2) !important;
    background: var(--luna-ink-2) !important;
    color: var(--luna-text) !important;
}
body section.product-detail .s-comment-form-content textarea:focus { border-color: var(--luna-flame) !important; outline: none; }
body section.product-detail .comment { border-radius: var(--luna-r-sm); background: var(--luna-surface-2) !important; padding: 12px; }
body section.product-detail #load-more,
body section.product-detail .s-comment-form-content button { border-radius: 999px !important; background: var(--luna-grad) !important; border: 0 !important; color: #fff !important; }

/* ---------- 14. Cart page ---------- */
body .container > .nav-header.bg-gray-100 {
    margin-top: 18px;
    border-radius: var(--luna-r-lg);
    padding: 30px 28px !important;
    background:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .5), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, .35), transparent),
        radial-gradient(80% 140% at 100% 0, rgba(var(--tw-accent-rgb, 139, 124, 246), .35), transparent 60%),
        var(--luna-surface) !important;
    border: 1px solid var(--luna-line);
    color: var(--luna-text);
    position: relative;
    overflow: hidden;
}
html[dir="rtl"] body .container > .nav-header.bg-gray-100 {
    background:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .5), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, .35), transparent),
        radial-gradient(80% 140% at 0 0, rgba(var(--tw-accent-rgb, 139, 124, 246), .35), transparent 60%),
        var(--luna-surface) !important;
}
/* a crescent in the corner */
body .container > .nav-header.bg-gray-100::after {
    content: "";
    position: absolute;
    inset-inline-end: 34px;
    top: 50%;
    width: 64px;
    height: 64px;
    margin-top: -32px;
    border-radius: 50%;
    box-shadow: inset -14px 8px 0 0 var(--luna-volt);
    filter: drop-shadow(0 0 16px rgba(232, 194, 122, .55));
    opacity: .9;
}
body .container > .nav-header.bg-gray-100 h1 { font-family: var(--luna-head); font-weight: 600 !important; font-size: clamp(24px, 2.7vw, 33px) !important; color: var(--luna-text) !important; }
body .container > .nav-header.bg-gray-100 a,
body .container > .nav-header.bg-gray-100 span,
body .container > .nav-header.bg-gray-100 li,
body .container > .nav-header.bg-gray-100 i { color: var(--luna-steel) !important; }

/* tier progress: a glowing light beam */
body .s-conditional-offer-progress-container,
body .s-conditional-offer-container { border-radius: var(--luna-r) !important; background: var(--luna-surface) !important; border: 1px solid var(--luna-line); }
body .s-conditional-offer-progress-container *,
body .s-conditional-offer-container * { color: var(--luna-text-2); }
body .s-conditional-offer-progress-line-container { height: 6px !important; border-radius: 999px; background: rgba(255, 255, 255, .08) !important; overflow: visible; }
body .s-conditional-offer-progress-line-active {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--luna-flame), var(--luna-volt)) !important;
    box-shadow: 0 0 14px rgba(var(--tw-accent-rgb, 139, 124, 246), .8);
}
html[dir="rtl"] body .s-conditional-offer-progress-line-active { background: linear-gradient(270deg, var(--luna-flame), var(--luna-volt)) !important; }
body .s-conditional-offer-checkpoint { background: var(--luna-surface-2) !important; border: 1px solid var(--luna-flame) !important; color: var(--luna-text) !important; font-weight: 600; box-shadow: 0 0 16px -4px rgba(var(--tw-accent-rgb, 139, 124, 246), .6); }
body .s-conditional-offer-title { font-family: var(--luna-head); font-weight: 600; color: var(--luna-text) !important; }

/* items */
body .main-content .cart-item {
    border-radius: var(--luna-r) !important;
    border: 1px solid var(--luna-line);
    background: var(--luna-surface) !important;
    box-shadow: none !important;
    padding: 16px !important;
    transition: border-color .25s ease, box-shadow .35s ease;
}
body .main-content .cart-item * { color: var(--luna-text-2); }
body .main-content .cart-item:hover { border-color: rgba(var(--tw-accent-rgb, 139, 124, 246), .45); box-shadow: 0 0 30px -14px rgba(var(--tw-accent-rgb, 139, 124, 246), .6) !important; }
body .main-content .cart-item img:not(.sar-icon) { border-radius: var(--luna-r-sm) !important; border: 1px solid var(--luna-line) !important; background: var(--luna-surface-3); }
body .main-content .cart-item a { color: var(--luna-text) !important; font-weight: 600; }
body .main-content .cart-item .btn--delete {
    border-radius: 999px !important;
    background: rgba(255, 93, 122, .12) !important;
    color: var(--luna-rose) !important;
    border: 0 !important;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease;
}
body .main-content .cart-item .btn--delete * { color: inherit !important; }
body .main-content .cart-item .btn--delete:hover { background: var(--luna-rose) !important; color: #fff !important; }
body .main-content .cart-item .btn--wishlist { border-radius: 999px !important; }

/* summary */
body .main-content ~ .sticky.top-20 { top: 150px !important; }
body .main-content ~ .sticky.top-20 > div,
body .main-content ~ .sticky.top-20 .shadow-default {
    border-radius: var(--luna-r) !important;
    border: 1px solid var(--luna-line);
    background-color: var(--luna-surface) !important;
    box-shadow: none !important;
}
body .main-content ~ .sticky.top-20 * { color: var(--luna-text-2); }
body .main-content ~ .sticky.top-20 h2,
body .main-content ~ .sticky.top-20 h3,
body .main-content ~ .sticky.top-20 .text-primary { color: var(--luna-text) !important; }
body .main-content ~ .sticky.top-20 .s-loyalty-widget .s-list-tile-item { background: var(--luna-surface-2); border: 1px solid var(--luna-line); border-radius: var(--luna-r); padding: 14px; }
body .main-content ~ .sticky.top-20 .s-list-tile-item-icon { background: var(--luna-grad) !important; color: #fff !important; border-radius: 50% !important; }
body .main-content ~ .sticky.top-20 input.form-input,
body .main-content ~ .sticky.top-20 input.s-form-control,
body .main-content ~ .sticky.top-20 input[type="text"] {
    height: 46px;
    border-radius: 12px !important;
    border: 1px solid var(--luna-line-2) !important;
    background: var(--luna-ink-2) !important;
    color: var(--luna-text) !important;
    transition: border-color .2s ease;
}
body .main-content ~ .sticky.top-20 input:focus { border-color: var(--luna-flame) !important; outline: none; }
body .main-content ~ .sticky.top-20 .btn--coupon { border-radius: 10px !important; background: var(--luna-surface-3) !important; color: var(--luna-volt) !important; border: 1px solid var(--luna-line-2) !important; }
body .main-content ~ .sticky.top-20 .cart-submit-wrap .s-button-primary,
body .main-content ~ .sticky.top-20 .cart-submit-wrap a,
body .main-content ~ .sticky.top-20 .cart-submit-wrap button {
    width: 100%;
    min-height: 54px;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--luna-grad) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 15.5px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: box-shadow .35s ease, transform .3s var(--luna-ease) !important;
}
body .main-content ~ .sticky.top-20 .cart-submit-wrap .s-button-primary *,
body .main-content ~ .sticky.top-20 .cart-submit-wrap a * { color: #fff !important; background: none !important; }
body .main-content ~ .sticky.top-20 .cart-submit-wrap .s-button-primary:hover,
body .main-content ~ .sticky.top-20 .cart-submit-wrap > a:hover { box-shadow: 0 16px 32px -12px rgba(var(--tw-accent-rgb, 139, 124, 246), .95); transform: translateY(-2px); }

/* ---------- 15. Floating bits & dark base fixes ---------- */
body .floating-social .floating-btn { transition: transform .4s var(--luna-bounce) !important; }
body .floating-social .floating-btn:hover { transform: translateY(-3px) scale(1.06) !important; }
body .s-block--best-offers,
body .s-block { scroll-margin-top: 140px; }
body :focus-visible { outline: 2px solid var(--luna-flame) !important; outline-offset: 2px; }
/* Angle's light utility surfaces and text, turned to night */
body .main-container-wrapper,
body main,
body .bg-gray-50,
body .bg-gray-100:not(.nav-header),
body .da-bgg,
body .da-bgs { background-color: transparent !important; }
body .main-container-wrapper .bg-white,
body .da-bgm:not(header *):not(.store-footer *) { background-color: var(--luna-surface) !important; }
body .text-black,
body .text-gray-900,
body .text-gray-800,
body .text-gray-700,
body .da-tm,
body .da-cp { color: var(--luna-text) !important; }
body .text-gray-600,
body .text-gray-500,
body .text-gray-400,
body .da-ts { color: var(--luna-steel) !important; }
body .border-gray-100,
body .border-gray-200,
body .border-gray-300,
body .da-brdr { border-color: var(--luna-line) !important; }
body .main-container-wrapper input:not([type="checkbox"]):not([type="radio"]),
body .main-container-wrapper select,
body .main-container-wrapper textarea,
body .s-modal-container input:not([type="checkbox"]):not([type="radio"]),
body .s-modal-container select,
body .s-modal-container textarea {
    background-color: var(--luna-ink-2) !important;
    color: var(--luna-text) !important;
    border-color: var(--luna-line-2) !important;
}
/* breadcrumbs */
body .breadcrumbs a,
body .breadcrumb a,
body nav[aria-label="breadcrumb"] a { color: var(--luna-steel) !important; }
/* modals (search, login, offers) */
body .s-modal-container .s-modal-wrapper,
body .s-modal-container .s-modal-body,
body .s-modal-container .s-modal-content,
body .s-modal-container [class*="modal-body"] {
    background-color: var(--luna-surface) !important;
    color: var(--luna-text) !important;
    border-color: var(--luna-line) !important;
}
body .s-modal-container .s-modal-overlay { background: rgba(4, 5, 10, .7) !important; }
body .s-modal-container h1,
body .s-modal-container h2,
body .s-modal-container h3,
body .s-modal-container p,
body .s-modal-container label,
body .s-modal-container span { color: var(--luna-text-2); }
/* pagination & listing tools */
body .pagination a,
body .pagination span { background: var(--luna-surface) !important; color: var(--luna-text-2) !important; border-color: var(--luna-line) !important; }
body .pagination .active a,
body .pagination .active span { background: var(--luna-flame) !important; color: var(--tw-accent-text, #fff) !important; }
/* scrollbars */
html { scrollbar-color: var(--luna-surface-3) var(--luna-night); }
body ::-webkit-scrollbar { width: 10px; height: 10px; }
body ::-webkit-scrollbar-track { background: var(--luna-night); }
body ::-webkit-scrollbar-thumb { background: var(--luna-surface-3); border-radius: 10px; border: 2px solid var(--luna-night); }

/* ---------- 16. Responsive & reduced motion ---------- */
@media (min-width: 1024px) {
    body header.store-header .mburger,
    body header.store-header .search-btn.lg\:hidden { display: none !important; }
}
@media (max-width: 1023px) {
    body .floating-social:has(.whatsapp) .floating-btn:not(.whatsapp) { display: none !important; }
    body .floating-social:not(:has(.whatsapp)) .floating-btn:not(:first-child) { display: none !important; }
    body header.store-header .navbar-brand img { max-height: 46px; }
    body header.store-header #mainnav .container > .flex { padding: 4px 0; }
    body section.product-detail .sidebar { top: 90px !important; }
    body .main-content ~ .sticky.top-20 { position: static !important; }
}
/* tablets: the footer's four fixed-width columns overflow the screen — lay them out 2 × 2 */
@media (min-width: 768px) and (max-width: 1023px) {
    body .store-footer .footer-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 32px 28px !important;
        align-items: start;
    }
    body .store-footer .footer-container > div { width: auto !important; max-width: none !important; min-width: 0; }
}
@media (max-width: 767px) {
    body .s-slider-block__title-nav { display: none !important; }
    body .floating-social .floating-btn { width: 46px !important; height: 46px !important; }
    body .store-notify h2 { font-size: 12.5px !important; animation-duration: 17s; }
    body header.store-header #customerLogin,
    body header.store-header .s-cart-summary-wrapper,
    body header.store-header .search-btn,
    body header.store-header .mburger { width: 38px !important; height: 38px !important; border-radius: 10px !important; }
    body header.store-header .s-cart-summary-wrapper { width: auto !important; padding: 0 9px !important; }
    body .product-entry.product-entry--vertical { padding: 6px; }
    body .product-entry .donating-wrap { padding: 10px 4px 2px !important; }
    body .product-entry .product-entry__title a { font-size: 13px; }
    body .product-entry .price-label,
    body .product-entry .price.d-flex,
    body .product-entry .special-price { font-size: 15px; }
    body .product-entry .addToCart { height: 40px !important; font-size: 12.5px !important; }
    body .products-container.grid { gap: 10px !important; }
    /* phone sliders: gaps wide enough that swiper's leftover sliver of the next slide is only transparent border */
    body .mySwiper .banner-square:not(.max--3) { --luna-gap: 8px; padding: 6px 6px 10px !important; border-radius: calc(var(--luna-r) + var(--luna-gap)) / var(--luna-r); }
    body .mySwiper .banner-square:not(.max--3) .box-img { border-radius: 14px !important; }
    body .mySwiper .banner-square:not(.max--3) > div.relative { padding-top: 8px !important; }
    body .mySwiper .banner-square:not(.max--3) h3 { font-size: 13px !important; }
    body .mySwiper .banner-square.max--3 { --luna-gap: 8px; padding: 10px 10px 14px; }
    /* compact feature cards: icon beside the title, text below */
    body .myStoreSwiper .s-block--features__item {
        display: grid !important;
        grid-template-columns: 52px 1fr;
        align-items: center;
        column-gap: 14px;
        row-gap: 8px;
        padding: 18px !important;
    }
    body .myStoreSwiper .feature-icon { width: 52px !important; height: 52px !important; margin: 0 !important; }
    body .myStoreSwiper .feature-icon i { font-size: 22px !important; }
    body .myStoreSwiper .s-block--features__item h2 { font-size: 16px !important; }
    body .myStoreSwiper .s-block--features__item p { grid-column: 1 / -1; margin: 0 !important; font-size: 13px !important; }
    body .container > .nav-header.bg-gray-100 { padding: 22px 18px !important; }
    body .container > .nav-header.bg-gray-100::after { transform: scale(.7); inset-inline-end: 14px; }
    body .store-footer .footer-container { text-align: center; }
    body .store-footer h3::after { inset-inline-start: 50%; translate: 50% 0; }
    html[dir="ltr"] body .store-footer h3::after { translate: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
    body::before, body::after, html::before, html::after { display: none !important; }
    body .store-notify::after { display: none; }
    body .store-notify h2 { animation: none !important; padding-inline-start: 0 !important; white-space: normal; flex: 1 !important; }
    body *, body *::before, body *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
    }
}

/* ---------- Account menu ---------- */
/* the logo bar (account dropdown) sits above the nav / search row, which covered its first item */
body header.store-header #mainnav { position: relative; z-index: 3; }
body header.store-header .inner.nav-header { z-index: 1; }
/* while the menu is open the header rises above the floating social / chat buttons (z 9999) */
body header.store-header:has(.s-user-menu-trigger-slot.active),
body header.store-header:has(.s-user-menu-toggler.opened:not(.hidden)) { z-index: 10050 !important; }

/* phones: a full-width night bottom sheet */
@media (max-width: 767px) {
    body header.store-header .s-user-menu-toggler.opened::before { background: rgba(3, 4, 10, .65) !important; }
    body header.store-header .s-user-menu-dropdown {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        z-index: 10051 !important;
        border: 0 !important;
        border-top: 1px solid var(--luna-line-2) !important;
        border-radius: 24px 24px 0 0 !important;
        background: var(--luna-surface-2) !important;
        box-shadow: 0 -24px 60px rgba(0, 0, 0, .6), 0 -1px 0 rgba(var(--tw-accent-rgb, 139, 124, 246), .35) !important;
        padding-bottom: env(safe-area-inset-bottom);
        animation: luna-sheet .4s var(--luna-ease) both;
    }
    @keyframes luna-sheet { from { transform: translateY(40px); opacity: 0; } }
    body header.store-header .s-user-menu-dropdown::before { content: ""; display: block; width: 44px; height: 5px; margin: 10px auto 0; border-radius: 9px; background: var(--luna-line-2); }
    body header.store-header .s-user-menu-dropdown-header { display: flex !important; align-items: center; padding: 14px 20px !important; background: var(--luna-surface-3) !important; border-bottom: 1px solid var(--luna-line) !important; }
    body header.store-header .s-user-menu-dropdown-header-content p { color: var(--luna-text) !important; font-weight: 700; }
    body header.store-header .s-user-menu-dropdown-header-close { top: 50% !important; transform: translateY(-50%); }
    body header.store-header .s-user-menu-dropdown-header-close svg { fill: var(--luna-text-2) !important; }
    body header.store-header .s-user-menu-dropdown-list { display: block !important; padding: 6px 0 12px !important; }
    body header.store-header .s-user-menu-dropdown-item { display: block !important; }
    body header.store-header .s-user-menu-dropdown-item a { display: flex !important; align-items: center; gap: 12px; padding: 14px 22px !important; font-size: 15px !important; color: var(--luna-text) !important; border-bottom: 1px solid var(--luna-line); }
    body header.store-header .s-user-menu-dropdown-item:last-child a { border-bottom: 0; }
    body header.store-header .s-user-menu-dropdown-item a i { color: var(--luna-flame) !important; }
    body header.store-header .s-user-menu-dropdown-item-logout a,
    body header.store-header .s-user-menu-dropdown-item-logout a i { color: var(--luna-rose) !important; }
}

/* ---------- Phone header: the end buttons (wallet · cart · account) overflowed onto the logo ---------- */
@media (max-width: 767px) {
    /* side columns share the space left and right of the logo instead of a fixed third */
    body header.store-header #mainnav .container > .flex { gap: 6px; }
    body header.store-header #mainnav .container > .flex > .w-1\/3 {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0;
        gap: 5px !important;
    }
    body header.store-header #mainnav .container > .flex > div:nth-child(2) { flex: none; }
    body header.store-header .navbar-brand img { max-width: 92px !important; max-height: 40px !important; }
    /* cart: icon + count only (the total is on the cart page / drawer) */
    body header.store-header .s-cart-summary-content,
    body header.store-header .s-cart-summary-total { display: none !important; }
    body header.store-header :is(#customerLogin, .s-cart-summary-wrapper, .search-btn, .mburger, .s-user-menu-trigger-slot) {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex: none;
        justify-content: center;
    }
    body header.store-header .s-user-menu-wrapper { margin: 0 !important; padding: 0 !important; flex: none; }
    body header.store-header twsaa-cart-summary { flex: none; }
}
@media (max-width: 359px) {
    body header.store-header :is(#customerLogin, .s-cart-summary-wrapper, .search-btn, .mburger, .s-user-menu-trigger-slot) {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
    }
    body header.store-header #mainnav .container > .flex > .w-1\/3 { gap: 4px !important; }
    body header.store-header .navbar-brand img { max-width: 76px !important; }
}

/* =====================================================================
   Footer certificates (VAT / CR / freelance / SBC) — one aligned list
   ===================================================================== */
body .store-footer .footer-container > div:has(.footer-vat) { gap: 12px !important; width: fit-content; max-width: 100%; }
body .store-footer .footer-vat:has(.vat-num) {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 0 !important;
}
body .store-footer .footer-vat:has(.vat-num) > a:first-child {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--luna-line);
}
body .store-footer .footer-vat:has(.vat-num) > a:first-child img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    padding: 0;
    border-radius: 0;
    background: none;
}
body .store-footer .footer-vat:has(.vat-num) > .flex { margin: 0 !important; min-width: 0; }
body .store-footer .footer-vat .vat-num { display: flex; flex-direction: column; gap: 2px; text-align: start; line-height: 1.35; }
body .store-footer .footer-vat .vat-num span { overflow-wrap: anywhere; }
/* app-store badges under the certificates: same start edge */
body .store-footer .footer-container > div > .flex:has(> .footer-vat) { justify-content: flex-start !important; gap: 8px; flex-wrap: wrap; }
body .store-footer .footer-container > div > .flex > .footer-vat { padding: 0 !important; }
@media (max-width: 767px) {
    body .store-footer .footer-container > div:has(.footer-vat) { align-self: center; margin-top: 8px; }
}

/* Certificate popups: the column's scroll-reveal transform made it the containing block
   of the position:fixed modal (clipped, no scroll) — reveal its rows instead of the column */
@supports (animation-timeline: view()) {
    body .store-footer .footer-container > div:has(.twsaa-modal) { animation: none !important; }
    body .store-footer .footer-container > div:has(.twsaa-modal) > :not(.twsaa-modal) {
        animation: luna-rise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 55%;
    }
}
body .store-footer .twsaa-modal.s-modal-container { top: 0 !important; }
body .store-footer .twsaa-modal .s-modal-wrapper {
    height: 100% !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
/* the base 100vh spacer pushed the full-width popup onto a second line, below the screen */
body .store-footer .twsaa-modal .s-modal-spacer { display: none !important; }
body .store-footer .twsaa-modal .s-modal-body {
    max-height: calc(100dvh - 32px);
    overflow-y: auto !important;
    overscroll-behavior: contain;
    margin: 0 !important;
    vertical-align: middle;
    border-radius: 16px !important;
}
body .store-footer .twsaa-modal .s-modal-header {
    position: sticky;
    top: -1px;
    z-index: 2;
    background: var(--luna-surface);
    padding-bottom: 10px;
}
body .store-footer .twsaa-modal .s-modal-body img { height: auto; border-radius: 10px; }

/* search popup: it lives inside the nav bar (z-index 1, under the logo row) inside the sticky header
   (z-index 150, under the store-notify bars) — while it is open, lift both so the input shows on top */
body header.store-header:has(.s-modal-container.in) { z-index: 10050 !important; }
body header.store-header .inner.nav-header:has(.s-modal-container.in) { z-index: 20 !important; }
/* certificate popups sit inside the footer, whose span/p colours made the number dark on the dark popup */
body .store-footer .twsaa-modal .s-modal-body .s-modal-title { color: var(--luna-text) !important; }
body .store-footer .twsaa-modal .s-modal-body .s-modal-sub-title { color: var(--luna-steel) !important; }
body .store-footer .twsaa-modal .s-modal-close,
body .store-footer .twsaa-modal .s-modal-close * { color: var(--luna-text) !important; }

/* ---------- Buy-now popup (#fastCheckOut, checkout/fast/popup) + its add-address popup: dark ----------
   the base CSS paints its panels white while Luna's modal text is light — grey on white. */
body :is(#fastCheckOut, #addressModal) .mini-checkout,
body :is(#fastCheckOut, #addressModal) .mini-checkout__header,
body :is(#fastCheckOut, #addressModal) .mini-checkout__body,
body :is(#fastCheckOut, #addressModal) .summary-widget,
body :is(#fastCheckOut, #addressModal) .summary-widget-open,
body :is(#fastCheckOut, #addressModal) .bg-white { background-color: var(--luna-surface) !important; color: var(--luna-text) !important; }
body #fastCheckOut .mini-checkout__header { padding: 16px; border-bottom: 1px solid var(--luna-line); }
body #fastCheckOut .mini-checkout__body { background-color: var(--luna-surface-2) !important; border: 1px solid var(--luna-line); border-bottom: 0; }
body #fastCheckOut .user-avatar { width: 56px; height: 56px; border-color: var(--luna-line-2); background-color: var(--luna-surface-3); }
/* text: headings white, secondary text steel */
body #fastCheckOut :is(.text-darker-var, h4, b, .cart-total, .item-total, .shipping-total, .vat-total) { color: var(--luna-text) !important; }
body #fastCheckOut :is(.text-darker-100, .text-darker-reverse-var, label, .underline, .add-coupon) { color: var(--luna-text-2) !important; }
body #fastCheckOut .cart-total { color: var(--luna-volt) !important; font-size: 18px; }
body #fastCheckOut .close,
body #fastCheckOut .close * { color: var(--luna-text) !important; opacity: .8; text-shadow: none; }
body #fastCheckOut .close:hover { opacity: 1; }
body #fastCheckOut #list li { border-color: var(--luna-line-2) !important; }
/* the torn-paper edge was a white image: draw it in the panel colour instead */
body #fastCheckOut .summary-widget--bg {
    background-image: none !important;
    background:
        linear-gradient(135deg, var(--luna-surface) 33.3%, transparent 33.3%) 0 0 / 14px 14px repeat-x,
        linear-gradient(225deg, var(--luna-surface) 33.3%, transparent 33.3%) 0 0 / 14px 14px repeat-x !important;
}
/* "order summary" pill */
body #fastCheckOut .summary-widget--toggle { background-color: var(--luna-night) !important; }
body #fastCheckOut .summary-widget--btn {
    background-color: var(--luna-surface-3) !important;
    border-color: var(--luna-line-2) !important;
    color: var(--luna-text) !important;
}
body #fastCheckOut .summary-widget--btn * { color: inherit !important; }
/* payment methods: dark cards, the chosen one ringed in lavender; logos keep a white chip so they stay readable */
body #fastCheckOut .checkout-payment-box {
    background-color: var(--luna-surface-3) !important;
    border: 1px solid var(--luna-line-2) !important;
    border-radius: 12px !important;
    color: var(--luna-text) !important;
    box-shadow: none !important;
}
body #fastCheckOut .checkout-payment-box:has(input:checked) { border-color: var(--luna-flame) !important; box-shadow: 0 0 0 1px var(--luna-flame) !important; }
body #fastCheckOut .checkout-payment-box * { color: var(--luna-text) !important; }
body #fastCheckOut .checkout-payment-img { background: #fff; border-radius: 6px; padding: 2px 4px; }
/* bank transfer details */
body #fastCheckOut .field-list,
body #fastCheckOut .field-list * { background-color: transparent !important; color: var(--luna-text-2) !important; border-color: var(--luna-line-2) !important; }
body #fastCheckOut .field-list b { color: var(--luna-text) !important; }
/* place order */
body #fastCheckOut #pay-now { background: var(--luna-grad) !important; border: 0 !important; color: #fff !important; border-radius: 14px !important; }
body #fastCheckOut #pay-now * { color: #fff !important; }
/* the popup script hides the bank-transfer block with Bootstrap's d-none, which the theme CSS doesn't define */
body #fastCheckOut .d-none { display: none !important; }
/* riyal symbol is a dark image: light on the dark popup */
body #fastCheckOut img.sar-icon { filter: brightness(0) invert(1); }
body #fastCheckOut .cart-total img.sar-icon { filter: brightness(0) invert(82%) sepia(28%) saturate(560%) hue-rotate(358deg) brightness(97%); }
/* bank transfer: upload button readable */
body #fastCheckOut .custom-file-label {
    background: var(--luna-surface-3) !important;
    border: 1px dashed var(--luna-line-2) !important;
    color: var(--luna-text) !important;
    border-radius: 12px !important;
}

/* product page: the image-zoom layer (ezPlus .zoomContainer, z-index 999 inline) covers the photo and sat above
   the header (150), so the menu's dropdowns closed wherever they overlapped the photo — keep it under the header */
body .zoomContainer { z-index: 140 !important; }

/* product page options: the chosen image / colour gets a border (the theme's own image border hid the checked state) */
html body .s-product-options-thumbnails-wrapper label.swatch input:checked + img,
html body .s-product-options-thumbnails-wrapper label.swatch input:checked + span { border: 3px solid var(--tw-accent, #111827) !important; }
