/* ==========================
   Shop Banner
========================== */


.shop-banner {

    height: 25vh;

    /* background-image: url("../images/shop-banner.jpg"); */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    color: black;

}



.shop-banner h1 {

    font-size: 55px;

    letter-spacing: 3px;

    margin-bottom: 15px;

}


.shop-banner p {

    font-size: 20px;

}



/* ==========================
   Shop Layout
========================== */


.shop-container {

    padding: 70px 8%;

    display: grid;

    grid-template-columns: 250px 1fr;

    gap: 50px;

}



/* ==========================
   Filter
========================== */


.filter-box {

    border: 1px solid #ddd;

    padding: 30px;

    height: max-content;

}



.filter-box h3 {

    font-size: 25px;

    margin-bottom: 30px;

}



.filter-box label {

    display: block;

    margin: 20px 0 10px;

    font-weight: 600;

}



.filter-box select {

    width: 100%;

    padding: 12px;

    border: 1px solid #ccc;

    background: white;

}





/* ==========================
   Products Grid
========================== */


.shop-products {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

}



/* Product Card */


.shop-products .product-card {

    background: white;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);

    transition: .4s;

}



.shop-products .product-card img {

    height: 400px;

    object-fit: cover;

}




.shop-products .product-card h3 {

    font-size: 20px;

    padding: 15px 20px 5px;

    font-weight: 500;

}



.shop-products .product-card p {

    padding: 0 20px;

    font-size: 18px;

    color: #777;

}


.add-cart-btn {

    margin:20px;

    width:calc(100% - 40px);

    padding:14px;

    background:#111;

    color:white;

    border:none;

    cursor:pointer;

    transition:.3s;

}



.add-cart-btn:hover {

    background:#b88a44;

}



.add-cart-btn.added {

    background:#27ae60 !important;

    color:white;

}

.availability{
    color:#27ae60;
    font-size:14px;
}

/* ==========================
   OUT OF STOCK
========================== */


.product-card.out-of-stock{

    background:#e0e0e0;

    opacity:.65;

    filter:grayscale(70%);

}



.product-card.out-of-stock img{

    opacity:.5;

}



.product-card.out-of-stock .add-cart-btn{

    background:#999;

    cursor:not-allowed;

}



.availability.unavailable{

    color:#b88a44;

    font-weight:bold;

}

/* ==========================
Footer
========================== */


footer {

    margin-top: 50px;

}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}


.back-btn{
    
    padding: 10px 15px;
    background-color: black;
    color:white;
    border:none;
    border-radius: 100px;
    cursor:pointer;
    font-family: inherit;
    font-size: 14px;
    transition: background 0.3 ease;
}

.back-btn:hover{
    background-color: #b88a44;
}



.product-card.out-stock{

    background:#e5e5e5;
    opacity:.65;

}


.product-card.out-stock img{

    filter:grayscale(80%);

}



.product-card.out-stock .add-cart-btn{

    background:#777;
    cursor:not-allowed;

}


/* ==========================
Responsive
========================== */


@media(max-width:1000px) {

    /* .navbar{
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        gap: 15px;
    } */

    .shop-container {
        grid-template-columns: 1fr;
    }
    .shop-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:600px) {
    .shop-products {
        grid-template-columns: 1fr;
    }
    .shop-banner h1 {
       font-size: 35px;
    }
}