

.first-half{
    display:flex;
    justify-content:space-around;
    width: 90vw;
    margin: 100px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gallery{
    display: flex;
    flex-direction: column;
}

.gallery img{
    width: 50px;
    height: 70px;
    margin: 5px;
}

.profile img{
    width: 250px;
    height: 300px;
}

.med_info p{
    font-size: 0.8em;
    color:rgb(39, 150, 152);
    margin-bottom: 30px;
}

.potency_display{
    display:flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    cursor: pointer;
}

.pot{
    border: 1px solid black;
    color: rgb(39, 150, 152);
    padding: 2px 40px 2px 5px;
    font-size: 0.8em;
    font-weight: 600;
    border-radius: 3px;
}

.pot_p{
    color:black;
    size: 1em;
}

.med-price{
    border: 1px solid lightgrey;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 10px;
}

.med-price .p1{
    background-color: rgb(217, 242, 242);
    padding: 10px 15px;
    font-size: 0.8em;
}

.med-price .p2{
    padding:40px 15px;
    font-size: 1.3em;
    font-weight:400;
}

.med-price .p3{
    font-size: 0.8em;
    padding: 10px;
}

.quant-div{
    padding: 10px;
}

.quant-div select{
    width: 100px;
    padding: 5px 0px;
    border: 1px solid lightgrey;
    border-radius: 5px;
}

.price-btn{
    padding: 10px;
    cursor: pointer;
}

.price-btn input{
    width: 100%;
    border-radius: 5px;
    padding: 10px;
    background-color: rgb(39, 150, 152);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.shipping{
    margin-top: 10px;
    padding: 10px;
    border: 1px solid lightgrey;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 7px;
}

.shipping p{
    font-weight: 500;
    padding: 10px;
}

.shipping p span{
    color: rgb(39, 150, 152);
}

.Med-ad{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid lightgrey;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 7px;
    background-color: rgb(134, 199, 134);
    margin-top: 10px;
}

.Med-ad .med-ad1{
    margin: 5px;
    padding: 5px;
}

.Med-ad .med-ad1 .p1{
    font-weight: bold;
    margin: 5px;
}

.Med-ad .med-ad1 .p2{
    font-size: 0.9em;
    margin-left: 5px;
    margin-bottom: 5px;
}

.Med-ad .med-ad1 img{
    width: 25px;
    height: 20px;
    background-color: white;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 10px;
    padding: 2px;
}

.Med-ad .med-ad2 img{
    width: 70px;
    height: 70px;
    margin: 5px;   
}

.second-half{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    background-color: rgb(249, 245, 245);
    padding: 10px 30px;
}

.descript{
    width: 53vw;
    text-align: justify;
    background-color: white;
    margin: 50px 50px 50px 80px;
    padding: 20px;
}

.descript .head{
    font-weight: 600;
}

.descript .p1{
    margin: 20px 20px 20px 0;
    font-size: 0.9em;
}

.thanks{
    text-align: center;
    border-top: 1px solid lightgrey;
    margin: 10px;
    padding: 30px 10px 10px 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.thanks h1{
    font-size: 35px;
    padding: 10px;
}

.thanks h3{
    font-size: 20px;
    padding: 10px;  
}

.thanks p{
    font-size: 17px;
    padding: 10px;
}

.thanks p span{
    font-weight: bold;
}

.slots{
    width: 70vw;
    margin: 10px auto 50px;
    border: 2px solid lightgrey;
    padding: 30px;
}

.slot-date h2{
    padding: 10px 10px 10px 0;
}

.slot-date input{
    padding: 10px;
    width: 150px;
    height: 100px;
    cursor: pointer;
    font-size: 15px;
    background-color: rgb(39, 150, 152);
    font-weight: bold;
    color: white;
}

.slot-time{
    padding: 30px 0;
}

.slot-time input{
    margin: 20px 5px 20px 0;
    padding:10px;
    width: 150px;
    height: 60px;
    cursor: pointer;
    font-size: 15px;
    background-color: rgb(39, 150, 152);
    font-weight: bold;
    color: white;
}

.slot-book{
    text-align: center;
}

.thumb {
    width: 70px;
    height: auto;
    cursor: pointer;
    margin: 5px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.thumb:hover {
    border-color: #999;
}

.thumb.active {
    border-color: #2c8ae8;  /* highlight color */
}
/* =========================
   Product Page Responsive
   ========================= */

/* Default desktop is already fine */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
    .med-page {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .first-half, .second-half {
        width: 100%;
        padding: 10px;
    }

    .profile img {
        max-width: 280px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .gallery {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 15px;
    }

    .thumb {
        width: 60px;
    }

    .product-right {
        text-align: center;
    }
}

/* Mobiles (≤ 600px) */
@media (max-width: 600px) {
    .med-page {
        padding: 0 10px;
    }

    .profile img {
        max-width: 220px;
    }

    .gallery {
        justify-content: center;
    }

    .thumb {
        width: 50px;
        margin: 3px;
    }

    .med_info h1 {
        font-size: 20px;
        text-align: center;
    }

    .med_info p {
        font-size: 14px;
        text-align: center;
    }

    .product-right .p2 {
        font-size: 16px;
    }

    .quant-div {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .quant {
        margin-bottom: 10px;
    }
}
