
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Tajawal', sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: #333;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* Header Styles */
        .header-top {
            background-color: #f8f9fa;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        
        .header-top-links {
            display: flex;
            justify-content: flex-end;
            gap: 20px;
        }
        
        .header-top-links a {
            color: #555;
            text-decoration: none;
            font-size: 14px;
        }
        
        .header-top-links a i {
            margin-left: 5px;
        }
        
        .header-main {
            padding: 15px 0;
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .logo {
            font-size: 24px;
            font-weight: bold;
            color: #333;
            text-decoration: none;
        }
        
        .logo span {
            color: #2196F3;
        }
        
        .search-box {
            display: flex;
            margin: 15px 0;
        }
        
        .search-box input {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 4px 0 0 4px;
            outline: none;
        }
        
        .search-box button {
            background-color: #2196F3;
            color: white;
            border: none;
            padding: 0 15px;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
        }
        
        /* Navigation */
        .navbar {
            background-color: #2196F3;
        }
        
        .nav-list {
            display: flex;
            list-style: none;
        }
        
        .nav-item {
            position: relative;
        }
        
        .nav-item a {
            display: block;
            color: white;
            text-decoration: none;
            padding: 15px 20px;
            transition: background-color 0.3s;
        }
        
        .nav-item a:hover {
            background-color: #0b7dda;
        }
        
        .dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            background-color: white;
            min-width: 200px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            display: none;
            z-index: 100;
        }
        
        .nav-item:hover .dropdown {
            display: block;
        }
        
        .dropdown a {
            color: #333;
            padding: 10px 15px;
            border-bottom: 1px solid #eee;
        }
        
        .dropdown a:hover {
            background-color: #f5f5f5;
            color: #2196F3;
        }
        
        /* Product Details */
        .product-details {
            display: flex;
            flex-wrap: wrap;
            margin: 30px 0;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        .product-gallery {
            flex: 1;
            min-width: 300px;
            padding: 20px;
            border-right: 1px solid #eee;
        }
        
        .product-info {
            flex: 1;
            min-width: 300px;
            padding: 20px;
        }
        
        .thumbnail-list {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }
        
        .thumbnail-item {
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 5px;
            cursor: pointer;
            transition: all 0.3s;
            width: calc(25% - 10px);
            box-sizing: border-box;
        }
        
        .thumbnail-item:hover, .thumbnail-item.active {
            border-color: #2196F3;
        }
        
        .thumbnail-item img {
            width: 100%;
            height: 60px;
            object-fit: cover;
        }
        
        .show-more-btn {
            background-color: #f5f5f5;
            border: 1px dashed #ddd;
            border-radius: 4px;
            padding: 5px;
            text-align: center;
            cursor: pointer;
            width: calc(25% - 10px);
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }
        
        .show-more-btn:hover {
            background-color: #e9e9e9;
        }
        
        .main-image {
            margin-bottom: 15px;
        }
        
        .main-image img {
            width: 100%;
            max-height: 400px;
            object-fit: contain;
        }
        
        .default-image {
            width: 100%;
            height: 400px;
            background: #eee;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .default-image i {
            color: #aaa;
            font-size: 48px;
        }
        
        .thumbnail-default {
            width: calc(25% - 10px);
            height: 60px;
            background: #eee;
            border: 1px solid #ddd;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .thumbnail-default i {
            color: #aaa;
            font-size: 24px;
        }
        
        .product-title {
            font-size: 24px;
            margin-bottom: 15px;
            color: #333;
        }
        
        .product-price {
            margin: 20px 0;
        }
        
        .current-price {
            font-size: 24px;
            font-weight: bold;
            color: #2196F3;
        }
        
        .old-price {
            font-size: 18px;
            color: #999;
            text-decoration: line-through;
            margin-left: 10px;
        }
        
        .discount-percent {
            background-color: #f44336;
            color: white;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 14px;
            margin-left: 10px;
        }
        
        .product-stock {
            margin: 15px 0;
        }
        
        .stock-status {
            font-weight: bold;
        }
        
        .in-stock {
            color: #4CAF50;
        }
        
        .out-of-stock {
            color: #f44336;
        }
        
        .stock-bar {
            height: 6px;
            background: #f0f0f0;
            border-radius: 3px;
            margin: 8px 0;
            overflow: hidden;
        }
        
        .stock-progress {
            height: 100%;
            background: #4CAF50;
            border-radius: 3px;
        }
        
        .product-shipping {
            margin: 20px 0;
            padding: 15px;
            background-color: #f9f9f9;
            border-radius: 4px;
        }
        
        .shipping-item {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .shipping-item i {
            color: #2196F3;
        }
        
        .product-actions {
            margin: 25px 0;
        }
        
        .quantity-selector {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .quantity-btn {
            background-color: #f0f0f0;
            border: none;
            width: 30px;
            height: 30px;
            font-size: 16px;
            cursor: pointer;
        }
        
        .quantity-input {
            width: 50px;
            height: 30px;
            text-align: center;
            margin: 0 5px;
            border: 1px solid #ddd;
        }
        
        .btn-primary {
            background-color: #2196F3;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            width: 100%;
            margin-bottom: 10px;
            transition: background-color 0.3s;
        }
        
        .btn-primary:hover {
            background-color: #0b7dda;
        }
        
        .btn-primary.disabled {
            background-color: #ccc;
            cursor: not-allowed;
            opacity: 0.6;
        }
        
        .direct-order-btn {
            background-color: #4CAF50;
            font-size: 18px;
            padding: 15px 25px;
        }
        
        .direct-order-btn:hover {
            background-color: #3e8e41;
        }
        
        .product-share {
            margin-top: 20px;
            text-align: center;
        }
        
        .social-links {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            justify-content: center;
        }
        
        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 35px;
            height: 35px;
            background-color: #f0f0f0;
            border-radius: 50%;
            color: #555;
            transition: all 0.3s;
        }
        
        .social-links a:hover {
            background-color: #2196F3;
            color: white;
        }
        
        /* Product Specs */
        .product-specs {
            margin: 20px 0;
            border-top: 1px solid #eee;
            padding-top: 15px;
        }
        
        .product-specs h3 {
            font-size: 18px;
            margin-bottom: 10px;
            color: #333;
        }
        
        .specs-list {
            list-style: none;
        }
        
        .specs-list li {
            display: flex;
            margin-bottom: 8px;
            padding-bottom: 8px;
            border-bottom: 1px dashed #eee;
        }
        
        .spec-name {
            font-weight: bold;
            color: #555;
            min-width: 120px;
        }
        
        .spec-value {
            color: #333;
        }
        
        /* Variant Selector Styles */
        .variant-selector {
            margin: 20px 0;
        }
        
        .variant-option {
            margin-bottom: 15px;
        }
        
        .variant-option label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #555;
        }
        
        .variant-values {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .variant-value {
            border: 1px solid #ddd;
            padding: 8px 15px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .variant-value:hover {
            border-color: #2196F3;
            background-color: #f5f9ff;
        }
        
        .variant-value.selected {
            border-color: #2196F3;
            background-color: #2196F3;
            color: white;
        }
        
        .variant-value.out-of-stock {
            opacity: 0.5;
            cursor: not-allowed;
            text-decoration: line-through;
            display: none;
        }
        
        /* Product Tabs */
        .product-tabs {
            margin: 30px 0;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .tabs-header {
            display: flex;
            border-bottom: 1px solid #ddd;
        }
        
        .tab-btn {
            padding: 15px 20px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 16px;
            color: #555;
            position: relative;
        }
        
        .tab-btn.active {
            color: #2196F3;
            font-weight: bold;
        }
        
        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 2px;
            background: #2196F3;
        }
        
        .tab-content {
            display: none;
            padding: 20px;
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* Related Products */
        .related-products {
            margin: 30px 0;
        }
        
        .section-title {
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .section-title h2 {
            font-size: 22px;
            color: #333;
        }
        
        .products-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .product-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
        }
        
        .product-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        
        .product-content {
            padding: 15px;
        }
        
        .product-title {
            font-size: 16px;
            margin-bottom: 10px;
            color: #333;
        }
        
        .product-price {
            margin: 10px 0;
        }
        
        .product-actions {
            display: flex;
            justify-content: space-between;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: #555;
            font-size: 16px;
            cursor: pointer;
            transition: color 0.3s;
        }
        
        .action-btn:hover {
            color: #2196F3;
        }
        
        /* Footer */
        .footer {
            background-color: #333;
            color: white;
            padding: 40px 0 20px;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }
        
        .footer-title {
            font-size: 18px;
            margin-bottom: 15px;
            color: white;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: #ddd;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: #2196F3;
        }
        
        .footer-links i {
            margin-left: 5px;
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #444;
        }
        
        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 1000;
            overflow: auto;
        }
        
        .modal-content {
            background-color: white;
            margin: 50px auto;
            padding: 20px;
            border-radius: 8px;
            width: 90%;
            max-width: 600px;
            position: relative;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .modal-title {
            font-size: 20px;
            font-weight: bold;
        }
        
        .close {
            font-size: 24px;
            cursor: pointer;
            color: #999;
        }
        
        .close:hover {
            color: #333;
        }
        
        .total-price {
            font-size: 18px;
            font-weight: bold;
            margin: 15px 0;
            text-align: center;
        }
        
        .total-price span {
            color: #2196F3;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
        }
        
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        
        .form-group textarea {
            min-height: 80px;
        }
        
        /* Direct Order Container */
        .direct-order-container {
            background-color: #f9f9f9;
            border-radius: 8px;
            padding: 20px;
            margin-top: 20px;
            border: 1px solid #e0e0e0;
        }
        
        .direct-order-title {
            text-align: center;
            margin-bottom: 20px;
            color: #333;
            font-size: 22px;
            border-bottom: 2px solid #4CAF50;
            padding-bottom: 10px;
        }
        
        .order-summary {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            padding: 15px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        
        .summary-item {
            text-align: center;
            flex: 1;
        }
        
        .summary-label {
            font-size: 14px;
            color: #777;
            margin-bottom: 5px;
        }
        
        .summary-value {
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }
        
        /* Shipping Type Selector */
        .shipping-type-selector {
            margin: 15px 0;
        }
        
        .shipping-type-options {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }
        
        .shipping-type-option {
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .shipping-type-option.selected {
            border-color: #2196F3;
            background-color: #2196F3;
            color: white;
        }
        
        .shipping-type-option:hover {
            border-color: #2196F3;
        }
        
        .shipping-price-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }
        
        .shipping-price-table th, 
        .shipping-price-table td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: center;
        }
        
        .shipping-price-table th {
            background-color: #f5f5f5;
        }
        
        .shipping-price-table tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .product-details {
                flex-direction: column;
            }
            
            .product-gallery {
                border-right: none;
                border-bottom: 1px solid #eee;
            }
            
            .tabs-header {
                overflow-x: auto;
                white-space: nowrap;
            }
            
            .tab-btn {
                padding: 10px 15px;
            }
            
            .variant-values {
                gap: 5px;
            }
            
            .variant-value {
                padding: 6px 10px;
                font-size: 14px;
            }
            
            .thumbnail-item {
                width: calc(50% - 10px);
            }
            
            .show-more-btn {
                width: calc(50% - 10px);
            }
        }
        
        .unavailable-wilaya {
            color: #f44336;
            font-size: 14px;
            margin-top: 5px;
            display: none;
        }
        
        .attribute-combination-unavailable {
            color: #f44336;
            margin-top: 10px;
            display: none;
        }
        .product-gallery {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    border-right: 1px solid #eee;
    position: relative;
}

.main-image {
    margin-bottom: 15px;
    text-align: center;
}

.main-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.thumbnail-container {
    position: relative;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.thumbnail-list-wrapper {
    flex: 1;
    overflow: hidden;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.thumbnail-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.thumbnail-item:hover, 
.thumbnail-item.active {
    border-color: #2196F3;
    transform: translateY(-3px);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.thumbnail-default {
    width: 100%;
    height: 100%;
    background: #f9f9f9;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.thumbnail-nav {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail-nav:hover {
    background-color: #f5f5f5;
    border-color: #2196F3;
    color: #2196F3;
}

.variant-filter {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

.variant-filter label {
    margin-left: 10px;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.variant-filter select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 100%;
    background-color: white;
    font-size: 14px;
}

.default-image {
    width: 100%;
    height: 400px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

@media (max-width: 768px) {
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .main-image img {
        max-height: 300px;
    }
    
    .default-image {
        height: 300px;
    }
}
/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.mobile-nav-list {
    display: flex;
    list-style: none;
    justify-content: space-around;
    padding: 10px 0;
    margin: 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    color: #555;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
}

.mobile-nav-item.active {
    color: #2196F3;
}

.mobile-nav-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.mobile-nav-item span {
    font-size: 12px;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: block;
    }
    
    /* إخفاء التنقل العادي على الهاتف */
    .navbar {
        display: none;
    }
    
    /* تعديل الهيدر ليتناسب مع الهاتف */
    .header-main {
        padding: 10px 0;
    }
    
    .search-box {
        margin: 10px 0;
    }
}
    