
/* =====================================================
   WHATSAPP FLOAT BUTTON
   ===================================================== */
.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
}
.my-float { margin-top: 16px; }
@media (max-width: 767px) { .float { display: none; } }

/* =====================================================
   MOBILE CART DIALOG — Responsive Fix
   ===================================================== */
@media (max-width: 767px) {
    .mobile-cart-dialog { position: relative; }

    .mobile-cart-summary {
        position: absolute;
        top: 100%;
        right: 0;
        width: 285px;
        max-width: calc(100vw - 20px);
        background: #fff;
        border: 1px solid #e5e7eb;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        border-radius: 10px;
        z-index: 2000;
        display: none;
        max-height: 480px;
        overflow: hidden;
        padding: 10px;
    }
    .mobile-cart-dialog.active .mobile-cart-summary { display: block; }

    /* 4-column grid: image | name | qty | price+remove */
    .mobile-cart-summary ul {
        display: grid;
        grid-template-columns: 44px 1fr 34px 68px;
        align-items: center;
        column-gap: 6px;
        max-height: 230px;
        overflow-y: auto;
        overflow-x: hidden;
        list-style: none;
        margin: 0 0 8px 0;
        padding: 0;
    }
    .mobile-cart-summary ul li {
        display: flex;
        align-items: center;
        padding: 7px 0;
        margin: 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 12px;
    }
    /* Column 1: Image */
    .mobile-cart-summary ul li:nth-child(4n+1) {
        justify-content: center;
        border-bottom-color: transparent;
    }
    .mobile-cart-summary img {
        width: 40px !important;
        height: 40px !important;
        object-fit: cover !important;
        border-radius: 6px;
        border: 1px solid #eee;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0;
    }
    /* Column 2: Name */
    .mobile-cart-summary ul li:nth-child(4n+2) {
        border-bottom-color: transparent;
        overflow: hidden;
    }
    .mobile-cart-summary ul li:nth-child(4n+2) a {
        color: #222;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    /* Column 3: Qty */
    .mobile-cart-summary ul li:nth-child(4n+3) {
        font-size: 11px;
        color: #666;
        white-space: nowrap;
        justify-content: center;
        border-bottom-color: transparent;
    }
    /* Column 4: Price + Remove */
    .mobile-cart-summary ul li:nth-child(4n) {
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 4px;
        border-bottom-color: #f0f0f0;
    }
    .mobile-cart-summary ul li:nth-child(4n) p {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #ff4800 !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap;
    }
    /* Remove button */
    .mobile-cart-summary .remove-cart,
    .mobile-cart-summary .cart_remove {
        background: #fee2e2 !important;
        color: #e53e3e !important;
        border-radius: 50% !important;
        width: 20px !important;
        height: 20px !important;
        min-width: 20px;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        cursor: pointer;
        flex-shrink: 0;
        font-size: 10px;
        padding: 0 !important;
        margin: 0 !important;
    }
    .mobile-cart-summary .remove-cart svg,
    .mobile-cart-summary .cart_remove svg,
    .mobile-cart-summary .remove-cart i,
    .mobile-cart-summary .cart_remove i {
        width: 10px !important;
        height: 10px !important;
        color: #e53e3e !important;
        stroke: #e53e3e !important;
    }
    /* Total */
    .mobile-cart-summary > p,
    .mobile-cart-summary p strong {
        font-size: 13px;
        font-weight: 700;
        color: #111;
        display: block;
        border-top: 2px solid #f0f0f0;
        padding-top: 7px;
        margin: 0 0 7px 0 !important;
    }
    /* Order button */
    .mobile-cart-summary .go_cart {
        padding: 9px 16px;
        font-size: 13px;
        margin: 0;
        display: block;
        text-align: center;
        border-radius: 8px;
    }
    .menu-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        text-decoration: none;
        padding: 4px;
    }
    .menu-bar a:hover { background: transparent !important; }
}
/* Extra small screens */
@media (max-width: 380px) {
    .mobile-cart-summary {
        width: calc(100vw - 16px) !important;
        right: -4px !important;
    }
    .mobile-cart-summary ul {
        grid-template-columns: 38px 1fr 30px 60px !important;
    }
}

