

/* Menu Toggle Switch Styles START */
.toggle-container {
    position: relative;
    width: 220px;
    margin: 10px auto;
    direction: rtl;
    padding-top: 10px;
}

.toggle-switch {
    display: none;
}

.toggle-label {
    display: flex;
    position: relative;
    background-color: #e9e9e98a;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    border: solid 0.4px #fff;
	margin-bottom: 30px;
}

.toggle-option {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    font-size: 1rem;
    line-height: 1.2rem;
    height: 40px;
    color: #000;
    transition: color 0.3s;
}

.toggle-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 50%;
    background-color: #fff;
    border-radius: 50px;
    transition: transform 0.3s;
    box-shadow: 0 0 5px rgb(0 0 0 / 25%);
}

.toggle-switch:checked + .toggle-label .toggle-slider {
    transform: translateX(-100%);
}

.toggle-switch:checked + .toggle-label .toggle-option[data-option="links"] {
    color: #555;
}

.toggle-switch:checked + .toggle-label .toggle-option[data-option="menu"] {
    color: #000;
}

.toggle-switch:not(:checked) + .toggle-label .toggle-option[data-option="links"] {
    color: #000;
}

.toggle-switch:not(:checked) + .toggle-label .toggle-option[data-option="menu"] {
    color: #555;
}
/* Menu Toggle Switch Styles END */


/* Menu Styles START */
.menu-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
	margin-top: -50px;
    direction: rtl;
}
.menu-category-section {
    margin-bottom: 40px;
}

.menu-category-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 20px 0;
    text-align: right;
	padding-right: 10px;
}

/* Category Tabs */
.menu-categories-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 15px 0;
    /* margin-bottom: 30px; */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.menu-categories-tabs.scrolled {
    /* No background on desktop */
    padding: 10px 0 5px 0;
}

@media (max-width: 560px) {
    .menu-categories-tabs.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        padding: 15px 20px 0px 0;
    }
}

.menu-tabs-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 5px;
}

.menu-tabs-container::-webkit-scrollbar {
    display: none;
}

.menu-tab-button {
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #fff;
    color: #495057;
    padding: 8px 16px;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    min-width: fit-content;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.06), 0 3px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 15px;
}


.menu-tab-button.active {
	background: #f4f4f4;
	border-color: #999999;
	color: #383838;
}

/* Smooth scrolling for the page */
html {
    scroll-behavior: smooth;
}
	.menu-tab-button:hover {
		background: #f4f4f4;
		border-color: #7f7f7f;
		color: #383838;
	}



/* Mobile responsiveness for tabs */
@media (max-width: 768px) {
  .menu-categories-tabs {
        padding: 10px 0;
        margin: 0 -20px 10px -15px;
        padding-right: 20px;
    }
    
    .menu-tab-button {
        padding: 6px 14px;
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
}

.menu-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    color: #666;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06), 0 3px 10px rgba(0, 0, 0, 0.04);
}

.menu-items-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

.menu-item-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.menu-best-seller-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.menu-new-item-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(45deg, #4285f4, #1976d2);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.menu-item-card .menu-best-seller-badge + .menu-new-item-badge {
    top: 35px;
}

.menu-item-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-image-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: menu-skeleton-loading 1.5s infinite;
    z-index: 1;
}

.menu-lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 2;
}

.menu-lazy-image.menu-loaded {
    opacity: 1;
}

@keyframes menu-skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.menu-item-content {
    padding: 20px;
}

