body{
    margin-top: 105px;
    caret-color: transparent;
}

/* search bar */
.search-wrapper{
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 30px 10vw;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 200px;
    z-index: 999;
}

#search-glass{
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: x-large;
}

a{
    text-decoration: none;
    color: #444;
}

input:focus{
    background-color: #dce1f2;
    box-shadow: 3px 3px 2px rgba(0 , 0, 0, 0.3);
}

input:focus i{
    display: none;
}

#search{
    margin-left: 10px;
}

input{
    caret-color: auto;
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    border: none;
    background-color: white;
    box-sizing: border-box;
    box-shadow: inset -3px -3px 2px rgba(0 , 0, 0, 0.3);
    font-size: 1rem;
    border-radius: 50px;
    padding-left: 25px;
}

.search-wrapper label {

    position: absolute;
    top:-5px;
    left: 40px;
    color: #666555;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 10px;
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: 2px 2px 2px rgba(0 , 0, 0, 0.3);
}

/* product containers */

/* product not found */
.not-found{
    display: none;
    justify-content: center;
    align-items: center;
    color: #555;
    text-align: center;
    font-size: 30px;
    padding: 5%;
}

/* heading */
.medical_head{
    display: flex;
    align-items: center;
    text-align: center;
    height: 100px;
    background-color: lightblue;
    justify-content: center;
    position: sticky;
    top: 100px;
}

@media  screen and (max-width : 600px) {
    .search-wrapper{
            top: 123px;
            z-index: 1;
    }

    .medical_head{
        height: 60px;
        position: static;
    }
}

.medical_head_h1{
    font-size: 30px;
    color: #1f194c;
}

.medical_head_h2{
    font-size: 25px;
    color: #1f194c;
}

.product-container{
    display: block;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}

.cat-container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 2fr));
    justify-content: center;
    gap: 30px;
    padding: 30px;
}
@media only screen and (max-width: 710px){
      
    .cat-container{
        justify-content: center;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 2fr));
        gap: 30px;
        padding: 30px;
    
    }
}

.product_card{
    display: flex;
    flex-direction: column;
    justify-content:space-evenly;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.product_card:hover{
    box-shadow: 0px 0px 20px grey;
    transition: .5s;
}

.product-image{
    height: 250px;
    width: 200px;
}

.product-name{
    margin: 10px 0px;
}

.card-name{
    margin: 10px 0px;
}


/* class to toggle off and on when searching */
.hide {
    display: none;
}


