/* Add custom CSS styles below */

/* ===========================================
   إعدادات عامة
=========================================== */
:root {
    --header-offset: 170px;
}

html, body {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* تعويض مساحة الهيدر الثابت */
body {
    padding-top: var(--header-offset);
}

/* ===========================================
   إخفاء شريط البحث/البار العلوي في سلة
=========================================== */
.s-topbar,
.s-topbar *,
.topbar,
.topbar * {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* ===========================================
   الهيدر: شفاف + ثابت + يخفي عند النزول
=========================================== */
.s-header,
.store-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999 !important;

    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition: transform 0.35s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.s-header__wrapper,
.s-header__nav,
.store-header__wrapper,
.store-header__nav,
.s-header__inner,
.store-header__inner,
.navbar,
.navbar-inner,
.header-inner,
.header-wrapper {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.s-header *,
.store-header * {
    background: transparent !important;
    background-color: transparent !important;
}

/* عند التمرير */
.s-header.scrolled,
.store-header.scrolled {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

/* إخفاء الهيدر عند النزول */
.s-header.is-hidden,
.store-header.is-hidden {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}

/* ===========================================
   توسيط اللوجو
=========================================== */
.s-header .logo,
.s-header__logo,
.store-header .logo,
.store-header__logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* ===========================================
   روابط الهيدر (Ultra Premium Hover)
=========================================== */
.s-header a,
.s-header__nav a,
.store-header a {
    color: #000000 !important;
    font-weight: 700;
    position: relative;
    display: inline-block;
    transition: all 0.4s ease;
}

/* ✨ Hover احترافي جداً */
.s-header a:hover,
.s-header__nav a:hover,
.store-header a:hover {
    color: #d8b4fe !important;

    transform: translateY(-6px) scale(1.08);

    text-shadow:
        0 0 8px rgba(200, 162, 255, 0.9),
        0 0 18px rgba(192, 132, 252, 0.7),
        0 0 28px rgba(168, 85, 247, 0.5);

    filter: brightness(1.15);
}

/* خط متدرج فاخر */
.s-header a::after,
.s-header__nav a::after,
.store-header a::after {
    content: "";
    position: absolute;
    left: 10%;
    bottom: -6px;
    width: 80%;
    height: 3px;

    background: linear-gradient(
        90deg,
        transparent,
        #c084fc,
        #a855f7,
        #c084fc,
        transparent
    );

    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.s-header a:hover::after,
.s-header__nav a:hover::after,
.store-header a:hover::after {
    transform: scaleX(1);
}

/* ✨ تأثير لمعان متحرك */
.s-header a::before,
.s-header__nav a::before,
.store-header a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.6),
        transparent
    );

    transform: skewX(-25deg);
    transition: 0.6s;
    opacity: 0;
}

.s-header a:hover::before,
.s-header__nav a:hover::before,
.store-header a:hover::before {
    left: 120%;
    opacity: 1;
}
/* ===========================================
   خلفية براندية ناعمة بعد البانر
=========================================== */
body {
    background:
        radial-gradient(circle at top center, rgba(200, 162, 255, 0.18), transparent 28%),
        radial-gradient(circle at 20% 35%, rgba(126, 34, 206, 0.10), transparent 22%),
        radial-gradient(circle at 80% 45%, rgba(192, 132, 252, 0.10), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #fcf7ff 22%, #f7efff 48%, #ffffff 100%) !important;
}

/* طبقة ناعمة فوق أقسام الصفحة بعد البانر */
.s-block:not(.s-block--fixed-banner) {
    position: relative;
    z-index: 1;
}

.s-block:not(.s-block--fixed-banner)::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(249, 242, 255, 0.55) 18%,
            rgba(244, 233, 255, 0.88) 58%,
            rgba(255, 255, 255, 0.98) 100%);
    pointer-events: none;
    z-index: 0;
}

.s-block:not(.s-block--fixed-banner) > * {
    position: relative;
    z-index: 1;
} 

/* ===========================================
   المنتجات
=========================================== */
.s-product-item {
    transition: all 0.3s ease;
    border-radius: 18px;
}

.s-product-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 35px rgba(216, 180, 248, 0.75);
}

