/* ========================================
   COMPLETE MOBILE OPTIMIZATION
   Kunjmart.com - All Issues Fixed
   ======================================== */

/* ========================================
   HEADER OPTIMIZATION FOR MOBILE
   ======================================== */

@media (max-width: 991px) {

    /* ===== TOP HEADER (Email, Login, Sign Up) ===== */
    .header-top {
        padding: 8px 0;
    }

    .header-top-left ul li {
        font-size: 12px;
        padding: 5px 0;
    }

    .box-right ul li {
        margin-left: 8px;
    }

    .box-right ul li a,
    .box-right ul li button {
        font-size: 12px;
        padding: 5px 10px;
    }

    /* ===== MIDDLE HEADER (Logo, Search, Cart) ===== */
    .header-middle {
        padding: 15px 0;
    }

    /* Logo - Make it smaller */
    .logo {
        text-align: center;
        margin-bottom: 30px;
        margin-top: 30px;
    }

    .logo img {
        max-width: 180px;
        height: auto;
    }

    /* Search Bar - Full width and better styling */
    /* Search Bar - Full width and better styling */
    .header-middle-inner {
        margin-top: 0 !important;
        width: 100%;
    }

    /* Ensure form is flex container */
    .header-middle-inner form {
        display: flex !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .top-cat {
        width: 100%;
        display: none !important;
        /* Hide category dropdown in search if present */
    }

    input.top-cat-field {
        flex: 1 !important;
        /* Grow to fill space */
        width: auto !important;
        height: 45px !important;
        padding: 0 15px !important;
        font-size: 14px;
        border: 1px solid #e1e1e1 !important;
        border-right: none !important;
        border-radius: 4px 0 0 4px !important;
    }

    .top-search-btn {
        width: auto !important;
        min-width: 100px;
        height: 45px !important;
        padding: 0 15px !important;
        font-size: 14px;
        font-weight: 700 !important;
        /* Bold text */
        color: #333 !important;
        background: #fedc19 !important;
        border: none !important;
        border-radius: 0 4px 4px 0 !important;
        text-transform: capitalize;
    }

    /* Mini Cart Options - Hide Product Compare on mobile */
    /* Mini Cart Options */
    .mini-cart-option {
        margin-top: 15px;
        width: 100%;
    }

    .mini-cart-option ul {
        display: flex;
        justify-content: space-between !important;
        /* Spread items */
        width: 100%;
        padding: 0 5px;
        /* Small padding */
        gap: 0;
        /* Remove gap */
    }

    .mini-cart-option li.compare {
        display: block !important;
        /* Show product compare on mobile */
    }

    .mini-cart-option li a {
        font-size: 13px;
        padding: 8px 15px;
        background: transparent;
        /* Remove Gray Box */
        border-radius: 5px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    /* ===== NAVIGATION HEADER (Categories, Menu, Helpline) ===== */
    .header-top-menu {
        padding: 10px 0;
    }

    /* Hide custom manual button and list */
    .categories-menu-btn,
    .categorie-menus {
        display: none !important;
    }

    /* Show SlickNav (Plugin Menu) - This handles submenus correctly */
    .slicknav_menu {
        display: block !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
    }

    .slicknav_btn {
        background-color: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
        display: block !important;
    }

    .slicknav_menutxt {
        display: none !important;
    }

    .slicknav_icon {
        margin: 0 !important;
        float: none !important;
    }

    .slicknav_icon-bar {
        background-color: #000 !important;
        width: 25px !important;
        height: 3px !important;
        margin: 5px 0 !important;
        border-radius: 1px;
    }

    /* Dropdown styling */
    .slicknav_nav {
        background: #fff !important;
        margin-top: 10px;
    }

    .slicknav_nav a {
        color: #333 !important;
    }

    .slicknav_nav .slicknav_row:hover,
    .slicknav_nav a:hover {
        background: #f8f8f8 !important;
        color: #000 !important;
    }

    .categories-menu-bar {
        width: 100% !important;
        margin-bottom: 0 !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }

    .categories-menu-btn {
        background: #000 !important;
        padding: 5px 10px !important;
        border-radius: 5px;
        cursor: pointer;
        display: inline-flex !important;
        /* Width nani (fit content) */
        align-items: center;
        width: auto !important;
        gap: 10px;
    }

    .categories-menu-btn .left {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-direction: row-reverse;
        /* Swap: Text First, Icon Second (Right) */
    }

    .categories-menu-btn .left i {
        font-size: 18px;
        color: #fff;
    }

    .categories-menu-btn .left span {
        font-weight: 600;
        color: #fff;
    }

    .categories-menu-btn .right {
        display: none !important;
        /* Right nu remove */
    }

    /* Categories Dropdown */
    .categorie-menus {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        background: #fff;
    }

    .categorie-menus ul {
        background: #fff;
        width: 100%;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .categorie-menus ul li {
        border-bottom: 1px solid #eee;
    }

    .categorie-menus ul li a {
        padding: 12px 15px;
        display: block;
        color: #333;
    }

    /* Helpline - Better styling */
    .header-call-action {
        text-align: center;
        padding: 12px 0;
        background: #fedc19;
        margin-top: 5px !important;
        margin-left: 0 !important;
        border-radius: 5px;
    }

    .header-call-action p {
        margin: 0;
        font-size: 14px;
        color: #000;
        font-weight: 600;
    }

    .header-call-action p .lnr {
        margin-right: 5px;
    }

    /* ===== MOBILE MENU ===== */
    .mobile-menu {
        display: block !important;
    }

    /* ===== COMBINED YELLOW BAR ===== */
    .top-main-menu {
        width: 60%;
        display: flex;
        flex-direction: row !important;
        /* Row */
        justify-content: space-between;
        align-items: center;
        background: #fedc19;
        /* Yellow BG */
        padding: 5px 15px;
        border-radius: 5px;
        margin-top: 10px;
        position: relative;
    }

    .header-call-action {
        border-radius: 0;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        order: 1;
        text-align: left !important;
        flex-grow: 0.5;
    }

    .header-call-action p {
        font-size: 13px;
        font-weight: 700;
        color: #000;
        margin: 0;
    }

    .categories-menu-bar {
        order: 2;
        width: auto !important;
        margin: 0 !important;
    }

    /* ===== REDUCE OVERALL SPACING ===== */
    .container-fluid {
        padding: 0 15px;
    }

    /* Reduce padding between sections */
    .header-top,
    .header-middle,
    .header-top-menu {
        padding-top: 0px;
        padding-bottom: 0px;
    }

}

/* ========================================
   SLIDER/BANNER OPTIMIZATION
   ======================================== */

@media (max-width: 991px) {

    .slider-area {
        margin-top: 15px;
    }

    .single-slider {
        height: 250px !important;
        min-height: 250px;
    }

    .slider-img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    .shop-now-button {
        font-size: 14px !important;
        padding: 8px 20px !important;
        left: 5% !important;
        top: 45% !important;
    }

}

/* ========================================
   SMALL MOBILE (Below 576px)
   ======================================== */

@media (max-width: 575px) {

    .categories-menu-btn,
    .categorie-menus {
        display: none !important;
    }

    .categories-menu-bar {
        position: relative !important;
        top: 0 !important;
    }

    .logo img {
        max-width: 150px;
    }

    .header-call-action p {
        font-size: 13px;
    }

    .single-slider {
        height: 200px !important;
    }

    .slider-img {
        height: 200px;
    }

    .shop-now-button {
        font-size: 12px !important;
        padding: 6px 15px !important;
    }

}

/* ========================================
   TABLET VIEW (768px - 991px)
   ======================================== */

@media (min-width: 768px) and (max-width: 991px) {

    .header-call-action {
        text-align: center;
    }

    .logo img {
        max-width: 200px;
    }

}

@media (min-width: 320px) and (max-width: 479px) {
    .header-middle-inner {
        margin-bottom: 6px;
    }
}

/* ===== STICKY HEADER FIX ===== */
.header-top-menu.sticker.sticky {
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 999;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.27);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.27);
    -webkit-animation: 900ms cubic-bezier(0.2, 1, 0.22, 1) 0s normal none 1 running fadeInDown;
    animation: 900ms cubic-bezier(0.2, 1, 0.22, 1) 0s normal none 1 running fadeInDown;
}