/* Header Styles */

/* Top Header */
.top-header {
    background: #0b2baa;
    color: white;
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    z-index: 1001;
}

.top-header .container {
    width: 100%;
}

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

.top-header .phone-number {
    color: #0df8de;
}

/* Main Header */
.main-header {
    background: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
#cartDeleteModal{
    z-index: 20000000000;
}
.main-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile Header Toggle */
.mobile-header-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #0b2baa;
    cursor: pointer;
}

/* Mobile Search Toggle */
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #0b2baa;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-search-toggle:hover {
    background: #f0f8ff;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y:auto;
    background: white;
    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 #eee;
}

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

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

.mobile-nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.mobile-nav-link:hover {
    color: #0b2baa;
}

.mobile-nav-link i {
    color: #0b2baa;
    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;
}

.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: #0b2baa;
}

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

.user-icon {
   text-decoration: none;
    color: #3e445a;
    font-size: 18px;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #e2e4ec;
    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: #333;
}

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

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

.cart-count {
   position: absolute;
    top: 0px;
    right: -11px;
    background: #0df8de;
    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 */
.nav-links {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link-item {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.nav-link-item:hover {
    color: #0b2baa;
}

.nav-link-item i {
    color: #0b2baa;
}

.nav-link-item.active {
    color: #0b2baa;
}

/* Responsive */
@media (max-width: 1024px) {
    .top-header {
        display: none;
    }
}

@media (max-width: 1024px) {
    .main-header {
        padding: 12px 0;
    }

    .main-header.scrolled {
        padding: 10px 0;
    }

    .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 #0b2baa !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    outline: none !important;
    display: block !important;
}

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

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

}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }

    .main-header.scrolled {
        padding: 8px 0;
    }

    .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: 10px;
    }

    .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: #f8f9fa;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .mobile-location .location-selector {
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: 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: linear-gradient(135deg, #0b2baa, #0df8de);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.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: #0b2baa;
}

.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 #0b2baa;
    color: #0b2baa;
    background: white;
}

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

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

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

.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: white;
    border: 1px solid #dee2e6;
    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: #333;
}

.location-selector-btn:hover {
    border-color: #0b2baa;
    background: #f8f9fa;
}

.location-selector-btn i:first-child {
    color: #0b2baa;
    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: #6c757d;
    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: #0b2baa;
    background: #f8f9ff;
}

.location-option.selected {
    border-color: #0b2baa;
    background: #f0f4ff;
}

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

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

.location-option .selected-check {
    color: #0b2baa;
    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, #0b2baa, #0df8de);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.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: #0b2baa;
}

/* 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: #0b2baa;
    border-radius: 3px;
}

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

/* 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;
}