/* Add custom CSS styles below */ 
/* تحسين مظهر بطاقة المنتج */
.product-card {
    border-radius: 15px !important; /* حواف دائرية ناعمة */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; /* ظل خفيف جداً */
    transition: transform 0.3s ease-in-out;
    border: none !important;
}

/* حركة عند تمرير الماوس على المنتج */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}
/* تخصيص زر الإضافة للسلة */
.btn-add-to-cart {
    border-radius: 50px !important; /* أزرار بيضاوية عصرية */
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 10px 20px;
}
.main-nav {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px); /* تأثير الزجاج الضبابي */
    border-bottom: 1px solid #f0f0f0;
}
/* تخصيص الفوتر */
footer {
    background-color: #f9f9f9 !important; /* لون خلفية فاتح وهادئ */
    border-top: 1px solid #eeeeee;
    padding-top: 50px !important;
    padding-bottom: 30px !important;
}

/* تحسين روابط الفوتر */
footer a {
    color: #666 !important;
    transition: color 0.3s ease;
    font-size: 14px;
}

footer a:hover {
    color: #000 !important; /* تغيير اللون عند التمرير */
    text-decoration: none !important;
}
/* تأثير الزجاج للسلة الجانبية */
.side-cart {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px); /* تأثير ضبابي خفيف خلف السلة */
    border-right: 1px solid #eee;
}

/* تأثير الزجاج للقائمة العلوية */
.main-menu-wrapper {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important; /* تغبيش خلف القائمة */
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    position: sticky !important;
    top: 0;
    z-index: 1000;
}

/* تنسيق دوائر الأقسام في الصفحة الرئيسية */
.category-item img {
    border: 2px solid #D4AF37 !important;
    padding: 3px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    animation: goldPulse 2s infinite; /* نبض ذهبي خفيف */
}

@keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.category-item:hover img {
    transform: rotate(10deg) scale(1.1); /* حركة مرحة عند اللمس */
}

/* زر إتمام الطلب في السلة */
.checkout-btn {
    background-color: #222 !important; /* أسود فاخر */
    border-radius: 8px !important;
    height: 50px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* تخصيص الهيدر (القائمة العلوية) */
.main-nav-container {
    background-color: rgba(255, 255, 255, 0.8) !important; /* خلفية بيضاء شفافة بنسبة 80% */
    backdrop-filter: blur(12px) !important; /* تأثير التغبيش الزجاجي */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important; /* خط سفلي خفيف جداً */
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px; /* ارتفاع أنيق ونحيف */
    display: flex;
    align-items: center;
}

/* تخصيص روابط القائمة */
.main-nav-container a {
    color: #333 !important; /* لون نص داكن هادئ */
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    padding: 10px 15px;
}

/* حركة عند التمرير على الروابط */
.main-nav-container a:hover {
    color: #000 !important; /* يصبح اللون أسود صريح */
    opacity: 0.7;
}

/* تخصيص أيقونات السلة والبحث */
.header-icons .icon-item {
    font-size: 18px !important;
    color: #444 !important;
    margin-right: 15px;
}

/* حركة خفيفة لشعار المتجر */
.store-logo img {
    max-height: 45px !important; /* الحفاظ على صغر ونعومة الشعار */
    transition: transform 0.3s ease;
}

.store-logo img:hover {
    transform: scale(1.05);
}
/* تخصيص حاوية القائمة المنسدلة */
.dropdown-menu, .sub-menu {
    border: none !important; /* إزالة الحدود التقليدية */
    border-radius: 18px !important; /* حواف دائرية كبيرة وأنيقة */
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important; /* ظل ناعم ومنتشر */
    padding: 15px !important;
    background-color: #ffffff !important;
    margin-top: 10px !important; /* ترك مسافة بسيطة بين الرابط والقائمة */
    animation: fadeInSlide 0.4s ease forwards; /* تأثير ظهور ناعم */
}

/* حركة الظهور التدريجي للقائمة */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تخصيص الروابط داخل القائمة المنسدلة */
.dropdown-menu a, .sub-menu li a {
    padding: 10px 20px !important;
    border-radius: 10px !important;
    color: #444 !important;
    font-size: 13px !important;
    transition: all 0.2s ease-in-out !important;
    display: block;
}

/* تأثير التمرير (Hover) داخل القائمة */
.dropdown-menu a:hover, .sub-menu li a:hover {
    background-color: #f8f9fa !important; /* لون خلفية خفيف جداً */
    color: #000 !important;
    padding-right: 25px !important; /* حركة بسيطة لليمين عند التمرير */
}
/* تخصيص حاوية شريط البحث */
.search-container, .search-bar-wrapper {
    background-color: #f5f5f5 !important; /* رمادي فاتح جداً وناعم */
    border-radius: 50px !important; /* شكل كبسولة دائري */
    border: 1px solid transparent !important; /* إخفاء الحدود الافتراضية */
    padding: 5px 20px !important;
    transition: all 0.3s ease-in-out !important;
    display: flex;
    align-items: center;
    max-width: 450px; /* عرض متوازن */
    margin: 0 auto;
}

/* تأثير عند الضغط على البحث */
.search-container:focus-within, .search-bar-wrapper:focus-within {
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important;
    border: 1px solid #eeeeee !important;
}

/* تخصيص حقل الإدخال (Input) */
.search-container input, .search-bar-wrapper input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-size: 13px !important;
    color: #333 !important;
    width: 100%;
    padding: 8px 0 !important;
}

