.custom-header {
    position: fixed;
    top: 0;
    height: 80px;
    width: 100%;
    background-color: white;
    z-index: 1000;
    border-bottom: 1px solid #ccc;
}

.container_new_header {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.header-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.header-logo {
    height: 130px;
    width: auto;
    /* max-width: 200px; */
    object-fit: contain;
}
.search_title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Search Form Styling */
.header-search-form {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-group {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.search-input-container {
    display: flex;
    position: relative;
    flex: 1;
}

.search-input {
    flex: 1;
    padding: 8px 40px 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

/* Remove any additional borders or lines from cuisine search */
.cuisine-search-container::after,
.cuisine-search-container::before,
.search-input-container::after,
.search-input-container::before {
    display: none !important;
}

.cuisine-search-container .search-input::after,
.cuisine-search-container .search-input::before {
    display: none !important;
}

.search-input:focus {
    border-color: #e6462e;
}

.search-input-container .location-btn,
.search-input-container .search-btn {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: normal !important;
    color: #666 !important;
}

.search-input-container .location-btn:hover,
.search-input-container .search-btn:hover {
    background-color: #f8f9fa !important;
    color: #e6462e !important;
}

.search-input-container .location-btn i,
.search-input-container .search-btn i {
    font-size: 12px !important;
    color: #666 !important;
    margin: 0 !important;
}

/* Search Results */
.cuisine-search-container .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1001;
    max-height: 300px;
    overflow-y: auto;
}

.cuisine-search-container .search-results .hide {
    display: none !important;
}

/* Hide the entire search results container when all children are hidden */
.cuisine-search-container .search-results.hide,
.cuisine-search-container .search-results:empty {
    display: none;
    border: none;
    box-shadow: none;
}

/* Show search results with border only when they contain visible content */
.cuisine-search-container .search-results:not(.hide) {
    border: 1px solid #ddd;
    border-top: none;
}

.cuisine-search-container .search-results p {
    margin: 0;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
}

.cuisine-search-container .search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cuisine-search-container .search-results li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.cuisine-search-container .search-results li:hover {
    background-color: #f8f9fa;
    color: #e6462e;
}

.logo_container {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo_container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.form_container {
    flex: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.actions_container {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.action_item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action_item:hover:not(.shopping_cart.open):not(.language_selector.open) {
    border-color: #e6462e;
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.action-title {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.action_item i {
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

.action_item:hover:not(.shopping_cart.open):not(.language_selector.open) i {
    color: #e6462e;
}

/* Hide on tablet and smaller screens */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    /* Hide search container on mobile */
    .form_container {
        display: none !important;
    }

    /* Hide all actions except cart (last child) */
    .action_item:not(:last-child) {
        display: none !important;
    }

    /* Show mobile menu button */
    .show-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 35px;
    height: 35px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    border-color: #e6462e;
    background-color: #f8f9fa;
}

.mobile-menu-btn i {
    font-size: 22px;
    color: #333;
}

/* Desktop - Hide mobile elements */
@media (min-width: 769px) {
    .show-mobile {
        display: none !important;
    }
}

/* Mobile Menu Modal */
.mobile-menu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-modal.show .mobile-menu-content {
    transform: translateX(0);
}

/* Mobile Menu Header - User Drawer Style */
.mobile-menu-header {
    padding: 0;
    background: #e6472e;
    color: white;
}

.mobile-menu-header-content {
    padding: 24px 24px 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.mobile-menu-avatar {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-menu-avatar i {
    font-size: 22px;
    color: white;
}

.mobile-menu-details {
    flex: 1;
}

.mobile-menu-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
}

.mobile-menu-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 18px;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-menu-close i {
    color: white;
}

/* Mobile Menu Body - User Drawer Style */
.mobile-menu-body {
    padding: 0;
    background: #fafbfc;
}

.mobile-menu-nav {
    padding: 0;
}

.mobile-nav-section {
    margin-bottom: 0;
    padding-bottom: 12px;
}

.mobile-nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px 24px;
    padding-top: 16px;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
    position: relative;
    border-radius: 8px;
    margin: 0 8px 2px 8px;
    cursor: pointer;
}

.mobile-nav-menu-item:hover {
    background: #ffffff;
    color: #e6472e;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.mobile-nav-menu-item i {
    width: 24px;
    margin-right: 16px;
    font-size: 18px;
    color: #6c757d;
    text-align: center;
    transition: all 0.2s ease;
}

.mobile-nav-menu-item:hover i {
    color: #e6472e;
    transform: scale(1.1);
}

.mobile-nav-menu-item span {
    font-weight: 500;
    flex: 1;
    font-size: 15px;
}

/* Mobile Search Container - User Drawer Style */
.mobile-search-container {
    padding: 0 16px;
    margin-bottom: 16px;
}

.mobile-search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-search-input-container {
    display: flex;
    position: relative;
    flex: 1;
}

.mobile-search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.mobile-search-input:focus {
    border-color: #e6462e;
}

.mobile-search-input-container .mobile-search-btn,
.mobile-search-input-container .mobile-location-btn {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: normal !important;
    color: #666 !important;
}

.mobile-search-input-container .mobile-search-btn:hover,
.mobile-search-input-container .mobile-location-btn:hover {
    background-color: #f8f9fa !important;
    color: #e6462e !important;
}

.mobile-search-input-container .mobile-search-btn i,
.mobile-search-input-container .mobile-location-btn i {
    font-size: 12px !important;
    color: #666 !important;
    margin: 0 !important;
}

/* Mobile Search Results */
.mobile-cuisine-search-container .mobile-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1002;
    max-height: 200px;
    overflow-y: auto;
}

.mobile-cuisine-search-container .mobile-search-results .hide {
    display: none;
}

.mobile-cuisine-search-container .mobile-search-results p {
    margin: 0;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
}

.mobile-cuisine-search-container .mobile-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-cuisine-search-container .mobile-search-results li {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.mobile-cuisine-search-container .mobile-search-results li:hover {
    background-color: #f8f9fa;
    color: #e6462e;
}

/* Remove old mobile menu item styles - replaced with mobile-nav-menu-item */

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    padding: 20px;
    box-sizing: border-box;
}

.search-modal-content {
    position: relative;
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    margin: 50px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.search-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.search-modal-close {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.search-modal-close:hover {
    background-color: #f8f9fa;
}

.search-modal-close i {
    font-size: 16px;
    color: #666;
}

.search-modal-body {
    padding: 25px;
    flex-grow: 1;
    overflow-y: auto;
}

.search-modal-input-container {
    position: relative;
    margin-bottom: 25px;
}

.search-modal-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.search-modal-input:focus {
    border-color: #e6462e;
}

.search-modal-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.search-modal-results {
    min-height: 200px;
}

.search-modal-section {
    margin-bottom: 20px;
}

.search-modal-section-header {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.search-modal-section-content {
    display: flex;
    flex-direction: column;
}

.search-modal-result-item {
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 3px;
    font-size: 15px;
    color: #333;
}

.search-modal-result-item:hover {
    background-color: #f8f9fa;
    color: #e6462e;
}

.search-modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.search-modal-empty p {
    margin: 5px 0;
    font-size: 16px;
}

.search-modal-empty p:first-of-type {
    font-weight: 600;
    font-size: 18px;
}

.hide {
    display: none;
}

/* Cart Dropdown Styling */
.action_item.shopping_cart {
    position: relative;
    cursor: pointer;
}

/* Remove pointer cursor from cart dropdown content */
.cart-dropdown {
    cursor: default !important;
}

.cart-dropdown * {
    cursor: default;
}

/* Keep pointer cursor only on interactive elements */
.cart-dropdown button,
.cart-dropdown a,
.cart-dropdown input,
.cart-dropdown [onclick] {
    cursor: pointer !important;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
    padding: 0 4px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 420px;
    max-height: 450px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1050;
    display: none;
    margin: 8px 0 0 0;
    padding: 15px 0;
    list-style: none;

    /* Ensure dropdown stays within viewport */
    transform: translateX(0);
}

/* Remove hover effects from cart dropdown */
.cart-dropdown:hover {
    border-color: #ddd !important;
    background-color: white !important;
    transform: none !important;
}

/* Ensure cart button stays normal when dropdown is open */
.shopping_cart.open {
    border-color: #ddd !important;
    background-color: #fff !important;
    transform: none !important;
}

.shopping_cart.open i {
    color: #333 !important;
}

/* Prevent any hover effects on open cart */
.shopping_cart.open:hover {
    border-color: #ddd !important;
    background-color: #fff !important;
    transform: none !important;
}

.shopping_cart.open:hover i {
    color: #333 !important;
}

/* Add horizontal padding only to cart dropdown content */
.cart-dropdown > li,
.cart-dropdown .cart-content {
    padding: 0 15px;
}

/* Ensure cart items have proper horizontal spacing only */
.cart-dropdown .cart-item {
    padding: 5px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-dropdown .cart-item:last-child {
    border-bottom: none;
}

/* Cart total and checkout button - minimal vertical padding */
.cart-dropdown .cart-total,
.cart-dropdown .checkout-container {
    padding: 5px 15px;
    margin: 0;
}

/* Empty cart message - minimal padding */
.cart-dropdown .empty_bag {
    padding: 10px 15px;
    text-align: center;
}

/* Adjust dropdown position when it would overflow screen */
.actions_container .action_item:last-child .cart-dropdown {
    right: 0;
    left: auto;
    transform: translateX(0);
}

/* For screens smaller than dropdown + some margin */
@media (max-width: 460px) {
    .cart-dropdown {
        width: calc(100vw - 40px);
        right: -10px;
        max-width: 380px;
    }
}

.shopping_cart.open .cart-dropdown {
    display: block;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .search-modal {
        padding: 10px;
    }

    .search-modal-content {
        margin: 20px auto;
        max-height: 90vh;
        border-radius: 10px;
    }

    .search-modal-header {
        padding: 15px 20px;
    }

    .search-modal-body {
        padding: 20px;
    }

    .search-modal-input {
        padding: 12px 45px 12px 15px;
        font-size: 14px;
    }

        /* Mobile cart dropdown adjustments */
    .cart-dropdown {
        width: 280px;
        right: -20px;
    }

    /* Mobile language dropdown adjustments */
    .language-dropdown {
        width: 240px;
        right: -30px;
    }
}

/* Language Dropdown Styling */
.action_item.language_selector {
    position: relative;
    cursor: pointer;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: -20px;
    width: 220px;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1050;
    display: none;
    margin: 8px 0 0 0;
    padding: 8px 0;
    list-style: none;

    /* Ensure dropdown stays within viewport */
    transform: translateX(0);
}

/* Remove pointer cursor from language dropdown content */
.language-dropdown {
    cursor: default !important;
}

.language-dropdown * {
    cursor: default;
}

/* Keep pointer cursor only on language links */
.language-dropdown .language-item {
    cursor: pointer !important;
}

.language-dropdown li {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}

.language-dropdown .language-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.language-dropdown .language-flag {
    width: 20px;
    height: 15px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.language-dropdown .language-item:hover {
    background-color: #f8f9fa;
    color: #e6462e;
}

.language-dropdown li:last-child .language-item {
    border-bottom: none;
}

.language_selector.open .language-dropdown {
    display: block;
}

/* Remove hover effects from language dropdown */
.language-dropdown:hover {
    border-color: #ddd !important;
    background-color: white !important;
    transform: none !important;
}

/* Ensure language button stays normal when dropdown is open */
.language_selector.open {
    border-color: #ddd !important;
    background-color: #fff !important;
    transform: none !important;
}

.language_selector.open i {
    color: #333 !important;
}

.language_selector.open:hover {
    border-color: #ddd !important;
    background-color: #fff !important;
    transform: none !important;
}

.language_selector.open:hover i {
    color: #333 !important;
}

/* Mobile Language Menu Styling */
.mobile-language-toggle {
    cursor: pointer;
}

.mobile-language-list {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 0;
}

.mobile-language-item {
    padding: 0;
    margin: 0;
}

.mobile-language-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.mobile-language-flag {
    width: 20px;
    height: 15px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.mobile-language-link:hover {
    background-color: #e9ecef;
    color: #e6462e;
}

.mobile-language-item:last-child .mobile-language-link {
    border-bottom: none;
    border-radius: 0 0 6px 6px;
}

.mobile-language-item:first-child .mobile-language-link {
    border-radius: 6px 6px 0 0;
}

/* User Profile Button Styling */
.action_item.user_profile {
    position: relative;
    cursor: pointer;
}

.action_item.user_profile:hover {
    border-color: #e6462e;
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.action_item.user_profile:hover i {
    color: #e6462e;
}

/* Mobile user profile styling */
.mobile-user-profile {
    cursor: pointer;
}

/* Loading Indicators */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.search-loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

.modal-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.modal-search-loading i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
    font-size: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}