/* =========================================================================
   S.T Accessories — mobile.css
   ضيفيه في <head> "بعد" style.css و i18n-ltr.css (هو مكتوب عشان يغلب عليهم).
   مفيش داعي تعدّلي في style.css ولا main.js.

   الفهرس:
   0. أساسيات (سكرول أفقي / خطوط)
   1. الهيدر + ترتيب الطبقات (z-index)
   2. الهيرو (سلايدر الصورة الرئيسية)
   3. شريط المميزات
   4. عناوين الأقسام
   5. السلايدرات على الموبايل (سحب باللمس)
   6. كروت المنتجات (أزرار المفضلة/المعاينة + النجوم)
   7. سلة المشتريات
   8. البحث + النوافذ (Quick View / Toast)
   9. الفوتر + الأزرار العائمة
   10. لمس فقط (hover) + حركة
   ========================================================================= */

:root { --hero-pos-m: center; }   /* غيّريها لو الصورة محتاجة تركّز على جزء تاني، مثلاً: 70% center */


/* ─────────────────────────────────────────────
   0. أساسيات
   overflow-x:hidden على body كان بيكسر position:sticky للهيدر،
   فبنخليه على html بس وبنستخدم clip على body.
───────────────────────────────────────────── */
html { overflow-x: hidden; max-width: 100%; }
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
    overflow-x: visible;
    max-width: 100%;
    font-family: "lafeef", "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

button, input, select, textarea { font-family: inherit; }

@media (max-width: 768px) {
    .hero {
        height: auto;
        max-height: none;
        aspect-ratio: 432 / 248;      /* نسبة صورتك، عدّلها لو البانر مقاسه مختلف */
        background: var(--cream-300);
    }

    .slide {
        background-size: 100% 100%;   /* الصورة كلها بدون قص */
        background-position: center;
        background-repeat: no-repeat;
    }

    .arrow { display: none; }
    .dots { bottom: 8px; }
}
/* ─────────────────────────────────────────────
   1. الهيدر + الطبقات
   الترتيب: أزرار عائمة 250 < غطاء القائمة 290 < الهيدر 300
            < غطاء البحث 305 < البحث 310 < غطاء السلة 800 < السلة 900 < المعاينة 950
   (الهيدر كان 9990 فكان بيغطي السلة والبحث والمعاينة.)
───────────────────────────────────────────── */
header,
header.sticky-active,
header.nav-is-open {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    z-index: 300 !important;
}
header.scrolled,
header.sticky-active { box-shadow: 0 2px 12px rgba(62, 42, 29, 0.10); }

#headerSpacer { display: none !important; }        /* ملوش لازمة مع sticky */

/* الهيدر ما يصغّرش وقت السكرول (كان بيعمل قفزة في الصفحة) */
.header-row-top,
header.scrolled .header-row-top { height: 100px; }
.logo img,
header.scrolled .logo img { height: 80px; }

/* التوب بار ما يختفيش بـ absolute (كان بيزحّط المحتوى لفوق) */
.top-bar.hidden {
    position: relative;
    top: auto;
    width: auto;
    z-index: 100;
    transform: none;
    opacity: 1;
    pointer-events: auto;
}
.top-bar-viewport:empty { display: none; }
.tb-slide span { overflow: hidden; text-overflow: ellipsis; }

.hamburger { position: relative; }

/* القائمة الجانبية: الغطاء تحت الهيدر (والقائمة جوّه الهيدر) */
.nav-overlay { z-index: 290; }
nav { height: 100vh; height: 100dvh; }

@media (max-width: 991px) {
    .header-row-top,
    header.scrolled .header-row-top { height: 72px; }
    .logo img,
    header.scrolled .logo img { height: 48px; }
    .top-bar-viewport { order: -1; flex: 1 1 100%; max-width: 100%; margin: 0; }
}

@media (max-width: 480px) {
    .header-row-top,
    header.scrolled .header-row-top { height: 62px; }
    .logo img,
    header.scrolled .logo img { height: 40px; }
    .top-bar { padding-top: 4px; padding-bottom: 4px; }
}


/* ─────────────────────────────────────────────
   2. الهيرو
───────────────────────────────────────────── */
.hero { background: var(--cream-300); }          /* مكان الصورة قبل ما تتحمّل */

