@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaina+2:wght@400;500;600;700;800&display=swap');
body {
    font-family: 'Baloo Bhaina 2', cursive;
}

* {
    padding: 0px;
    margin: 0px;
}

html {
    scroll-behavior: smooth;
}

.container {
    /* margin-top: 50px; */
    padding-top: 80px;
    background-color: #EBEBEB;
}


/* .banner img {
    width: 600px;
} */

.mySlides {
    display: none;
}

.banner img {
    vertical-align: middle;
    width: 100%;
    display: block;
    margin: auto;
}


/* Slideshow container */

.slideshow-container {
    /* max-width: 1000px; */
    position: relative;
    margin: auto;
}


/* Next & previous buttons */

.prev,
.next {
    cursor: pointer;
    position: absolute;
    background-color: red;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}


/* Position the "next button" to the right */

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}


/* On hover, add a black background color with a little bit see-through */

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Caption text */

.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}


/* Number text (1/3 etc) */

.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}


/* The dots/bullets/indicators */

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.1s ease;
}

.active,
.dot:hover {
    background-color: #717171;
}

.container header {
    position: sticky;
    top: 0px;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    background-color: rgb(1, 1, 195);
    color: white;
    align-items: center;
    z-index: 10;
}

.container header a {
    color: white;
    background-color: rgb(1, 1, 195);
    font-size: 20px;
    text-decoration: none;
    padding: 10px 15px 5px 15px;
    border-radius: 5px;
    display: flex;
    margin-left: 10px;
    border: 2px solid white;
    align-items: center;
}

.container header a sup {
    border: none;
    background-color: none;
    margin: 3px;
    padding: 2px 5px;
    color: white;
}

.container>section {
    display: flex;
    justify-content: space-between;
    /* padding: 40px 0px; */
    position: flex;
}

.container h1 {
    /* padding: 10px 10px; */
    /* font-weight: 600; */
}

