/* Sidebar Layout Styles */
.main-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    margin-top: 100px; /* Account for fixed navbar */
}

.categories-sidebar {
    width: 250px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.categories-sidebar h3 {
    color: var(--isoko-blue);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid var(--isoko-orange);
    padding-bottom: 10px;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-item:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: var(--isoko-orange);
    transform: translateX(5px);
}

.category-item.active {
    background: linear-gradient(135deg, var(--isoko-blue), #0066cc);
    color: white;
    border-color: var(--isoko-orange);
}

.category-item i {
    font-size: 1.2rem;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.category-item.active i {
    color: var(--isoko-yellow);
}

.category-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

.main-content {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
}

/* Product sections styling */
.product-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.product-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product grid adjustments */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* Product card enhancements */
.product-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover effects removed per user request */

/* Responsive design */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        padding: 10px;
        margin-top: 80px;
    }
    
    .categories-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
    
    .categories-list {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .category-item {
        flex-shrink: 0;
        white-space: nowrap;
        margin-bottom: 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .product-grid.compact {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid.compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

