/* ===========================
        PRODUCTS PAGE
=========================== */

.products-page{
    background:#f4f6f9;
    min-height:100vh;
    padding:60px 0;
}

.page-title{
    text-align:center;
    font-size:42px;
    margin-bottom:10px;
    color:#222;
}

.page-description{
    text-align:center;
    color:#666;
    margin-bottom:40px;
    font-size:18px;
}

.products-toolbar{
    background:#fff;
    padding:20px;
    border-radius:12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:40px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.search-input{
    flex:1;
    padding:14px 18px;
    border:1px solid #ddd;
    border-radius:8px;
    outline:none;
    font-size:16px;
}

.search-input:focus{
    border-color:#0d6efd;
}

.sort-select{
    width:220px;
    padding:14px;
    border:1px solid #ddd;
    border-radius:8px;
    cursor:pointer;
}

.products-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}

.product-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
}

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

.product-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.product-info{
    padding:20px;
}

.product-info h3{
    margin-bottom:10px;
    color:#222;
}

.rating{
    color:#ffc107;
    margin-bottom:15px;
    font-size:18px;
}

.product-price{
    color:#0d6efd;
    font-size:28px;
    font-weight:bold;
    margin-bottom:20px;
}

.product-btn{
    width:100%;
    border:none;
    padding:14px;
    background:#0d6efd;
    color:white;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
    transition:.3s;
}

.product-btn:hover{
    background:#084298;
}

@media (max-width: 768px) {

    .products-toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .search-input,
    .category-select,
    .price-select {
        width: 100%;
    }

    .products-container {
        grid-template-columns: 1fr;
    }

    .product-card {
        width: 100%;
    }

    .product-card img {
        width: 100%;
        height: auto;
    }
}