@media (max-width: 768px) {
    .hero { height: clamp(320px, 86vw, 480px); }

    .slide { background-position: var(--hero-pos-m); }

    /* تدرّج غامق تحت النص عشان يتقري على أي صورة */
    .slide:has(.hero-content)::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 5;
        pointer-events: none;
        background: linear-gradient(to top, rgba(24, 14, 8, 0.66) 0%, rgba(24, 14, 8, 0.2) 52%, rgba(24, 14, 8, 0) 100%);
    }

    .hero-content {
        top: auto;
        bottom: 44px;
        right: 16px;
        left: 16px;
        transform: none;
        max-width: none;
        text-align: center;
    }
    .hero-content .hc-subtitle { font-size: 11px; padding: 5px 14px; margin-bottom: 8px; }
    .hero-content .hc-title    { font-size: clamp(20px, 6.4vw, 30px); margin-bottom: 12px; }
    .hero-content .hc-btn      { padding: 10px 26px; font-size: 14px; gap: 8px; }

    .arrow {
        width: 34px;
        height: 34px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.85);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    }
    .prev { right: 8px; }
    .next { left: 8px; }
    .dots { bottom: 14px; }
}

@media (max-width: 380px) {
    .hero { height: clamp(300px, 92vw, 400px); }
    .hero-content { bottom: 40px; }
}


/* ─────────────────────────────────────────────
   3. شريط المميزات
   (الفواصل .divider موجودة بين العناصر فبنحسب المواضع 1 و3 و5 و7)
───────────────────────────────────────────── */
@media (max-width: 991px) {
    .features .divider { display: none; }
    .feature-item {
        border: 0 !important;
        border-bottom: 1px solid #E1D6BF !important;
    }
    .feature-item:nth-child(1),
    .feature-item:nth-child(5) { border-left: 1px solid #E1D6BF !important; }
    .feature-item:nth-child(n+5) { border-bottom: 0 !important; }
}

@media (max-width: 480px) {
    .feature-item:nth-child(1),
    .feature-item:nth-child(5) { border-left: 0 !important; }
    .feature-item:nth-child(5) { border-bottom: 1px solid #E1D6BF !important; }
    .feature-item:last-child   { border-bottom: 0 !important; }
}


/* ─────────────────────────────────────────────
   4. عناوين الأقسام
───────────────────────────────────────────── */
@media (max-width: 480px) {
    .section-header i { display: none; }             /* ريش الزينة كانت بتزنق العنوان */
    .section-header { margin-bottom: 26px; }
    .section-header h2::before,
    .section-header h2::after { width: 22px; }
    .ll-section-header h2::before,
    .ll-section-header h2::after,
    .rev-head h2::before,
    .rev-head h2::after { width: 20px; }
}


/* ─────────────────────────────────────────────
   5. السلايدرات
   (أ) الشاشات الكبيرة: عرض الكارت والمسافة لازم يطابقوا الأرقام اللي في main.js
       (كارت 300px + مسافة 24px، وللبانرات مسافة 25px) وإلا السلايدر بيتزحزح.
   (ب) الموبايل: بدل الأسهم بنستخدم سحب طبيعي بالإصبع مع snap.
───────────────────────────────────────────── */
.promo-track-outer { padding-left: 0; padding-right: 0; }   /* كان بيقص 20px من الكارت */
#catTrackOuter { padding-left: 0 !important; padding-right: 0 !important; }

@media (min-width: 769px) {
    .na-card, .llc { width: 300px; }
    .na-track, .ll-track { gap: 24px; }
    .promo-container { gap: 25px; }
}

@media (max-width: 768px) {
    .na-slider-wrapper,
    .ll-slider-wrapper,
    .promo-slider-wrapper { margin-left: 0; margin-right: 0; }

    .na-arrow, .ll-arrow, .promo-arrow, .cat-arrow { display: none !important; }

    .na-track-outer,
    .ll-track-outer,
    .promo-track-outer,
    #catTrackOuter {
        overflow-x: auto !important;
        overflow-y: hidden;
        display: block !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-top: 10px;
        padding-bottom: 20px;
    }
    .na-track-outer::-webkit-scrollbar,
    .ll-track-outer::-webkit-scrollbar,
    .promo-track-outer::-webkit-scrollbar,
    #catTrackOuter::-webkit-scrollbar { display: none; }

    .na-track, .ll-track, .promo-container, #catTrack {
        transform: none !important;
        transition: none !important;
    }
    .na-track, .ll-track { gap: 12px; }
    .promo-container { gap: 14px; }

    .na-card { width: min(68vw, 250px); scroll-snap-align: start; }
    .llc     { width: min(58vw, 220px); scroll-snap-align: start; }
    .promo-card { width: min(88vw, 440px) !important; scroll-snap-align: center; }
    #catTrack .category-card { scroll-snap-align: start; }

    .promo-glow, .sama-promo-glow { display: none; }
}


