﻿body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.shop-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 90%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.category-sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
}

.category-header {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    text-align: center;
}

.category-list {
    padding: 1rem;
}

.category-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .category-item:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
        color: white !important;
    }

.category-item-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

    .category-item-container.active .category-item:hover {
        color: #667eea !important;
    }

    .category-item-container:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .category-item-container.active {
        background: white;
    }

        .category-item-container.active .chevron-toggle {
            color: #667eea !important;
        }

    .category-item-container .category-item {
        flex: 1;
        background: transparent !important;
        border: none !important;
        margin: 0 !important;
        padding: 1rem !important;
    }

.category-item.active {
    color: #667eea !important;
    font-weight: 700;
}

.chevron-toggle {
    transition: transform 0.3s ease;
    color: white;
}

    .chevron-toggle.rotated {
        transform: rotate(180deg);
    }

[dir="rtl"] .chevron-toggle.rotated {
    transform: rotate(180deg);
}

.subcategory-list {
    margin-top: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.subcategory-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

    .subcategory-item:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(5px);
    }

    .subcategory-item.active {
        background: rgba(255, 255, 255, 0.9);
        color: #667eea;
        font-weight: 600;
    }

.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

.product-image {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.product-image-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

#loadingSpinner {
    text-align: center;
    padding: 2rem;
    display: none;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* RTL Support */
[dir="rtl"] .category-item:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .subcategory-item:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .subcategory-list {
    margin-left: 0;
    margin-right: 1rem;
    padding-left: 0;
    padding-right: 1rem;
    border-left: none;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
}
