html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    /* السطر القادم هو السحر: يمنع الموبايل من الاستجابة للسحب يمين وشمال تماماً */
    touch-action: pan-y !important;
    margin: 0 !important;
    padding: 0 !important;
}

* {
    box-sizing: border-box !important;
}

.header-main-azhlha .nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-main-azhlha .dropdown-menu {
    right: auto;
    left: 0;
    /* لقلب القوائم المنسدلة */
}

nav.main-menu-azhlha {
    text-align: center;
    font-size: 12px;
}

/* تنسيق الخلفية العامة للهيدر */
.header-main-azhlha {
    position: fixed;
    background: #0f172a;
    padding: 10px 0;
    font-family: 'Tajawal';
    backdrop-filter: blur(20px);
    position: sticky;
    /* تم التغيير من fixed إلى sticky */
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

/* استخدام Flexbox لترتيب الأقسام الثلاثة */
.header-main-azhlha .header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* للسماح بالالتفاف على الشاشات الصغيرة */
}

/* --- تنسيقات الجزء الأيمن --- */
.header-main-azhlha .right-block {
    display: flex;
    align-items: center;
}

/* تنسيق الشعار */
.header-main-azhlha .logo-wrapper {
    margin-right: 15px;
    /* مسافة بين الشعار والقائمة */
}

.header-main-azhlha .logo-azhlha {
    max-height: 60px;
    /* حجم الشعار في الصورة */
}

/* تنسيق القائمة الرئيسية */
.header-main-azhlha .main-menu-azhlha .nav>li {
    display: inline-block;
}

.header-main-azhlha .main-menu-azhlha .nav>li>a {
    color: #aeb9cf;
    /* لون النص الافتراضي */
    text-decoration: none;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: bold;
    display: block;
}

.header-main-azhlha .main-menu-azhlha .nav>li>a:hover {
    color: #fff;
    /* لون النص عند التأشير */
    background: linear-gradient(#ec4899, #6a1b9a, #8e24aa);
    border-radius: 12px;
}

/* --- تنسيقات الجزء الأوسط (البحث) --- */
.header-main-azhlha .center-block {
    flex: 1;
    /* جعل شريط البحث يأخذ المساحة المتاحة */
    max-width: 400px;
    /* تحديد عرض مربع البحث */
    margin: 0 20px;
}

/* تنسيق شريط البحث نفسه (قد تحتاج لتعديل معرف #search الخاص بـ OpenCart) */
.header-main-azhlha #search .input-lg {
    height: 38px;
    background-color: #1a2336;
    /* لون مربع البحث الداكن */
    border: 1px solid #1a2336;
    border-radius: 5px;
    /* حواف دائرية */
    color: #fff;
}

.header-main-azhlha #search .input-group-btn .btn {
    background-color: transparent;
    color: #aeb9cf;
    border: none;
    padding: 8px 15px;
}

/* --- تنسيقات الجزء الأيسر --- */
.header-main-azhlha .left-block {
    display: flex;
    align-items: center;
}

/* تنسيق الروابط الإضافية */
.header-main-azhlha .extra-menu-azhlha .nav>li {
    display: inline-block;
}

.header-main-azhlha .extra-menu-azhlha .nav>li>a {
    color: #fff;
    /* لون أبيض لهذه الروابط */
    text-decoration: none;
    padding: 8px 10px;
    font-size: 14px;
}

/* تنسيق أزرار الحساب */
.header-main-azhlha .account-buttons {
    margin: 0 15px;
    display: flex;
    gap: 10px;
    /* مسافة بين الزرين */
}

/* زر حساب جديد (بنفس التنسيق) */
.header-main-azhlha .btn-register-azhlha {
    background-color: #1a2336;
    /* لون داكن مع حدود */
    color: #fff;
    border-radius: 10px;
    /* حواف دائرية بالكامل */
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-main-azhlha .btn-register-azhlha:hover {
    background-color: #1a2336;
    border-color: #fff;
    /* حدود بيضاء عند التأشير */
}

.header-main-azhlha .btn-ac-azhlha {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.header-main-azhlha .btn-ac-azhlha:hover {
    background-color: #1a2336;
    border-color: #fff;
    /* حدود بيضاء عند التأشير */
}

/* زر تسجيل الدخول */
.header-main-azhlha .btn-login-azhlha {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    border-radius: 10px;
    /* حواف دائرية بالكامل */
    padding: 8px 20px;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-main-azhlha .btn-login-azhlha:hover {
    background-color: #8e24aa;
    /* لون أفتح عند التأشير */
}

/* تنسيق العربة */
.header-main-azhlha .cart-wrapper-azhlha #cart>.btn {
    background-color: transparent;
    color: #aeb9cf;
    border: none;
    padding: 8px 15px;
    font-size: 18px;
}

.header-main-azhlha .cart-wrapper-azhlha #cart>.btn #cart-total {
    font-size: 14px;
    display: block;
    /* لعرض السعر أسفل الأيقونة */
}

/* تنسيق قائمة الرغبات */
.header-main-azhlha .wishlist-wrapper-azhlha {
    margin-left: 10px;
}

.custom-wishlist-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-wishlist-btn .wishlist-icon {
    font-size: 26px;
    color: #aeb9cf;
    transition: 0.3s;
}

.custom-wishlist-btn:hover .wishlist-icon {
    color: #ec4899;
}

.wishlist-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(255, 94, 98, 0.4);
    line-height: 1;
}

@media (max-width: 767px) {
    .custom-wishlist-btn {
        padding: 8px;
    }

    .custom-wishlist-btn .wishlist-icon {
        font-size: 22px;
    }

    .wishlist-badge {
        min-width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

.ticker-wrapper {
    background: linear-gradient(90deg, rgb(99, 102, 241), rgb(236, 72, 153));
    padding: 0.5rem 0;
    margin-top: 0 !important;
    overflow: hidden;
    position: relative;
    z-index: 100;
    direction: ltr;
}

.ticker {
    display: flex;
    animation: tickerScroll 70s linear infinite;
    white-space: nowrap;
    width: max-content;
    /* لضمان أخذ العرض بالكامل وعدم تكسر النص */
}

.ticker-item {
    padding: 0 3rem;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    direction: rtl;
    /* لضمان قراءة الجملة العربية بشكل سليم */
}

.ticker-item i {
    color: #fbbf24;
    animation: pulse 1s infinite;
}

/* --- محركات الحركة (التي كانت ناقصة) --- */

/* 1. حركة الشريط من اليمين لليسار */
@keyframes tickerScroll {
    0% {
        transform: translateX(100vw);
        /* يبدأ من خارج الشاشة يميناً */
    }

    100% {
        transform: translateX(-100%);
        /* ينتهي خارج الشاشة يساراً */
    }
}

/* 2. حركة النبض للأيقونة (تكبير وتصغير خفيف) */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
        /* يكبر بنسبة 20% في المنتصف */
    }

    100% {
        transform: scale(1);
    }
}


/* تنسيق السلايد الأساسي */
.swiper-container {
    width: 100% !important;
    height: 500px;
    overflow: hidden;
    position: relative;
    direction: ltr !important;
}

.swiper-wrapper {
    width: 100% !important;
}

.swiper-slide {
    width: 100% !important;
}