/* ─────────────────────────────────────────────
   6. كروت المنتجات
   (main.js بيطلّع .na-wish و .na-quickview و .na-stars ومكانش ليهم ستايل)
───────────────────────────────────────────── */
.na-wish,
.na-quickview {
    position: absolute;
    bottom: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brown-800);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 3;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}
.na-wish      { right: 10px; }
.na-quickview { left: 10px; }
.na-wish:hover,
.na-quickview:hover { background: var(--brown-700); color: #fff; }

.na-wish.is-active,
.llc-wish.is-active { color: var(--danger); }
.na-wish.is-active:hover { color: #fff; }

.na-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 6px;
    color: #e8b84b;
    font-size: 13px;
}
.na-rcount { color: #999; font-size: 12px; margin-right: 4px; }

/* أقسام الهوم الديناميكية (كانت من غير حواف وبكارت واحد في الصف) */
#dynamicSections { padding: 0 var(--pad-x); }
@media (max-width: 768px) {
    #dynamicSections section > div:nth-child(2) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    #dynamicSections img { height: auto !important; aspect-ratio: 4 / 5; }
}


/* ─────────────────────────────────────────────
   7. سلة المشتريات
───────────────────────────────────────────── */
.cd-remove-btn {                                   /* main.js بيستخدم الاسم ده والستايل كان .cd-remove بس */
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: #fce4e4;
    color: #c62828;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.cd-remove-btn:hover { background: #f5c6c6; }

@media (max-width: 768px) {
    .cd-qty-btn { width: 36px; height: 36px; }
    .cd-qty-val { width: 40px; }
    .cd-close   { width: 40px; height: 40px; }
    .cd-items   { padding: 10px 16px; }
    .cd-head, .cd-ship-bar, .cd-foot { padding-left: 16px; padding-right: 16px; }
}


/* ─────────────────────────────────────────────
   8. البحث + النوافذ
───────────────────────────────────────────── */
/* 16px عشان iOS ما يعملش zoom لما تدوسي على خانة كتابة */
@media (max-width: 768px) {
    .search-input-wrap input,
    .footer-newsletter input { font-size: 16px; }

    .qv-modal { width: 94vw; max-height: 90dvh; border-radius: 16px; }
    .qv-image { min-height: 260px; height: 260px; }
    .qv-close { width: 42px; height: 42px; }
    .qv-qty-btn { width: 42px; height: 42px; }

    #toast-msg {
        white-space: normal !important;
        max-width: 88vw;
        text-align: center;
        bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    }
}


/* ─────────────────────────────────────────────
   9. الفوتر + الأزرار العائمة
───────────────────────────────────────────── */
.wa-float, .btt-btn { z-index: 250; }

@media (max-width: 991px) {
    .footer-bottom { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

@media (max-width: 480px) {
    .site-footer { padding-bottom: 70px; }           /* مساحة للأزرار العائمة */
}


/* ─────────────────────────────────────────────
   10. أجهزة اللمس (مفيش hover حقيقي) + تقليل الحركة
───────────────────────────────────────────── */
@media (hover: none) {
    .na-card:hover,
    .llc:hover,
    .category-card:hover,
    .promo-card:hover,
    .ws-card:hover,
    .rv-card:hover,
    .sama-about-card:hover,
    .sama-promo-image-box:hover { transform: none; }

    .category-card:hover .category-arch img,
    .na-card:hover .na-img-wrap img,
    .llc:hover .llc-img img { transform: none; }
}

@media (max-width: 768px) {
    .sama-promo-bottom i { animation: none; }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        aspect-ratio: var(--hero-ar, 16 / 9);
        max-height: 78vh;
    }

    .slide { background-position: var(--hero-pos-m); }

    /* الأسهم كانت بتغطي الصورة والنص: السحب بالإصبع + النقط كفاية */
    .arrow { display: none; }
    .dots { bottom: 10px; }

    /* لو البانر فيه نص/زرار HTML (مش مرسوم في الصورة) نضمن إنه يتقري */
    .slide:has(.hero-content)::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 5;
        pointer-events: none;
        background: linear-gradient(to top, rgba(24, 14, 8, 0.66) 0%, rgba(24, 14, 8, 0.2) 52%, rgba(24, 14, 8, 0) 100%);
    }
    .hero-content {
        top: auto;
        bottom: 34px;
        right: 16px;
        left: 16px;
        transform: none;
        max-width: none;
        text-align: center;
    }
    .hero-content .hc-subtitle { font-size: 11px; padding: 5px 14px; margin-bottom: 8px; }
    .hero-content .hc-title    { font-size: clamp(18px, 5.6vw, 28px); margin-bottom: 10px; }
    .hero-content .hc-btn      { padding: 9px 24px; font-size: 13px; gap: 8px; }
}
/* ===== HERO: نسبة ثابتة لكل الصور ===== */
:root { --hero-ratio: 12 / 5; }          /* نسبة 1440×600، غيّرها لو بانراتك بنسبة تانية */

.hero {
    display: block;
    position: relative;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: var(--hero-ratio) !important;
    background: var(--cream-300);
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: none;
}

.slide-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;          /* لو الصورة بنفس النسبة مفيش أي قص */
    object-position: center;
    image-rendering: auto;
    user-select: none;
    -webkit-user-drag: none;
}

/* الموبايل: نسبة أطول شوية عشان الصورة والنص يبانوا أكبر */
@media (max-width: 768px) {
    :root { --hero-ratio: 4 / 3; }
}

@media (max-height: 480px) and (orientation: landscape) {
    .hero { height: auto !important; }
}
   .hero-content { display: none; }
   /* ═══════════ LUXURY TOKENS ═══════════ */
:root {
    --lux-gold: #B58A52;
    --lux-gold-light: #D9BC8A;
    --lux-brown: #2A1B12;
}

.lux-kicker {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .5em;
    color: var(--lux-gold);
    margin-bottom: 10px;
    padding-inline-start: .5em;
}

.lux-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 14px 0 0;
}
.lux-ornament span {
    width: clamp(50px, 9vw, 110px);
    height: 1px;
    background: linear-gradient(to left, transparent, var(--lux-gold));
}
.lux-ornament span:last-child { background: linear-gradient(to right, transparent, var(--lux-gold)); }
.lux-ornament i { color: var(--lux-gold); font-style: normal; font-size: 12px; }