/* ===========================================
   زر السلة
=========================================== */
.s-button-btn,
.s-product-add-to-cart,
button.s-button-btn {
    background: #7e22ce !important;
    color: white !important;
    border-radius: 10px;
    transition: 0.3s ease;
}

.s-button-btn:hover,
.s-product-add-to-cart:hover,
button.s-button-btn:hover {
    background: #c084fc !important;
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.9);
    transform: scale(1.05);
}

/* ===========================================
   البانر
=========================================== */
.s-block--fixed-banner {
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    position: relative !important;
}

.s-block--fixed-banner img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.s-block--fixed-banner .container,
.s-block--fixed-banner .s-block__content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.s-block--fixed-banner,
.s-block--fixed-banner * {
    max-height: none !important;
}

/* زر فوق البانر */
.banner-btn {
    position: absolute;
    top: 50%;
    right: -220px;
    transform: translateY(-50%);
    background: #7e22ce;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    z-index: 10;
    transition: all 0.6s ease;
    white-space: nowrap;
}

.s-block--fixed-banner:hover .banner-btn,
.s-block--fixed-banner .banner-btn.active {
    right: 20px;
}

.banner-btn:hover {
    background: #c084fc;
    transform: translateY(-50%) scale(1.05);
}

/* ===========================================
   موبايل
=========================================== */
@media (max-width: 768px) { 
    :root {
        --header-offset: 160px;
    }

    .banner-btn {
        font-size: 10px;
        padding: 8px 14px;
        right: -180px;
    }

    .s-block--fixed-banner:hover .banner-btn,
    .s-block--fixed-banner .banner-btn.active {
        right: 12px;
    }
}

/* ===========================================
   هيدر فاخر فوق البانر (Glass + Gradient)
=========================================== */

/* الحالة الأساسية فوق البانر */
.s-header:not(.scrolled),
.store-header:not(.scrolled) {
    background: linear-gradient(
        to bottom,
        rgba(126, 34, 206, 0.35),
        rgba(126, 34, 206, 0.15),
        rgba(126, 34, 206, 0)
    ) !important;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* لون النص فوق البانر (أبيض واضح) */
.s-header:not(.scrolled) a,
.store-header:not(.scrolled) a {
    color: #ffffff !important;
}

/* تحسين ظهور الأيقونات */
.s-header:not(.scrolled) svg,
.store-header:not(.scrolled) svg {
    fill: #ffffff !important;
}

/* عند التمرير (الوضع الحالي عندك - أبيض شفاف) */
.s-header.scrolled,
.store-header.scrolled {
    background: rgba(255,255,255,0.75) !important;
    backdrop-filter: blur(18px);
}

/* إعادة اللون الداكن للنص عند النزول */
.s-header.scrolled a,
.store-header.scrolled a {
    color: #000 !important;
}

/* ===========================================
   خلفية براندية ناعمة بعد البانر
=========================================== */
body {
    background:
        radial-gradient(circle at top center, rgba(200, 162, 255, 0.18), transparent 28%),
        radial-gradient(circle at 20% 35%, rgba(126, 34, 206, 0.10), transparent 22%),
        radial-gradient(circle at 80% 45%, rgba(192, 132, 252, 0.10), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #fcf7ff 22%, #f7efff 48%, #ffffff 100%) !important;
}

/* طبقة ناعمة فوق أقسام الصفحة بعد البانر */
.s-block:not(.s-block--fixed-banner) {
    position: relative;
    z-index: 1;
}

.s-block:not(.s-block--fixed-banner)::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(249, 242, 255, 0.55) 18%,
            rgba(244, 233, 255, 0.88) 58%,
            rgba(255, 255, 255, 0.98) 100%);
    pointer-events: none;
    z-index: 0;
}

.s-block:not(.s-block--fixed-banner) > * {
    position: relative;
    z-index: 1;
}