.menu-item-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.menu-item-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.menu-item-calories {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ff6b35;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.menu-item-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.menu-price-current {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.menu-price-discount {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e21a1a;
}

.menu-price-original {
    font-size: 1rem;
    color: #a9a9a9;
    text-decoration: line-through;
}

/* Responsive Design */
@media (min-width: 768px) {
    .menu-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .menu-wrapper {
        padding: 15px;
		margin-top: -30px;
    }
    
    .menu-item-card {
        display: flex;
        align-items: center;
        min-height: 120px;
		padding: 15px 0;
    }
    
.menu-item-image {
        width: 120px;
        height: 120px;
        min-width: 120px;
        aspect-ratio: 1/1;
        margin-left: 15px;
        margin-right: 15px;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .menu-item-content {
        padding: 15px;
        flex: 1;
    }
    
    .menu-item-name {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .menu-item-description {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .menu-item-calories {
        margin-bottom: 8px;
        font-size: 0.8rem;
    }
    
.menu-best-seller-badge {
        font-size: 0.6rem;
        padding: 2px 8px;
        z-index: 10;
        margin-right: 5px;
        margin-top: 4px;
    }
.menu-new-item-badge {
        font-size: 0.6rem;
        padding: 2px 8px;
        z-index: 10;
        margin-right: 5px;
        margin-top: 4px;
    }
    
	
}
/* Menu Styles END */


/* Menu Banner Styles */
.menu-banner-container {
    width: 100%;
    margin: 0 auto 20px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgb(0 0 0 / 4%);
    position: relative;
}

.menu-banner-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: menu-skeleton-loading 1.5s infinite;
    z-index: 1;
}

.banner-above-search {
    margin-bottom: 25px;
    margin-top: 10px;
}

.banner-below-tabs {
    margin-bottom: 25px;
    margin-top: 15px;
}

.menu-banner-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 330px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 2;
}

.menu-banner-image.menu-loaded {
    opacity: 1;
}

@media (max-width: 768px) {
    .menu-banner-container {
        margin: 0 auto 15px auto;
        border-radius: 10px;
    }
    
    .banner-above-search {
        margin-bottom: 20px;
        margin-top: 5px;
    }
    
    .banner-below-tabs {
        margin-bottom: 20px;
        margin-top: 10px;
    }
    
    .menu-banner-image {
        max-height: 200px;
    }
}
/* Menu Banner Styles END */


/* Branch Selector Styles */
/* ===== START: MENU OPEN/CLOSED STATUS INDICATOR STYLES ===== */
.menu-status-indicator {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 10px 18px;
    border: none;
    border-radius: 30px;
    min-width: auto;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
	border: solid 1px #ececec;
}

.menu-status-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.menu-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    position: relative;
}

.menu-status-open .menu-status-text {
    color: #28a745;
}

.menu-status-closed .menu-status-text {
    color: #dc3545;
}

.menu-status-open .menu-status-dot {
    background-color: #28a745;
}

.menu-status-closed .menu-status-dot {
    background-color: #dc3545;
}

.menu-status-open .menu-status-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #28a745;
    z-index: -1;
    animation: menu-pulse-green-fixed 2s infinite;
}

@keyframes menu-pulse-green-fixed {
    0% {
        transform: scale(1);
        opacity: 5;
    }
    70% {
        transform: scale(2.5);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}


.menu-branch-info {
    max-width: 550px;
    margin: 0 auto 40px auto;
    padding: 32px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06), 0 3px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    direction: rtl;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.menu-branch-details {
    margin-bottom: 10px;
}

.menu-branch-name {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    margin-top: 0;
    color: #2d3748;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.menu-branch-address {
    font-size: 1rem;

    line-height: 1.5;
    margin-top: 0;
    color: #718096;
    font-weight: 500;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.menu-branch-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
    margin-bottom: 10px;
}
.menu-maps-icon {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    position: relative;
    margin-right: 12px;
}

.menu-maps-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff3742 0%, #ff2d42 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-maps-icon:hover::before {
    opacity: 1;
}

.menu-maps-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

.menu-maps-icon svg {
    position: relative;
    z-index: 1;
}


.menu-mobile-icon,
.menu-whatsapp-icon {
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    margin-right: 16px;
}

.menu-mobile-icon {
    background: linear-gradient(135deg, #d6dee6 0%, #929598 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgb(132 132 132 / 30%);
}

.menu-mobile-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #d6dee6 0%, #aeafb0 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-mobile-icon:hover::before {
    opacity: 1;
}

.menu-mobile-icon:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #d6dee6 0%, #aeafb0 100%);
}

.menu-whatsapp-icon {
    background: linear-gradient(135deg, #25d366 0%, #2ed96e 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.menu-whatsapp-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1fb456 0%, #2ed96e 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-whatsapp-icon:hover::before {
    opacity: 1;
}

.menu-whatsapp-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.menu-mobile-icon svg,
.menu-whatsapp-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    fill: white !important;
    color: white !important;
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .menu-status-indicator {
        padding: 8px 16px;
    }
    
    .menu-status-text {
        font-size: 0.85rem;
    }
    
    .menu-branch-info {
        margin: 0 auto 35px auto;
        padding: 28px 20px;
    }
    
    .menu-branch-name {
        font-size: 1.5rem;
        margin-top: 8px;
    }
    
    .menu-branch-address {
        font-size: 0.95rem;
    }
    
    .menu-branch-actions {
        gap: 4px;
    }
    
    .menu-maps-icon {
        width: 44px;
        height: 44px;
        margin-right: 12px;
    }
	.menu-mobile-icon,
    .menu-whatsapp-icon {
        width: 44px;
        height: 44px;
        margin-right: 12px;
    }
	
}
/* ===== END: MENU OPEN/CLOSED STATUS INDICATOR STYLES ===== */

