/* Catalog Page Specific Styles - Sidebar styles moved to shared sidebar.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Main content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.main-content {
    padding-top: 60px; /* Space for sidebar trigger */
}

.catalog-header {
    text-align: left;
    margin-bottom: 40px;
}

.catalog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.catalog-header p {
    font-size: 1.1rem;
    color: #666;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    aspect-ratio: 1;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f3f4f6;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: #666;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    font-size: 1rem;
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .catalog-header h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        /* Force exactly 2 columns under 500px */
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .catalog-header h1 {
        font-size: 1.8rem;
    }
}
