/* Add custom CSS styles below */ 
div#mainnav {
    background: #f6f6f6;
}
.s-user-menu-trigger {
    background-color: #f6f6f6;
}
.s-block--tabs-produtcs .tab-trigger.is-active button {
    color: #ffffff;
}
body.dark-theme header.store-header * {
    color: var(--3);
}
body.dark-theme .main-menu .sub-menu {
    background: var(--4-4) !important;
}
body.dark-theme .slide--cat-entry {
    background: var(--4-4) !important;
    border: 1px solid var(--1);
    color: #fff;
}
body.dark-theme .slide--cat-entry i,
body.dark-theme .main-menu .has-children.root-level>a:after {
    color: #fff;
}
section.s-block.s-block--fixed-banner.wide-placeholder:first-of-type {
    margin-top: 0;
}
.product-entry button.s-button-element {
    background: linear-gradient(227deg, var(--4), var(--4));
    border: 0;
    position: absolute;
    width: 75%;
    margin: auto;
    left: 0;
    right: 0;
    color: var(--3);
}
.product-entry {
    border-radius: 30px;
    border: 3px solid var(--1);
    -webkit-box-shadow: 0 0px 0px 0 rgb(0 0 0 / 20%), 0 0px 15px 0 rgb(0 0 0 / 10%);
    box-shadow: 0 0px 0px 0 rgb(0 0 0 / 20%), 0 0px 15px 0 rgb(0 0 0 / 10%);
    position: relative;
}

/* ===== حركة الشعار عند فتح المتجر (كما كانت سابقًا) ===== */
body.index:before {
    content: '';
    width: 100%;
    height: 100%;
    background: #f5f5f529;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: fixed;
    z-index: 999999;
    transform: scale(0);
    animation-name: pupup;
    animation-duration: 3s;
}
@keyframes pupup {
    0% { transform: scale(1); }
    18% { transform: scale(1); }
    80% { transform: scale(1); }
    100% { transform: scale(0); }
}
body.index:after {
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    position: fixed;
    z-index: 999999;
    background: var(--logo);
    left: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20%;
    transform: scale(0);
    animation-name: pupup_logo;
    animation-duration: 3s;
}
@keyframes pupup_logo {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
    100% { transform: scale(0); }
}

/* ===== Navbar / شعار المتجر ===== */
.navbar-brand {
    background-image: var(--logo);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    height: 66px;
    width: 15vw;
    display: block;
    margin: auto;
    border-radius: 52px;
}
.navbar-brand img {
    display: none !important;
}

/* ===== الألوان ===== */
:root {
    --color-primary: #eca526 !important;
    --color-primary-dark: #eca526;
    --color-primary-light: #eca526;
    --color-primary-reverse: #eca526;
    --1: #eca526;
    --1-1: #face17;
    --2: #eca526;
    --2-2: #ebb51c6e;
    --3: #edf5ff;
    --4: #3b3b39;
    --4-4-4: #20201f;
    --4-4: #3131309c;
    --logo: url("https://cdn.salla.sa/QmlwY/9ENunskkDglEnoUNSxhQEeEPzMjOMQb8ELdXERtC.png");
}

/* ===== تغيير لون التذييل أسفل المتجر ===== */
footer.store-footer {
    background-color: #eaa525 !important;
    color: #000 !important;
}

/* ===== شريط البحث في الأعلى بدون رقم أو بريد ===== */
.top-navbar {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: background 0.4s ease, top 0.4s ease, opacity 0.4s ease, backdrop-filter 0.4s ease;
    backdrop-filter: blur(5px);
    opacity: 1;
}

.top-navbar.scrolled {
    background: rgba(234, 165, 37, 1);
    opacity: 1;
    backdrop-filter: blur(0); 
}

.top-navbar.hidden {
    top: -100px;
    opacity: 0;
}

/* إخفاء رقم التواصل والبريد */
.top-navbar .s-contact-info, 
.top-navbar .s-social-links {
    display: none !important;
}

/* تنسيق شريط البحث */
.top-navbar .s-search-input-wrapper {
    width: 100%;
    max-width: 500px;
}

input.s-search-input {
    display: block !important;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #fff;
    background: rgba(14, 14, 14, 0.85) !important;
    color: #fff !important;
    font-size: 16px;
    transition: background 0.3s ease, border 0.3s ease;
}

input.s-search-input:focus {
    background: rgba(14, 14, 14, 1) !important;
    border: 1px solid #eaa525;
    outline: none;
}
/* إجبار لون نصوص قائمة ذيل الصفحة إلى الأبيض */
footer.store-footer,
footer.store-footer * {
    color: #ffffff !important;
}
/* ===== إضافة سلاسة وفخامة للمتجر بدون التأثير على الصور ===== */

