

[data-theme="light"] {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --nav-bg: rgba(248, 249, 250, 0.97);
    --footer-bg: rgba(248, 249, 250, 0.97);
    --card-bg: #ffffff;
    --border-color: #8A8E4B;
    --neon-shadow: 0 0 15px #8A8E4B66;
    --footer-text: rgba(0, 0, 0, 0.8);
}

:root {
    /* الألوان الداكنة الأصلية */
    --neon-blue: #8A8E4B;
    --neon-shadow: 0 0 5px #898D4B;
    --light-neon-blue: #BBC25D;
    --dark-neon-blue: #0a0a0a;
    --soft-neon-blue: #7B7F45;
    --deep-neon-blue: #64673D;
    --bg-color: #0a0a0a;
    --bg-color-card: #1b1b1b;
    --text-color: #ffffff;
    --footer-text: rgba(255, 255, 255, 0.9);
    --dot-color: #E78D57;


    /* الألوان الفاتحة الجديدة */
    --light-bg: #f0f8ff;
    --light-text: #1a1a1a;
    --light-card: #e6f7ff;
    --light-border: #a5aa62;
}

[data-theme="light"] {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --nav-bg: rgba(248, 249, 250, 0.97);
    --footer-bg: rgba(248, 249, 250, 0.97);
    --card-bg: #ffffff;
    --border-color: #afafaf;
    --neon-shadow: 0 0 15px #8A8E4B66;
    --neon-blue: #8A8E4B;
    --footer-text: rgba(0, 0, 0, 0.8);
}
body {
    font-family: 'Almarai', sans-serif;
    background-color: var(--bg-color);
    color: var(--light-neon-blue);
    padding-top: 80px;
}

/* تحسينات عامة للعرض */
.navbar {
    background: var(--dark-neon-blue);
    box-shadow: var(--neon-shadow);
    padding: 0.8rem 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    direction: rtl;
    justify-content: space-between;
    width: auto;
    position: fixed;
    left: 0;
    top: 0;
}

