* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    
    --bg-primary: #FAFAFA;
    --bg-secondary: #ffffff;
    --text-primary: #2D2D2D;
    --text-secondary: #666666;
    --border-color: #E5E5E5;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #2D2D2D;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);


    --primary-color: #ff3ea2;
    --secondary-color: #eb83b9;
    --accent-color: #FF69B4;
    --beige-light: #FFF5E6;
    --beige: #F5E6D3;
    --beige-dark: #E8D5C4;
    --pink-light: #FFE4E9;
    --white: #FFFFFF;
    --red: #ff0000;
    --off-white: #FAFAFA;
    --text-dark: #2D2D2D;
    --text-light: #666666;
    --border-color: #E5E5E5;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333333;
    --card-bg: #1e1e1e;
    --header-bg: #1a1a1a;
    --footer-bg: #1a1a1a;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.4);
    
    /* نفس الألوان الأساسية يمكن تركها أو تعديلها */
    --primary-color: #ff6b9d; /* أفتح قليلاً لظهور أفضل */
    --beige-light: #2a2a2a;
    --white: #1e1e1e;
    --off-white: #1a1a1a;
    --text-dark: #ffffff; /* في الوضع الليلي النص الداكن يصبح فاتحاً */
    --text-light: #cccccc;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 300;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}


.icon-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}



.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-box {
    position: relative;
    width: 90%;
    max-width: 600px;
}

.search-box input {
    width: 100%;
    padding: 1.5rem 4rem 1.5rem 2rem;
    font-size: 1.25rem;
    border: none;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
}

.search-close {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 1rem;
}

.heroSwiper {
    border-radius: 16px;
    overflow: hidden;
    margin: 0 20px;
}

.hero-slide {
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.hero-slide .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: right;
}

.hero-badge {
    display: inline-block;
    background: var(--white);
    color: var(--accent-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-text {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.add-to-cart-detail{
    background: var(--primary-color);
    color: var(--white);
}

.share-btn{
    background: transparent;
    border:1px solid var(--primary-color);
    color: var(--primary-color);
}

.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-color);
}

/* Categories */
.categories {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.category-image {
    position: relative;
    overflow: hidden;
    padding-top: 125%;
}

.category-image img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-name {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    padding: 2rem 1rem 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

/* Products */
.products {
    padding: 4rem 0;
}

.discount-section {
    background: var(--beige-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 125%;
    background: var(--off-white);
}

.product-image img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--red);
    color: var(--white);
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.price-original {
    font-size: 1.125rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.add-to-cart {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.add-to-cart.active{
    color: #2D2D2D;
    background: transparent;
    border: 1px solid #2D2D2D;

}

.in-cart-btn.active{
    color: #2D2D2D;
    background: transparent;
    border: 1px solid #2D2D2D;
}


/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 3000;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.cart-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s;
}

.cart-close:hover {
    color: var(--accent-color);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    margin-right: auto;
    display: flex;
    background: transparent;
    align-items: center;
    justify-content: center;
    border: none;
    color: rgb(90, 89, 89);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

.remove-btn:hover {
    color: var(--red);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--off-white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        padding: 2rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s;
        z-index: 2000;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-slide .container {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-slide {
        min-height: auto;
    }

    .hero-image img {
        height: 300px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-sidebar.active {
        right: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Product Detail Page */
#productDetail {
    padding: 2rem 0;
    min-height: 100vh;
    background: var(--off-white);
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.back-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 2rem;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
}

.back-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    position: relative;
    width: 100%;
    padding-top: 125%;
    background: var(--off-white);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-image img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-nav.prev {
    right: 1rem;
}

.gallery-nav.next {
    left: 1rem;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: var(--primary-color);
}

.thumbnail.active {
    border-color: var(--accent-color);
}

/* Product Details Info */
.product-details-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.product-category-badge {
    display: inline-block;
    background: var(--beige-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
}

.product-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.detail-price-current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.detail-price-original {
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-percentage {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Availability Section */
.availability-section {
    padding: 1.5rem;
    background: var(--off-white);
    border-radius: 12px;
    cursor: default;
}

.availability-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}
.availability-status {
    display: flex;
    align-items: center;
}
.status-badge {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    min-width: 140px;
    color: var(--white);
    border: none;
}
.status-badge.available {
    background: #28a745;
}
.status-badge.unavailable {
background: #dc3545;
}
.availability-toggle,
.availability-btn {
    display: none;
    gap: 0.75rem;
}
/*
.availability-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
} */

.availability-btn:hover {
    border-color: var(--primary-color);
}

.availability-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.availability-btn i {
    font-size: 1.125rem;
}

/* Product Description */
.product-description {
    padding: 1.5rem;
    background: var(--beige-light);
    border-radius: 12px;
}

.product-description h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.product-description p {
    line-height: 1.8;
    color: var(--text-light);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Unavailable Button */
.unavailable-btn {
    background: #686363 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.unavailable-btn:hover {
    transform: none !important;
}

.unavailable-badge {
    background: var(--text-light) !important;
}
/* Notification */
.notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--text-dark);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow-hover);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s;
    font-weight: 600;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive for Product Detail */
@media (max-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
    
    .product-detail-title {
        font-size: 1.5rem;
    }
    
    .detail-price-current {
        font-size: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .availability-toggle {
        flex-direction: column;
    }
}



body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header {
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
}

.category-card,
.product-card,
.cart-sidebar,
.footer {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.footer {
    background-color: var(--footer-bg);
}

.section-title,
.footer-subtitle,
.product-name,
.cart-header h3 {
    color: var(--text-primary);
}

.product-price .price-current {
    color: var(--accent-color); /* يبقى كما هو */
}

.price-original,
.product-text,
.section-subtitle,
.cart-item-name {
    color: var(--text-secondary);
}

.nav-link {
    color: var(--text-primary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.icon-btn {
    color: var(--text-primary);
}

.product-detail-container,
.product-detail-content {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.availability-section,
.product-description {
    background-color: var(--bg-secondary);
}

/* زر التبديل */
.theme-toggle {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* تحسينات إضافية للوضع الليلي */
[data-theme="dark"] .hero-slide {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%) !important;
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-text,
[data-theme="dark"] .hero-badge {
    color: #ffffff;
}

[data-theme="dark"] .product-card {
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .footer-links a,
[data-theme="dark"] .contact-info li {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .cart-sidebar {
    border-left: 1px solid var(--border-color);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] .search-box input {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .back-btn {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .back-btn:hover {
    background-color: var(--primary-color);
    color: white;
}