/* Header Styles */

/* New Top Header */
.new-top-header {
    background: transparent;
    padding: 15px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    width: 100%;
    border-bottom: none;
    transition: all 0.3s ease;
}

/* Solid Header for Non-Home/Services Pages */
.new-top-header.header-solid {
    background: #f1f2f2;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.new-top-header.header-solid .new-header-link {
    color: #0a5899;
}

.new-top-header.header-solid .new-icon-btn {
    color: #0a5899;
}

.new-header-link {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.new-header-link:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

.new-logo-img {
    max-height: 100px;
    height: auto;
    width: auto;
}

.new-icon-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    transition: color 0.3s ease;
    position: relative;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.new-icon-btn:hover {
    color: #f0f0f0;
}

.new-cart-badge {
    position: absolute;
    top: 2px;
    right: 5px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
}

/* Full Screen Search Modal */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a5899e3;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.search-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 100%;
    max-width: 1100px;
    padding: 0 40px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.search-modal-overlay.active .search-modal-content {
    transform: scale(1);
    opacity: 1;
}

.search-modal-close {
    position: absolute;
    top: 35px;
    right: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #d8d8d8;
    font-size: 25px;
    transition: all 0.3s ease;
    z-index: 100000;
}

.search-modal-close:hover {
    transform: rotate(90deg);
    color: #ffffff;
}

.search-modal-input-wrapper {
    position: relative;
    width: 100%;
}

.search-modal-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 50px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    outline: none;
    background: transparent;
    color: white;
    text-align: center;
    transition: border-color 0.3s ease;
}

.search-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
}

.search-modal-input:focus {
    border-bottom-color: white;
}

