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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f9fafb;
    color: #1e293b;
}

/* Catalog Layout */
.catalog-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .catalog-container {
        grid-template-columns: 1fr;
    }
    
    .catalog-sidebar {
        order: 2;
    }
    
    .catalog-main {
        order: 1;
    }
}

/* Sidebar */
.catalog-sidebar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.catalog-sidebar h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1e293b;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #64748b;
    border-radius: 6px;
    transition: all 0.2s;
}

.category-list a:hover,
.category-list a.active {
    background: #eff6ff;
    color: #2563eb;
}

/* Main Content */
.catalog-main {
    min-width: 0;
}

.catalog-header {
    margin-bottom: 30px;
}

.catalog-header h1 {
    font-size: 36px;
    color: #1e293b;
    margin-bottom: 20px;
}

.catalog-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-input,
.sort-select {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    background: white;
}

.search-input {
    flex: 1;
    min-width: 250px;
}

.sort-select {
    min-width: 200px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.product-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

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

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Product Image */
.product-image {
    width: 100%;
    height: 250px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

/* Product Info */
.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #fe5900;
    margin-bottom: 8px;
}

.product-sku {
    font-size: 13px;
    color: #94a3b8;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.free-shipping {
    font-size: 12px;
    color: #059669;
    background: #d1fae5;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* No Products Message */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 16px;
}

/* Product Count */
#product-count {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}