@media (max-width: 1399px) {
    .search_option .form-control {
        width: 270px !important;
    }
}

@media (max-width: 1199px) {
    .search_option .form-control {
        width: 260px !important;
    }

    .header_section .navbar-nav .nav-item .nav-link {
        padding: 20px 7px;
    }
}

@media screen and (min-width:992px) {

    /* Show dropdown on hover with animation */
    .header_section .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Initial hidden state for animation */
    .header_section .dropdown-menu {
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: left;
        border: none;
        max-height: 330px;
        overflow: hidden;
        overflow-y: auto;
        scrollbar-width: thin;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.4s ease;
    }

    /* Grid style for dropdown items */
    .header_section .dropdown-menu .dropdown-item {
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
        transition: background 0.2s;
    }

    .header_section .dropdown-menu .dropdown-item img {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 5px;
        margin-right: 10px;
    }

    .header_section .dropdown-menu .dropdown-item:hover {
        background-color: #f8f9fa;
    }

}

@media screen and (max-width:992px) {
    .ecom-nav .offcanvas {
        width: 300px !important;
    }

    .header_section .navbar-nav .nav-item .nav-link:hover {
        color: #fff;
    }

    .offcanvas-body {
        scrollbar-width: thin;
    }

    .header_section .navbar-nav .nav-item .nav-link {
        color: black;
        font-size: 14px;
        justify-content: start;
    }

    .search_option {
        position: absolute;
        top: 67px;
        left: 0;
        right: 0;
    }

    .header_section {
        padding: 1px 0px 55px 0px !important;
    }
}


@media screen and (max-width:575px) {
    .section-title h3 {
        font-size: 18px !important;
    }

    .carousel-item img {
        min-height: 150px;
    }

    .product_counter h5 {
        font-size: 14px;
    }

    .product_counter span {
        font-size: 12px;
    }

    .product_counter div {
        padding: 8px 20px !important;
    }
}


@media screen and (max-width:450px) {
    .navbar-brand img {
        max-width: 136px;
        max-height: 60px;
    }

    .search_option {
        top: 48px;
    }
}