/* تأثير انسيابي عند تمرير الصفحة */
html {
    scroll-behavior: smooth;
}

/* حركة لطيفة للمنتجات عند المرور عليها */
.s-product-card-entry {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.s-product-card-entry:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* تكبير لطيف للصور داخل المنتجات */
.s-product-card-entry .product-entry__image {
    transition: transform 0.5s ease;
    border-radius: 30px;
    overflow: hidden;
}
.s-product-card-entry:hover .product-entry__image {
    transform: scale(1.05);
}

/* تأثيرات أنيقة للعناوين */
.s-block__title h2,
.s-slider-block__title h2,
.main-content h1 {
    background-image: linear-gradient(135deg, #eaa525, #fce17a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    transition: all 0.5s ease;
}
.s-block__title h2:hover,
.s-slider-block__title h2:hover {
    background-image: linear-gradient(135deg, #fce17a, #eaa525);
    transform: scale(1.05);
}

/* تأثير انسيابي لأزرار الشراء */
button.s-button-element {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease;
}
button.s-button-element:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, #eaa525, #fce17a);
}

/* تأثير سلس لعناصر الصور في السلايدر */
.s-slider-container img {
    transition: transform 0.5s ease, filter 0.5s ease;
}
.s-slider-container img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* تأثير تدرج أنيق للتذييل */
footer.store-footer {
    background: linear-gradient(90deg, #eaa525, #fce17a) !important;
    transition: background 0.6s ease;
}
/* ===== حركة سلسة للبنرات ===== */

/* تأثير دخول البنرات عند ظهورها */
.s-slider-block, .s-block--fixed-banner {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

/* عندما تكون البنرات في العرض */
.s-slider-block.visible, .s-block--fixed-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

/* تأثير انسيابي عند المرور على البنرات */
.s-slider-block:hover, .s-block--fixed-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
/* تسريع حركة البنرات */
.s-slider-block, .s-block--fixed-banner {
    transition: all 0.5s ease-out !important; /* قللنا الوقت لجعل الحركة أسرع */
}

/* عند مرور الماوس على البنرات */
.s-slider-block:hover, .s-block--fixed-banner:hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* حركة أسرع عند Hover */
}
/* تغيير لون زر إضافة للسلة عند المرور بالماوس */
.product-entry .s-button-element.s-button:hover,
.product-entry button.s-button-element:hover {
    background: linear-gradient(135deg, #eaa525, #000000) !important; /* متدرج بين الأصفر والأسود */
    color: #ffffff !important; /* لون الخط أبيض */
    border-color: #000000 !important; /* تغيير حدود الزر لتتناسب مع التدرج */
    transition: all 0.3s ease !important; /* سلاسة الانتقال */
}
/* تغيير لون نص زر إضافة للسلة في منصة سلة */
.btn-add-to-cart span {
    color: #000000 !important; /* اللون الأسود */
}

/* في حال كان الزر يستخدم معرفاً مختلفاً، جرب هذا أيضاً */
.product-details__add-to-cart .btn-primary {
    color: #000000 !important;
}
.btn-primary {
    color: #000000 !important;
}
/* العناوين الرئيسية */
h1, h2, h3 {
    color: #000000 !important;
}

/* الأزرار */
button, 
input[type="submit"], 
a.button, 
a.btn {
    color: #000000 !important; /* لون النص داخل الأزرار */
    border-color: #000000 !important; /* إذا أردت تغيير حدود الأزرار */
    background-color: #ffffff !important; /* اختيارياً، لجعل الخلفية فاتحة إذا أردت */
}

/* hover للأزرار */
button:hover, 
input[type="submit"]:hover, 
a.button:hover, 
a.btn:hover {
    color: #000000 !important;
    border-color: #000000 !important;
    background-color: #f0f0f0 !important; /* لون خلفية عند المرور بالفأرة */
}

/* ===== نافذة الترحيب الموسمية (هوية المتجر) ===== */
.seasonal-welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.6s ease;
}

.seasonal-welcome-box {
    background: linear-gradient(135deg, #ffffff, #fffaf0);
    padding: 36px 42px;
    border-radius: 24px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    animation: scaleIn 0.6s ease;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--1);
}

/* زخرفة خفيفة */
.seasonal-welcome-box::before {
    content: "☾ ✨";
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 22px;
    opacity: 0.25;
}

.seasonal-welcome-box::after {
    content: "✨";
    position: absolute;
    bottom: 14px;
    left: 18px;
    font-size: 18px;
    opacity: 0.2;
}

.seasonal-welcome-box h2 {
    font-size: 28px;
    color: var(--1);
    margin-bottom: 12px;
}

.seasonal-welcome-box p {
    font-size: 20px;
    color: var(--4);
    margin: 0;
}

/* تأثيرات الحركة */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}