.branch-selector-container {
    position: relative;
    margin-left: 10px;
}



.branch-selector-btn {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: space-between;
}

.branch-selector-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.branch-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
}

.branch-option {
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.branch-option:hover {
    background: #f8f9fa;
}

.branch-option.selected {
    background: #efefef;
    color: #000000;
}


/* Search Bar Styles */
.menu-search-container {
    margin-bottom: 12px;
}
.menu-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;

}
.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    transition: all 0.3s ease;
    overflow: hidden;
    flex: 1;
    height: 45px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06), 0 3px 10px rgba(0, 0, 0, 0.04);
}
.search-input-container:hover {
    border-color: #e6e6e6;
}
.search-input-container:focus-within {
    border-color: #f1f3f4;
}
.search-icon-btn {
    background: linear-gradient(135deg, #e3e3e3, #c7c7c7);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}


.menu-search-input {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    text-align: right;
    direction: rtl;
    color: #2c3e50;
}
.menu-search-input::placeholder {
    color: #95a5a6;
    font-weight: 400;
    font-size: 0.95rem;
}
.clear-search-btn {
    background: #3f3f3f;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.clear-search-btn:hover {
    background: #494848;
  
}

.search-results-count {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
	padding: 40px 20px;
}
.no-results-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1rem;
}
.menu-item-card.hidden {
    display: none !important;
}
.menu-category-section.hidden {
    display: none !important;
}

/* Branch Selector Styles START */
.branch-selector-container {
    position: relative;
    margin-left: 10px;
    flex-shrink: 0;
}

.branch-selector-btn {
    background: white;
    border: 1px solid #fff;
    border-radius: 25px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: space-between;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06), 0 3px 10px rgba(0, 0, 0, 0.04);
}

.branch-selector-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.branch-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
}

.branch-option {
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.branch-option:hover {
    background: #f8f9fa;
}

	
/* Branch Selector Styles END */


    .menu-search-wrapper {
        gap: 8px;
    }
    
    .branch-selector-container {
        margin-left: 0;

    }
    
    .branch-selector-btn {
        min-width: 120px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .search-input-container {
        flex: 1;
    }
    
    .menu-search-container {
        margin-bottom: 12px;
        padding: 0 1px;
    }


    
    .menu-search-wrapper {
        max-width: 100%;
        width: 100%;
    }
    
    .search-input-container {
        width: 100%;
    }
    
    .search-icon-btn {
        width: 32px;
        height: 32px;
        margin: 8px;
    }
    
.menu-search-input {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .menu-search-input::placeholder {
        font-size: 0.9rem;
    }
    
.clear-search-btn {
        width: 22px;
        height: 22px;
        margin: 6px;
        flex-shrink: 0;
    }

.menu-hours-container {
    position: relative;
    width: 100%;
    margin-top: 30px;
}

.menu-hours-button {
    width: 320px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgb(207 207 207 / 49%);
    color: #2d3748;
    padding: 9px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

@media (max-width: 600px) {
    .menu-hours-button {
        width: 92% !important;   /* full-width look on phones */
        max-width: 320px !important;
    }
}


.menu-hours-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgb(0 0 0 / 5%);
}

.menu-hours-button .button-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-hours-button i {
    font-size: 16px;
}

.menu-hours-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.menu-hours-arrow.rotated {
    transform: rotate(180deg);
}

.menu-hours-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-hours-dropdown {
    position: relative;
    width: 100%;
    background: white;
    border-radius: 20px;
    /* box-shadow: 0px 2px 13px 0px rgba(0, 0, 0, 0.10); */
    z-index: 1000;
    margin-top: 8px;
    border: 1px solid #0000001f;
}

.menu-hours-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.menu-hours-list {
    padding: 8px 0;
}

.menu-hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
}

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

.day-name {
    font-weight: 500;
    color: #333;
}

.time-range {
    font-weight: 400;
}

.time-range.open {
    color: #333;
}

.time-range.open-24 {
    color: #1aaf58;
}

.time-range.closed {
    color: #dc3545;
}

.time-range.undefined {
    color: #6c757d;
}

.menu-day-separator {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e9ecef;
    opacity: 0.5;
}


/* Add to Cart Button */
.menu-item-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.menu-price-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-add-to-cart-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3e3e3, #c7c7c7);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    flex-shrink: 0;
    
}
.menu-add-to-cart-btn:hover {
    background: #9a9999;
    transform: scale(1.1);
}




/* Cart Container - Force bottom positioning */
#cart-container {
    position: fixed !important;
    top: auto !important;
    bottom: 0px !important;
    left: 0px !important;
    right: 0px !important;
    width: 100vw !important;
    height: auto !important;
    z-index: 999999 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    border: none !important;
    background: transparent !important;
    display: none !important;
}

