.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-icon img {
    width: 30px;
    height: 30px;
}

.cart-count {
    background-color: #d40404;
    color: white;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 14px;
    /* position: absolute;
    top: -10px; */
    left: -5px;
}

.cart-dropdown {
    position: absolute;
    /* right: -200px; */
    top: 60px;
    background-color: white;
    width: 450px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    overflow-y: auto;
    max-height: 100vh;
}

.cart-dropdown ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.cart-dropdown li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    color: black;
}

.cart-dropdown li img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.cart-dropdown li:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex-grow: 1;
}

.total {
    font-size: 18px;
    font-weight: bold;
    padding: 15px;
    text-align: right;
    color: black;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
}


.product-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.product-img {
    width: 150px;
    height: 150px;
    margin-right: 10px;
    padding-left: 20px;
}

.product h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.product p {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #6c757d;
}

.add-to-cart {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #218838;
}

.header_section {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}



@media only screen and (max-width: 991px) {
    .hide-on-small {
        display: none;
    }
}

/* For screens 0px to 1000px */
@media only screen and (max-width: 1000px) {
    .cart-dropdown {
        right: 0;
    }
}

/* For screens 1001px to 1200px */
@media only screen and (min-width: 360px) and (max-width: 466px) {
    .cart-dropdown {
        right: -10px;
        width: 350px;
    }
}


@media only screen and (min-width: 1001px) and (max-width: 1200px) {
    .cart-dropdown {
        right: -20px;
        /* width: 350px; */
    }
}

/* For screens 1201px to 1500px */
@media only screen and (min-width: 1201px) and (max-width: 1500px) {
    .cart-dropdown {
        right: -100px;
    }
}

/* For screens larger than 1500px */
@media only screen and (min-width: 1501px) and (max-width: 1800px) {
    .cart-dropdown {
        right: -300px;
        /* or adjust as needed */
    }
}

@media only screen and (min-width: 1801px) and (max-width: 2000px) {
    .cart-dropdown {
        right: -400px;
        /* or adjust as needed */
    }
}


/* Sticky menu for larger screens */
@media (min-width: 768px) {
    .header_section {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: #fff;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    }
}

/* Non-sticky menu for smaller screens */
@media (max-width: 991px) {
    .header_section {
        position: relative;
        top: 0;
        z-index: 1000;
        background-color: #fff;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    }
}