/* ===========================================
   كروت المنتجات: بروز + Glow لافندر
=========================================== */
.s-product-item {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(200, 162, 255, 0.16);
    box-shadow: 0 10px 30px rgba(126, 34, 206, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        filter 0.35s ease;
    will-change: transform;
}

.s-product-item::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 28px;
    background: radial-gradient(circle at center,
        rgba(200, 162, 255, 0.28),
        rgba(200, 162, 255, 0) 68%);
    filter: blur(18px);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.s-product-item:hover {
    transform: translateY(-18px) scale(1.02);
    box-shadow:
        0 18px 45px rgba(126, 34, 206, 0.16),
        0 0 38px rgba(200, 162, 255, 0.38);
    border-color: rgba(200, 162, 255, 0.38);
}

.s-product-item:hover::before {
    opacity: 1;
}

.s-product-item img {
    transition: transform 0.45s ease;
}

.s-product-item:hover img {
    transform: scale(1.04);
}

.s-product-item h3,
.s-product-item .price,
.s-product-item .s-product-name {
    transition: color 0.3s ease;
}

.s-product-item:hover h3,
.s-product-item:hover .price,
.s-product-item:hover .s-product-name {
    color: #7e22ce !important;
}

/* ===========================================
   شاشة دخول (Splash Screen)
=========================================== */
.splash-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #7e22ce, #c084fc);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.splash-content img {
    width: 160px;
    animation: splashZoom 1.2s ease;
}

@keyframes splashZoom {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.splash-screen.hide {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}
/* ===========================================
   فوتر احترافي متناسق مع المتجر
=========================================== */

footer,
.s-footer,
.store-footer {
    background: linear-gradient(
        180deg,
        rgba(126, 34, 206, 0.08),
        rgba(192, 132, 252, 0.12)
    ) !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-top: 1px solid rgba(200, 162, 255, 0.25);
    padding: 40px 20px;
}

/* العناوين */
footer h2,
footer h3,
.s-footer h2,
.s-footer h3 {
    color: #7e22ce !important;
    font-weight: 800;
    margin-bottom: 15px;
}

/* النصوص */
footer p,
footer span,
footer a,
.s-footer p,
.s-footer span,
.s-footer a {
    color: #444 !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* روابط الفوتر */
footer a:hover,
.s-footer a:hover {
    color: #c084fc !important;
    transform: translateX(-4px);
}

/* أيقونات السوشيال */
footer .social a,
.s-footer .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(126, 34, 206, 0.08);
    color: #7e22ce !important;
    transition: all 0.3s ease;
}

footer .social a:hover,
.s-footer .social a:hover {
    background: #7e22ce;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.6);
    transform: translateY(-4px);
}

/* خط فاصل */
footer hr,
.s-footer hr {
    border-color: rgba(200, 162, 255, 0.2);
}

/* الحقوق */
footer .copyright,
.s-footer .copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #666 !important;
}

/* ===========================================
   موبايل
=========================================== */
@media (max-width: 768px) {
    footer,
    .s-footer {
        padding: 30px 15px;
        text-align: center;
    }

    footer h2,
    footer h3 {
        font-size: 16px;
    }

    footer p,
    footer a {
        font-size: 13px;
    }

    footer .social a {
        width: 34px;
        height: 34px;
    }
}
/* ===========================================
   موجة متحركة للفوتر (Wave Animation)
=========================================== */

/* نخلي الفوتر قابل لإظهار الموجة */
footer,
.s-footer,
.store-footer {
    position: relative;
    overflow: hidden;
}

/* الموجة */
footer::before,
.s-footer::before,
.store-footer::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 0;
    width: 200%;
    height: 120px;

    background: url("data:image/svg+xml;utf8,\
<svg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'>\
<path d='M0,40 C150,120 350,0 600,40 C850,80 1050,0 1200,40 L1200,0 L0,0 Z' fill='%23c084fc' fill-opacity='0.35'></path>\
</svg>") repeat-x;

    background-size: 50% 100%;
    animation: waveMove 10s linear infinite;
    opacity: 0.8;
}