/* =====================================================
   LOGO AREA (Desktop)
   ===================================================== */
.logo-area {
    background: #fff;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}
.logo-area .container,
.menu-area .container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 22px;
    padding-right: 22px;
}
@media (min-width: 1401px) {
    .container {
        max-width: 1320px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* =====================================================
   LOGO HEADER FLEX LAYOUT
   ===================================================== */
.logo-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-header .main-logo {
    flex: 0 0 auto;
    min-width: 120px;
}
.logo-header .main-logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

/* =====================================================
   SEARCH BAR
   ===================================================== */

   .search_result {
    position: absolute;
    width: 100%;
    margin-top: 0 !important;
    background-color: #ffffff !important; 
    z-index: 9999 !important; 
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    border: none !important;
    overflow-y: auto;
    border-radius: 0 0 5px 5px;
    margin-top: 1px;
}

.search-item a {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
    text-decoration: none;
}

.search-item a:hover {
    background-color: #f9f9f9; 
}

.logo-header .main-search {
    flex: 1 1 auto;
    max-width: 640px;
    position: relative;
}
.logo-header .main-search form {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    height: 48px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.msearch-icon {
    flex-shrink: 0;
    margin-left: 14px;
    color: #9ca3af;
    pointer-events: none;
    display: block;
}

.logo-header .main-search input,
.logo-header .main-search input.search_keyword {
    flex: 1;
    height: 100%;
    border: 0 !important;
    background: transparent;
    outline: none;
    padding: 0 10px !important;
    font-size: 15px;
    color: #374151;
    line-height: normal !important;
    box-sizing: border-box;
    box-shadow: none !important;
}
.logo-header .main-search input::placeholder,
.logo-header .main-search input.search_keyword::placeholder {
    color: #9ca3af;
    line-height: normal !important;
}
.logo-header .main-search form button {
    flex-shrink: 0;
    height: 100%;
    padding: 0 18px;
    background: #ff4800;
    color: #fff;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    border-radius: 0;
    white-space: nowrap;
}
.logo-header .main-search form button:hover { background: #ea6a00; }
.logo-header .main-search form button i,
.logo-header .main-search form button svg { display: block; }

.logo-header .main-search .search_result {
    position: absolute;
    top: 100% !important;
    left: 0;
    right: 0;
    z-index: 3000;
}

/* =====================================================
   HEADER SHORTCUT ITEMS
   ===================================================== */
.header-list-items {
    flex: 0 0 auto;
    margin-left: auto;
    overflow: visible;
}
.header-list-items ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.header-list-items ul li { margin: 0; overflow: visible; }

.header-list-items ul li.header-shortcut {
    text-align: left;
    font-weight: 400;
    position: relative;
}

.header-list-items ul li.header-shortcut + li.header-shortcut {
    border-left: 1px solid #e5e7eb;
}

.header-list-items ul li.header-shortcut > a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    padding: 5px 12px;
    border-radius: 0;
    text-decoration: none;
    background: transparent;
    border: 0;
    white-space: nowrap;
    transition: background 0.15s;
    cursor: pointer;
}
.header-list-items ul li.header-shortcut .guest-account-shortcut {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    padding: 5px 12px;
    border-radius: 0;
    background: transparent;
    border: 0;
    white-space: nowrap;
    cursor: pointer;
}
.header-list-items ul li.header-shortcut > a:hover { background: #f9fafb; }

.header-list-items ul li.header-shortcut .shortcut-ic {
    width: 22px;
    text-align: center;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}
.header-list-items ul li.header-shortcut > a > span,
.header-list-items ul li.header-shortcut .guest-account-shortcut > span { display: block !important; }

.header-list-items ul li.header-shortcut i { font-size: 20px; color: #ff4800; }
.header-list-items ul li.header-shortcut .shortcut-ic svg { color: #ff4800; }

.header-list-items ul li.header-shortcut .shortcut-title {
    display: block !important;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    color: #111827;
    position: static !important;
    top: auto !important;
    right: auto !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.2 !important;
    border-radius: 0 !important;
}
.header-list-items ul li.header-shortcut .shortcut-subtitle {
    display: block !important;
    font-size: 11px;
    line-height: 1.3;
    color: #6b7280;
    opacity: 1;
    position: static !important;
    top: auto !important;
    right: auto !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.3 !important;
    border-radius: 0 !important;
}
.header-list-items ul li.header-shortcut > a > span:last-child,
.header-list-items ul li.header-shortcut .guest-account-shortcut > span:last-child {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
}
.header-list-items ul li.header-shortcut:hover .shortcut-title { color: #0a1a2f; }
.header-list-items ul li.header-shortcut:hover .shortcut-subtitle { color: #374151; }
.header-list-items ul li.header-shortcut .shortcut-subtitle a { color: inherit; text-decoration: none; }
.header-list-items ul li.header-shortcut .shortcut-subtitle a:hover { text-decoration: underline; }

.header-list-items ul li.header-shortcut span {
    position: static !important;
    top: auto !important;
    right: auto !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    line-height: inherit !important;
    border-radius: 0 !important;
}

/* =====================================================
   CART DIALOG (Desktop) — Responsive Fix
   ===================================================== */
.main-header,
.logo-area,
.logo-header,
.header-list-items,
.header-list-items ul,
.header-list-items ul li { overflow: visible; }

.header-list-items .cart-dialog { position: relative; overflow: visible; }
.header-list-items .cart-dialog > a {
    color: #374151;
    text-decoration: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    transition: background 0.15s;
}
.header-list-items .cart-dialog > a:hover { background: #f9fafb; }
.header-list-items .cart-dialog .margin-shopping {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.header-list-items .cart-dialog .margin-shopping i { font-size: 22px; color: #374151; }
.header-list-items .cart-dialog .margin-shopping svg { color: #374151; }
.header-list-items .cart-dialog .margin-shopping > span {
    position: absolute !important;
    top: -10px !important;
    right: -14px !important;
    background: #ff4800 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    min-width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    padding: 0 2px !important;
    width: auto !important;
}

/* Cart Dropdown Popup */
.header-list-items .cart-dialog .cshort-summary {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 2500;
    width: 310px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    display: none;
    padding: 12px;
    overflow: hidden;
}
.header-list-items .cart-dialog:hover .cshort-summary { display: block; }

/* 4-column grid: image | name | qty | price+remove */
.header-list-items .cart-dialog .cshort-summary ul {
    display: grid;
    grid-template-columns: 50px 1fr 38px 72px;
    align-items: center;
    column-gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
}
.header-list-items .cart-dialog .cshort-summary ul li {
    display: flex;
    align-items: center;
    padding: 9px 0;
    margin: 0;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
/* Column 1: Image */
.header-list-items .cart-dialog .cshort-summary ul li:nth-child(4n+1) {
    justify-content: center;
    border-bottom-color: transparent;
}
.header-list-items .cart-dialog .cshort-summary img {
    width: 46px !important;
    height: 46px !important;
    object-fit: cover !important;
    border-radius: 7px;
    border: 1px solid #eee;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
}
/* Column 2: Name */
.header-list-items .cart-dialog .cshort-summary ul li:nth-child(4n+2) {
    border-bottom-color: transparent;
    overflow: hidden;
}
.header-list-items .cart-dialog .cshort-summary ul li:nth-child(4n+2) a {
    color: #222;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Column 3: Qty */
.header-list-items .cart-dialog .cshort-summary ul li:nth-child(4n+3) {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    justify-content: center;
    border-bottom-color: transparent;
}
/* Column 4: Price + Remove */
.header-list-items .cart-dialog .cshort-summary ul li:nth-child(4n) {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    border-bottom-color: #f0f0f0;
}
.header-list-items .cart-dialog .cshort-summary ul li:nth-child(4n) p {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ff4800 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
}
/* Remove button */
.header-list-items .cart-dialog .cshort-summary .remove-cart,
.header-list-items .cart-dialog .cshort-summary .cart_remove {
    background: #fee2e2 !important;
    color: #e53e3e !important;
    border-radius: 50% !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 11px;
    padding: 0 !important;
    margin: 0 !important;
}
.header-list-items .cart-dialog .cshort-summary .remove-cart svg,
.header-list-items .cart-dialog .cshort-summary .cart_remove svg,
.header-list-items .cart-dialog .cshort-summary .remove-cart i,
.header-list-items .cart-dialog .cshort-summary .cart_remove i {
    width: 11px !important;
    height: 11px !important;
    color: #e53e3e !important;
    stroke: #e53e3e !important;
}
/* Total text */
.header-list-items .cart-dialog .cshort-summary > p,
.header-list-items .cart-dialog .cshort-summary p strong {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    display: block;
    border-top: 2px solid #f0f0f0;
    padding-top: 8px;
    margin: 0 0 8px 0 !important;
}
/* Order button */
.go_cart,
.go_cart:hover {
    display: block;
    margin-top: 0;
    padding: 10px 16px;
    background: #ff4800;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s;
    width: 100%;
}
.go_cart:hover { background: #ea6a00; color: #fff !important; }

/* =====================================================
   MENU AREA — Orange Navigation Bar
   ===================================================== */
.menu-area {
    background: #ff4800;
    border-bottom: 1px solid #ea6a00;
    position: relative;
    z-index: 1200;
    overflow: visible;
}
.catagory_menu {
    background: transparent;
    border: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    height: 50px;
}

/* =====================================================
   MEGA MENU
   ===================================================== */
.mega-menu-container {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mega-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.18);
    border: 0;
    color: #fff;
    padding: 0 18px;
    height: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    font-family: inherit;
    transition: background 0.15s;
    text-decoration: none;
}
.mega-menu-btn:hover { background: rgba(0,0,0,0.28); }
.mega-menu-btn .btn-bars { font-size: 16px; }
.mega-menu-btn .btn-chevron { font-size: 12px; transition: transform 0.2s; }
.mega-menu-container.open .mega-menu-btn .btn-chevron { transform: rotate(180deg); }

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 880px;
    max-width: calc(100vw - 32px);
    background: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    border-radius: 0 0 10px 10px;
    display: none;
    z-index: 2000;
    flex-direction: row;
    overflow: hidden;
}
.mega-menu-container:hover .mega-dropdown,
.mega-menu-container.open .mega-dropdown {
    display: flex;
}

.mega-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #f3f4f6;
    padding: 8px 0;
    max-height: 480px;
    overflow-y: auto;
}
.mega-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.15s;
    position: relative;
}
.mega-sidebar-item:hover,
.mega-sidebar-item.active {
    background: #fff7ed;
    border-left-color: #ff4800;
    color: #ff4800;
}
.mega-sidebar-item .side-cat-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.mega-sidebar-item .chevron-r {
    margin-left: auto;
    font-size: 11px;
    color: #9ca3af;
}
.mega-sidebar-item.active .chevron-r { color: #ff4800; }

.mega-sidebar-allproducts {
    font-weight: 600;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 4px;
    padding-bottom: 13px;
}

.sidebar-icon-wrap {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 13px;
}
.mega-sidebar-item.active .sidebar-icon-wrap,
.mega-sidebar-item:hover .sidebar-icon-wrap { color: #ff4800; }

.mega-panels { flex: 1; overflow: hidden; }
.mega-panel {
    display: none;
    padding: 20px 24px;
    background: #fffbf5;
    height: 100%;
    max-height: 480px;
    overflow-y: auto;
}
.mega-panel.active { display: block; }

.mega-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}
.mega-panel-title i { color: #ff4800; font-size: 15px; }

.panel-title-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.mega-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.mega-subcat-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 13px 14px;
}
.mega-subcat-card .subcat-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    margin-bottom: 8px;
    line-height: 1.3;
}
.mega-subcat-card .subcat-title i { color: #ff4800; font-size: 11px; }
.mega-subcat-card .subcat-title:hover { color: #ff4800; }

.child-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #6b7280;
    text-decoration: none;
    padding: 2px 0;
    line-height: 1.5;
}
.child-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ff4800;
    border-radius: 50%;
    flex-shrink: 0;
}
.child-item:hover { color: #ff4800; }

.mega-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #9ca3af;
    text-align: center;
    gap: 10px;
}
.mega-panel-empty i { font-size: 32px; opacity: 0.4; }
.mega-panel-empty p { font-size: 14px; margin: 0; }

/* =====================================================
   HORIZONTAL CATEGORY LINKS
   ===================================================== */
.horizontal-category-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    height: 50px;
    line-height: 50px;
    overflow: visible;
    white-space: nowrap;
    margin: 0;
    padding: 0 0 0 4px;
    list-style: none;
}
.horizontal-category-menu li {
    display: inline-flex;
    flex: 0 0 auto;
    position: relative;
}
.horizontal-category-menu li a {
    margin: 0;
    padding: 0 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    height: 50px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.horizontal-category-menu li a:hover { color: #fff; opacity: 0.88; }

.category-with-submenu .category-submenu {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 230px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: none;
    z-index: 1100;
    line-height: 1.5;
    padding: 8px 0;
    list-style: none;
}
.category-with-submenu:hover .category-submenu { display: block; }
.category-submenu li { display: block; margin: 0; padding: 0; list-style: none; line-height: 1.4; }
.category-submenu li a {
    display: block;
    margin: 0;
    padding: 8px 14px;
    color: #111827 !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
}
.category-submenu li a:hover { background: #f3f4f6; }

.more-categories-menu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
    line-height: 1.5;
    padding: 8px 0;
    list-style: none;
}
.more-categories:hover .more-categories-menu { display: block; }
.more-categories.open .more-categories-menu { display: block; }
.more-categories-menu li { display: block; margin: 0; padding: 0; }
.more-categories-menu li a {
    display: block;
    margin: 0;
    padding: 8px 14px;
    color: #111827 !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}
.catagory_menu .category-submenu li a,
.catagory_menu .more-categories-menu li a {
    color: #111827 !important;
    text-transform: none;
    margin: 0 !important;
}
.more-categories-menu li a:hover { background: #f3f4f6; }

/* =====================================================
   MOBILE HEADER — Top Bar
   ===================================================== */
@media (max-width: 767px) {

    /* ─── BUG FIX: Hide the ENTIRE desktop header on mobile ─── */
    /* Previously only .main-header .logo-area was hidden,       */
    /* leaving .menu-area visible and causing a duplicate search  */
    /* bar and layout issues.                                     */
    .main-header { display: none !important; }

    .mobile-header {
        background: #fff;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    /* ── Hide HC Off-canvas auto-generated trigger ── */
    .hc-nav-trigger { display: none; }

    .mobile-logo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 14px;
        height: 54px;
        flex-wrap: nowrap;
        position: relative;
    }

    .menu-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
    }

    .menu-logo-inline {
        display: flex;
        align-items: center;
        text-decoration: none;
    }
    .menu-logo-inline img {
        max-height: 36px;
        width: auto;
        display: block;
    }

    .menu-logo { display: none; }

    .menu-bag {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .mobile-login-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 5px 14px;
        background: #1e293b;
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        border-radius: 6px;
        text-decoration: none;
        white-space: nowrap;
        transition: background 0.15s;
    }
    .mobile-login-btn:hover { background: #334155; color: #fff; }

    .menu-bag .margin-shopping {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        width: 36px;
        height: 36px;
        border-radius: 6px;
        color: #374151;
        text-decoration: none;
        position: relative;
        transition: background 0.15s;
    }
    .menu-bag .margin-shopping:hover { background: #f3f4f6; }
    .menu-bag .margin-shopping i,
    .menu-bag .margin-shopping svg { font-size: 22px; }

    .menu-bag .mobilecart-qty {
        position: absolute !important;
        top: 1px !important;
        right: 0px !important;
        background: #ff4800 !important;
        color: #fff !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        min-width: 15px !important;
        height: 15px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 2px !important;
        line-height: 1 !important;
        width: auto !important;
    }
}

@media (max-width: 767px) {
    .mobile-search {
        background: #fff !important;
        padding: 0 12px 10px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        margin-top: 6px !important;
    }
    .mobile-search form {
        display: flex !important;
        align-items: center !important;
        background: #fff !important;
        border: 1.5px solid #e5e7eb !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        height: 44px !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    .mobile-search form > svg:first-child,
    .mobile-search .msearch-icon {
        flex-shrink: 0 !important;
        margin-left: 12px !important;
        color: #9ca3af !important;
        pointer-events: none;
        display: block !important;
        background: transparent !important;
    }
    .mobile-search input,
    .mobile-search input.msearch_keyword,
    .mobile-search input.search_keyword {
        flex: 1 !important;
        height: 100% !important;
        border: 0 !important;
        background: #fff !important;
        outline: none !important;
        padding: 0 8px !important;
        font-size: 14px !important;
        color: #374151 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    .mobile-search input::placeholder { color: #9ca3af !important; }
    .mobile-search button,
    .mobile-search form button[type="submit"] {
        flex-shrink: 0 !important;
        width: 48px !important;
        height: 100% !important;
        min-height: 44px !important;
        padding: 0 !important;
        border: 0 !important;
        background: #1e293b !important;
        color: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    
    .mobile-search button:hover,
    .mobile-search form button[type="submit"]:hover { background: #0f172a !important; }
    .mobile-search button svg,
    .mobile-search button i,
    .mobile-search form button[type="submit"] svg,
    .mobile-search form button[type="submit"] i {
        font-size: 17px !important;
        color: #fff !important;
        stroke: #fff !important;
    }
}

/* Hide mobile header/search on desktop */
@media (min-width: 768px) {
    .mobile-header { display: none !important; }
    .mobile-search { display: none !important; }
}

/* =====================================================
   RESPONSIVE — Desktop breakpoints
   ===================================================== */
@media (max-width: 1199px) {
    .header-shortcut .shortcut-subtitle { display: none !important; }
    .logo-header .main-search { max-width: 480px; }
    .horizontal-category-menu li a { padding: 0 8px; font-size: 14px; }
}

@media (min-width: 992px) and (max-width: 1400px) {
    .logo-area .container,
    .menu-area .container { max-width: 1240px; padding-left: 18px; padding-right: 18px; }
    .container { max-width: 1240px; padding-left: 18px; padding-right: 18px; }
    .logo-area { padding: 6px 0; }
    .logo-header { gap: 14px; }
    .logo-header .main-logo { min-width: 120px; }
    .logo-header .main-logo img { max-height: 44px; }
    .logo-header .main-search { max-width: 480px; }
    .logo-header .main-search form { height: 44px; }
    .logo-header .main-search form button { padding: 0 14px; }
    .header-list-items ul { gap: 0; }
    .header-list-items ul li.header-shortcut > a,
    .header-list-items ul li.header-shortcut .guest-account-shortcut { gap: 6px; padding: 4px 8px; }
    .header-list-items ul li.header-shortcut .shortcut-title { font-size: 13px; }
    .header-list-items ul li.header-shortcut .shortcut-subtitle { font-size: 11px; }
    .header-list-items .cart-dialog > a { width: 38px; height: 38px; }
    .horizontal-category-menu { height: 44px; line-height: 44px; }
    .horizontal-category-menu li a { font-size: 14px; padding: 0 10px; }
    .mega-menu-btn { height: 44px; font-size: 14px; padding: 0 14px; }
    .catagory_menu { height: 44px; }
    .mega-panel-grid { grid-template-columns: repeat(2, 1fr); }
    .mega-dropdown { width: 720px; }
}

@media (max-width: 991px) {
    .container { padding-left: 12px; padding-right: 12px; }
    .horizontal-category-menu { gap: 0; overflow: visible; }
    .horizontal-category-menu li a { margin: 0; font-size: 14px; }
    .category-with-submenu .category-submenu { display: none !important; }
    .mega-menu-container { display: none; }
    .catagory_menu { height: 44px; }
}

/* =====================================================
   MOBILE MENU — Accordion Drawer
   ===================================================== */
.mm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    transition: opacity 0.3s;
}
.mm-overlay.mm-visible { display: block; }

.mm-drawer {
    position: fixed !important;
    top: 0 !important;
    left: -320px !important;
    width: 300px !important;
    height: 100% !important;
    background: #fff !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transition: left 0.3s ease !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    border: 0 !important;
}
.mm-drawer.mm-open { left: 0 !important; }

.mm-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}
.mm-drawer-logo img { max-height: 40px; width: auto; }
.mm-drawer-close {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #374151;
    transition: background 0.15s;
}
.mm-drawer-close:hover { background: #e5e7eb; }
.mm-search-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
}
.mm-search-input {
    width: 100%;
    height: 40px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 12px 0 36px;
    font-size: 14px;
    color: #111827;
    outline: none;
}
.mm-search-input:focus { border-color: #ff4800; background: #fff; }
.mm-search-input::placeholder { color: #9ca3af; }

.mm-cat-list {
    list-style: none;
    margin: 0;
    padding: 6px 0 24px;
    flex: 1;
}
.mm-cat-item { border-bottom: 1px solid #f3f4f6; }

.mm-allproducts-item .mm-cat-row { border-left: 3px solid transparent; }
.mm-allproducts-item .mm-cat-link { font-weight: 600; color: #ff4800; }
.mm-allproducts-item .mm-cat-link .mm-cat-icon-wrap { color: #ff4800; }

.mm-cat-row {
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
    transition: border-color 0.15s, background 0.15s;
}
.mm-cat-item.mm-open > .mm-cat-row {
    border-left-color: #ff4800;
    background: #fff7ed;
}
.mm-cat-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 12px 13px 14px;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}
.mm-cat-link:hover { color: #ff4800; }
.mm-cat-icon-wrap {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ff4800;
    font-size: 15px;
}
.mm-cat-row:hover { background: #fff7ed; }
.mm-cat-link:hover { color: #ff4800; }
.mm-cat-item:has(.mm-toggle) .mm-cat-link { cursor: pointer; }

.mm-cat-icon-img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    margin-bottom: 0 !important;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
    border-radius: 0;
}

.mm-toggle {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 0;
    font-size: 22px;
    font-weight: 300;
    color: #ff4800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}
.mm-toggle:hover { color: #ea6a00; }

.mm-subcat-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    background: #f9fafb;
}
.mm-subcat-item { border-bottom: 1px solid #f0f0f0; }
.mm-subcat-row { display: flex; align-items: center; }
.mm-subcat-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 10px 28px;
    color: #374151;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
}
.mm-subcat-link i { color: #ff4800; font-size: 11px; flex-shrink: 0; }
.mm-subcat-link:hover { color: #ff4800; }
.mm-subcat-item.mm-open .mm-subcat-link { color: #ff4800; }

.mm-sub-toggle {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    font-size: 18px;
    font-weight: 400;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: color 0.15s;
}
.mm-sub-toggle:hover,
.mm-subcat-item.mm-open .mm-sub-toggle { color: #ff4800; }

.mm-childcat-list {
    list-style: none;
    margin: 0;
    padding: 4px 0 8px 28px;
    background: #f9fafb;
}
.mm-childcat-item { margin: 0; }
.mm-childcat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 14px;
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
}
.mm-childcat-link::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #ff4800;
    border-radius: 50%;
    flex-shrink: 0;
}
.mm-childcat-link:hover { color: #ff4800; }

.mm-subcat-list[hidden],
.mm-childcat-list[hidden] { display: none; }

@media (min-width: 992px) {
    .mm-drawer { display: none !important; }
    .mm-overlay { display: none !important; }
}