.slide-image-wrapper {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* تعتيم للصورة */
}

.slide-content {
    position: relative;
    z-index: 10;
    color: #fff;
    max-width: 800px;
    /* إعادة المحتوى للـ RTL */
    direction: rtl !important;
}

.badge-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

.main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.sub-title {
    font-size: 20px;
    margin-bottom: 25px;
}

.btn-azhlha {
    background: linear-gradient(90deg, #ec4899, #8e24aa);
    color: #fff;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
}

h1.main-title {
    color: #ffffff;
}

/* تنسيق قسم البحث */
.search-section {
    padding: 20px 0;
    background: transparent;
}

.search-container {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid #2d3748;
    border-radius: 50px;
    padding: 5px 15px;
    max-width: 800px;
    margin: 0 auto;
    align-items: center;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 10px;
    outline: none;
    text-align: right;
}

.search-btn {
    background: linear-gradient(90deg, #6a1b9a, #ec407a);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.payment-method {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.20rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    color: #ffffff;
}

.categories {
    width: 100%;
    /*max-width: 1000px; !* تحديد أقصى عرض للسكشن حتى لا يمتد بشكل غير متناسق *!*/
    margin: 0 auto;
    /* هذا السطر هو المسؤول عن توسيط السكشن نفسه في منتصف الصفحة */
    padding: 20px 0px 61px 0px;
}

.section-title {
    color: #fff;
    margin-bottom: 35px;
    font-size: 22px;
    text-align: center;
}

/* 2. الشبكة (توسيط الكروت بداخلها) */
.category-grid {
    display: flex;
    /* استخدام flex لسهولة التوسيط */
    flex-wrap: wrap;
    /* السماح للعناصر بالنزول لسطر جديد في الشاشات الصغيرة */
    justify-content: center;
    /* توسيط الكروت أفقياً في المنتصف */
    gap: 15px;
}

/* 3. الكارت الواحد (توسيط الأيقونة والنص داخله) */
.category-card {
    width: 150px;
    height: 180px;
    display: flex;
    flex-direction: column;
    /* جعل الأيقونة فوق النص */
    align-items: center;
    /* توسيط أفقي */
    justify-content: center;
    /* توسيط رأسي */
    background: #1a2336;
    border-radius: 12px;
    color: #aeb9cf;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: #6366f1;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    background: linear-gradient(90deg, #ec4899, #8e24aa);
    color: #ffffff;
}

.category-card.active {
    border-color: #6a1b9a;
    /* لون الحدود عند اختيار القسم */
    background: #252e42;
    color: #fff;
}

/* تنسيق الأيقونة داخل الكارت */
.category-icon {
    /*margin-bottom: 14px;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
}

/* تأثير التحديد */
.category-card.active {
    border-color: #6a1b9a;
    background: #252e42;
    color: #fff;
}


/* حاوية الكروت */
.custom-product-grid .product-card {
    background: #1e2840;
    border-radius: 20px;
    /*padding: 20px;*/
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    transition: 0.3s;
    border: 1px solid #2d3748;
    /*height: 420px;*/
    display: flex;
    flex-direction: column;
}

.custom-product-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Label الخصم */
.badge-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(90deg, #ff9966, #ff5e62);
    color: white;
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}


/* النصوص */
.custom-product-grid .caption h4 a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
}

.custom-product-grid .description {
    color: #aeb9cf;
    font-size: 13px;
    margin: 10px 0;
    min-height: 40px;
}

/* الأسعار */
.price-section {
    margin: 15px 0;
}

.price-new {
    color: #ffca28;
    font-weight: bold;
    font-size: 18px;
    display: block;
}

.price-old {
    color: #aeb9cf;
    text-decoration: line-through;
    font-size: 14px;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: #6366f1;
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.3);
}

/* الزر */
.btn-add-cart {
    background: linear-gradient(90deg, #6a1b9a, #ec407a);
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-add-cart:hover {
    opacity: 0.9;
}

/* حاوية الأيقونات */
.card-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    /* ضعها جهة اليمين أو اليسار حسب تصميمك */
    display: flex;
    flex-direction: column;
    /* جعل الأيقونات تحت بعض */
    gap: 10px;
    opacity: 0;
    /* مخفية في البداية */
    visibility: hidden;
    /* مخفية تماماً */
    transition: all 0.4s ease;
    /* سرعة ظهورها */
    z-index: 10;
}

/* إظهار الأيقونات عند الوقوف بالفأرة */
.product-card:hover .card-actions {
    opacity: 1;
    visibility: visible;
}

/* تنسيق الأيقونات (الدوائر البيضاء) */
.action-btn {
    background: #ffffff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #1e2840;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: #6a1b9a;
    /* اللون البنفسجي عند الوقوف */
    color: #fff;
}

/* تنسيق القسم العام */
.features-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    padding: 5rem 2rem;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* كارت الميزة */
.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--glass);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

/* حاوية الأيقونة الدائرية المتدرجة */
.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    animation: iconFloat 3s ease-in-out infinite;
}

/* النصوص */
.feature-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
}

.feature-card p {
    color: #aeb9cf;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 20px;
}