#cart-container * {
    pointer-events: auto !important;
}

/* Cart Peek - Force bottom positioning */
#cart-peek {
    position: absolute !important;
    bottom: 0px !important;
    left: 0px !important;
    right: 0px !important;
    width: 100% !important;
    background: #F8F9FA!important;
    color: #858789 !important;
    border-radius: 20px 15px 0 0 !important;
    padding: 10px 20px !important;
    margin: 0 !important;
    transform: translateY(0px) !important;
    transition: transform 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 -4px 20px rgb(78 78 78 / 30%) !important;
    box-sizing: border-box !important;
    z-index: 1000000 !important;
}

/* Override any parent transforms */
#cart-container,
#cart-peek {
    transform-origin: center !important;
    will-change: auto !important;
}

/* Ensure cart shows when visible */
#cart-container[style*="display: block"] {
    display: block !important;
}

/* Prevent parent interference */
.menu-wrapper,
#menu-container {
    position: relative !important;
    overflow: visible !important;
}

/* Force cart to always be at bottom of viewport */
body {
    position: relative !important;
}

#cart-container {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    inset-block-end: 0px !important;
    inset-inline: 0px !important;
}

#cart-container {
    width: 100% !important;
    max-width: 600px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

.cart-peek-handle {
    width: 40px;
    height: 4px;
    background: #cdcdcd;
    border-radius: 2px;
    margin: 0 auto 1px;
}

.cart-peek-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-peek-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-items-count {
    font-size: 14px;
    opacity: 0.9;
}

.cart-total-price {
    font-size: 16px;
    font-weight: 600;
}

.cart-peek-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgb(187 187 187 / 20%);
    border: none;
    color: #858789;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cart-peek-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hide peek when full cart is open */
#cart-container:has(.cart-full.open) #cart-peek {
    display: none !important;
}

/* Alternative approach for browsers that don't support :has() */
.cart-full.open ~ .cart-peek {
    display: none !important;
}

/* Position cart-full properly */
#cart-full {
    position: absolute !important;
    bottom: 0px !important;
    left: 0px !important;
    right: 0px !important;
    width: 100% !important;
    background: white !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 70vh !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
    z-index: 1000001 !important;
}

#cart-full.open {
    transform: translateY(0px) !important;
}	

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

.cart-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.cart-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    border: none;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-close-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.cart-items-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
    margin-bottom: 15px;
    
    /* Custom scrollbar for better visibility */
    scrollbar-width: thin;
    scrollbar-color: #c5c5c5 #f1f1f1;
}

/* Custom scrollbar for webkit browsers */
.cart-items-list::-webkit-scrollbar {
    width: 8px;
}

.cart-items-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

.cart-items-list::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Add gradient shadows to indicate more content */
.cart-items-container {
    position: relative;
}

.cart-items-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-items-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-items-container.has-scroll::before,
.cart-items-container.has-scroll::after {
    opacity: 1;
}

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

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

.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
}

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

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-description {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #2C3E50;
    margin: 4px 0 0 0;
}

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

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.cart-qty-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.cart-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}
.cart-delete-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dc3545;
    border: 1px solid #dc3545;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    margin-left: 8px;
}

.cart-delete-btn:hover {
    background: #c82333;
    border-color: #bd2130;
    transform: scale(1.05);
}

.cart-summary {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.cart-total-row {
    font-weight: 600;
    font-size: 16px;
    color: #2C3E50;
    border-top: 1px solid #dee2e6;
    padding-top: 8px;
    margin-top: 8px;
    margin-bottom: 0;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.cart-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Touch/Swipe Area */
.cart-peek {
    touch-action: pan-y;
}
