/* ========== CATALOG STYLES ========== */

/* Layout */
.catalog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

/* Search Bar */
.search-bar {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.search-bar form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.search-bar button {
    padding: 1rem 2rem;
    background: #000;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Filters */
.filters {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #000;
    text-transform: none;
    letter-spacing: 0;
}

.filter-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-group li {
    margin-bottom: 0.75rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
    transition: color 0.2s ease;
}

.filter-group label:hover {
    color: #000;
}

.filter-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #000;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.filter-actions .filter-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: #000;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-actions .filter-btn:hover {
    background: #333;
}

.filter-actions .filter-btn.reset-filters {
    background: #f0f0f0;
    color: #333;
}

.filter-actions .filter-btn.reset-filters:hover {
    background: #ddd;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f9f9f9;
}

.product-image .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .main-image {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 1.5rem 0.5rem 1.5rem;
    color: #000;
    display: block;
    line-height: 1.3;
}

.product-card .price {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    margin: 0 1.5rem 1.5rem 1.5rem;
    display: block;
}

.thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: center;
    padding: 0 1.5rem;
}

.thumbnails img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    border-radius: 4px;
}

.thumbnails img:hover {
    border-color: #000;
}

/* No Products Message */
.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: #666;
    font-size: 1.2rem;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 2rem 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .filters {
        position: static;
        order: 2;
    }

    .search-bar form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-bar input,
    .search-bar button {
        width: 100%;
        border-radius: 8px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        margin: 0 auto;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .catalog-layout {
        margin: 2rem 0;
    }

    .filters {
        padding: 1.5rem;
    }

    .product-card h3 {
        font-size: 1.1rem;
        margin: 1rem 1rem 0.5rem 1rem;
    }

    .product-card .price {
        font-size: 1rem;
        margin: 0 1rem 1rem 1rem;
    }

    .thumbnails {
        padding: 0 1rem;
    }
}