/* تنسيقات الفوتر المخصص */
.custom-footer {
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 4rem 2rem 1rem;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* العناوين (اللون البرتقالي/الأصفر) */
.custom-footer .footer-heading {
    color: #ffb300;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 25px;
}

.custom-footer .brand-title {
    color: #ffb300;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.custom-footer .brand-desc {
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 14px;
}

/* أيقونات السوشيال ميديا */
.social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icons a {
    background: #1a2336;
    color: #aeb9cf;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-icons a:hover {
    background: #6a1b9a;
    color: #fff;
    transform: translateY(-3px);
}

/* الروابط السريعة */
.footer-links {
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aeb9cf;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.footer-links a i {
    font-size: 12px;
}

.footer-links a:hover {
    color: #fff;
    padding-right: 5px;
    /* حركة بسيطة لليسار عند التأشير */
}

/* بيانات التواصل */
.footer-contact {
    padding: 0;
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact li i {
    color: #aeb9cf;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* النشرة البريدية */
.newsletter-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    background: #1a2336;
    border: 1px solid #2d3748;
    border-left: none;
    /* إزالة الحد بين المربع والزر */
    color: #fff;
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
    /* زوايا دائرية من اليمين (للاتجاه العربي) */
    width: 100%;
    outline: none;
}

.newsletter-form button {
    background: linear-gradient(90deg, #6a1b9a, #ec407a);
    border: none;
    color: #fff;
    padding: 0 20px;
    border-radius: 8px 0 0 8px;
    /* زوايا دائرية من اليسار */
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

/* حقوق النشر والخط الفاصل */
.footer-divider {
    border-top: 1px solid #1a2336;
    margin: 40px 0 20px 0;
}

.copyright {
    color: #64748b;
    font-size: 13px;
}

/* --- التنسيقات الأساسية لصفحة المنتج (الوضع الداكن) --- */
#product-product {
    font-family: 'Open Sans', sans-serif;
    color: #aeb9cf;
    direction: rtl;
    margin-top: 35px;
}

/* الكروت العامة */
.custom-card {
    background: #1e2840;
    border: 1px solid #2d3748;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- القسم العلوي: الصورة والتفاصيل --- */
.product-top-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.product-col-image,
.product-col-details {
    padding: 0 15px;
    width: 50%;
}

@media (max-width: 991px) {

    .product-col-image,
    .product-col-details {
        width: 100%;
        margin-top: 13px;
    }
}

/* حاوية الصورة (مطابقة للتصميم بتدرج لوني) */
.product-image-wrapper {
    background: linear-gradient(145deg, #2b2254, #1a1a3a);
    border-radius: 20px;
    /*padding: 40px;*/
    text-align: center;
    /*height: 100%;*/
    /*display: flex;*/
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    width: 100%;
    height: 350px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

/*.product-image-wrapper img:hover {*/
/*    transform: scale(1.05);*/
/*}*/

/* العنوان والوصف القصير */
.product-title {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
}

.product-subtitle {
    color: #aeb9cf;
    font-size: 14px;
    margin-bottom: 30px;
}

/* مربع السعر */
.price-box {
    background: #1e2840;
    border: 1px solid #2d3748;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.price-box .price-current {
    color: #ffb300;
    /* اللون الأصفر للسعر */
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.price-box .price-old {
    color: #64748b;
    text-decoration: line-through;
    font-size: 18px;
}

.price-box .saving-badge {
    color: #00e676;
    /* اللون الأخضر للخصم */
    font-size: 14px;
    font-weight: bold;
}

/* أزرار الإضافة للسلة والمفضلة */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-add-cart {
    flex: 1;
    background: linear-gradient(90deg, #6a1b9a, #ec407a);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-add-cart:hover {
    opacity: 0.9;
    color: #fff;
}

.btn-wishlist {
    background: #252e42;
    border: 1px solid #2d3748;
    color: #aeb9cf;
    border-radius: 12px;
    width: 60px;
    font-size: 20px;
    transition: 0.3s;
}

.btn-wishlist:hover {
    background: #6a1b9a;
    color: #fff;
    border-color: #6a1b9a;
}

/* إدخال الكمية (مخفي برمجياً أو معروض بشكل أنيق) */
.qty-wrapper {
    margin-bottom: 20px;
}

.qty-wrapper input {
    background: #1a2336;
    border: 1px solid #2d3748;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    width: 80px;
    text-align: center;
}

/* --- القسم الأوسط: المواصفات والمميزات --- */
.card-header-title {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-title i {
    color: #ffb300;
}

/* شبكة المواصفات (Attributes) */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.spec-item {
    background: #1a2336;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.spec-item i {
    color: #6a1b9a;
    font-size: 24px;
    margin-bottom: 10px;
}

.spec-item .spec-title {
    display: block;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.spec-item .spec-value {
    color: #aeb9cf;
    font-size: 12px;
}

/* قائمة المميزات (Description) */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 15px 0;
    border-bottom: 1px solid #2d3748;
    display: flex;
    align-items: center;
    color: #aeb9cf;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: #00e676;
    font-size: 18px;
    margin-left: 12px;
}

/* --- الخيارات (Options) --- */
.product-options label {
    color: #fff;
}

.product-options .form-control {
    background: #1a2336;
    border: 1px solid #2d3748;
    color: #fff;
}

/* --- التقييمات --- */
.review-card {
    padding-top: 10px;
}

#review .table {
    color: #aeb9cf;
}

#review .table td {
    border-color: #2d3748 !important;
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: #6a1b9a;
    color: #ffffff;
}

.well {
    margin-top: 35px;
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    border-radius: 24px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.well h2 {
    color: #ffffff;
}

.well h1 {
    color: #ffffff;
}

.well legend {
    color: #ffffff;
}

.well ul li a {
    color: #ffffff;
}

/* --- تنسيقات زر السلة (الأيقونة والشارة) --- */
.custom-cart-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-cart-btn .cart-icon {
    font-size: 26px;
    color: #aeb9cf;
    /* لون الأيقونة */
    transition: 0.3s;
}

.custom-cart-btn:hover .cart-icon {
    color: #fff;
}

/* الشارة البرتقالية (الكمية) */
.cart-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    /* التدرج البرتقالي/الوردي */
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(255, 94, 98, 0.4);
    line-height: 1;
}

/* --- تنسيقات قائمة السلة المنسدلة (Dark Theme) --- */
.custom-cart-dropdown .dropdown-menu {
    background-color: #1e2840;
    border: 1px solid #2d3748;
    border-radius: 16px;
    padding: 15px;
    min-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.custom-cart-dropdown .table {
    margin-bottom: 0;
    color: #aeb9cf;
}

.custom-cart-dropdown .table td {
    border-color: #2d3748 !important;
    vertical-align: middle;
}

.custom-cart-dropdown .table-striped>tbody>tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

.custom-cart-dropdown a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.custom-cart-dropdown a:hover {
    color: #ffb300;
}

.custom-cart-dropdown .btn-danger {
    background: #e53935;
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
}

/* أزرار عرض السلة وإتمام الطلب */
.cart-action-btns a {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 10px;
    background: #1a2336;
    border: 1px solid #2d3748;
    transition: 0.3s;
}

.cart-action-btns a:last-child {
    background: linear-gradient(90deg, #6a1b9a, #ec407a);
    border: none;
}

.cart-action-btns a:hover {
    opacity: 0.8;
}

/* أزرار التحكم في الكمية بصفحة السلة */
.qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.qty-controls .qty-input {
    width: 50px;
    text-align: center;
    background: #1a2336;
    border: 1px solid #2d3748;
    color: #fff;
    border-radius: 8px;
    height: 36px;
    padding: 6px 0;
}

.qty-controls .btn-plus,
.qty-controls .btn-minus {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 14px;
    transition: 0.3s;
}

.qty-controls .btn-plus:hover,
.qty-controls .btn-minus:hover {
    opacity: 0.85;
    color: #fff;
}

.qty-controls .btn-remove-cart {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#cart .dropdown-menu {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    z-index: 1001;
}

.panel {
    background-color: #1a2336;
}

.panel-default>.panel-heading {
    color: #ffffff;
    background-color: #1a2336;
    border-color: rgb(221 221 221 / 0.66);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    margin-top: 8px;
    background-repeat: repeat-y;
}

#content {
    min-height: auto;
}

.fa {
    font-size: 18px;
}

/* --- التنسيقات العامة لصفحة القسم --- */
#product-category {
    font-family: 'Open Sans', sans-serif;
    color: #aeb9cf;
    direction: rtl;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* --- الهيدر الخاص بالقسم (البانر) --- */
.category-header {
    background: linear-gradient(135deg, #1e2840, #0b1120);
    border: 1px solid #2d3748;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(11 17 32 / 34%);
    border-radius: 20px;
    z-index: 1;
}

.category-header-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.category-header-thumb {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 12px;
    background: #1a2336;
    padding: 10px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.category-header h2 {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.category-header p {
    color: #aeb9cf;
    margin: 0;
    line-height: 1.8;
}

.category-header img {
    border-radius: 12px;
    background: #1a2336;
    padding: 5px;
}

/* --- الأقسام الفرعية (Refine Search) --- */
.subcategories-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.subcat-card {
    background: #1e2840;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    text-align: center;
    flex-grow: 1;
}

.subcat-card:hover {
    background: #6a1b9a;
    border-color: #ec407a;
    color: #fff;
    transform: translateY(-3px);
}

/* --- شريط الفلاتر والترتيب (Toolbar) --- */
.category-toolbar {
    background: #1e2840;
    border: 1px solid #2d3748;
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-group label {
    color: #fff;
    margin: 0;
    font-weight: normal;
}

.toolbar-group select {
    background: #1a2336;
    border: 1px solid #2d3748;
    color: #fff;
    border-radius: 8px;
    padding: 8px 15px;
    outline: none;
}

.view-btns .btn {
    background: #1a2336;
    border: 1px solid #2d3748;
    color: #aeb9cf;
    border-radius: 8px;
    transition: 0.3s;
}

.view-btns .btn.active,
.view-btns .btn:hover {
    background: linear-gradient(90deg, #6a1b9a, #ec407a);
    color: #fff;
    border-color: transparent;
}


/* --- كروت المنتجات (نفس التصميم السابق تماماً لضمان التناسق) --- */
.custom-product-grid .product-card {
    background: #1e2840;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    transition: 0.3s;
    border: 1px solid #2d3748;
    display: flex;
    flex-direction: column;
}

.custom-product-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.badge-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(90deg, #ff9966, #ff5e62);
    color: white;
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.card-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10;
}

.product-card:hover .card-actions {
    opacity: 1;
    visibility: visible;
}

.action-btn {
    background: #ffffff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #1e2840;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #6a1b9a;
    color: #fff;
}

.custom-product-grid .image img {
    margin: 0 auto 15px auto;
    max-height: 195px;
    width: 100%;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    box-sizing: border-box;
    height: auto !important;
    /*align-self: flex-start !important;*/
    /*object-fit: contain;*/
}

.custom-product-grid .caption {
    /*flex-grow: 1;*/
}

.custom-product-grid .caption h4 a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}

.custom-product-grid .description {
    color: #aeb9cf;
    font-size: 13px;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-section {
    margin: 15px 0;
}

.price-new {
    color: #ffb300;
    font-weight: bold;
    font-size: 18px;
}

.price-old {
    color: #64748b;
    text-decoration: line-through;
    font-size: 14px;
    margin-right: 5px;
}

.btn-add-cart-grid {
    background: linear-gradient(90deg, #6a1b9a, #ec407a);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: auto;
}

.btn-add-cart-grid:hover {
    opacity: 0.9;
}

/* --- الترقيم (Pagination) --- */
.pagination {
    margin: 20px 0;
}

.pagination>li>a,
.pagination>li>span {
    background-color: #1e2840;
    border: 1px solid #2d3748;
    color: #aeb9cf;
    border-radius: 8px;
    margin: 0 5px;
}

.pagination>.active>a,
.pagination>.active>span {
    background: linear-gradient(90deg, #6a1b9a, #ec407a);
    border-color: transparent;
    color: #fff;
}

.pagination>li>a:hover {
    background-color: #1a2336;
    color: #fff;
}


/* =========================================
   إصلاحات وتنسيقات شاشات الجوال (الموبايل)
   ========================================= */
@media (max-width: 768px) {

    /* 2. ترتيب عناصر الهيدر لتصبح أنيقة على الموبايل في صف واحد */
    .header-main-azhlha {
        padding: 8px 0 !important;
    }

    .header-main-azhlha .header-layout {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* إخفاء القائمة الرئيسية العلوية على الموبايل لتوفير مساحة */
    .header-main-azhlha .main-menu-azhlha {
        display: none !important;
    }

    /* الشعار على اليمين في الاتجاه العربي */
    .header-main-azhlha .right-block {
        flex-shrink: 0 !important;
        order: 1 !important;
    }

    .header-main-azhlha .logo-azhlha {
        max-height: 32px !important;
        margin: 0 !important;
        width: auto !important;
    }

    /* شريط البحث في المنتصف */
    .header-main-azhlha .center-block {
        flex-grow: 1 !important;
        order: 2 !important;
        margin: 0 5px !important;
        max-width: none !important;
        width: auto !important;
    }

    /* الأزرار الدائرية على اليسار */
    .header-main-azhlha .left-block {
        flex-shrink: 0 !important;
        order: 3 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }

    /* إخفاء الأزرار غير الضرورية في الهيدر العلوي للموبايل */
    .header-main-azhlha .left-block .wishlist-wrapper-azhlha,
    .header-main-azhlha .left-block .cart-wrapper-azhlha {
        display: none !important;
    }

    .btn-bell-azhlha-circle,
    .btn-ac-azhlha-circle {
        width: 34px !important;
        height: 34px !important;
    }

    .btn-bell-azhlha-circle i,
    .btn-ac-azhlha-circle i {
        font-size: 14px !important;
    }
}

/* أحياناً كلاس .row في البوتستراب بيعمل تمدد بسبب الهوامش السالبة */
.row {
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   إزالة الحدود والخلفية الرصاصية الافتراضية للسلايدر
   ========================================= */
.swiper-viewport {
    border: none !important;
    /* إزالة الإطار الرصاصي */
    background: transparent !important;
    /* جعل الخلفية شفافة بدلاً من الرصاصي */
    box-shadow: none !important;
    /* إزالة أي ظل افتراضي */
    border-radius: 20px !important;
    /* إضافة حواف دائرية أنيقة للسلايدر لتناسب التصميم */
    margin-bottom: 30px !important;
}

/* تنسيق نقاط السلايدر (الدوائر بالأسفل) لتناسب التصميم الداكن */
.swiper-pagination-bullet {
    background: #aeb9cf !important;
    /* لون رمادي فاتح مائل للأبيض */
    opacity: 0.5 !important;
    width: 10px !important;
    height: 10px !important;
}

.swiper-pagination-bullet-active {
    background: #ec407a !important;
    /* لون وردي/زهري عند التحديد */
    opacity: 1 !important;
}

/* معالجة مشكلة Swiper مع RTL */
.swiper-container {
    direction: ltr !important;
}

.slide-content {
    direction: rtl !important;
}

.breadcrumb {
    display: none !important;
}

/* Category Products Module */
.category-products-section {
    margin: 20px 0;
}

.category-products-section .category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 7px 15px;
}

.category-products-section .category-header .section-title {
    margin: 0;
    text-align: right;
}

.btn-more {
    background: linear-gradient(90deg, #6a1b9a, #ec407a4d);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-more:hover {
    transform: translateY(-3px);
    border-color: #6366f1;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    background: linear-gradient(90deg, #ec4899, #8e24aa);
    color: #ffffff;
}

.category-products-carousel.swiper-viewport {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 0 10px !important;
    overflow: hidden !important;
}

.category-products-carousel .swiper-container {
    width: 100% !important;
    height: auto !important;
}

.category-products-carousel .swiper-wrapper {
    align-items: flex-start !important;
}

.category-products-carousel .swiper-slide {
    width: 25% !important;
    min-width: 230px;
    padding: 0 7px;
    box-sizing: border-box;
    height: auto !important;
    align-self: flex-start !important;
}

.category-products-grid {
    height: auto;
    width: 100%;
}

.category-products-grid .product-card {
    margin-bottom: 0;
    width: 100%;
    height: auto;
}

.category-products-grid .image img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 991px) {
    .category-products-carousel .swiper-slide {
        width: 33.333% !important;
    }
}

@media (max-width: 767px) {
    .custom-product-grid {
        margin-left: -5px;
        margin-right: -5px;
    }

    .custom-product-grid .product-layout {
        padding-left: 5px;
        padding-right: 5px;
    }

    .category-products-carousel .swiper-slide {
        width: 50% !important;
        min-width: 150px;
        padding: 0 4px;
    }

    .category-products-grid .product-card {
        border-radius: 12px;
    }

    .category-products-grid .image img {
        max-height: 120px;
        object-fit: contain;
        width: 100%;
        height: 100%;
    }

    .category-products-grid .caption h4 a {
        font-size: 13px;
    }

    .category-products-grid .description {
        font-size: 11px;
        margin: 5px 0;
    }

    .category-products-grid .price-section {
        margin: 8px 0;
    }

    .category-products-grid .price-new,
    .category-products-grid .price-old {
        font-size: 14px;
    }

    .category-products-grid .btn-add-cart {
        padding: 8px;
        font-size: 12px;
    }

    .category-products-grid .card-actions,
    .category-products-grid .badge-label {
        display: none !important;
    }

    .category-products-carousel .swiper-button-next,
    .category-products-carousel .swiper-button-prev {
        width: 28px !important;
        height: 28px !important;
    }

    .category-header .section-title {
        font-size: 15px;
    }

    .btn-more {
        padding: 5px 12px;
        font-size: 12px;
    }

    .category-products-section {
        margin: 6px 0;
    }

    .category-header {
        padding: 20px;
        /*min-height: 140px;*/
        gap: 15px;
    }

    .category-header-thumb {
        width: 90px;
        height: 90px;
        padding: 6px;
    }

    .category-header h2 {
        font-size: 16px;
    }

    .category-header p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .category-products-carousel .swiper-slide {
        width: 100% !important;
    }
}

.category-products-carousel .product-card {
    direction: rtl !important;
}

.category-products-carousel .swiper-button-next,
.category-products-carousel .swiper-button-prev {
    background-image: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 14px !important;
}

.category-products-carousel .swiper-button-next:before,
.category-products-carousel .swiper-button-prev:before {
    font-family: FontAwesome !important;
    color: #fff !important;
    font-size: 14px !important;
    width: auto !important;
    height: auto !important;
}

.category-products-carousel .swiper-button-next:before {
    content: "\f054";
}

.category-products-carousel .swiper-button-prev:before {
    content: "\f053";
}

.category-products-carousel .swiper-button-next:hover,
.category-products-carousel .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.category-products-carousel .swiper-pagination {
    position: relative;
    margin-top: 8px;
}

.form-control {
    background: #1a2336 !important;
    border: 1px solid #2d3748 !important;
    border-left: none;
    color: #fff;
    border-radius: 8px;
    outline: none;
}

.iti--allow-dropdown input,
.iti--allow-dropdown input[type=tel],
.iti--allow-dropdown input[type=text],
.iti--separate-dial-code input,
.iti--separate-dial-code input[type=tel],
.iti--separate-dial-code input[type=text] {
    padding-left: 64px !important;
}

.iti__flag {
    background-color: transparent !important;
}

.btn-link {
    color: #ffb300;
    font-size: 16px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.btn-link:hover,
.btn-link:focus {
    color: #ec4899;
}

a {
    color: #ffb300;
}

/* Header Circle Buttons styling */
.btn-bell-azhlha-circle,
.btn-ac-azhlha-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #aeb9cf !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    outline: none !important;
}

.btn-bell-azhlha-circle:hover,
.btn-ac-azhlha-circle:hover {
    background-color: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

.btn-bell-azhlha-circle i,
.btn-ac-azhlha-circle i {
    font-size: 16px;
}

.btn-bell-azhlha-circle .bell-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: #ec4899;
    border-radius: 50%;
    box-shadow: 0 0 8px #ec4899;
}

/* Premium Pill Search Bar in Header */
.header-main-azhlha #search {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 2px 4px;
    transition: all 0.3s;
}

.header-main-azhlha #search:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    background-color: rgba(30, 41, 59, 0.6);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.header-main-azhlha #search .form-control {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    height: 36px !important;
    padding: 6px 15px !important;
    font-size: 13px !important;
    box-shadow: none !important;
    width: 100% !important;
}

.header-main-azhlha #search .form-control::placeholder {
    color: #64748b !important;
}

.header-main-azhlha #search .input-group-btn {
    width: auto !important;
    display: flex !important;
    align-items: center;
}

.header-main-azhlha #search .input-group-btn .btn {
    background: transparent !important;
    border: none !important;
    color: #aeb9cf !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: color 0.3s;
}

.header-main-azhlha #search .input-group-btn .btn:hover {
    color: #fff !important;
}

/* Desktop navigation links visibility helper */
.desktop-only {
    display: inline-block;
}

.btn-logout-azhlha-header {
    background: transparent !important;
    border: none !important;
    color: #ef4444 !important;
    font-size: 18px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 12px !important;
}

.btn-login-text-header {
    color: #fff !important;
    font-weight: bold;
    text-decoration: none !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
}

@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
}

/* Fix for custom cart dropdown on mobile screen viewports */
@media (max-width: 767px) {
    .custom-cart-dropdown .dropdown-menu {
        position: fixed !important;
        top: 65px !important;
        /* Adjusted back to thin header height on mobile */
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: calc(100vh - 120px) !important;
        overflow-y: auto !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
        z-index: 999999 !important;
    }
}

/* Mobile Bottom Navigation Bar Styles */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 65px !important;
        background: rgba(15, 23, 42, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        z-index: 9999 !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 10px !important;
    }

    .mobile-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
        color: #64748b !important;
        text-decoration: none !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        flex: 1 !important;
        transition: all 0.3s ease !important;
    }

    .mobile-nav-item i {
        font-size: 18px !important;
        transition: all 0.3s ease !important;
    }

    .mobile-nav-item.active {
        color: #fff !important;
        font-weight: 700 !important;
    }

    .mobile-nav-item.active i {
        color: #a855f7 !important;
        text-shadow: 0 0 10px rgba(168, 85, 247, 0.5) !important;
    }

    /* Add padding to body to prevent content from being hidden behind the bottom bar */
    body {
        padding-bottom: 75px !important;
    }
}

/* Styling for all Account Subpages (generalized style) */
div[id^="account-"].well {
    background: linear-gradient(135deg, #121829, #090d16) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35) !important;
    padding: 30px !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    color: #fff !important;
    font-family: 'Tajawal', sans-serif !important;
}

/* Headings and Legends */
div[id^="account-"].well h1,
div[id^="account-"].well h2,
div[id^="account-"].well legend {
    color: #fff !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 12px !important;
    margin-bottom: 24px !important;
    font-size: 22px !important;
}

/* Form inputs styling */
div[id^="account-"].well .form-control {
    background-color: rgba(30, 41, 59, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-radius: 12px !important;
    height: 44px !important;
    padding: 10px 15px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.3s !important;
}

div[id^="account-"].well .form-control:focus {
    border-color: rgba(99, 102, 241, 0.5) !important;
    background-color: rgba(30, 41, 59, 0.6) !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15) !important;
}

/* Form labels */
div[id^="account-"].well .control-label,
div[id^="account-"].well label {
    color: #aeb9cf !important;
    font-weight: 600 !important;
}

/* Custom buttons */
div[id^="account-"].well .btn-primary {
    background: linear-gradient(135deg, #6366f1, #ec4899) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 24px !important;
    font-weight: 700 !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    transition: all 0.3s !important;
}

div[id^="account-"].well .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45) !important;
}

div[id^="account-"].well .btn-default {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #aeb9cf !important;
    border-radius: 12px !important;
    padding: 10px 24px !important;
    font-weight: 700 !important;
    transition: all 0.3s !important;
}

div[id^="account-"].well .btn-default:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Tables inside subpages */
div[id^="account-"].well .table {
    background-color: rgba(30, 41, 59, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    color: #aeb9cf !important;
    overflow: hidden !important;
    width: 100% !important;
}

div[id^="account-"].well .table thead tr td {
    background-color: rgba(30, 41, 59, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 12px !important;
}

div[id^="account-"].well .table tbody tr td {
    border-color: rgba(255, 255, 255, 0.05) !important;
    vertical-align: middle !important;
    padding: 12px !important;
}

div[id^="account-"].well .table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

div[id^="account-"].well .table a {
    color: #ffb300 !important;
    text-decoration: none !important;
}

div[id^="account-"].well .table a:hover {
    color: #fff !important;
}

/* General Link color */
div[id^="account-"].well a {
    color: #ffb300 !important;
}

div[id^="account-"].well a:hover {
    color: #fff !important;
}

/* Standard alerts override */
div[id^="account-"].well .alert {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid #10b981 !important;
    color: #fff !important;
    border-radius: 12px !important;
}

div[id^="account-"].well .alert .close {
    color: #fff !important;
    opacity: 0.8 !important;
}

/* Light / Dark Theme Global Toggle button styling */
.btn-theme-toggle-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #aeb9cf !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    outline: none !important;
}

.btn-theme-toggle-circle:hover {
    background-color: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

.btn-theme-toggle-circle i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .btn-theme-toggle-circle {
        width: 34px !important;
        height: 34px !important;
    }

    .btn-theme-toggle-circle i {
        font-size: 14px !important;
    }
}

/* GLOBAL LIGHT THEME OVERRIDES */
html.light-theme body,
body.light-theme {
    background: #ffffff !important;
    color: #1e293b !important;
}

/* Header overrides */
.light-theme .header-main-azhlha {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .header-main-azhlha #search {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}

.light-theme .header-main-azhlha #search .form-control {
    color: #0f172a !important;
    background: transparent !important;
}

.light-theme .header-main-azhlha #search .form-control::placeholder {
    color: #94a3b8 !important;
}

.light-theme .header-main-azhlha #search .input-group-btn .btn {
    color: #64748b !important;
}

.light-theme .btn-theme-toggle-circle,
.light-theme .btn-ac-azhlha-circle {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

.light-theme .btn-theme-toggle-circle:hover,
.light-theme .btn-ac-azhlha-circle:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* Account Page main layout overrides */
.light-theme .azhlha-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
}

.light-theme .azhlha-card::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.02) 0%, transparent 60%) !important;
}

.light-theme .profile-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
    border: 1px solid #cbd5e1 !important;
}

.light-theme .profile-card::after {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.04) 0%, transparent 70%) !important;
}

.light-theme .profile-welcome {
    color: #64748b !important;
}

.light-theme .profile-name {
    color: #0f172a !important;
}

.light-theme .profile-email {
    color: #475569 !important;
}

.light-theme .stat-box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

.light-theme .stat-val {
    color: #0f172a !important;
}

.light-theme .stat-lbl {
    color: #64748b !important;
}

/* Quick Actions override */
.light-theme .action-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

.light-theme .action-card:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04) !important;
}