/* تخصيص أيقونة البحث */
.search-btn, .search-icon {
    color: #999 !important;
    background: transparent !important;
    border: none !important;
    padding-left: 10px !important;
    cursor: pointer;
    transition: color 0.2s;
}

.search-btn:hover {
    color: #000 !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* خلفية الموقع كاملة */
body {
    background: radial-gradient(circle at top right, #ffffff, #fcfcfc, #f9f9f9) !important;
    color: #1a1a1a !important;
}

/* تنعيم حواف البنرات الإعلانية */
.main-slider img, .banner-item img {
    border-radius: 25px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}


@keyframes butterflyFlyIn {
    0% { opacity: 0; transform: translate(-150px, 150px) scale(0.5) rotate(-30deg); }
    50% { opacity: 1; transform: translate(50px, -50px) scale(1.1) rotate(10deg); }
    100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
}

.loader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


.elegant-text {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(26px, 7vw, 42px);
    font-weight: 800;
    background: linear-gradient(to right, #1a1a1a 20%, #D4AF37 40%, #FFD700 60%, #1a1a1a 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineGold 3s linear infinite, textFadeIn 1.2s forwards;
    margin-bottom: 5px;
}

.elegant-subtext {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(16px, 4vw, 22px);
    color: #888;
    opacity: 0;
    transform: translateY(10px);
    animation: subtextFadeIn 1.2s forwards 0.8s;
}

.elegant-line {
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #D4AF37, transparent);
    margin: 15px auto;
    animation: lineExtend 1.5s forwards 1s;
}

@keyframes shineGold { to { background-position: 200% center; } }
@keyframes textFadeIn { to { opacity: 1; transform: translateY(0); } }
@keyframes subtextFadeIn { to { opacity: 1; transform: translateY(0); } }
@keyframes lineExtend { to { width: 80%; } }
}

/* زر واتساب احترافي */
.whatsapp-button {
    bottom: 20px !important;
    right: 20px !important;
    background: #25D366 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
    border: 2px solid #fff !important;
}
/* إضافة النص الترحيبي بجانب الزر */
.whatsapp-button::before {
    content: 'استشارة مجانية؟';
    position: absolute;
    right: 60px;
    background: #1a1a1a;
    color: #D4AF37;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    width: max-content;
    white-space: nowrap;
}
/* كود التدرج الانسيابي (ذهبي إلى أسود) - متجر أبو حاتم */

.s-product-card-vertical__cart-button, 
.s-product-card__cart-button, 
.s-product-detail-add-to-cart-btn,
.s-button-primary,
button[class*="cart-button"],
[class*="s-product-card"] button {
    /* يبدأ بالذهبي من اليمين (جهة الأيقونة) ويتدرج للأسود الفخم في اليسار */
    background: linear-gradient(to left, #D4AF37 0%, #BFA75D 30%, #1a1a1a 100%) !important;
    
    /* إلغاء أي ألوان خلفية سابقة */
    background-color: #1a1a1a !important;
    
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2) !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 45px !important;
    transition: 0.4s ease !important;
}

/* توحيد النص والأيقونة لضمان الوضوح */
.s-button-primary *, 
[class*="cart-button"] *, 
.s-product-card-vertical__cart-button * {
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

/* تأثير بسيط عند لمس الزر يجعل الذهبي يطغى أكثر */
.s-product-card-vertical__cart-button:hover, 
.s-product-detail-add-to-cart-btn:hover {
    background: linear-gradient(to left, #D4AF37 0%, #1a1a1a 100%) !important;
    transform: scale(1.02);
}
/* --- تجميل أسفل المتجر (الفوتر) ليتماشى مع الهوية الذهبية --- */

/* 1. تلوين خلفية الفوتر بالأسود الفخم */
footer {
    background-color: #1a1a1a !important;
}

/* 2. تحويل العناوين في الأسفل للون الذهبي */
footer h4, footer h3, .footer-title {
    color: #D4AF37 !important;
    font-weight: bold !important;
}

/* 3. تلوين الروابط والأرقام باللون الأبيض المطفي */
footer a, footer p, footer span {
    color: #e0e0e0 !important;
}

/* 4. تجميل أيقونة السلة العلوية (لتصبح ذهبية) */
.header-cart-icon, .s-cart-summary-wrapper i {
    color: #D4AF37 !important;
}

/* 5. وضع إطار ذهبي ناعم حول أيقونة الواتساب */
.whatsapp-contact {
    border: 2px solid #D4AF37 !important;
    border-radius: 50% !important;
}
#gold-marquee-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 40px !important;
    background: linear-gradient(to left, #D4AF37 0%, #BFA75D 30%, #1a1a1a 100%) !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center;
    overflow: hidden;
    border-bottom: 2px solid #D4AF37;
    direction: ltr !important;
}

.scrolling-text {
    display: flex !important;
    white-space: nowrap !important;
    width: max-content !important;
    animation: move-smooth-right 30s linear infinite !important;
}

.scrolling-text span {
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 15px !important;
    /* هذا الخط يضمن ظهور الرموز التعبيرية بشكلها الملون */
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
    direction: rtl !important;
    display: inline-block !important;
    padding-right: 10px !important;
}

@keyframes move-smooth-right {
    0% { transform: translateX(-50%); } 
    100% { transform: translateX(0%); }
}

body {
    padding-top: 45px !important;
}

/* تصغير حاوية الصورة بالكامل */
.s-testimonial-item-image-wrapper, 
.s-testimonial-item-image {
    width: 70px !important; 
    height: 70px !important;
    margin: 0 auto 15px auto !important;
    overflow: hidden !important;
    border-radius: 50% !important;
}

/* التأكد أن الصورة بداخلها لا تخرج عن الحجم الجديد */
.s-testimonial-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* هذي تمنع الصورة من التمدد البشع */
}
/* --- الهيدر: تقليل الضبابية لإظهار الأعشاب - متجر أبو حاتم --- */
.main-nav-container {
    background-image: url('https://image2url.com/r2/default/images/1774625686546-5f1e5522-de8a-477a-833e-dc8042ccfce2.blob') !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative !important;
    z-index: 1000 !important;
    border-bottom: 2px solid #D4AF37 !important;
}

/* تقليل الشفافية والضبابية هنا */
.main-nav-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4) !important; /* تقليل التعتيم من 65% إلى 40% */
    backdrop-filter: blur(1.5px) !important; /* تقليل التغبيش ليكون خفيفاً جداً */
    z-index: -1;
}

.main-nav-container a, .main-nav-container i, .main-nav-container span {
    color: #ffffff !important;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8) !important; /* تقوية ظل الخط للوضوح */
}
/* --- الفوتر: إزالة المستطيل الرمادي وإظهار الأعشاب كاملة --- */
footer, 
.main-footer, 
.footer-main, 
.footer-top, 
.footer-bottom {
    background: transparent !important; /* جعل كل الطبقات شفافة */
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* وضع صورة الأعشاب في الطبقة الأساسية للفوتر */
footer {
    background-image: url('https://image2url.com/r2/default/images/1774625686546-5f1e5522-de8a-477a-833e-dc8042ccfce2.blob') !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative !important;
    padding-top: 60px !important;
    padding-bottom: 40px !important;
    border-top: 3px solid #D4AF37 !important;
}

/* تنظيف أي طبقات قبلية أو بعدية تسبب اللون الرمادي */
footer::before, footer::after, .main-footer::before, .main-footer::after {
    display: none !important;
    background: transparent !important;
}

/* توضيح نصوص الروابط والمعلومات فوق الأعشاب */
footer a, footer p, footer span, footer li {
    color: #1a1a1a !important; /* لون داكن قوي للقراءة */
    font-weight: 700 !important;
    text-shadow: 0px 0px 8px rgba(255,255,255,0.5) !important;
}

/* العناوين الذهبية */
footer h4, footer h3, .footer-title {
    color: #D4AF37 !important;
    font-weight: bold !important;
    font-size: 18px !important;
}
/* تنسيق الحاوية الرئيسية للكوبون */
#abuhatim-coupon-wrapper {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 999999 !important; /* رفعه فوق كل العناصر */
    transition: all 0.5s ease-in-out;
    direction: rtl;
    cursor: pointer;
}

/* حالة الكوبون وهو مغلق (الدائرة السوداء) */
.coupon-closed {
    width: 70px;
    height: 70px;
}

.coupon-closed .coupon-icon-tab {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #1a1a1a !important;
    background-image: url('https://image2url.com/r2/default/images/1774628794030-aaf57f3b-dbbf-438d-8d5e-88827f877e33.png') !important;
    background-size: 50px;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #D4AF37;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.coupon-closed .coupon-content {
    display: none; /* إخفاء المحتوى وهو مغلق */
}

/* حالة الكوبون وهو مفتوح (المربع الفخم) */
.coupon-open {
    width: 300px;
    background: #1a1a1a;
    border: 2px solid #D4AF37;
    border-radius: 20px;
    padding-bottom: 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

.coupon-open .coupon-icon-tab { display: none; }

.coupon-open .coupon-content {
    display: block;
    text-align: center;
}

/* شعار المتجر داخل الكوبون */
.coupon-logo-top {
    height: 80px;
    background-image: url('https://image2url.com/r2/default/images/1774628794030-aaf57f3b-dbbf-438d-8d5e-88827f877e33.png') !important;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 15px 0;
}

.coupon-msg { color: #fff; font-size: 14px; margin: 0; }

.code-display {
    border: 2px dashed #D4AF37;
    margin: 15px 20px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.05);
}

.code-text {
    display: block;
    color: #D4AF37;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
}

.percent-text {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-top: 5px;
}

.copy-status { font-size: 11px; color: #ccc; margin-bottom: 10px; }

/* زر النسخ الذهبي */
.copy-btn {
    width: 100%;
    background: #D4AF37;
    border: none;
    color: #000;
    padding: 12px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.copy-btn:hover { background: #b8962d; }