/* ═══════════ 1) PROMO SECTION ═══════════ */
.lux-promo {
    padding: clamp(50px, 7vw, 100px) var(--pad-x);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(181,138,82,.10), transparent 60%),
        var(--cream-100);
    overflow: hidden;
}
.lux-promo-wrap { width: min(1240px, 100%); margin: 0 auto; text-align: center; }

.lux-head { margin-bottom: clamp(28px, 4vw, 48px); }
.lux-head h2 {
    font-size: clamp(30px, 4.4vw, 54px);
    font-weight: 400;
    color: var(--lux-brown);
    line-height: 1.25;
}
.lux-head h2 em {
    font-style: normal;
    background: linear-gradient(120deg, #8A6A3A, #C9A672 50%, #8A6A3A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lux-head p {
    margin-top: 16px;
    font-size: clamp(13px, 1.4vw, 16px);
    color: var(--muted);
}

/* الإطار الذهبي */
.lux-frame {
    position: relative;
    display: block;
    padding: clamp(8px, 1.1vw, 14px);
    border-radius: 28px;
    background: linear-gradient(135deg, #E3C592, #B58A52 45%, #E9D3A8 70%, #A6875F);
    box-shadow: 0 30px 70px rgba(62,42,29,.22), 0 6px 18px rgba(62,42,29,.10);
    transition: transform .6s var(--ease), box-shadow .6s ease;
}
.lux-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 44px 90px rgba(62,42,29,.28), 0 8px 22px rgba(62,42,29,.12);
}

.lux-img { position: relative; overflow: hidden; border-radius: 20px; background: #ead4b6; }
.lux-img img {
    width: 100%;
    height: auto;
    transition: transform 1.2s var(--ease);
}
.lux-frame:hover .lux-img img { transform: scale(1.03); }

/* لمعة تعدي على الصورة */
.lux-shine {
    position: absolute;
    top: 0; bottom: 0;
    width: 40%;
    left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}
.lux-frame:hover .lux-shine { left: 130%; transition: left 1.1s ease; }

/* زوايا زخرفية */
.lux-corner {
    position: absolute;
    width: 26px; height: 26px;
    border: 2px solid var(--cream-100);
    z-index: 3;
    pointer-events: none;
    opacity: .9;
}
.lux-corner.tl { top: 22px; right: 22px; border-width: 2px 2px 0 0; }
.lux-corner.tr { top: 22px; left: 22px;  border-width: 2px 0 0 2px; }
.lux-corner.bl { bottom: 22px; right: 22px; border-width: 0 2px 2px 0; }
.lux-corner.br { bottom: 22px; left: 22px;  border-width: 0 0 2px 2px; }

/* زرار */
.lux-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: clamp(28px, 4vw, 44px);
    padding: 15px 38px;
    border-radius: 60px;
    background: linear-gradient(135deg, #3E2A1D, #2A1B12);
    color: #F3E4C8;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: .02em;
    box-shadow: 0 14px 30px rgba(42,27,18,.28), inset 0 0 0 1px rgba(217,188,138,.35);
    transition: gap .3s, transform .3s, box-shadow .3s;
}
.lux-cta:hover { gap: 18px; transform: translateY(-3px); box-shadow: 0 20px 40px rgba(42,27,18,.36), inset 0 0 0 1px var(--lux-gold-light); }

/* ═══════════ 2) BEST SELLERS ═══════════ */
.ll {
    padding: clamp(50px, 7vw, 100px) var(--pad-x);
    background: #F7F2E7;
    position: relative;
}
.ll::before {                      /* خط ذهبي رفيع في أعلى القسم */
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: min(240px, 40%);
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--lux-gold), transparent);
}