.light-theme .action-card-title {
    color: #0f172a !important;
}

.light-theme .action-card-subtitle {
    color: #64748b !important;
}

.light-theme .action-card-arrow {
    color: #94a3b8 !important;
}

.light-theme .action-card:hover .action-card-arrow {
    color: #6366f1 !important;
}

/* Support Card override */
.light-theme .support-banner {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
    border-color: #e2e8f0 !important;
}

.light-theme .support-title {
    color: #0f172a !important;
}

.light-theme .support-subtitle {
    color: #64748b !important;
}

.light-theme .support-btn {
    color: #475569 !important;
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
}

.light-theme .support-btn:hover {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* Management Card list override */
.light-theme .mgmt-title {
    color: #0f172a !important;
}

.light-theme .mgmt-title-wrapper {
    border-bottom-color: #e2e8f0 !important;
}

.light-theme .mgmt-item {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

.light-theme .mgmt-item:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.light-theme .mgmt-item-title {
    color: #0f172a !important;
}

.light-theme .mgmt-item-desc {
    color: #64748b !important;
}

.light-theme .mgmt-item-arrow {
    color: #94a3b8 !important;
}

.light-theme .mgmt-item:hover .mgmt-item-arrow {
    color: #6366f1 !important;
}

.light-theme .logout-btn {
    background: #fef2f2 !important;
    border-color: #fee2e2 !important;
    color: #ef4444 !important;
}

.light-theme .logout-btn:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* Subpages light overrides */
.light-theme div[id^="account-"].well {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
    color: #1e293b !important;
}

.light-theme div[id^="account-"].well h1,
.light-theme div[id^="account-"].well h2,
.light-theme div[id^="account-"].well legend {
    color: #0f172a !important;
    border-bottom-color: #e2e8f0 !important;
}

.light-theme div[id^="account-"].well .form-control {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.light-theme div[id^="account-"].well .form-control:focus {
    border-color: #6366f1 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.light-theme div[id^="account-"].well .control-label,
.light-theme div[id^="account-"].well label {
    color: #475569 !important;
}

.light-theme div[id^="account-"].well .btn-default {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

.light-theme div[id^="account-"].well .btn-default:hover {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

.light-theme div[id^="account-"].well .table {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}

.light-theme div[id^="account-"].well .table thead tr td {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.light-theme div[id^="account-"].well .table tbody tr td {
    border-color: #e2e8f0 !important;
}

.light-theme div[id^="account-"].well .table tbody tr:hover {
    background-color: #f8fafc !important;
}

.light-theme div[id^="account-"].well .table a,
.light-theme div[id^="account-"].well a {
    color: #4f46e5 !important;
}

.light-theme div[id^="account-"].well .table a:hover,
.light-theme div[id^="account-"].well a:hover {
    color: #0f172a !important;
}

/* Mobile bottom nav light overrides */
.light-theme .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid #e2e8f0 !important;
}

.light-theme .mobile-nav-item {
    color: #64748b !important;
}

.light-theme .mobile-nav-item.active {
    color: #0f172a !important;
}

.light-theme .mobile-nav-item.active i {
    color: #6366f1 !important;
}

/* Cart dropdown light overrides */
.light-theme .custom-cart-dropdown .dropdown-menu {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.light-theme .custom-cart-dropdown .table {
    color: #475569 !important;
}

.light-theme .custom-cart-dropdown .table td {
    border-color: #e2e8f0 !important;
}

.light-theme .custom-cart-dropdown .table-striped>tbody>tr:nth-of-type(odd) {
    background-color: #f8fafc !important;
}

.light-theme .custom-cart-dropdown a {
    color: #0f172a !important;
}

.light-theme .custom-cart-dropdown a:hover {
    color: #4f46e5 !important;
}

.light-theme .cart-action-btns a {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

.light-theme .cart-action-btns a:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

.light-theme .cart-action-btns a:last-child {
    background: linear-gradient(90deg, #6366f1, #ec4899) !important;
    border: none !important;
    color: #ffffff !important;
}

/* =========================================
   تنسيقات صفحة سلة المشتريات (Redesigned Cart Page)
   ========================================= */

/* Header section matching mobile header */
.cart-header-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 20px !important;
    margin-bottom: 30px !important;
}

.cart-header-title .back-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.3s;
}

.cart-header-title .back-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffb300 !important;
}

.cart-header-title h2 {
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-align: center !important;
    font-family: 'Tajawal', sans-serif !important;
}

.cart-icon-wrapper {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.cart-icon-wrapper i {
    font-size: 16px !important;
}

.cart-count-badge {
    position: absolute !important;
    top: -5px !important;
    left: -5px !important;
    background: linear-gradient(135deg, #ec4899, #8b5cf6) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5) !important;
}

/* Grid Layout */
.cart-layout-grid {
    display: grid !important;
    grid-template-columns: 1.8fr 1.2fr !important;
    gap: 30px !important;
    align-items: start !important;
}

@media (max-width: 991px) {
    .cart-layout-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Column 1: Items List */
.cart-items-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* Cart Item Card */
.cart-item-card {
    background: linear-gradient(135deg, #121829, #090d16) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    position: relative !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease !important;
}

.cart-item-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

/* Remove button in card */
.btn-remove-item {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s;
    outline: none !important;
}

.btn-remove-item:hover {
    background: #ef4444 !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
}

/* Unit Price Badge in top right */
.item-unit-price-badge {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
}

/* Item Card Body */
.cart-item-body {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin-top: 25px !important;
    margin-bottom: 15px !important;
}

.item-image-wrapper {
    flex-shrink: 0 !important;
}

.item-image-wrapper img.item-img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.item-details {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.item-title {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    font-family: 'Tajawal', sans-serif !important;
}

.item-title a {
    color: #fff !important;
    text-decoration: none !important;
}

.item-title a:hover {
    color: #ffb300 !important;
}

.item-category-tag {
    font-size: 11px !important;
    color: #a855f7 !important;
    font-weight: 600 !important;
}

/* Item Quantity selector pill */
.item-quantity-selector {
    display: inline-flex !important;
    align-items: center !important;
    background-color: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 25px !important;
    padding: 2px !important;
    width: fit-content !important;
    margin-top: 5px !important;
}

.qty-btn {
    background: transparent !important;
    border: none !important;
    color: #cbd5e1 !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s;
    outline: none !important;
}

.qty-btn:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.qty-btn.plus {
    color: #a855f7 !important;
}

.qty-btn.minus {
    color: #ec4899 !important;
}

.qty-num-input {
    width: 32px !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    outline: none !important;
}

/* Item Card Footer */
.cart-item-footer {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-top: 12px !important;
}

.item-price-block .price-val {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    font-family: 'Tajawal', sans-serif !important;
}

/* Coupon Card */
.coupon-card {
    background: linear-gradient(135deg, #121829, #090d16) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease !important;
}

.coupon-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

.coupon-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    padding: 5px 0 !important;
}

.coupon-header span {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    font-family: 'Tajawal', sans-serif !important;
}

.coupon-header .toggle-icon {
    font-size: 14px !important;
    color: #cbd5e1 !important;
    transition: transform 0.3s ease !important;
}

.coupon-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg) !important;
}

.coupon-body {
    padding-top: 15px !important;
}

.coupon-body .collapse.in {
    display: block !important;
}

.coupon-input-group {
    display: flex !important;
    gap: 10px !important;
}

.coupon-input-group .form-control {
    flex-grow: 1 !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-radius: 12px !important;
    height: 44px !important;
}

.coupon-input-group .form-control:focus {
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15) !important;
}

.btn-apply-coupon {
    background: linear-gradient(135deg, #6366f1, #ec4899) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 0 20px !important;
    height: 44px !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25) !important;
    transition: all 0.3s;
}

.btn-apply-coupon:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.35) !important;
}

/* Summary Card */
.summary-card {
    margin-bottom: 24px !important;
}

.summary-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 20px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 12px !important;
    font-family: 'Tajawal', sans-serif !important;
}

.summary-rows {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.summary-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 14px !important;
}

.summary-row .row-label {
    color: #aeb9cf !important;
}

.summary-row .row-value {
    color: #fff !important;
    font-weight: 600 !important;
}

.summary-row.total-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-top: 15px !important;
    margin-top: 5px !important;
    font-size: 16px !important;
}

.summary-row.total-row .row-label {
    color: #fff !important;
    font-weight: 700 !important;
}

.summary-row.total-row .row-value {
    color: #ec4899 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    font-family: 'Tajawal', sans-serif !important;
}

/* Checkout Button & Security Badge */
.checkout-actions-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
}

.btn-checkout-gradient {
    width: 100% !important;
    background: linear-gradient(135deg, #6366f1, #ec4899) !important;
    border: none !important;
    border-radius: 14px !important;
    color: #fff !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35) !important;
    transition: all 0.3s;
    font-family: 'Tajawal', sans-serif !important;
}

.btn-checkout-gradient:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45) !important;
    color: #fff !important;
}

.btn-checkout-gradient .arrow-icon {
    font-size: 14px !important;
}

.secure-payment-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.secure-payment-badge i {
    font-size: 12px !important;
}

/* Empty State Card */
.empty-cart-state {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 20px !important;
    text-align: center !important;
}

.empty-cart-state .empty-icon {
    font-size: 64px !important;
    color: #475569 !important;
    margin-bottom: 20px !important;
}

.empty-cart-state p {
    color: #aeb9cf !important;
    font-size: 16px !important;
    margin-bottom: 24px !important;
    font-family: 'Tajawal', sans-serif !important;
}

.empty-cart-state .btn-continue-shopping {
    background: linear-gradient(135deg, #6366f1, #ec4899) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Light Theme Overrides for Cart Page */
.light-theme .cart-header-title {
    border-bottom-color: #e2e8f0 !important;
}

.light-theme .cart-header-title .back-btn,
.light-theme .cart-icon-wrapper {
    background-color: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #475569 !important;
}

.light-theme .cart-header-title h2 {
    color: #0f172a !important;
}

.light-theme .cart-item-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03) !important;
}

.light-theme .cart-item-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
    border-color: #cbd5e1 !important;
}

.light-theme .item-image-wrapper img.item-img {
    border-color: #e2e8f0 !important;
    background-color: #f8fafc !important;
}

.light-theme .item-title {
    color: #0f172a !important;
}

.light-theme .item-title a {
    color: #0f172a !important;
}

.light-theme .item-quantity-selector {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.light-theme .qty-btn {
    color: #475569 !important;
}

.light-theme .qty-btn:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: #000 !important;
}

.light-theme .qty-num-input {
    color: #0f172a !important;
}

.light-theme .cart-item-footer {
    border-top-color: #f1f5f9 !important;
}

.light-theme .item-price-block .price-val {
    color: #0f172a !important;
}

.light-theme .coupon-header span,
.light-theme .summary-title {
    color: #0f172a !important;
}

.light-theme .summary-title {
    border-bottom-color: #e2e8f0 !important;
}

.light-theme .coupon-input-group .form-control {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.light-theme .coupon-input-group .form-control:focus {
    border-color: #6366f1 !important;
}

.light-theme .summary-row .row-label {
    color: #64748b !important;
}

.light-theme .summary-row .row-value {
    color: #0f172a !important;
}

.light-theme .summary-row.total-row {
    border-top-color: #e2e8f0 !important;
}

.light-theme .summary-row.total-row .row-label {
    color: #0f172a !important;
}

.light-theme .empty-cart-state .empty-icon {
    color: #cbd5e1 !important;
}

.light-theme .empty-cart-state p {
    color: #64748b !important;
}

/* =========================================
   تنسيقات صفحة الشراء السريع (Redesigned Quick Checkout)
   ========================================= */

.quick-checkout-layout {
    display: grid !important;
    grid-template-columns: 1.2fr 1.8fr !important;
    gap: 30px !important;
    align-items: start !important;
    direction: rtl !important;
}

.quick-checkout-forms-col {
    order: 1 !important;
    /* Forms on the right in RTL */
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    background: linear-gradient(135deg, #121829, #090d16) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    position: relative !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease !important;
}

.quick-checkout-cart-col {
    order: 2 !important;
    /* Cart on the left in RTL */
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    background: linear-gradient(135deg, #121829, #090d16) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease !important;
}

@media (max-width: 991px) {
    .quick-checkout-layout {
        grid-template-columns: 1fr !important;
    }

    .quick-checkout-forms-col {
        order: 2 !important;
        /* Forms stacked below cart on mobile */
    }

    .quick-checkout-cart-col {
        order: 1 !important;
        /* Cart at the top on mobile */
    }
}

/* Form Cards Styling */
.quick-form-card {
    padding: 24px !important;
}

.card-header-custom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
}

.card-header-custom.flex-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.card-title-custom {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    font-family: 'Tajawal', sans-serif !important;
}

.quick-form-card .control-label {
    color: #aeb9cf !important;
    font-weight: 600 !important;
    text-align: right !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
}

.quick-form-card .form-control {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-radius: 12px !important;
    height: 44px !important;
    transition: all 0.3s;
}

.quick-form-card .form-control:focus {
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15) !important;
}

.quick-form-card select.form-control {
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 12px center !important;
    background-size: 16px !important;
    padding-left: 35px !important;
}

.row-form {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 16px !important;
}

.no-padding {
    padding: 0 !important;
}

.btn-checkout-action {
    background: linear-gradient(135deg, #6366f1, #ec4899) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-weight: 700 !important;
    height: 44px !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25) !important;
}

.btn-checkout-action:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.35) !important;
}