.navbar-brand {
    color: var(--neon-blue) !important;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-link {
    color: var(--light-neon-blue) !important;
    font-weight: 500;
    padding: 0.8rem 1rem !important;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.nav-link:hover,
.nav-link.active {
    color: #E78D57 !important;
}

.container {
    width: 100%;
    max-width: 1200px;
}

/* حل مشكلة لون الزر + تحسينات القائمة المنسدلة */
.dropdown-toggle {
    background: transparent !important;
    border: none !important;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-toggle::after {
    border: none !important;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0;
    margin-left: 0.3rem;
    vertical-align: 0;
}

.dropdown-menu {
    background: var(--dark-neon-blue);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    text-align: right;
}

.dropdown-item {
    position: relative;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    width: 95%;
    direction: rtl;
}

.dropdown-item::before {
    content: "";
    position: absolute;
    right: -10px;
    width: 3px;
    height: 0%;
    background: var(--neon-blue);
    transition: all 0.3s ease;
}

.dropdown-item:hover::before {
    height: 60%;
    right: 0;
}

.dropdown-item[data-filter="all"]::after {
    content: "\f0ca";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.dropdown-item[data-filter="helmets"]::after {
    content: "\f807";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.dropdown-item[data-filter="tires"]::after {
    content: "\f1b2";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.dropdown-item[data-filter="gloves"]::after {
    content: "\f58c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.dropdown-item[data-filter="tools"]::after {
    content: "\f7d9";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.navbar-nav {
    direction: rtl;
}

.dropdown-menu[data-bs-popper] {
    left: auto !important;
    right: 0;
}

.nav-link {
    font-family: 'Tajawal', sans-serif;
}

.search-box i {
    transform: rotateY(180deg);
    margin-left: 0.5rem;
}

.navbar-brand {
    font-family: 'Almarai', 'El Messiri', cursive;
    letter-spacing: -1px;
}

.badge {
    transform: translate(70%, -50%);
    background: var(--deep-neon-blue);
    color: white;
}

/* تحسينات الحركة */
@keyframes itemSlide {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dropdown-item {
    animation: itemSlide 0.4s ease forwards;
}

@keyframes rotateCaret {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(180deg);
    }
}

.dropdown-toggle:not(.collapsed)::after {
    animation: rotateCaret 0.3s ease forwards;
}

.search-box {
    background: rgba(70, 70, 70, 0.5);
    border-radius: 30px;
    padding: 0.3rem 1.2rem;
    margin: 0 0 0 10%;
    width: 400px;
    transition: all 0.3s ease;
}

.search-box:hover {
    box-shadow: var(--neon-shadow);
}

.search-input {
    background: transparent !important;
    border: none !important;
    color: var(--light-neon-blue) !important;
    padding: 0.3rem 0.5rem;
}

.search-input::placeholder {
    color: var(--light-neon-blue) !important;
}

.search-input:focus {
    box-shadow: none !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.badge {
    position: absolute;
    top: 5px;
    left: 20px;
    font-size: 0.6rem;
    padding: 0.25rem 0.4rem;
}

.nav-item.dropdown:hover .dropdown-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--dark-neon-blue);
        padding: 1rem;
        margin-top: 0.5rem;
    }

    .search-box {
        width: 100%;
        margin: 1rem 0;
        order: 3;
    }

    .dropdown-menu {
        background: rgba(255, 255, 255, 0.05);
        margin-left: 1.5rem;
        box-shadow: none;
    }

    .dropdown-item {
        font-size: 0.95rem;
        padding: 0.6rem 1.5rem;
    }

    .dropdown-item:hover {
        padding-left: 1.5rem;
    }
}

@media (min-width: 992px) {
    .navbar-nav {
        gap: 0.5rem;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}


.product-card {
    background: var(--bg-color-card);
    border-radius: 15px;
    margin: 1rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--light-neon-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-img {
    height: 220px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-price {
    color: var(--neon-blue);
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--dark-neon-blue);
    color: var(--light-neon-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.filter-section {
    background: var(--dark-neon-blue);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: var(--neon-shadow);
}

.filter-btn {
    background: var(--bg-color);
    border: 2px solid var(--neon-blue);
    color: var(--light-neon-blue);
    margin: 5px;
    padding: 8px 25px;
    border-radius: 30px;
    transition: all 0.4s ease;
}

.filter-btn:hover {
    background: var(--bg-color);
    border: 2px solid var(--light-neon-blue);
    color: var(--soft-neon-blue);
    box-shadow: var(--neon-shadow);

}

.filter-btn.active {
    background: var(--deep-neon-blue);
    color: white;
    transform: scale(1.05);
}

.quick-view-modal {
    margin: 0% auto;
}

.quick-view-modal .modal-content {
    border-radius: 20px;
    border: 2px solid var(--light-neon-blue);
    background: var(--bg-color-card);

}

.product-gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: auto;
}

.product-gallery-thumb.active {
    border-color: var(--neon-blue);
    transform: scale(1.05);
}

.product-specs {
    list-style: none;
    padding: 0;
}

.product-specs li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-neon-blue);
}


/* أضف هذه الأنماط في ملف Product.css */
.product-card {
    height: 100%;
    /* تأكد من أن البطاقة تأخذ كامل الارتفاع */
    display: flex;
    flex-direction: column;
}

.product-card .product-img {
    height: 200px;
    /* ارتفاع ثابت للصور */
    object-fit: contain;
    /* الحفاظ على تناسق الصور */
    flex-shrink: 0;
    /* منع الصورة من التقلص */
}

.product-card .product-content {
    flex: 1;
    /* جعل المحتوى يأخذ المساحة المتبقية */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* تعديلات إضافية لتحسين التنسيق */
.product-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    margin-top: 20px;

    min-height: 3em;
    /* ارتفاع ثابت لعنوان المنتج */
}

.product-card .product-price {
    margin-top: auto;
    /* دفع السعر للأسفل */
}

.btn-outline-primary {
    margin-top: 1rem;
}


.row {
    --bs-gutter-x: .5rem;
    --bs-gutter-y: 2rem;
}


.rounded-3 {
    border-radius: var(--bs-border-radius-lg) !important;
    margin: 0;
}

.modal-header .btn-close {
    margin: 0;
    color: white !important;
}

.btn-close {
    filter: invert(100%) !important;
}

.product-card .product-img {
    min-height: 220px;
    margin-right: -5%;
}

.btn-outline-primary {
    --bs-btn-active-bg: var(--light-neon-blue);
    --bs-btn-active-border-color: white;
}

.btn-primary {
    color: var(--deep-neon-blue);
    background: var(--bg-color-card);
    border: var(--light-neon-blue) solid 2px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    color: var(--light-neon-blue);
    background: var(--dark-neon-blue);
    border: var(--light-neon-blue) solid 2px;
}

.btn-primary:active {
    color: var(--light-neon-blue);
    background: var(--dark-neon-blue);
    border: var(--light-neon-blue) solid 2px;
}

.btn-outline-primary {
    color: var(--neon-blue);
    border: var(--neon-blue) solid 2px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    color: var(--light-neon-blue);
    border: var(--light-neon-blue) solid 2px;
    background: #000;
}

.btn-close {
    color: #ffa600 !important;
}


.btn-primary {
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--deep-neon-blue);
    --bs-btn-active-border-color: var(--light-neon-blue);
    --bs-btn-active-shadow: inset 0 3px 5px var(--light-neon-blue);
}


/* تصميم الفوتر الجديد */
.footer {
    background: rgba(10, 10, 10, 0.97);
    border-top: 1px solid var(--neon-blue);
    padding: 4rem 2rem;
    position: relative;
    backdrop-filter: blur(12px);
    margin-top: 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-shadow: var(--neon-shadow);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background: var(--neon-blue);
    bottom: -2px;
    right: 0;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.footer-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--neon-blue);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
    text-shadow: var(--neon-shadow);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}



@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-toggler {
        border: none;
    }

    .filter-section {
        margin-top: 25%;
    }

    .product-card {
        margin: 1rem 0;
    }

    .product-card .product-img {
        min-height: 220px;
        margin-right: 0 auto;
    }

    .filter-section {
        padding: 1rem;
    }

    .footer {
        text-align: center;
    }

    .footer .social-links {
        justify-content: center;
    }
}

/* Product.css - إضافة أنماط الوضع الفاتح */

[data-theme="light"] body {
    color: #212529;
}

[data-theme="light"] .navbar {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

[data-theme="light"] .product-card {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #dee2e6;
}



/* أنماط زر التبديل المحسنة */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--neon-blue);
    border: 2px solid var(--light-neon-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neon-shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle i {
    position: absolute;
    font-size: 1.2rem;
    color: var(--bg-color-card);
    transition: opacity 0.3s ease;
}

.sun-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: block;
}

[data-theme="light"] .moon-icon {
    display: none;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    background: var(--deep-neon-blue);
}

[data-theme="light"] .product-card {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}



/* إصلاح تعارض أنماط الزر */
.theme-toggle {
    z-index: 9999 !important;
    /* تأكد من ظهوره فوق كل العناصر */
    background: var(--neon-blue) !important;
    border: 2px solid var(--light-neon-blue) !important;
}

/* إصلاح لون النص في الوضع الفاتح */
[data-theme="light"] {
    --text-color: #212529 !important;
}

[data-theme="light"] .nav-link,
[data-theme="light"] .dropdown-item,
[data-theme="light"] .search-input::placeholder {
    color: var(--light-text) !important;
}

/* إصلاح لون حدود المودال */
[data-theme="light"] .modal-content {
    border: 2px solid var(--light-neon-blue) !important;
}

/* إصلاح لون خلفية الفوتر */
[data-theme="light"] .footer {
    background: rgba(248, 249, 250, 0.97) !important;
}

[data-theme="light"] .btn-close {
    filter: invert(0%) !important;
}

/* تكبير الصورة عند التحويم (للأجهزة المكتبية) */
.product-img {
    cursor: zoom-in;
    transition: transform 0.3s;
}

.product-img:hover {
    transform: scale(1.1);
}

/* تكبير الصورة عند النقر (للأجهزة المحمولة) */
@media (max-width: 768px) {
    .product-img:active {
        transform: scale(2);
        z-index: 999;
    }
}

/* تحسينات نظام التكبير */
.image-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    height: 220px;
    /* ارتفاع ثابت للحاوية */
}

.zoomed-image {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zoom-lens {
    position: absolute;
    border: 2px solid var(--neon-blue);
    background: rgba(0, 243, 255, 0.1);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.zooming .zoomed-image {
    transform: scale(2);
}

.zooming .zoom-lens {
    opacity: 1;
}

@media (max-width: 768px) {
    .zooming .zoomed-image {
        transform: scale(1.8) !important;
    }

    .zoom-lens {
        width: 80px;
        height: 80px;
    }
}

/* إصلاح تداخل الأنماط */
.product-card:hover .product-img {
    transform: none;
    /* تعطيل التحريك الأصلي */
}


/* Lightbox Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 30px rgba(255, 166, 0, 0.808);
}

.lightbox-close-btn {
    position: absolute;
    top: -40px;
    right: -30px;
    color: var(--neon-blue);
    font-size: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close-btn:hover {
    color: var(--light-neon-blue);
}

#main-product-img {
    cursor: zoom-in;
    transition: transform 0.3s;
}

#main-product-img:hover {
    transform: scale(1.03);
}

/* تقليل المسافة بين الصفوف */
.row {
    --bs-gutter-y: 1rem;
    /* كان 2rem */
}

/* تقليل الهوامش الداخلية للبطاقات */
.product-card {
    margin: 0.5rem;
    /* كان 1rem */
    padding: 1rem;
    /* كان 1.5rem */
}

.main-content {
    flex: 1;
    min-height: calc(100vh - 400px);
    /* يمنع التصاق الفوتر */
}

/* Product.css - إصلاح تموضع زر الواتساب */
.modal-body .btn-primary {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    margin-top: 2rem;
}

.modal-body .row {
    position: relative;
    padding-bottom: 100px;
    /* مساحة للزر */
}

.modal-body .col-lg-6 {
    min-height: 400px;
    /* ارتفاع مناسب للمحتوى */
}

/* توحيد حجم الصور في Quick View */
#main-product-img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

.product-gallery {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 15px 0;
}

.product-gallery-thumb {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 10px !important;
}





/* Transitions for Smooth Mode Switching */
body,
.navbar,
.product-card,
.filter-section,
.footer,
.dropdown-menu,
.nav-link,
.search-box,
.filter-btn,
.btn-primary,
.btn-outline-primary,
.modal-content,
.theme-toggle,
.product-price,
.footer-links a {
    transition: all 0.4s ease-in-out;
}

/* Navbar Light Mode Improvements */
[data-theme="light"] .navbar {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}


/* Dropdown Menu Light Mode Improvements */
[data-theme="light"] .dropdown-menu {
    background: var(--menu-bg);
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .dropdown-item {
    color: var(--menu-text);
}

[data-theme="light"] .dropdown-item:hover {
    background-color: rgba(255, 102, 0, 0.788);
    color: var(--menu-hover);
}

[data-theme="light"] .dropdown-item::before {
    background: var(--neon-blue);
}

/* Search Box Light Mode */
[data-theme="light"] .search-box {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .search-input::placeholder {
    color: #6c757d !important;
}

[data-theme="light"] .search-box i {
    color: #6c757d !important;
}

/* Filter Section Light Mode */
[data-theme="light"] .filter-section {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .filter-btn {
    background: white;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    box-shadow: none;
    transition: all 0.3s ease;
}

[data-theme="light"] .filter-btn:hover {
    background: rgba(0, 123, 255, 0.08);
    box-shadow: 0 0 8px rgba(241, 149, 11, 0.863);
}

[data-theme="light"] .filter-btn.active {
    background: var(--neon-blue);
    color: white;
    box-shadow: 0 0 10px rgba(218, 102, 7, 0.877);
}

/* Product Cards Light Mode */
[data-theme="light"] .product-card {
    background: white;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

[data-theme="light"] .product-card::before {
    background: var(--neon-blue);
}

[data-theme="light"] .product-badge {
    background: #e9ecef;
    color: var(--text-color);
}

/* Button Styles Light Mode */
[data-theme="light"] .btn-primary {
    color: white;
    background: var(--neon-blue);
    border: 1px solid var(--neon-blue);
}

[data-theme="light"] .btn-primary:hover {
    background: var(--deep-neon-blue);
    border-color: var(--deep-neon-blue);
    color: white;
}

[data-theme="light"] .btn-outline-primary {
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    background: transparent;
}

[data-theme="light"] .btn-outline-primary:hover {
    background: rgba(0, 123, 255, 0.08);
    color: var(--deep-neon-blue);
    border-color: var(--deep-neon-blue);
}

/* Modal Light Mode */
[data-theme="light"] .modal-content {
    background: white;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-header {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .modal-title {
    color: var(--text-color);
}

[data-theme="light"] .product-specs li {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

/* Footer Light Mode */
[data-theme="light"] .footer {
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
}

[data-theme="light"] .footer-section h3 {
    color: var(--neon-blue);
    text-shadow: none;
}

[data-theme="light"] .footer-links a {
    color: var(--text-color);
}

[data-theme="light"] .footer-links a::after {
    background: var(--neon-blue);
}

[data-theme="light"] .footer-links a:hover {
    color: var(--neon-blue);
}

[data-theme="light"] .social-links a {
    color: var(--neon-blue);
}

[data-theme="light"] .social-links a:hover {
    color: var(--deep-neon-blue);
    transform: translateY(-3px);
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
}

/* Lightbox Improvements */
[data-theme="light"] .lightbox-overlay {
    background: rgba(248, 249, 250, 0.95);
}

[data-theme="light"] .lightbox-image {
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 30px rgba(228, 113, 5, 0.822);
}

[data-theme="light"] .lightbox-close-btn {
    color: var(--deep-neon-blue);
}

/* Quick View Modal Responsive Fix */
@media (max-width: 768px) {
    .modal-body .btn-primary {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin-top: 1rem;
    }

    .modal-body .row {
        padding-bottom: 20px;
    }

    .modal-body .col-lg-6 {
        min-height: auto;
        margin-bottom: 1rem;
    }
}

/* Animation for Light/Dark Mode Transition */
@keyframes fadeTransition {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

body.theme-transition {
    animation: fadeTransition 0.5s forwards;
}

/* Zoom Effect Improvements */
.image-zoom-container {
    transition: all 0.5s ease;
}

.zoomed-image {
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.zoom-lens {
    transition: opacity 0.4s, transform 0.3s;
}

.product-card img {
    touch-action: manipulation !important;
    /* يسمح بالنقر والتمرير بسلاسة */
    -webkit-user-drag: none;
    /* يمنع السحب غير المرغوب */
    user-select: none;
    /* يمنع تحديد النص أو الصورة */
}

/* إضافة هذه الأنماط */
.image-zoom-container {
    touch-action: pan-y !important;
    /* يسمح بالتمرير العمودي */
}

.zoomed-image {
    touch-action: none;
    /* يعطي الأولوية للتكبير/التصغير */
}

/* تحسينات navbar-toggler-icon للوضع النهاري */
[data-theme="light"] .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    transition: all 0.3s ease;
}

[data-theme="light"] .navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 123, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

[data-theme="light"] .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 123, 0, 0.863) !important;
}

[data-theme="light"] .navbar-toggler {
    transition: all 0.3s ease;
    background-color: rgba(0, 123, 255, 0.05);
}

[data-theme="light"] .navbar-toggler:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

@media (max-width: 991px) {
    [data-theme="light"] .navbar-toggler {
        margin-left: auto;
        /* لمحاذاة الزر لليمين */
        padding: 0.5rem 0.75rem;
    }
}

/* إضافة تحسينات CLS */
img {
    aspect-ratio: attr(width) / attr(height);
}

/* تحسين التكبير للجوال */
@media (max-width: 768px) {
    .zooming .zoomed-image {
        transform: scale(1.5) !important;
    }
    
    .zoom-lens {
        display: none !important;
    }
}

/* تحسين التخزين المؤقت */
.product-img {
    cache-control: max-age=31536000;
}