.ll-section-header {
    flex-direction: column;
    gap: 0;
    text-align: center;
    margin-bottom: 8px;
}
.ll-section-header h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    color: var(--lux-brown);
}
.ll-section-header h2::before,
.ll-section-header h2::after { display: none; }   /* الخطوط بقت في الـ ornament */

.ll-view-all {
    position: static;
    transform: none;
    margin-top: 16px;
}
.ll-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 24px;
    border: 1.5px solid var(--lux-gold);
    border-radius: 40px;
    color: var(--brown-700);
    font-size: 13.5px;
    font-weight: 400;
    transition: background .3s, color .3s, gap .3s;
}
.ll-view-all a:hover { background: var(--brown-700); border-color: var(--brown-700); color: #F3E4C8; gap: 13px; }

/* كروت المنتجات */
.llc {
    border-radius: 18px;
    overflow: hidden;
    background: #F7F2E7;
    border: 1px solid rgba(181,138,82,.18);
    box-shadow: 0 8px 26px rgba(62,42,29,.07);
    transition: transform .4s var(--ease), box-shadow .4s ease, border-color .4s;
}
.llc:hover {
    transform: translateY(-8px);
    border-color: rgba(181,138,82,.55);
    box-shadow: 0 24px 50px rgba(62,42,29,.16);
}
.llc-img { aspect-ratio: 4 / 5; }
.llc-info { padding: 18px 16px 20px; }
.llc-name { font-size: 15px; letter-spacing: .01em; }
.llc-price {
    font-size: 17px;
    color: var(--lux-gold);
    margin-bottom: 14px;
}
.llc-bottom-row { justify-content: center; gap: 12px; }
.llc-cart-btn {
    width: 40px; height: 40px;
    border-color: rgba(181,138,82,.55);
    color: var(--brown-700);
}
.llc-cart-btn:hover { background: var(--brown-700); border-color: var(--brown-700); color: #F3E4C8; }

.llc-wish { background: #F7F2E7; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.llc-badge { border-radius: 30px; letter-spacing: .04em; box-shadow: 0 4px 12px rgba(0,0,0,.15); }

/* أسهم السلايدر */
.ll-arrow {
    width: 46px; height: 46px;
    border: 1.5px solid rgba(181,138,82,.5);
    background: #fff;
}
.ll-arrow:hover { background: var(--brown-700); border-color: var(--brown-700); color: #F3E4C8; }

/* ═══════════ موبايل ═══════════ */
@media (max-width: 768px) {
    .lux-frame { border-radius: 18px; padding: 6px; }
    .lux-img { border-radius: 13px; }
    .lux-corner { display: none; }
    .lux-cta { padding: 13px 30px; font-size: 14px; }
    .lux-kicker { font-size: 10px; letter-spacing: .4em; }
    .llc { border-radius: 14px; }
    .llc:hover, .lux-frame:hover { transform: none; }
    .llc-info { padding: 14px 10px 16px; }
    .llc-cart-btn { width: 36px; height: 36px; }
}
.sama-about-card .sama-icon-ring,
.sama-about-card .sama-orbit-dot { animation-play-state: paused; }

.sama-about-card:hover .sama-icon-ring,
.sama-about-card:hover .sama-orbit-dot { animation-play-state: running; }
/* ============================================================
   FINAL HERO FIX
   البانر يظهر بالكامل على جميع الأجهزة بدون قص أو تشويه
   ============================================================ */

.hero {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 12 / 5 !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #f5f1ed !important;
}

.slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    background-image: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.slide.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.slide-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #f5f1ed !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-content {
    display: none !important;
}

/* الكمبيوتر */
@media (min-width: 769px) {
    .hero {
        aspect-ratio: 12 / 5 !important;
    }

    .slide-img {
        object-fit: contain !important;
    }
}

/* التابلت */
@media (min-width: 481px) and (max-width: 768px) {
    .hero {
        aspect-ratio: 12 / 5 !important;
    }

    .slide-img {
        object-fit: contain !important;
    }

    .arrow {
        display: none !important;
    }
}

/* الموبايل */
@media (max-width: 480px) {
    .hero {
        width: 100% !important;
        aspect-ratio: 12 / 5 !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
    }

    .slide {
        width: 100% !important;
        height: 100% !important;
    }

    .slide-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    .arrow {
        display: none !important;
    }

    .dots {
        bottom: 8px !important;
    }
}

/* الشاشات الصغيرة جدًا */
@media (max-width: 360px) {
    .hero {
        aspect-ratio: 12 / 5 !important;
    }
}


/* ============================================================
   HERO FINAL — الصورة بدون فراغ علوي أو قص
   ============================================================ */

.hero {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    background: transparent !important;
}

.slide {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    background: transparent !important;
}

.slide:not(.active) {
    position: absolute !important;
    inset: 0 !important;
}

.slide.active {
    opacity: 1 !important;
}

.slide-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center top !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.hero-content {
    display: none !important;
}

@media (max-width: 768px) {
    .hero {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: auto !important;
    }

    .slide-img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        object-position: center top !important;
    }

    .arrow {
        display: none !important;
    }
}


/* =========================================================
   SAMA TAREK — MOBILE HEADER CLEAN VERSION
   ========================================================= */

@media (max-width: 768px) {

    header {
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
        width: 100% !important;
        background: #f8f5ee !important;
    }

    /* الهيدر */
    header .header-row-top {
        position: relative !important;
        width: 100% !important;
        height: 68px !important;
        min-height: 68px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        overflow: visible !important;
    }

    /* =====================================================
       اللوجو — المنتصف الحقيقي
       ===================================================== */

    header .logo-group {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;

        width: 92px !important;
        height: 48px !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: translate(-50%, -50%) !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        z-index: 20 !important;
    }

    header .logo {
        width: 92px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    header .logo img,
    header.scrolled .logo img {
        display: block !important;
        width: 92px !important;
        max-width: 92px !important;
        height: auto !important;
        max-height: 38px !important;
        object-fit: contain !important;
    }

    /* =====================================================
       نخفي البحث القديم والـ NAV
       ===================================================== */

    header .header-search-wrap {
        display: none !important;
    }

    header .header-row-nav {
        height: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* =====================================================
       مجموعة الأيقونات
       ===================================================== */

    header .header-icons-group {
        position: absolute !important;
        inset: 0 !important;

        width: 100% !important;
        height: 68px !important;

        margin: 0 !important;
        padding: 0 !important;

        display: block !important;

        pointer-events: none !important;

        z-index: 50 !important;
    }

    header .header-icons-group > * {
        position: absolute !important;
        top: 50% !important;

        transform: translateY(-50%) !important;

        margin: 0 !important;
        padding: 0 !important;

        pointer-events: auto !important;

        box-sizing: border-box !important;
    }

    /* =====================================================
       اليسار
       🛍️   ♡   👤
       ===================================================== */

    /* السلة */
    header .header-icons-group .hi-cart {
        left: 7px !important;
        right: auto !important;

        width: 30px !important;
        min-width: 30px !important;
        height: 40px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* المفضلة */
    header .header-icons-group .hi-wish {
        left: 43px !important;
        right: auto !important;

        width: 30px !important;
        min-width: 30px !important;
        height: 40px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* الحساب */
    header .header-icons-group .hi-account:not(.mobile-search-icon) {
        left: 79px !important;
        right: auto !important;

        width: 30px !important;
        min-width: 30px !important;
        height: 40px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* =====================================================
       اليمين
       EN   🔍   ☰
       ===================================================== */

    /* EN */
    header .header-icons-group .lang-toggle-btn {
        right: 92px !important;
        left: auto !important;

        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        border: 1px solid #d8cbbb !important;
        border-radius: 9px !important;

        background: #f8f5ee !important;

        color: #30231d !important;

        font-size: 11px !important;
        font-weight: 400 !important;

        z-index: 60 !important;
    }

    /* البحث */
    header .header-icons-group .mobile-search-icon {
        right: 49px !important;
        left: auto !important;

        width: 30px !important;
        min-width: 30px !important;
        height: 40px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        z-index: 60 !important;
    }

    /* =====================================================
       زر القائمة
       ===================================================== */

    header .logo-group .hamburger {
        position: fixed !important;

        top: 34px !important;
        right: 7px !important;

        width: 36px !important;
        height: 36px !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: translateY(-50%) !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        border-radius: 50% !important;

        background: #fffdf9 !important;
        border: 1px solid #d9cec2 !important;

        z-index: 100 !important;
    }

    header .logo-group .hamburger .ic {
        width: 19px !important;
        height: 19px !important;
    }

    /* =====================================================
       حجم الأيقونات
       ===================================================== */

    header .header-icons-group .ic {
        display: block !important;

        width: 21px !important;
        height: 21px !important;

        color: #30231d !important;
    }

    /* نخفي النصوص ونُبقي SVG */
    header .header-icons-group .hi-account > span:not(.hi-badge),
    header .header-icons-group .hi-wish > span:not(.hi-badge),
    header .header-icons-group .hi-cart #cartTotalDisplay {
        display: none !important;
    }

    /* =====================================================
       الشارات
       ===================================================== */

    header .header-icons-group .hi-badge {
        display: flex !important;

        position: absolute !important;

        top: -5px !important;
        right: -4px !important;

        min-width: 14px !important;
        width: auto !important;
        height: 14px !important;

        padding: 0 3px !important;

        align-items: center !important;
        justify-content: center !important;

        border-radius: 50% !important;

        font-size: 8px !important;
        line-height: 14px !important;
    }
}


/* =========================================================
   شاشات 480px وأقل
   ========================================================= */

@media (max-width: 480px) {

    header .header-row-top {
        height: 64px !important;
        min-height: 64px !important;
    }

    header .header-icons-group {
        height: 64px !important;
    }

    header .logo-group {
        width: 88px !important;
        height: 44px !important;
    }

    header .logo,
    header .logo img,
    header.scrolled .logo img {
        width: 88px !important;
        max-width: 88px !important;
    }

    header .logo img,
    header.scrolled .logo img {
        max-height: 35px !important;
    }

    /* اليسار */
    header .header-icons-group .hi-cart {
        left: 5px !important;
    }

    header .header-icons-group .hi-wish {
        left: 39px !important;
    }

    header .header-icons-group .hi-account:not(.mobile-search-icon) {
        left: 73px !important;
    }

    /* اليمين */
    header .header-icons-group .lang-toggle-btn {
        right: 87px !important;
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
    }

    header .header-icons-group .mobile-search-icon {
        right: 45px !important;
    }

    header .logo-group .hamburger {
        top: 32px !important;
        right: 5px !important;

        width: 34px !important;
        height: 34px !important;
    }

    header .logo-group .hamburger .ic {
        width: 18px !important;
        height: 18px !important;
    }

    header .header-icons-group .ic {
        width: 20px !important;
        height: 20px !important;
    }
}


/* =========================================================
   FINAL MOBILE HEADER — HAMBURGER BESIDE SEARCH
   ========================================================= */

@media (max-width: 768px) {

    /* زر القائمة أصبح خارج logo-group */
    header .header-row-top > .hamburger {
        position: absolute !important;

        top: 50% !important;
        right: 7px !important;
        left: auto !important;

        width: 36px !important;
        height: 36px !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: translateY(-50%) !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        border-radius: 50% !important;

        background: #fffdf9 !important;
        border: 1px solid #d9cec2 !important;

        z-index: 99999 !important;
    }

    header .header-row-top > .hamburger .ic {
        width: 19px !important;
        height: 19px !important;
    }

    /* البحث قبله مباشرة */
    header .header-icons-group .mobile-search-icon {
        right: 50px !important;
        left: auto !important;
    }

    /* EN قبل البحث */
    header .header-icons-group .lang-toggle-btn {
        right: 92px !important;
        left: auto !important;
    }

    /* اللوجو أصغر شوية */
    header .logo img,
    header.scrolled .logo img {
        width: 92px !important;
        max-width: 92px !important;
        max-height: 36px !important;
    }
}

@media (max-width: 480px) {

    header .header-row-top > .hamburger {
        right: 5px !important;
        width: 34px !important;
        height: 34px !important;
    }

    header .header-row-top > .hamburger .ic {
        width: 18px !important;
        height: 18px !important;
    }

    header .header-icons-group .mobile-search-icon {
        right: 44px !important;
    }

    header .header-icons-group .lang-toggle-btn {
        right: 84px !important;
    }

    header .logo img,
    header.scrolled .logo img {
        width: 88px !important;
        max-width: 88px !important;
    }
}










/* =========================================================
   MOBILE MENU — UNIFIED SINGLE SOURCE OF TRUTH
   (replaces all previous conflicting menu CSS blocks)
   ========================================================= */
@media (max-width: 991px) {

    header {
        position: relative !important;
        z-index: 100000 !important;
    }

    header.nav-is-open {
        position: relative !important;
        z-index: 100020 !important;
    }

    header .header-row-top > .hamburger,
    header .header-row-top > #hamburgerBtn {
        position: absolute !important;
        top: 50% !important;
        right: 8px !important;
        left: auto !important;
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: translateY(-50%) !important;
        background: #fffdf9 !important;
        border: 1px solid #d8cdbf !important;
        border-radius: 50% !important;
        z-index: 100005 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    header .header-row-top > .hamburger .ic,
    header .header-row-top > #hamburgerBtn .ic {
        display: block !important;
        width: 19px !important;
        height: 19px !important;
        color: #30231d !important;
        pointer-events: none !important;
    }

    header .header-icons-group {
        position: relative !important;
        z-index: 100003 !important;
    }

    header .header-icons-group .mobile-search-icon {
        position: absolute !important;
        right: 58px !important;
        left: auto !important;
        z-index: 100001 !important;
    }

    header .header-icons-group .lang-toggle-btn {
        position: absolute !important;
        right: 100px !important;
        left: auto !important;
        z-index: 100001 !important;
    }

    header #mainNav {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: min(300px, 86vw) !important;
        height: 100dvh !important;
        background: #fffdf8 !important;
        padding: 90px 0 30px !important;
        transform: translateX(110%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        overflow-y: auto !important;
        z-index: 100010 !important;
        display: block !important;
        box-shadow: -8px 0 30px rgba(0,0,0,.12) !important;
        transition:
            transform .3s ease,
            opacity .25s ease,
            visibility .25s ease !important;
    }

    header #mainNav.open {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    header #mainNav ul {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 15px 18px !important;
        gap: 5px !important;
        list-style: none !important;
    }

    header #mainNav li {
        width: 100% !important;
        display: block !important;
    }

    header #mainNav li a {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 52px !important;
        padding: 14px 18px !important;
        color: #30231d !important;
        background: transparent !important;
        font-size: 16px !important;
        font-weight: 400 !important;
        text-decoration: none !important;
        border-bottom: 1px solid #e9dfd3 !important;
    }

    header #mainNav li a:hover,
    header #mainNav li a.active {
        background: #f5eee4 !important;
        color: #30231d !important;
    }

    #navOverlay,
    .nav-overlay {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0,0,0,.45) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        z-index: 100009 !important;
        pointer-events: none !important;
        transition:
            opacity .25s ease,
            visibility .25s ease !important;
    }

    #navOverlay.open,
    .nav-overlay.open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 991px) {
    .nav-close-btn {
        position: absolute;
        top: 20px;
        left: 20px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5eee4;
        border: none;
        border-radius: 50%;
        color: #30231d;
        cursor: pointer;
        z-index: 5;
    }
    .nav-close-btn:hover { background: #e9dfd3; }
}

#navOverlay.open ~ #topBar {
    visibility: hidden !important;
    opacity: 0 !important;
}

@media (max-width: 991px) {
    .nav-close-btn {
        position: absolute !important;
        top: 24px !important;
        left: 24px !important;
        right: auto !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #fff !important;
        border: 1px solid #ede8e4 !important;
        border-radius: 50% !important;
        color: #30231d !important;
        cursor: pointer !important;
        box-shadow: 0 2px 10px rgba(0,0,0,.1) !important;
        z-index: 5 !important;
    }
    .nav-close-btn:hover { background: #f5eee4 !important; }
    .nav-close-btn svg { width: 18px !important; height: 18px !important; }
}

/* ===================================================
   FINAL FIX: ترتيب نهائي وحاسم لطبقات القائمة على الموبايل
   =================================================== */
@media (max-width: 991px) {
    header.nav-is-open {
        z-index: 500 !important;
    }
    #navOverlay,
    .nav-overlay {
        z-index: 9998 !important;
    }
    #mainNav {
        z-index: 9999 !important;
        pointer-events: auto !important;
    }
    #mainNav a,
    #mainNav button,
    #mainNav li {
        position: relative !important;
        z-index: 2 !important;
        pointer-events: auto !important;
    }
}