/* Link buttons overrides */
.quick-form-card .btn-link {
    color: #ffb300 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.quick-form-card .btn-link:hover {
    color: #fff !important;
}

/* Radio buttons styled modernly */
.quick-form-card .radio {
    background-color: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    transition: all 0.3s;
}

.quick-form-card .radio:hover {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.quick-form-card .radio input[type="radio"] {
    margin-top: 3px !important;
    margin-right: -20px !important;
}

.quick-form-card .radio label {
    padding-right: 25px !important;
    padding-left: 0 !important;
    cursor: pointer !important;
}

/* Agree Checkbox styling */
.checkout-actions-wrapper .checkbox {
    margin-bottom: 10px !important;
}

.checkout-actions-wrapper .checkbox label {
    cursor: pointer !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* intl-tel-input integration styling */
.iti {
    width: 100% !important;
}

.iti__country-list {
    background-color: #121829 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.iti__country:hover,
.iti__country.iti__highlight {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Cart Card elements modification */
.quick-cart-card {
    padding: 24px !important;
}

.card-header-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
}

.card-header-flex .modify-link {
    color: #ffb300 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.card-header-flex .modify-link:hover {
    color: #fff !important;
}

/* Coupon integration styling inside quick checkout */
.quick-checkout-modules .panel {
    background: linear-gradient(135deg, #121829, #090d16) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
    padding: 15px 20px !important;
}

.quick-checkout-modules .panel-heading {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.quick-checkout-modules .panel-title a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-family: 'Tajawal', sans-serif !important;
}

.quick-checkout-modules .panel-collapse.collapse.in {
    display: block !important;
}

.quick-checkout-modules .panel-body {
    border: none !important;
    padding: 15px 0 0 0 !important;
}

.quick-checkout-modules .control-label {
    display: none !important;
    /* Hide redundant label */
}

.quick-checkout-modules .input-group {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
}

.quick-checkout-modules .form-control {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-radius: 12px !important;
    height: 44px !important;
    flex-grow: 1 !important;
}

.quick-checkout-modules .input-group-btn {
    width: auto !important;
}

.quick-checkout-modules .btn-primary {
    background: linear-gradient(135deg, #6366f1, #ec4899) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-weight: 700 !important;
    height: 44px !important;
    padding: 0 20px !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25) !important;
}

/* Light Theme Overrides for Quick Checkout */
.light-theme .quick-form-card,
.light-theme .quick-cart-card,
.light-theme .coupon-card,
.light-theme .quick-checkout-modules .panel {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03) !important;
}

.light-theme .coupon-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
}

.light-theme .card-header-custom,
.light-theme .card-header-flex,
.light-theme .quick-checkout-modules .panel-heading {
    border-bottom-color: #e2e8f0 !important;
}

.light-theme .card-title-custom,
.light-theme .quick-checkout-modules .panel-title a {
    color: #0f172a !important;
}

.light-theme .quick-form-card .control-label {
    color: #475569 !important;
}

.light-theme .quick-form-card .form-control,
.light-theme .quick-checkout-modules .form-control {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.light-theme .quick-form-card .form-control:focus,
.light-theme .quick-checkout-modules .form-control:focus {
    border-color: #6366f1 !important;
}

.light-theme .quick-form-card select.form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.light-theme .quick-form-card .btn-link,
.light-theme .card-header-flex .modify-link {
    color: #4f46e5 !important;
}

.light-theme .quick-form-card .btn-link:hover,
.light-theme .card-header-flex .modify-link:hover {
    color: #0f172a !important;
}

.light-theme .quick-form-card .radio {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.light-theme .quick-form-card .radio label,
.light-theme .quick-form-card .radio strong,
.light-theme .shipping-method-group strong {
    color: #475569 !important;
}

.light-theme .checkout-actions-wrapper .checkbox label {
    color: #475569 !important;
}

.light-theme .iti__country-list {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.light-theme .iti__country:hover,
.light-theme .iti__country.iti__highlight {
    background-color: #f8fafc !important;
}

.light-theme .shipping-method-group strong {
    color: #0f172a !important;
}
.text-muted{
    color: #ffffff;
}