.container .content .products .product_details>form {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.container .medical_info .med_details {
    display: flex;
    justify-content: space-between;
    background-color: #190A99;
    border-radius: 20px;
}

.container .medical_info .img {
    width: 25%;
    margin: auto 0px;
}

.container .medical_info .img img {
    display: block;
    width: -webkit-fill-available;
    border-radius: 20px 50% 50% 20px;
    border: 10px solid white;
}

.container .medical_info .content {
    width: 70%;
    color: white;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-self: center;
}

.container .medical_info .content h1 {
    font-size: 25px;
}

.container .medical_info .content p {
    font-size: 15px;
}

.container .medical_info .content .time_upload {
    display: flex;
    justify-content: space-between;
}

.container .medical_info .content .time_upload .time {
    margin-right: 20px;
}

.container .medical_info .content .time_upload .presc button {
    display: flex;
    justify-content: space-between;
    background-color: #94FFAC;
    align-items: center;
    /* color: black; */
}

.container .medical_info .content .time_upload .presc button img {
    width: 30px;
}

.container .medical_info .content .time_upload .presc button p {
    font-size: 15px;
    margin: 0px 10px;
    font-weight: 500;
}

.container .medical_info .content .time_upload .presc button p span {
    font-weight: 100;
    /* font-size: 15px; */
}

.container .medical_info .search_payty {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
}

.container .medical_info .search_payty .pays_type {
    width: 50%;
    display: flex;
    justify-content: space-between;
    margin: 10px 0px;
}

.container .medical_info .search_payty .pays_type p {
    font-size: 20px;
    font-weight: 900;
    color: #0036C1;
    background-color: #D8F1FF;
    padding: 10px 10px;
    margin: 10px;
    border-radius: 15px;
}

.container .medical_info .search_payty .pays_type p img {
    width: 25px;
}

.container .medical_info .search_payty .search {
    display: flex;
    padding: 10px 20px 10px 0px;
    border-radius: 20px;
    background: #FFF6F6;
}

.container .medical_info .search_payty .search button {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    padding: 2px 10px;
    border: none;
}

.container .medical_info .search_payty .search input {
    padding: 2px 10px;
    font-size: 20px;
    outline: none;
    border: none;
    border-bottom: 1px solid grey;
    background: none;
}

.container .category_offer {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.container .category {
    background-color: #407BFF;
    padding: 20px 20px 40px 20px;
    border-radius: 15px;
    width: 45%;
    margin-bottom: 20px;
}

.container .category>h4 {
    color: white;
    text-align: center;
}

.container .category .cat {
    display: flex;
    flex-direction: column;
}

.container .category .cat .dropdown>button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    background-color: white;
    margin-bottom: 20px;
}

.container .category .cat .dropdown ul {
    overflow: hidden scroll;
    position: absolute;
    inset: 0px auto auto 0px;
    margin: 0px;
    transform: translate3d(0px, 66px, 0px);
    width: 100%;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

.container .offer {
    width: 45%;
    background-color: #407BFF;
    padding: 40px;
    border-radius: 15px;
}

.container .offer .logo {
    background-color: white;
    padding: 10px 30px;
    border-radius: 15px;
}

.container .offer .logo p {
    margin: 20px 20px 10px 20px;
    padding: 2px;
    display: flex;
    background-color: #0072EF;
    text-align: center;
    justify-content: center;
    border-radius: 20px;
    color: white;
    font-weight: 700;
}

.container .offer .logo img {
    width: -webkit-fill-available;
}

.container .offer .di {
    padding: 55px;
    padding-top: 0px;
    background: white;
    border-radius: 15px;
}

.container .offer .di img {
    width: -webkit-fill-available;
    border-radius: 15px;
}

.container .offer .di .inner_text p.up {
    display: flex;
    background-color: #0072EF;
    text-align: center;
    justify-content: center;
    border-radius: 20px 20px 0px 0px;
    color: white;
    font-size: 20px;
    margin-bottom: 5px;
}

.container .offer .di .inner_text p.down {
    background-color: #0072EF;
    text-align: center;
    color: white;
    font-size: 25px;
    font-weight: 700;
    padding: 0px;
    margin: 0px;
}

.container .offer .di .inner_text p.down i {
    font-size: initial;
    font-weight: normal;
}


/* ------------------------------------------------------------- */

.container .products {
    padding: 5px 20px;
    margin: 7px 0px;
    border-bottom: 2px solid rgb(1, 1, 195);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.container .products .card {
    width: 20rem;
    margin: 10px;
    /* border-radius: 20px; */
    border-bottom: 5px solid #0036C1;
    border-radius: 0px 0px 10px 10px;
}

.container .products .card>img {
    padding: 20px;
}

.container .products .card .card-title {
    font-weight: 700;
}

.container .products .card .middle {
    display: flex;
    justify-content: space-between;
}

.container .products .card .middle .mrp h4 {
    color: #EF7A11;
    font-weight: 700;
}

.container .products .card .down button {
    background-color: #343DFF;
    font-size: 20px;
    color: white;
    font-weight: 700;
}

.container .products .product_details .image {
    margin: auto;
    width: 75px;
    display: flex;
    justify-content: center;
    height: 75px;
    margin-right: 20px;
    border: 2px solid black;
}

.container .products .product_details .name h3,
.container .products .add_del .mrp h3 {
    font-weight: 600;
}

.container .products .product_details .manufacturer h4,
.container .products .product_details .discount h4 {
    font-weight: 600;
    font-size: 15px;
    color: #4d3177;
}

.container .products .product_details .quantity h4 {
    font-weight: 600;
}

.container .products .product_details .stock label {
    font-size: 20px;
}

.container .products .product_details .stock input {
    width: 20px;
    height: 20px;
}

.container .content .products .product_details>form .add_del {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.container .content .products .product_details>form .add_del .delete button {
    border: none;
    font-size: 20px;
    display: flex;
    justify-content: center;
    background: none;
    border: 2px solid rgb(1, 1, 195);
    border-radius: 10px;
    color: #4d3177;
    padding: 2px 10px;
    margin: auto;
}


/* ------------------------------------------------------------------ */

@media screen and (max-width: 991px) {
    .container .products .card {
        width: 16rem !important;
    }
}

@media screen and (max-width: 540px) {
    .banner img {
        width: 100% !important;
    }
    .prev,
    .next {
        background: none !important;
        padding: 10px !important;
        color: red !important;
        font-size: 20px !important;
    }
    .container .products .product_details .name h3,
    .container .products .add_del .mrp h3 {
        font-size: 20px !important;
    }
    .container .products .product_details .manufacturer h4 {
        font-size: 13px !important;
    }
    .container .content .products .product_details>form .add_del .delete button {
        font-size: 15px !important;
        padding: 2px 10px !important;
    }
    .container .medical_info .med_details {
        flex-direction: column;
    }
    .container .medical_info .img {
        width: 50% !important;
        margin: auto !important;
    }
    .container .medical_info .content {
        width: 100% !important;
    }
    .container .medical_info .content .time_upload {
        flex-direction: column;
    }
    .container .medical_info .content .time_upload .presc {
        margin: auto;
    }
    .container .medical_info .content .time_upload .time {
        margin-right: 0px !important;
    }
}

@media screen and (max-width: 450px) {
    .container .products .product_details .image {
        width: 70px !important;
        height: 70px !important;
    }
    .container .products .product_details .name h3,
    .container .products .add_del .mrp h3 {
        font-size: 16px !important;
    }
    .container .products .product_details .manufacturer h4 {
        font-size: 10px !important;
    }
    .container .products .product_details .quantity h4 {
        font-size: 18px !important;
    }
}

@media screen and (max-width: 767px) {
    .container header {
        justify-content: left !important;
        align-items: flex-start !important;
        flex-direction: column !important;
    }
    .container header .search {
        margin: 15px 10px !important;
    }
    .container .medical_info .search_payty .pays_type {
        width: 100% !important;
        flex-wrap: wrap;
    }
    .container .medical_info .search_payty .pays_type p {
        font-size: 15px !important;
    }
    .container .medical_info .search_payty .search {
        padding: 5px 10px 5px 0px !important;
        border-radius: 10px !important;
    }
    .container .category_offer {
        flex-direction: column;
    }
    .container .category {
        width: 100% !important;
    }
    .container .offer {
        width: 100% !important;
    }
    .container .products .card {
        width: 13rem !important;
    }
}

@media screen and (max-width: 390px) {
    .container header .search input {
        font-size: unset !important;
    }
    .container header .search button {
        font-size: 24px !important;
    }
    .container .category .cat .dropdown>button {
        font-size: 15px !important;
    }
}

@media screen and (max-width: 486px) {
    .container>section {
        flex-direction: column;
        align-items: center;
    }
    .container>section .presc,
    .container>section>nav {
        margin: 20px 0px;
    }
    .container .offer {
        padding: 20px !important;
    }
    .container .offer .logo {
        padding: 10px 20px !important;
    }
    .container .offer .di {
        padding: 35px !important;
    }
    .container .products .card {
        width: 100% !important;
    }
}

@media only screen and (max-width: 300px) {
    .prev,
    .next,
    .text {
        font-size: 11px
    }
}


/*  */


/* <div class="card" style="width: 16rem;">
                    <img src="{% static 'images/medicine.png' %}" class="card-img-top" alt="...">
                    <div class="card-body">
                        <h5 class="card-title">{{medicine.name}}</h5>
                        <p class="card-text">{{medicine.manufacturer}}</p>
                        <p class="card-text">{{medicine.quantity}}</p>
                    </div>
                    <div class="card-footer g-0 p-0">
                        <div class="mrp">
                            <h3 style="text-align: center;">₹{{medicine.mrp}}</h3>
                            <input hidden type="text" name="mrp" value="₹{{medicine.mrp}}" id="">
                        </div>
                        <div class="discount" style="text-align: center;">
                            {% if medicine.discount %}
                            <h4>{{medicine.discount}} % OFF</h4>
                            {% else %} {% if medical.discount_status %}
                            <h4>{{medical.discount_percentage}}% OFF</h4>
                            {% else %}
                            <h4>No discount</h4>
                            {% endif %} {% endif %}
                            <input hidden type="text" value="{{medicine.discount_percentage}}" name="manufacturer" id="">
                        </div>
                        {% if medicine|is_in_cart:request.session.cart %}
                        <div class="g-0 d-flex">
                            <form action="?page={{medicines.number}}&search={{search_product}}#{{medicine.id}}" style="display: flex;justify-content: center;" class="" method="post">
                                {% csrf_token %}
                                <input hidden type="text" name="medicine" value="{{medicine.id}}">
                                <input hidden type="text" name="remove" value="True">
                                <input hidden type="text" value="{{search_product}}" name="pro_se" id="" placeholder="Search Product">
                                <input hidden type="text" value="{{category_name}}" name="category_name" id="" placeholder="category name">
                                <input type="submit" value=' - ' class="btn btn-block btn-secondary" style="">
                            </form>
                            <hr style="margin: 0px;color: white;">
                            <div class="text-center col" style="margin: 10px 0px;">
                                {{medicine|cart_quantity:request.session.cart}} in cart </div>
                            <form action="?page={{medicines.number}}&search={{search_product}}#{{medicine.id}}" class="" style="display: flex; justify-content: center;" method="post">
                                {% csrf_token %}
                                <input hidden type="text" name="medicine" value="{{medicine.id}}">
                                <input hidden type="text" value="{{search_product}}" name="pro_se" id="" placeholder="Search Product">
                                <input hidden type="text" value="{{category_name}}" name="category_name" id="" placeholder="category name">
                                <input type="submit" value=' + ' class="btn btn-block btn-secondary" style="">
                            </form>

                        </div>
                        {% else %}
                        <form action="?page={{medicines.number}}&search={{search_product}}#{{medicine.id}}" method="POST" class="btn-block m-0 row">
                            {% csrf_token %}

                            <input hidden type="text" name="medicine" value="{{medicine.id}}">
                            <input hidden type="text" value="{{search_product}}" name="pro_se" id="" placeholder="Search Product">
                            <input hidden type="text" value="{{category_name}}" name="category_name" id="" placeholder="category name">

                            <input type="submit" class="float-right btn btn-block btn-light border form-control m-0" value="Add to cart">
                        </form>
                        {% endif %}
                    </div>
                </div> */