.search-modal-overlay .search-suggestions-dropdown {
    margin-top: 30px;
    border-radius: 10px;
    max-width: 900px;
    background: white;
    text-align: left;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Search Modal Responsive */
@media (max-width: 1024px) {
    .search-modal-input {
        font-size: 42px;
    }

    .search-modal-close {
        top: 30px;
        right: 30px;
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .search-modal-content {
        padding: 0 30px;
    }

    .search-modal-input {
        font-size: 36px;
    }

    .search-modal-close {
        top: 25px;
        right: 25px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .search-modal-content {
        padding: 0 20px;
    }

    .search-modal-input {
        font-size: 28px;
    }

    .search-modal-close {
        top: 20px;
        right: 20px;
        font-size: 24px;
    }
}

/* New Navigation Bar */
.new-nav-bar {
    background: transparent;
    padding: 0;
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transition: all 0.3s ease;
}

/* Solid Nav Bar for Non-Home/Services Pages */
.new-nav-bar.header-solid {
    background: #0A5899;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Adjust body padding - handled by individual page styles */

.new-nav-bar.sticky {
    position: fixed;
    top: 0;
    background: #0A5899;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.new-nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 66px;
}

.store-dropdown-trigger {
    color: white;
    font-weight: 500;
    font-size: 15px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    height: 100%;
}

/* Mobile Logo and Cart - Hidden on desktop */
.mobile-header-logo,
.mobile-header-cart {
    display: none;
}

.mobile-logo-img {
    max-height: 40px;
    height: auto;
}

.mobile-cart-btn {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 5px 10px;
    position: relative;
}

.mobile-cart-badge {
    position: absolute;
    top: 0;
    right: 2px;
    background: white;
    color: #0A5899;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.store-dropdown-trigger .mobile-menu-icon {
    display: none;
    font-size: 22px;
}

.store-dropdown-trigger::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 12px;
}



/* Store Mega Dropdown */
.store-mega-dropdown {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 40px 60px 70px 60px;
    width: 100%;
}

.store-mega-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega Menu Structure */
.mega_menu {
    width: 100%;
    position: relative;
}

/* Floating Go To Store Button */
.floating_category_btn {
    position: absolute;
    bottom: 30px;
    right: 40px;
    background: #cc3366;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    z-index: 999;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(204, 51, 102, 0.3);
}

.floating_category_btn:hover {
    background: #b32d5a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 51, 102, 0.4);
}

/* Megamenu Container */
.megamenu-container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.menu_container {
    max-height: 400px;
    width: 100%;
    position: relative;
    overflow-y: auto;
    scrollbar-width: none;
     -ms-overflow-style: none;
}
.menu_container::-webkit-scrollbar{
    display: none; /* Chrome, Edge, Safari */
}

.mega-menu-content {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
    row-gap: 20px !important;
    width: 100%;
    align-items: start;
}

/* Mega Category */
.mega-category {
    position: relative;
    min-width: 0; /* Prevent grid blowout */
    width: 100%;
    overflow: hidden;
}

/* Label 1 - Main Category Title */
.label_1 {
    display: flex;
    align-items: start;
    gap: 10px;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    margin-bottom: 5px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2a5298;
    transition: color 0.3s ease;
    line-height: 1.4;
    min-height: 55px;
    white-space: normal;
    word-wrap: break-word;
    position: relative;
}

.label_1::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #ff6b35;
}
.label_1:hover {
    color: #0d47a1;
}

.category-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.label_1 img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.label_1 i.category-icon {
    font-size: 18px;
    color: #0A5899;
}

/* Mega Links - Subcategory List */
.mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.label_2_cat {
    width: 100%;
}

/* Label 2 - Subcategory Links */
.label_2 {
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    width: 100%;
    transition: all 0.2s ease;
    padding-left: 0;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.label_2:hover {
    color: #1e3a8a;
    padding-left: 5px;
}

/* Dropdown arrow for subcategories with children */
.label_2.has-sub {
    cursor: pointer;
}

.label_2.has-sub::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 9px;
    margin-left: 5px;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.label_2.has-sub.open::after {
    transform: rotate(180deg);
}

/* Sub-category sections (nested categories) */
.sub-category {
    max-height: 0 !important;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    padding-left: 15px;
    margin-top: 0 !important;
    opacity: 0;
    display: block;
}

.sub-category.open {
    max-height: 1000px !important;
    opacity: 1;
    margin-top: 8px !important;
}

.sub-category .all-item {
    display: inline-block;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.sub-category .all-item:hover {
    color: #0d47a1;
    border-bottom-color: #0d47a1;
}

/* Label 3 - Third level categories */
.label_3 {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    display: block;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.label_3:hover {
    color: #1e3a8a;
    padding-left: 3px;
}

.label_3.has-sub {
    cursor: pointer;
}

.label_3.has-sub::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 8px;
    margin-left: 5px;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.label_3.has-sub.open::after {
    transform: rotate(180deg);
}

/* Sub-category level 2 (deepest nested level) */
.sub-category_2 {
    max-height: 0 !important;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    padding-left: 0;
    margin: 0 !important;
    opacity: 0;
    display: block;
    border-left: none !important;
}

.sub-category_2.open {
    max-height: 800px !important;
    opacity: 1;
    margin: 8px 0 !important;
}

/* All links inside sub-category_2 */
.sub-category_2 a {
    background: #0A5899;
    color: #ffffff !important;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.2s ease;
    display: inline-block;
    margin: 2px;
}

.sub-category_2 a:hover {
    background: #0d47a1;
    color: #ffffff;
}

/* Motor class links (comma-separated inline links) */
.motor-class {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.motor-class:hover {
    background: #0d47a1;
    color: #ffffff;
}

/* Visual hierarchy improvements */
.sub-category {
    border-left: 2px solid #e5e7eb;
}

.sub-category.open {
    border-left-color: #ff6b35;
}

/* Improve link spacing in nested lists */
.label_2_cat:last-child {
    margin-bottom: 0;
}

/* Smooth scrolling for long mega menus */
.store-mega-dropdown {
    height: auto;
}

.store-mega-dropdown::-webkit-scrollbar {
    width: 8px;
}

.store-mega-dropdown::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

.store-mega-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.store-mega-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Megamenu Responsive */
@media (max-width: 1600px) {
    .mega-menu-content {
        gap: 20px;
        row-gap: 20px;
    }

    .store-mega-dropdown {
        padding: 40px 20px;
    }
}

@media (max-width: 1400px) {
    .mega-menu-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        row-gap: 20px;
    }

    .store-mega-dropdown {
        padding: 35px 20px;
    }
}

@media (max-width: 1200px) {
    .mega-menu-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        row-gap: 20px;
    }

    .store-mega-dropdown {
        padding: 30px 20px;
    }

    .floating_category_btn {
        bottom: 20px;
        right: 30px;
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .store-mega-dropdown {
        /* Removed display: none - now controlled by opacity/visibility */
    }
}

/* Old Top Header - Keep for backward compatibility */
.top-header {
    background: #131921;
    color: white;
    padding: 10px 0;
    font-size: 13px;
    position: relative;
    z-index: 1001;
    width: 100%;
    display: none !important;
}

.top-header-link {
    color: white;
    font-size: 13px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.top-header-link:hover {
    opacity: 1;
    color: white;
}

.top-header-promo {
    color: white;
    font-size: 13px;
    font-weight: 500;
}

/* Main Header */
.main-header {
    background: transparent;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    width: 100%;
}

#cartDeleteModal{
    z-index: 20000000000;
}
.main-header.scrolled {
    padding: 5px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-img {
    max-width: 90px;
    height: auto;
}

/* Mobile Header Toggle */
.mobile-header-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}
/* Hidden state */
.shop_by_category_menu {
    position: absolute;
    top: 50px;
    left: 0;
    list-style: none;
    background: #fff;
    z-index: 100;
    width: 200px;

    flex-direction: column;
    align-items: start;
    border: 1px solid #c4c4c4;
    padding: 0 10px;
    border-radius: 5px;

    opacity: 0;                 /* Hide */
    visibility: hidden;         /* Remove from view */
    transform: translateY(10px);/* Slide down effect */
    transition: all 0.3s ease;  /* Smooth animation */
}

.shop_by_category_menu li {
    padding: 10px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #c4c4c4;
}

.shop_by_category_menu li a {
    text-decoration: none;
    color: #000;
}

/* Show on hover */
.nav-category-btn:hover .shop_by_category_menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* Mobile Search Toggle */
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-search-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* New Search Container */
.search-container-new {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 4px;
    position: relative;
}

.category-dropdown {
    display: none; /* Hidden - not used anymore */
}

.search-input-new {
    flex: 1;
    border: none;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.search-input-full {
    padding-right: 60px; /* Make space for search button */
}

.search-btn-new {
    background: #0a5899;
    border: none;
    padding: 10px 20px;
    border-radius: 0 4px 4px 0;
    color: #000000;
    cursor: pointer;
    transition: background 0.3s ease;
    position: absolute;
    right: 0;
}

.search-btn-new:hover {
    background: #0a5899;
}

.search-btn-new i {
    font-size: 16px;
}

/* Header Actions New */
.header-actions-new {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: flex-end;
}

.help-section {
    flex-direction: column;
    align-items: flex-start;
    color: white;
}

.help-label {
    font-size: 11px;
    opacity: 0.8;
}

.help-phone {
    font-size: 15px;
    font-weight: 600;
}

.account-section {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.account-section:hover {
    color: #0a5899;

}
.account-section:hover .account-label{
    color: white;
}

.account-section i {
    font-size: 24px;
}

.account-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.account-label {
    font-size: 11px;
    color: white;
}

.account-action {
    font-size: 13px;
    font-weight: 600;
}

.cart-section {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    cursor: pointer;
    position: relative;
    transition: opacity 0.3s ease;
    transition: all ease-in 0.2s;
}

.cart-section:hover {
    color: #0a5899;

}
.cart-section:hover .cart-label{
    color: white;
}
.cart-section i {
    font-size: 24px;
}

.cart-section svg {
    width: 24px;
    height: 24px;
}

.cart-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cart-label {
    font-size: 11px;
    color: white;
}

.cart-items-label {
    font-size: 13px;
    font-weight: 600;
}

.cart-badge {
    position: absolute;
    top: 5px;
    left: 20px;
    background: #0a5899;
    color: #000000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y:auto;
    background: #2c3540;
    z-index: 1002;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    transition: background 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.mobile-nav-link i {
    color: #0a5899;
    width: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #0b2baa, #0df8de);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.logo-icon i {
    color: white;
    font-size: 20px;
}

.logo-text .company-name {
    color: #0b2baa;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}

.logo-text .company-subtitle {
    color: #0df8de;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
}

/* Old styles - keeping for backward compatibility */
.location-selector {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    width: 100%;
    background: white;
    font-size: 14px !important;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #f8f9fa;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-icon:hover {
    color: #0a5899;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 1rem;
}

.user-icon {
   text-decoration: none;
    color: white;
    font-size: 18px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cart-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-price {
    font-weight: 600;
    color: white;
}

.cart-icon-container {
    position: relative;
}

.cart-icon {
    color: white;
    font-size: 18px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cart-count {
   position: absolute;
    top: 0px;
    right: -11px;
    background: #0a5899;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Navigation Links - Old (Hidden) */
.nav-links {
    background: #232f3e;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    display: none !important;
}

.nav-links .container {
    max-width: 100%;
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.nav-container-new {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-category-btn {
    position: relative;
    background: transparent;
    color: white;
    border: none;
    padding: 14px 25px 14px 0;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-link-new {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.nav-link-new:hover,.nav-category-btn:hover {
    color: #0a5899;
}

/* Active Navigation States */
.nav-link-new.active,
.categories-dropdown-trigger.active,
.topdeals-dropdown-trigger.active,
.nav-category-btn.active {
    color: #0a5899;
    background: rgba(254, 189, 105, 0.1);
    border-bottom: 3px solid #0a5899;
}

.shop_by_category_menu li a.active {
    color: #0a5899;
    font-weight: 700;
    background: rgba(254, 189, 105, 0.1);
}

.sale_badge {
    width: auto !important;
    position: relative !important;
    background: #199588 !important;
    color: white !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-weight: 700 !important;
}

.nav-offers-btn {
    background: transparent;
    color: #fff;
    border: none;
    padding: 14px 0 14px 25px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.nav-offers-btn:hover {
    color: #0a5899;
}

/* Responsive */
@media (max-width: 1024px) {
    .desktop-search {
        display: none !important;
    }

    .help-section,
    .account-section {
        display: none !important;
    }

    .cart-text {
        display: none;
    }

    .cart-badge {
        top: -5px;
        right: -5px;
    }

}

@media (max-width: 1024px) {
    .mobile-header-toggle {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-search-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .search-container {
        display: none;
    }

    .location-selector {
        display: none;
    }
    .mobile-location .location-selector {
        display: block;
    }
    .modal-content .search-input {
    width: 100% !important;
    padding: 15px 50px 15px 20px !important;
    border: 2px solid #0a5899 !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    outline: none !important;
    display: block !important;
}

.modal-content .search-input:focus {
    border-color: #0a5899 !important;
}

.modal-content .search-icon {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #0a5899 !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: block !important;
}
.mobile_menu_wrapper{
    height: auto;
}

}

@media (max-width: 768px) {
    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-text .company-name {
        font-size: 16px;
    }

    .logo-text .company-subtitle {
        font-size: 10px;
    }

    .header-actions {
        gap: 1.5rem;
        padding-right: 0;
    }

    .search-container {
        display: none;
    }

    .location-selector {
        display: none;
    }

    .user-icon,
    .cart-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 10px;
        right: -8px;
        top: -2px;
    }

    .cart-price {
        font-size: 14px;
    }

    /* Mobile Location */
    .mobile-location {
        background: #2c3540;
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-location .location-selector {
        padding: 12px 15px;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 8px;
        background: #2c3540;
        color: white;
        font-size: 14px;
    }

    .mobile-search-toggle {
        display: block;
    }
}

/* Search Modal Styles - Global */



@media (max-width: 480px) {

    .top-header .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .top-header .me-4 {
        margin-right: 0;
    }

    .logo-text .company-name {
        font-size: 14px;
    }

    .logo-text .company-subtitle {
        font-size: 9px;
    }
    .user-icon,
    .cart-icon {
        border: none;
        height: 32px;
        font-size: 14px;
    }
}

/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-sidebar.active {
    visibility: visible;
    opacity: 1;
}

.cart-sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.cart-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active .cart-sidebar-content {
    transform: translateX(0);
}

.cart-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sidebar-header h4 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.cart-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.cart-sidebar-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-sidebar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-sidebar-item:last-child {
    border-bottom: none;
}

.item-image-small {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.cart-sidebar-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.item-details-small {
    flex: 1;
}

.item-details-small h6 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.item-price-small {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0a5899;
}

.item-remove-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.item-remove-small  i {
        font-size: 20px;
}

.item-remove-small:hover {
    background: #f8d7da;
    color: #721c24;
}

.cart-sidebar-footer {
    border-top: 1px solid #eee;
    padding: 20px;
}

.cart-total {
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.cart-sidebar-actions {
    display: flex;
    gap: 10px;
}

.cart-sidebar-actions .btn {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-sidebar-actions .btn-outline-primary {
    border: 2px solid #0a5899;
    color: #0a5899;
    background: white;
}

.cart-sidebar-actions .btn-outline-primary:hover {
    background: #0a5899;
    color: white;
}

.cart-sidebar-actions .btn-primary {
    background: #0a5899;
    color: white;
    border: none;
}

.cart-sidebar-actions .btn-primary:hover {
    background: #0a5899;
}

.cart-icon-container {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cart-icon-container:hover {
    transform: scale(1.05);
}

/* Mobile Responsive for Cart Sidebar */
@media (max-width: 480px) {
    .cart-sidebar-content {
        width: 100%;
    }
}

/* Location Selector Button */
.location-selector-btn {
    background: #2c3540;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding:15px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: white;
}

.location-selector-btn:hover {
    border-color: #0a5899;
    background: rgba(245,166,35,0.1);
}

.location-selector-btn i:first-child {
    color: #0a5899;
    font-size: 10px;
}

.location-selector-btn span {
    flex: 1;
    text-align: left;
    font-weight: 500;
    font-size: 11px;
}

.location-selector-btn i:last-child {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

/* Location Modal */
#locationModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 360px !important;
    margin: auto;
}

#locationModal .modal-header {
    border-bottom: 2px solid #f0f0f0;
    padding: 20px;
}

#locationModal .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

#locationModal .modal-body {
    padding: 20px;
}

.location-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.location-option:hover {
    border-color: #0a5899;
    background: #fff8f0;
}

.location-option.selected {
    border-color: #0a5899;
    background: #fff8f0;
}

.location-option i:first-child {
    color: #0a5899;
    font-size: 18px;
}

.location-option span {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.location-option .selected-check {
    color: #0a5899;
    font-size: 16px;
    display: none;
}

.location-option.selected .selected-check {
    display: block;
}

#locationModal .modal-footer {
    border-top: 2px solid #f0f0f0;
    padding: 15px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .location-selector-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* Search Suggestions Dropdown Styles */
.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
    margin-top: 1px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2c3540, #0a5899);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.suggestion-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.suggestion-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    flex: 1;
}

.suggestion-price {
    font-size: 14px;
    font-weight: 600;
    color: #0a5899;
}

/* Scrollbar Styles for Suggestions */
.search-suggestions-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: #0a5899;
    border-radius: 3px;
}

.search-suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: #0a5899;
}

/* Mobile Suggestions in Modal */
#mobile-suggestions {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
    max-height: 300px;
}

/* Loading State */
.search-suggestions-dropdown.loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* No Results State */
.search-suggestions-dropdown .no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}
/* Categories Mega Dropdown */
.categories-dropdown-trigger {
    position: relative !important;
}

.categories-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0 25px 25px 25px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.categories-mega-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-container-new {
    overflow: visible !important;
}

.nav-links {
    overflow: visible !important;
    position: relative !important;
}

.mega-dropdown-container {
    display: flex;
}

.category-columns {
    display: flex;
    gap: 20px;
    width: 50%;
    flex-wrap: wrap;
    padding: 30px;
    background: #fff;
}

.category-column {
    flex: 0 0 calc(25% - 15px);
    min-width: 100px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #131921;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0a5899;
    display: block;
    text-decoration: none;
}

.category-title:hover {
    color: #0a5899;
}

.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory-list li {
    margin-bottom: 8px;
}

.subcategory-list li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: block;
}

.subcategory-list li a:hover {
    color: #0a5899;
    padding-left: 5px;
}

.best-selling-section {
    width: 50%;
    background-color: #f8f8f8;
    padding: 30px;
}

.best-selling-title {
    font-size: 16px;
    font-weight: 600;
    color: #131921;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0a5899;
}

.best-selling-products {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 5px;
}

.best-product-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
}

.best-product-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.best-product-item img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.best-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.best-product-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
}

.best-product-price {
    font-size: 16px;
    color: #131921;
    font-weight: 600;
}

@media (max-width: 992px) {
    .categories-mega-dropdown {
        display: none !important;
    }
}

/* Top Deals Mega Dropdown */
.topdeals-dropdown-trigger {
    position: relative !important;
    cursor: pointer;
}

.topdeals-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.topdeals-mega-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topdeals-container {
    display: flex;
}

.shopby-section {
    width: 50%;
    padding: 30px;
    border-right: 1px solid #eee;
}

.shopby-title,
.toprated-title {
    font-size: 16px;
    font-weight: 600;
    color: #131921;
    margin-bottom: 20px;
    text-align: center;
}
.shopby-title {
    margin-bottom: 50px;
}
.shopby-items {
    display: flex;
    gap: 30px;
}

.shopby-item {
    text-decoration: none;
    text-align: center;
    color: #333;
}

.shopby-item:hover {
    color: #0a5899;
}

.shopby-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 5px solid transparent;
}

.shopby-img:hover {
    border-color: #0a5899;
}
.shopby-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shopby-item span {
    font-size: 14px;
    font-weight: 500;
}

.toprated-section {
    width:50%;
    background-color: #f8f8f8;
    padding: 30px;
}

.toprated-products {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 5px;
}

.toprated-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
}

.toprated-img {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.toprated-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.toprated-info {
    flex: 1;
}

.toprated-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.toprated-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toprated-price .old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.toprated-price .new-price {
    font-size: 16px;
    font-weight: 600;
    color: #131921;
}

@media (max-width: 992px) {
    .topdeals-mega-dropdown {
        display: none !important;
    }
}

/* Top Offers Sidebar */
.top-offers-list {
    overflow-y: auto;
    max-height: calc(100vh - 60px);
}

.offer-product-item {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.offer-product-item:hover {
    background-color: #f8f9fa;
}

.offer-product-item:last-child {
    border-bottom: none;
}

.offer-product-image {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.offer-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.offer_badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #0a5899;
    color: #131921;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
}

.offer-product-name {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.offer-product-rating {
    font-size: 12px;
}

.offer-product-rating i {
    font-size: 11px;
}

.offer-product-rating .rating-text {
    color: #666;
    font-size: 11px;
    margin-left: 5px;
}

.offer-product-price .current-price {
    font-size: 16px;
}

.offer-product-price .original-price {
    font-size: 13px;
}

.offcanvas {
    width: 400px !important;
}

@media (max-width: 576px) {
    .offcanvas {
        width: 100% !important;
    }

    .offer-product-image {
        width: 80px;
        height: 80px;
    }
}

/* Mobile Header Styles */
.mobile-top-header {
    background: #131921;
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.mobile-top-promo {
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.mobile-main-header {
    background: #131921;
    color: white;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 0;
}

.mobile-logo-img {
    height: 35px;
    width: auto;
}

.mobile-account-icon {
    color: white;
    font-size: 22px;
    text-decoration: none;
}

.mobile-cart-icon {
    position: relative;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.mobile-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #0a5899;
    color: #131921;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-bar {
    background: #232f3e;
    padding: 15px 50px;
    position: relative;
}

.mobile-search-bar .position-relative {
    position: relative;
}

.mobile-search-input {
    width: 100%;
    border: none;
    padding: 12px 50px 12px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.mobile-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0a5899;
}

/* Mobile Search Suggestions */
.mobile-search-bar #mobile-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 350px;
    overflow-y: auto;
    z-index: 1060;
    display: none;
}

.mobile-search-button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: #0a5899;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    color: #131921;
    font-size: 16px;
    cursor: pointer;
}

.mobile-search-button:hover {
    background: #0a5899;
}

/* Mobile Menu Sidebar */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 10000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-header-new {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.mobile-close-btn-new {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-content {
    padding: 0;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
}

.mobile-menu-item {
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
    background-color: #f8f9fa;
    color: #333;
}

.mobile-menu-item.active {
    background-color: rgba(254, 189, 105, 0.1);
    color: #0a5899;
    border-left: 4px solid #0a5899;
    font-weight: 600;
}

.mobile-menu-trigger {
    cursor: pointer;
}

.sale_badge_mobile {
    width: auto !important;
    position: relative !important;
    background: #199588 !important;
    color: white !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-weight: 700 !important;
    text-transform: uppercase;


}

.mobile-menu-item i.fa-chevron-down {
    font-size: 12px;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.mobile-menu-item-dropdown.active .fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu-item-dropdown.active .mobile-submenu {
    display: block;
}

.mobile-submenu-item {
    padding: 12px 20px 12px 40px;
    color: #666;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.2s ease;
}

.mobile-submenu-item:last-child {
    border-bottom: none;
}

.mobile-submenu-item:hover {
    background-color: #e9ecef;
    color: #333;
}

/* Mobile Categories Dropdown Styles */
.mobile-submenu-categories,
.mobile-submenu-topdeals {
    max-height: 70vh;
    overflow-y: auto;
}

.mobile-category-section {
    padding: 15px 20px;
    border-bottom: 1px solid #e8e8e8;
}

.mobile-category-title {
    display: block;
    color: #131921;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.mobile-category-title:hover {
    color: #0a5899;
}

.mobile-category-title.active {
    color: #0a5899;
    font-weight: 800;
}

.mobile-subcategory-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
}

.mobile-subcategory-item {
    display: block;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 0 8px 15px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.mobile-subcategory-item:hover {
    color: #131921;
    border-left-color: #0a5899;
    padding-left: 18px;
}

.mobile-subcategory-item.active {
    color: #0a5899;
    border-left-color: #0a5899;
    font-weight: 700;
    background: rgba(254, 189, 105, 0.05);
}

/* Mobile Best Selling Section */
.mobile-best-selling-section {
    padding: 20px;
    background: #f8f9fa;
    border-top: 2px solid #e0e0e0;
}

.mobile-best-selling-title {
    font-size: 16px;
    font-weight: 700;
    color: #131921;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0a5899;
}

.mobile-best-selling-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-best-product-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-best-product-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-best-product-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.mobile-best-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.mobile-best-product-name {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
}

.mobile-best-product-price {
    color: #0a5899;
    font-size: 15px;
    font-weight: 700;
}

/* Mobile Top Deals Dropdown Styles */
.mobile-shopby-section {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-shopby-title {
    font-size: 16px;
    font-weight: 700;
    color: #131921;
    margin-bottom: 15px;
}

.mobile-shopby-items {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.mobile-shopby-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 10px;
    background: white;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 100px;
}

.mobile-shopby-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mobile-shopby-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    border: 2px solid #0a5899;
}

.mobile-shopby-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-shopby-item span {
    color: #131921;
    font-weight: 600;
    font-size: 14px;
}

/* Mobile Top Rated Products */
.mobile-toprated-section {
    padding: 20px;
    background: white;
}

.mobile-toprated-title {
    font-size: 16px;
    font-weight: 700;
    color: #131921;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0a5899;
}

.mobile-toprated-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-toprated-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-toprated-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
}

.mobile-toprated-img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.mobile-toprated-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.mobile-toprated-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.mobile-toprated-name {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
    margin: 0 0 5px 0;
}

.mobile-toprated-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-old-price {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
}

.mobile-new-price {
    color: #0a5899;
    font-size: 15px;
    font-weight: 700;
}
.desktop_header_container,.desktop_top_header,.new-top-header,.new-nav-bar,.desktop_search_bar{
        display: block !important;
    }
    @media (max-width: 1024px) {
        .desktop_header_container,.desktop_top_header,.desktop_search_bar{
            display: none !important;
        }
        .main-header {
        padding-bottom: 0 !important;
        padding-top: 0 !important;
    }
    .mobile_header_container{
     border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .main-header {
        position: sticky;
        top: 0;
    }
}

@media (min-width: 1024px) {
    .mobile_header_container,.mobile_top_header,.mobile-search-bar {
        display: none !important;
    }
    .mobile-menu {
        display: none !important;
    }
    .main-header {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

}

/* Mobile Responsive Styles for New Header */
@media (max-width: 1024px) {
    /* Top Header Mobile - Hide on mobile */
    .new-top-header {
        display: none !important;
    }

    /* Nav Bar Mobile Layout */
    .new-nav-bar {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        height: 60px;
        top: 0;
    }

    /* Show Mobile Logo (Left) */
    .mobile-header-logo {
        display: flex !important;
        align-items: center;
        flex: 0 0 auto;
    }

    .mobile-logo-img {
        max-height: 35px;
    }

    /* Center Container for Hamburger */
    .new-nav-container {
        display: flex !important;
        justify-content: center;
        align-items: center;
        flex: 1;
        height: 100%;
    }

    /* Store Button - Show Hamburger */
    .store-dropdown-trigger {
        font-size: 14px;
        padding: 0 20px;
        height: auto;
    }

    .store-dropdown-trigger .mobile-menu-icon {
        display: inline-block !important;
    }

    .store-dropdown-trigger .store-text {
        display: none;
    }

    .store-dropdown-trigger::after {
        display: none;
    }

    /* Show Mobile Cart (Right) */
    .mobile-header-cart {
        display: flex !important;
        align-items: center;
        flex: 0 0 auto;
    }

    .mobile-cart-btn {
        font-size: 20px;
    }

    .mobile-cart-badge {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    /* Mega Menu Mobile */
    .store-mega-dropdown {
        padding: 20px 15px 40px 15px;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        transform: translateY(0) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        display: block !important;
    }

    .store-mega-dropdown.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .mega-menu-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        row-gap: 30px !important;
    }

    .mega-category img {
        max-width: 30px !important;
        max-height: 30px !important;
    }

    .label_1 {
        font-size: 13px !important;
        padding-bottom: 6px !important;
    }

    .label_2, .label_3 {
        font-size: 11px !important;
    }

    .floating_category_btn {
        bottom: 15px;
        right: 15px;
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    /* Nav Bar */
    .new-nav-bar {
        height: 55px;
        padding: 8px 12px;
    }

    .mobile-logo-img {
        max-height: 32px;
    }

    .mobile-cart-btn {
        font-size: 18px;
    }

    .store-dropdown-trigger {
        font-size: 13px;
    }

    .store-dropdown-trigger .mobile-menu-icon {
        font-size: 20px;
    }

    /* Mega Menu */
    .mega-menu-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        row-gap: 20px !important;
    }

    .store-mega-dropdown {
        padding: 15px 10px 35px 10px;
        top: 55px !important;
    }
}

@media (max-width: 480px) {
    /* Nav Bar */
    .new-nav-bar {
        height: 50px;
        padding: 6px 10px;
    }

    .mobile-logo-img {
        max-height: 28px;
    }

    .mobile-cart-btn {
        font-size: 16px;
        padding: 5px 8px;
    }

    .mobile-cart-badge {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }

    .store-dropdown-trigger {
        font-size: 12px;
        padding: 0 15px;
    }

    .store-dropdown-trigger .mobile-menu-icon {
        font-size: 18px;
    }

    /* Mega Menu */
    .store-mega-dropdown {
        padding: 10px 20px 30px 20px;
        top: 50px !important;
    }

    .label_1 {
        font-size: 12px !important;
    }

    .label_2, .label_3 {
        font-size: 10px !important;
    }

    .sub-category_2 a {
        font-size: 10px;
        padding: 3px 6px;
        margin: 1px;
    }

    .floating_category_btn {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 11px;
    }
}
