/* ===========================
        PRODUCTS PAGE
=========================== */

body{

    background:#f5f5f5;

}

/* ===========================
        PAGE HEADER
=========================== */

.page-header{

    margin-top:80px;

    padding:70px 10%;

    text-align:center;

    background:linear-gradient(135deg,#c1121f,#8f0f18);

    color:white;

}

.page-header h1{

    font-size:48px;

    margin-bottom:15px;

}

.page-header p{

    font-size:18px;

    opacity:.9;

}

/* ===========================
        SEARCH
=========================== */

.search-section{

    display:flex;

    justify-content:center;

    margin:40px 0;

}

.search-section input{

    width:600px;

    max-width:90%;

    padding:16px 22px;

    border:none;

    outline:none;

    border-radius:50px;

    font-size:17px;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

/* ===========================
        CATEGORY BUTTONS
=========================== */

.categories{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:15px;

    margin-bottom:50px;

}

.categories button{

    border:none;

    background:white;

    padding:12px 30px;

    border-radius:50px;

    cursor:pointer;

    font-size:16px;

    font-weight:500;

    transition:.3s;

    box-shadow:0 4px 12px rgba(0,0,0,.08);

}

.categories button:hover{

    background:#c1121f;

    color:white;

}

.categories .active{

    background:#c1121f;

    color:white;

}

/* ===========================
        PRODUCT GRID
=========================== */

.product-grid{

    width:90%;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

    padding-bottom:70px;

}

/* ===========================
        PRODUCT CARD
=========================== */

.product-card{

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 5px 18px rgba(0,0,0,.08);

    transition:.35s;

    display:flex;

    flex-direction:column;

}

.product-card:hover{

    transform:translateY(-10px);

    box-shadow:0 15px 35px rgba(0,0,0,.15);

}

.product-card img{

    width:100%;

    height:230px;

    object-fit:cover;

}

.product-card h3{

    padding:20px 20px 8px;

    font-size:24px;

}

.product-card p{

    padding:0 20px;

    color:#666;

    line-height:1.6;

    min-height:55px;

}

.product-card a{

    display:block;

    text-align:center;

    margin:20px;

    margin-top:auto;

    padding:13px;

    background:#c1121f;

    color:white;

    text-decoration:none;

    border-radius:10px;

    transition:.3s;

}

.product-card a:hover{

    background:#8f0f18;

}

/* ===========================
        MOBILE
=========================== */

@media(max-width:768px){

    .page-header{

        padding:50px 20px;

    }

    .page-header h1{

        font-size:34px;

    }

    .page-header p{

        font-size:16px;

    }

    .search-section{

        margin:30px 15px;

    }

    .search-section input{

        width:100%;

    }

    .categories{

        padding:0 20px;

    }

    .categories button{

        padding:10px 20px;

    }

}