@import url('https://fonts.googleapis.com/css2?family=Baskervville+SC&family=Tangerine:wght@400;700&display=swap');

.pres{
    display: flex;
    justify-content: space-between;
    margin: 40px;
}
.p1{
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid lightgrey;
    padding: 2px;
}

.p1-img img{
    width: 150px;
    height: 150px;
    margin: 2px;
}

.actual-pres{
    border: 2px solid lightgrey;
    padding: 25px;
}



.get-pres{
    text-align: center;
    margin: 10px;
    padding: 30px 10px 10px 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   
}

.get-pres h1{
    font-size: 30px;
    padding: 10px;
}

.get-pres input{
    width: 300px;
    height: 30px;
    margin: 10px;
   text-align: center;
    border-radius: 5px;
    
}

.pres .input-btn{
    width: 200px;
    height: 40px;
    padding: 10px;
    background-color: rgb(39, 150, 152);
    color: white;
    font-size: 1em;
    margin: 5px;
    cursor: pointer;
}

.pres .buy-now{
    width: 100px;
    height: 30px;
    border-radius: 5px;
    padding: 5px;
}
.pres-p1{
    width: 350px;
}

.pres-p1 .empty-div{
    height: 150px;
}

.main-cont{
    padding: 50px;
    display: flex;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.filters{
    padding: 20px;
}

.cat-fltr{
    margin-bottom: 50px;
    padding: 30px;
    width: 175px; 
    border: 1px solid lightgrey; 
}

.cat-fltr h3{
    margin-bottom: 5px;
}

.cat-fltr input{
    margin: 5px;
}

.cat-fltr .btn{
    margin-top: 15px;
    padding: 5px 15px;
    align-self: center;
    background-color: rgb(38, 147, 149);
    color: white;
}


.product_list .list{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 100px;
    padding: 20px;
}

.pro-img img{
   width: 200px;
   height: 200px;
    padding: 0;
    border: 1px solid lightgrey;
}

.pro-details span{
    font-weight:bold;
    padding: 5px 0;
}
/* Tablets (up to 1024px) */
@media (max-width: 1024px) {
    .product_list .list {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 60px;
    }

    .main-cont {
        padding: 30px;
    }

    .cat-fltr {
        width: 100%;
    }
}

/* Tablets/Phablets (up to 768px) */
@media (max-width: 768px) {
    .main-cont {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .filters {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .cat-fltr {
        width: 250px;
        margin-bottom: 20px;
    }

    .product_list .list {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .pro-img img {
        width: 100%;
        height: 200px;
    }
}

/* Phones (up to 480px) */
@media (max-width: 480px) {
    .product_list .list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cat-fltr h3 {
        font-size: 1em;
    }

    .cat-fltr .btn {
        width: 100%;
    }

    .pro-details span {
        font-size: 1em;
    }

    .pro-img img {
        width: 100%;
        height: 200px;
    }
}
/* Hide hamburger on desktop */
.filter-toggle {
    display: none;
    background-color: rgb(38, 147, 149);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    margin: 10px;
    cursor: pointer;
    border-radius: 5px;
}

/* Filters default display on desktop */
.filters-wrapper {
    display: block;
}

/* Responsive Behavior */
@media (max-width: 768px) {
    .filter-toggle {
        display: block;
        text-align: left;
        margin: 10px 20px;
    }

    .filters-wrapper {
        width: 100%;
    }

    .filters {
        display: none; /* Hidden initially */
        background-color: #f9f9f9;
        padding: 15px;
        border-top: 1px solid lightgrey;
        border-bottom: 1px solid lightgrey;
    }

    .filters.show {
        display: block; /* Toggled via JS */
    }

    .main-cont {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .product_list .list {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    @media (max-width: 480px) {
        .product_list .list {
            grid-template-columns: 1fr;
        }
    }
}

@media (max-width: 1024px) {
    .pres {
        flex-direction: column;
        align-items: center;
        margin: 20px;
        gap: 20px;
    }

    .pres-p1 {
        width: 90%;
        margin-bottom: 20px;
    }

    .actual-pres {
        width: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .get-pres input {
        width: 90%;
    }

    .pres .input-btn {
        width: 90%;
    }
}

@media (max-width: 600px) {
    .p1 {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        text-align: center;
    }

    .p1-img img {
        width: 100px;
        height: 100px;
    }

    .get-pres h1 {
        font-size: 1.3em;
    }

    .pres .buy-now {
        width: 100%;
        height: 35px;
        font-size: 1em;
    }

    .get-pres input {
        width: 100%;
        height: 35px;
    }

    .pres .input-btn {
        width: 100%;
        height: 40px;
    }

    .actual-pres {
        padding: 15px;
    }

    .pres-p1 .empty-div {
        display: none;
    }
}
.product-link {
  text-decoration: none;
  color: inherit;
  display: block; /* makes sure the whole card is clickable */
}