/* موجة ثانية لتعطي عمق */
footer::after,
.s-footer::after,
.store-footer::after {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    width: 200%;
    height: 100px;

    background: url("data:image/svg+xml;utf8,\
<svg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'>\
<path d='M0,60 C200,0 400,120 600,60 C800,0 1000,120 1200,60 L1200,0 L0,0 Z' fill='%237e22ce' fill-opacity='0.25'></path>\
</svg>") repeat-x;

    background-size: 50% 100%;
    animation: waveMoveReverse 14s linear infinite;
    opacity: 0.7;
}

/* حركة الموجة */
@keyframes waveMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes waveMoveReverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* ===========================================
   تحسين الموبايل
=========================================== */
@media (max-width: 768px) {
    footer::before,
    .s-footer::before,
    .store-footer::before {
        height: 90px;
        top: -40px;
    }

    footer::after,
    .s-footer::after,
    .store-footer::after {
        height: 70px;
        top: -25px;
    }
}
/* ===========================================
   إزالة خلفية الفوتر السوداء بالكامل
=========================================== */
footer,
.s-footer,
.store-footer {
    background: transparent !important;
    box-shadow: none !important;
}

/* إزالة أي خلفيات داخلية */
footer *,
.s-footer *,
.store-footer * {
    background: transparent !important;
}

/* ===========================================
   تحسين وضوح النص فوق الموجة
=========================================== */

/* العناوين */
footer h2,
footer h3,
.s-footer h2,
.s-footer h3 {
    color: #5b21b6 !important; /* بنفسجي غامق واضح */
    font-weight: 800;
}

/* النصوص */
footer p,
footer span,
footer li,
.s-footer p,
.s-footer span,
.s-footer li {
    color: #1f1f1f !important; /* أسود ناعم */
}

/* الروابط */
footer a,
.s-footer a {
    color: #6d28d9 !important;
    font-weight: 600;
}

/* hover */
footer a:hover,
.s-footer a:hover {
    color: #c084fc !important;
}

/* ===========================================
   تحسين التباين (Glow خفيف للنص)
=========================================== */
footer,
.s-footer {
    text-shadow:
        0 1px 2px rgba(255,255,255,0.6),
        0 0 6px rgba(192,132,252,0.15);
}

/* ===========================================
   ضبط المسافات عشان يركب فوق الموجة
=========================================== */
footer,
.s-footer {
    padding-top: 60px !important;
    padding-bottom: 30px !important;
}
/* ===========================================
   السلة في الهيدر: ريال يسار + الأيقونة يمين
=========================================== */

/* استهدف الحاوية الخاصة بزر السلة */
.header-btn:has(.header-btn__icon.sicon-shopping-bag),
a:has(.header-btn__icon.sicon-shopping-bag),
button:has(.header-btn__icon.sicon-shopping-bag) {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    direction: rtl !important;
}

/* الأيقونة */
.header-btn:has(.header-btn__icon.sicon-shopping-bag) .header-btn__icon.sicon-shopping-bag,
a:has(.header-btn__icon.sicon-shopping-bag) .header-btn__icon.sicon-shopping-bag,
button:has(.header-btn__icon.sicon-shopping-bag) .header-btn__icon.sicon-shopping-bag {
    order: 2 !important;
    margin: 0 !important;
}

/* نص السعر / ريال */
.header-btn:has(.header-btn__icon.sicon-shopping-bag) .header-btn__text,
.header-btn:has(.header-btn__icon.sicon-shopping-bag) .header-btn__price,
a:has(.header-btn__icon.sicon-shopping-bag) .header-btn__text,
a:has(.header-btn__icon.sicon-shopping-bag) .header-btn__price,
button:has(.header-btn__icon.sicon-shopping-bag) .header-btn__text,
button:has(.header-btn__icon.sicon-shopping-bag) .header-btn__price {
    order: 1 !important;
    color: #000 !important;
    font-weight: 700 !important;
    margin-inline-end: 6px !important;
    white-space: nowrap !important;
}
/* ===========================================
   جعل روابط "روابط مهمة" باللون الأسود
=========================================== */

.s-footer ul li a,
footer ul li a {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* عند المرور (اختياري - تأثير خفيف) */
.s-footer ul li a:hover,
footer ul li a:hover {
    color: #7e22ce !important; /* بنفسجي متناسق مع متجرك */
}