.shop-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 2rem 0;
}

.shop-header {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.shop-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.shop-subtitle {
    color: #666;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Filter Sidebar */
.filter-sidebar {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.filter-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-section-title svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.filter-section.collapsed .filter-section-title svg {
    transform: rotate(-90deg);
}

/* Modern Checkbox */
.modern-checkbox {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-checkbox:hover {
    padding-left: 0.5rem;
}

.modern-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #28a745;
}

.modern-checkbox label {
    margin: 0;
    cursor: pointer;
    color: #666;
    font-size: 0.95rem;
}

.modern-checkbox input[type="checkbox"]:checked + label {
    color: #333;
    font-weight: 500;
}

/* Price Range */
.price-range-container {
    padding: 1rem 0;
}

.price-info {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #666;
}

/* Products Section */
.products-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-info {
    color: #666;
    font-size: 0.95rem;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modern-select {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 15px;
}

.modern-select:focus {
    outline: none;
    border-color: #28a745;
}

/* Product Card - Updated with larger images and badge outside */
.product-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Product Badge Header - منطقة منفصلة للشارات */
.product-badge-header {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    min-height: 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.product-badge {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.sold-out-badge {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.product-image-wrapper {
    position: relative;
    height: 350px; /* زيادة من 300px */
    overflow: hidden;
    background: white;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    top: calc(40px + 1rem); /* تحت منطقة الشارات */
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.action-btn {
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.action-btn:hover {
    background: #28a745;
    color: white;
    transform: scale(1.1);
}

.action-btn.active {
    background: white;
color: #000000; 
}

.add-to-cart-btn {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 0.75rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.product-card:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

.add-to-cart-btn:hover {
    background: #000;
}

.add-to-cart-btn.in-cart {
    background: #ffc107;
}

.add-to-cart-btn.sold-out {
    background: #6c757d;
    cursor: not-allowed;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.product-category {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.7rem;
        font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.product-name:hover {
    color: #28a745;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.price-current {
    font-size:1.3rem;
    font-weight: 700;
    color: #333;
}

.price-old {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

/* Mobile Filter Button */
.mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    cursor: pointer;
    z-index: 100;
}

.mobile-filter-btn:hover {
    background: #218838;
}

/* Responsive */
@media (max-width: 991px) {
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        z-index: 1050;
        border-radius: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .filter-sidebar.active {
        left: 0;
    }
    
    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }
    
    .filter-overlay.active {
        display: block;
    }
    
    .mobile-filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .close-filter {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #333;
    }
}

@media (max-width: 767px) {
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-badge-header {
        padding: 0.5rem 0.75rem;
        min-height: 35px;
    }
    
    .product-badge,
    .sold-out-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
    
    .product-image-wrapper {
        height: 250px; /* تصغير للموبايل */
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1rem;
                font-family: 'Poppins', sans-serif;

        -webkit-line-clamp: 1;
    }
    
    .price-current {
        font-size: .88rem;
    }
    
    .price-old {
        font-size: 0.9rem;
    }
    
    .add-to-cart-btn {
        opacity: 1;
        transform: translateY(0);
        font-size: 0.875rem;
        padding: 0.6rem;
    }
    
    .product-actions {
        top: calc(35px + 0.75rem);
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-image-wrapper {
        height: 300px; /* أكبر قليلاً للشاشات الصغيرة جداً */
    }
}