/* TekMenu V2 Design - style.css */

:root {
    --primary-color: #ef4444; /* Red 500 */
    --primary-dark-color: #dc2626; /* Red 600 */
    --background-color: #f9fafb; /* Gray 50 */
    --surface-color: #ffffff;
    --text-primary: #111827; /* Gray 900 */
    --text-secondary: #4b5563; /* Gray 600 */
    --text-light: #6b7280; /* Gray 500 */
    --border-color: #e5e7eb; /* Gray 200 */
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    
    /* iOS Safe Area Support */
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    
    /* Mobile viewport height fix */
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for modern browsers */
    min-height: calc(100vh - env(safe-area-inset-bottom)); /* Fallback with safe area */
}

body.menu-active {
    padding-top: 120px; /* Space for fixed headers when menu is active */
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --header-bg: #242424;
    --card-bg: #2c2c2c;
    --border-color: #444;
    --primary-color-text: #ffffff;
}

/* Container heights */
.main-container {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: calc(100vh - env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
}

/* ========================================
   PRODUCT DETAIL DRAWER - UNIFIED STYLES
======================================== */
.product-detail-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    height: 100dvh;
    height: calc(100vh - env(safe-area-inset-bottom));
    background: var(--surface-color);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.product-detail-drawer.active,
.product-detail-drawer.open {
    right: 0;
}

.product-detail-drawer:not(.open):not(.active) {
    right: -100%;
    pointer-events: none;
}

.product-detail-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.product-detail-scroll-area {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.product-detail-header {
    position: relative;
    padding: 0;
    border-bottom: none;
    display: block;
    background: transparent;
    flex-shrink: 0;
}



.product-detail-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.close-detail-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-detail-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}



.product-detail-content-wrapper {
    padding: 1.5rem;
    padding-bottom: calc(1.5rem + 100px);
}

.product-detail-image {
    width: 100%;
    margin-bottom: 0;
}

.product-detail-header img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}



.product-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.discount-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.product-actions-detail {
    margin-top: auto;
    padding-top: 1rem;
}

.add-to-cart-detail-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark-color));
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.add-to-cart-detail-btn:active {
    transform: translateY(0);
}

/* Dark Theme Support */
[data-theme="dark"] .product-detail-drawer {
    background-color: var(--surface-color);
    border-left: 1px solid var(--border-color);
}

[data-theme="dark"] .product-detail-header {
    background-color: var(--surface-color);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .product-detail-content-wrapper {
    background-color: var(--surface-color);
}

[data-theme="dark"] .product-detail-footer {
    background-color: var(--surface-color);
    border-top-color: var(--border-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-detail-drawer {
        width: 100%;
        max-width: none;
        right: -100%;
    }
    
    .product-detail-header {
        padding: 0;
    }
    
    .product-detail-content-wrapper {
        padding: 1rem;
        padding-bottom: calc(1rem + 100px);
    }
    
    .product-detail-title-price {
        margin: 0 -1rem 0.75rem -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .product-detail-header img {
        height: 230px;
    }
    
    .product-detail-footer {
        max-width: none;
        margin: 0;
    }
    

    
    .product-detail-price {
        font-size: 1.25rem;
    }
}

/* SweetAlert2 Global High Z-Index */
.swal2-container {
    z-index: 10002 !important;
}

.swal2-popup {
    z-index: 10000 !important;
}

/* Remove old theme-switcher FAB that was causing conflicts */

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --header-bg: #242424;
    --card-bg: #2c2c2c;
    --border-color: #444;
    --primary-color-text: #ffffff;
    --search-bg: #333;
    --category-bg: #2c2c2c;
    --category-active-bg: var(--primary-color);
    --category-active-text: #fff;
    --modal-bg: #333;
    --surface-color: #1f2937;
    --background-color: #111827;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
}

[data-theme="dark"] .product-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .category-nav,
[data-theme="dark"] .category-nav-scrolled,
[data-theme="dark"] .top-header {
    background-color: var(--surface-color);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .cart-drawer {
    background-color: var(--surface-color);
}

[data-theme="dark"] .modal-content {
    background-color: var(--surface-color);
    color: var(--text-primary);
}

/* ========================================
   BASE STYLES
======================================== */
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ========================================
   PRODUCT COMPONENTS - UNIFIED STYLES
======================================== */

/* Product Options Indicator */
.product-options-indicator {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-options-indicator i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    height: 60px;
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.top-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    min-height: 60px;
    box-sizing: border-box;
}

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

.top-header h1 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

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

.header-btn {
    font-size: 1.2rem;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.header-btn:hover {
    background-color: var(--border-color);
}

.cart-btn {
    position: relative;
}

.cart-btn #cart-count-header {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category Navigation */
.category-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    z-index: 999;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.category-nav.hidden {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

.category-list {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 0 1rem;
    scrollbar-width: none; /* Firefox */
    align-items: center;
}

.category-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.category-list li {
    flex-shrink: 0;
}

.category-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.2s ease;
    text-decoration: none;
    min-width: 70px;
    text-align: center;
}

.category-image-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    padding: 2px;
    transition: border-color 0.2s ease;
    background-color: var(--surface-color);
}

.category-image-wrapper img {
    width: 100%;
    height: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border-radius: 50%;
    object-fit: cover;
}

.category-text-only {
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.category-list li.active .category-text-only {
    background-color: var(--primary-dark-color);
}

.category-list li a:hover .category-text-only {
    background-color: var(--primary-dark-color);
    transform: translateY(-2px);
}

.category-list li.active a {
    color: var(--primary-color);
}

.category-list li.active .category-image-wrapper {
    border-color: var(--primary-color);
}

/* Scrolled Category Navigation */
.category-nav-scrolled {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    z-index: 999; /* Same z-index as category-nav to prevent overlap issues */
    padding: 0.75rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}

.category-nav-scrolled.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.category-list-scrolled {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 0 1rem;
    list-style: none;
    scrollbar-width: none;
}

.category-list-scrolled::-webkit-scrollbar {
    display: none;
}

.category-list-scrolled li {
    flex-shrink: 0;
}

.category-list-scrolled li a {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--surface-color);
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
}

.category-list-scrolled li.active a {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Main Content */
.menu-content {
    padding: 1rem;
    margin-top: 140px; /* Space for header (60px) + category nav (~70px) + padding */
    padding-bottom: 100px; /* Extra bottom padding for smooth scrolling */
}

.menu-section {
    margin-bottom: 2rem;
    scroll-margin-top: 130px; /* Account for fixed headers when scrolling to section */
}

.category-header-placeholder {
    height: 0;
    margin-top: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.category-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.scroll-to-category-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Products List */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Product Card */
.product-card {
    display: flex;
    gap: 1rem;
    background-color: var(--surface-color);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-image-container {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    min-height: 60px;
    box-sizing: border-box;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    will-change: opacity;
    transform: translateZ(0);
}

.lazy {
    opacity: 0;
    filter: blur(5px);
}

.lazy.loaded {
    opacity: 1;
    filter: blur(0);
}

.product-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-actions .add-btn {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.product-actions .add-btn:hover {
    background-color: var(--primary-dark-color);
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    height: calc(100vh - env(safe-area-inset-bottom));
    background-color: var(--surface-color);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cart-drawer.open { right: 0; }
.cart-drawer.active { right: 0; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.cart-header h3 {
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.close-cart-btn {
    font-size: 1.2rem;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

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

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #ffffff;
}

.cart-footer {
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-total #cart-total-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.checkout-btn {
    width: 100%;
    background-color: #dc2626;
    color: white;
    padding: 0.875rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.checkout-btn:hover {
    background-color: #b91c1c;
}

.checkout-btn:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
}

.delivery-info {
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    font-size: 0.875rem;
}

.min-order-warning {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.free-delivery {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.delivery-fee {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.location-prompt-modal,
.manual-location-modal,
.delivery-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.location-prompt-content,
.manual-location-content,
.delivery-warning-content {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.location-buttons,
.manual-location-buttons,
.delivery-warning-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.location-buttons .btn,
.manual-location-buttons .btn,
.delivery-warning-buttons .btn {
    flex: 1;
    max-width: 150px;
}

#manualAddress {
    width: 100%;
    margin: 1rem 0;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.delivery-warning-content h3 {
    color: #dc3545;
    margin-bottom: 1rem;
}

.delivery-warning-content p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Scroll to top */
.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ========================================
   PRODUCT DETAIL COMPONENTS - CONSOLIDATED
======================================== */

.product-detail-back-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-detail-back-btn:hover {
    background-color: rgba(0,0,0,0.6);
    transform: scale(1.1);
}

.product-detail-calorie-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Product Detail Options - Combined Modal Style */
.product-options-group {
    margin: 1.5rem 0;
}

.product-options-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.option-section {
    margin-bottom: 1.5rem;
}

.option-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.option-choices {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.option-choice-label {
    display: ruby;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    position: relative;
}

.option-choice-label:hover {
    border-color: var(--primary-color);
    background-color: #fef2f2;
}

.option-choice-label input[type="radio"]:checked + .choice-text,
.option-choice-label input[type="checkbox"]:checked + .choice-text {
    color: var(--primary-color);
    font-weight: 600;
}

.option-choice-label input[type="radio"]:checked,
.option-choice-label input[type="checkbox"]:checked {
    accent-color: var(--primary-color);
}

.option-choice-label input[type="radio"],
.option-choice-label input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.choice-text {
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.choice-price {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Product Note Section */
.product-note-section {
    margin: 1.5rem 0;
}

.product-note-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.product-note-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    transition: border-color 0.2s ease;
    background-color: #fff;
}

.product-note-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.product-note-section textarea::placeholder {
    color: var(--text-light);
}

.note-character-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}



.product-detail-title-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    position: sticky;
    top: 0;
    background: var(--surface-color);
    padding: 1rem 0;
    margin: 0 -1.5rem 0.75rem -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    z-index: 5;
    border-bottom: 1px solid var(--border-color);
}

.product-detail-title {
    font-size: 1.75rem;
    font-weight: 800;
}

.product-detail-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    white-space: nowrap;
    margin-left: 1rem;
}

.product-detail-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.product-options-group {
    margin-bottom: 2rem;
}

.product-options-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.option-label {
    font-weight: 500;
}

.option-price-tag {
    background-color: #fee2e2; /* Red 100 */
    color: var(--primary-dark-color);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.removable-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.removable-option-btn {
    padding: 0.6rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.removable-option-btn.selected {
    border-color: var(--primary-color);
    background-color: #fee2e2;
    color: var(--primary-dark-color);
}

.product-detail-footer {
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    background-color: #ffffff;
    display: flex;
    gap: 1rem;
    align-items: center;
    border-radius: 0;
    position: fixed;
    bottom: env(safe-area-inset-bottom);
    left: 0;
    right: 0;
    z-index: 10;
    flex-shrink: 0;
    max-width: 500px;
    margin: 0 auto;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.quantity-change-btn {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.quantity-value {
    width: 44px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.add-to-cart-detail-btn {
    flex-grow: 1;
    height: 46px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.language-switcher {
    position: fixed;
    top: 80px; /* Positioned below the theme switcher */
    right: 20px;
    z-index: 1001;
    cursor: pointer;
    background-color: var(--card-bg, #fff);
    padding: 10px 12px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s, color 0.3s;
    color: #485460;
}

[data-theme="dark"] .language-switcher {
    color: #f1c40f;
}

/* Language Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    min-height: 60px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--surface-color);
    margin: 15% auto;
    padding: 0;
    border-radius: 12px;
    width: 85%;
    max-width: 350px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--surface-color);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.language-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(239, 68, 68, 0.05);
    transform: translateY(-1px);
}

.language-option.active {
    border-color: var(--primary-color);
    background-color: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.language-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.language-code {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.language-option.active .language-name {
    color: var(--primary-color);
}

.language-option.active .language-code {
    color: var(--primary-color);
}

.language-option .fa-check {
    color: var(--primary-color);
    font-size: 1.125rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Info Modal Styles */
.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Reduced from 1.5rem */
}

.info-item {
    display: flex;
    align-items: center; /* Changed from flex-start to center */
    gap: 0.75rem; /* Reduced from 1rem */
    padding: 0.75rem; /* Reduced from 1rem */
    background-color: var(--surface-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.info-item:hover {
    background-color: var(--background-color);
}

.info-item i {
    font-size: 1rem; /* Reduced from 1.2rem */
    color: var(--primary-color);
    width: 16px; /* Fixed width for alignment */
    text-align: center;
    flex-shrink: 0;
}

.info-item .fab.fa-whatsapp {
    color: #25D366;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem; /* Reduced from 0.25rem */
    flex: 1;
}

.info-details strong {
    font-size: 0.95rem; /* Reduced from 1rem */
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

.info-details span {
    font-size: 0.8rem; /* Reduced from 0.85rem */
    color: var(--text-secondary);
    font-weight: 400;
}

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color, #333);
    color: var(--primary-color-text, #fff);
    padding: 15px 25px;
    border-radius: 30px;
    z-index: 1010;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.toast-notification.show {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -10px);
}

/* Checkout Modal Styles */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.checkout-modal .modal-content {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.checkout-modal h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

.checkout-modal .form-group {
    margin-bottom: 1.5rem;
}

.checkout-modal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.checkout-modal input,
.checkout-modal select,
.checkout-modal textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: var(--text-color);
    box-sizing: border-box;
}

.checkout-modal input:focus,
.checkout-modal select:focus,
.checkout-modal textarea:focus {
    outline: none;
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.checkout-modal .payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-modal .payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkout-modal .payment-option:hover {
    border-color: var(--primary-color, #007bff);
    background-color: rgba(0, 123, 255, 0.05);
}

.checkout-modal .payment-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.checkout-modal #paymentMethodSelect {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.checkout-modal #paymentMethodSelect:focus {
    outline: none;
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.checkout-modal #paymentMethodSelect option {
    padding: 0.5rem;
}

.checkout-modal .checkout-steps {
    margin-bottom: 2rem;
}

.checkout-modal .step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.checkout-modal .step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.checkout-modal .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 1rem;
}

.checkout-modal .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.checkout-modal .step.active .step-number {
    background: var(--primary-color, #007bff);
    color: white;
}

.checkout-modal .step.completed .step-number {
    background: #28a745;
    color: white;
}

.checkout-modal .step-title {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

.checkout-modal .step.active .step-title {
    color: var(--primary-color, #007bff);
    font-weight: 600;
}

.checkout-modal .step.completed .step-title {
    color: #28a745;
    font-weight: 600;
}

.checkout-modal .checkout-step {
    display: none;
}

.checkout-modal .checkout-step.active {
    display: block;
}

.checkout-modal .order-summary,
.checkout-modal .final-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.checkout-modal .final-summary {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
}

.checkout-modal .order-summary h4 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
}

.checkout-modal .summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.checkout-modal .summary-item.total {
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 1px solid #ddd;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.checkout-modal .summary-item.discount {
    color: #28a745;
    font-weight: 500;
}

.checkout-modal .modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.checkout-modal .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.checkout-modal .btn-cancel {
    background: #6c757d;
    color: white;
}

.checkout-modal .btn-cancel:hover {
    background: #5a6268;
}

.checkout-modal .btn-confirm {
    background: var(--primary-color, #007bff);
    color: white;
}

.checkout-modal .btn-confirm:hover {
    background: #0056b3;
}

.checkout-modal .btn-next {
    background: var(--primary-color, #007bff);
    color: white;
}

.checkout-modal .btn-next:hover {
    background: #0056b3;
}

.checkout-modal .btn-prev {
    background: #6c757d;
    color: white;
}

.checkout-modal .btn-prev:hover {
    background: #5a6268;
}

.checkout-modal .order-type-fields {
    margin-bottom: 1rem;
}

/* Dark mode support */
[data-theme="dark"] .checkout-modal .modal-content {
    background: #2d3748;
    color: #e2e8f0;
}

[data-theme="dark"] .checkout-modal input,
[data-theme="dark"] .checkout-modal select,
[data-theme="dark"] .checkout-modal textarea {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .checkout-modal .order-summary {
    background: #4a5568;
}

[data-theme="dark"] .checkout-modal .payment-option {
    background: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .checkout-modal .payment-option:hover {
    background: #2d3748;
    border-color: #63b3ed;
}

[data-theme="dark"] .checkout-modal #paymentMethodSelect {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .checkout-modal #paymentMethodSelect:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.1);
}

[data-theme="dark"] .checkout-modal #paymentMethodSelect option {
    background: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .checkout-modal .step-indicator::before {
    background: #4a5568;
}

[data-theme="dark"] .checkout-modal .step {
    background: #2d3748;
}

[data-theme="dark"] .checkout-modal .step-number {
    background: #4a5568;
    color: #a0aec0;
}

[data-theme="dark"] .checkout-modal .step.active .step-number {
    background: #63b3ed;
    color: white;
}

[data-theme="dark"] .checkout-modal .step.completed .step-number {
    background: #48bb78;
    color: white;
}

[data-theme="dark"] .checkout-modal .step-title {
    color: #a0aec0;
}

[data-theme="dark"] .checkout-modal .step.active .step-title {
    color: #63b3ed;
}

[data-theme="dark"] .checkout-modal .step.completed .step-title {
    color: #48bb78;
}

[data-theme="dark"] .checkout-modal .final-summary {
    background: #2d4a2d;
    border-color: #48bb78;
}

.order-options-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #eee);
}

.order-options-tabs .tab-btn {
    flex: 1;
    padding: 15px 10px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.order-options-tabs .tab-btn.active {
    border-bottom-color: var(--primary-color, #333);
    font-weight: bold;
}

.form-section {
    display: none;
    animation: fadeIn 0.5s;
}

.form-section.active {
    display: block;
}

#checkout-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 500;
}

#checkout-form input,
#checkout-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.place-order-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: var(--primary-color, #27ae60);
    color: var(--primary-color-text, #fff);
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.place-order-btn:hover {
    opacity: 0.9;
}

/* Responsive Design */
@media (min-width: 768px) {
    .menu-content {
        padding: 2rem;
        max-width: 1200px;
        margin: 40px auto 0; /* Updated for no search section */
    }
    
    .products-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 1.5rem;
    }
    
    .product-card {
        max-width: none;
    }
    
    .top-header {
        padding: 0 2rem;
        justify-content: center; /* Ensure centering on desktop */
    }
    
    .top-header .header-container {
        max-width: 1200px;
        margin: 0 auto; /* Ensure horizontal centering */
    }
    
    .category-list,
    .category-list-scrolled {
        padding: 0 2rem;
        justify-content: center;
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 0 0.75rem;
    }
    
    .top-header h1 {
        font-size: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
        max-height: 2.4em; /* 2 lines on mobile */
    }
    
    .header-container {
        gap: 0.5rem;
    }
    
    .menu-content {
        padding: 0.75rem;
        margin-top: 40px; /* Reduced for mobile */
    }
    
    .product-card {
        padding: 0.75rem;
    }
    
    .product-image-container {
        width: 70px;
        height: 70px;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .product-description {
        font-size: 0.8rem;
    }
}

/* Cart Items Styling */
.cart-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.25rem;
    color: #374151;
}

.cart-item-options {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
    font-style: italic;
}

.cart-item-note {
    font-size: 0.75rem;
    color: #059669;
    margin-top: 2px;
    font-style: italic;
    background-color: #ecfdf5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #10b981;
}

.cart-item-price {
    color: #dc2626;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: #f9fafb;
    padding: 0.4rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.cart-quantity-change {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: #dc2626;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cart-quantity-change:hover {
    background-color: #b91c1c;
    transform: scale(1.02);
}

.cart-item-remove {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: #fef2f2;
    color: #dc2626;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cart-item-remove:hover {
    background-color: #dc2626;
    color: white;
    transform: scale(1.02);
}

.cart-empty-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem 1rem;
    background-color: var(--background-color);
    border-radius: 12px;
    margin: 1rem 0;
    border: 2px dashed var(--border-color);
}

.cart-empty-message::before {
    content: "🛒";
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Cart Summary */
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #6b7280;
}

.cart-summary-row.total {
    font-size: 1.1rem;
    font-weight: 700;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    color: #374151;
    background-color: #ffffff;
    padding: 0.75rem;
    border-radius: 6px;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.cart-summary {
    margin-bottom: 1rem;
}

.cart-warning {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}

[data-theme="dark"] .cart-warning {
    background-color: #451a03;
    color: #fbbf24;
}

[data-theme="dark"] .cart-item {
    background-color: var(--surface-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .cart-item-quantity {
    background-color: var(--background-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .cart-summary-row.total {
    background-color: var(--background-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .cart-empty-message {
    background-color: var(--background-color);
    border-color: var(--border-color);
}

/* Option Modal Styles */
.option-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 1rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideIn 0.3s ease;
}

.modal-content h3 {
    margin: 0 0 1.5rem 0;
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
}

.option-choices {
    margin-bottom: 0.5rem;
}

.option-choices label {
    align-items: center;
    padding: 0.4rem;
    border-radius: 8px;
    /*! cursor: pointer; */
    /*! transition: background-color 0.2s ease; */
    margin-bottom: 0.5rem;
}

.option-choices label:hover {
    background-color: #f9fafb;
}

.option-choices input[type="radio"],
.option-choices input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: #dc2626;
}

.option-choices span {
    font-size: 0.8rem;
    color: #374151;
    flex: 1;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background-color: #f3f4f6;
    color: #6b7280;
}

.btn-cancel:hover {
    background-color: #e5e7eb;
}

.btn-confirm {
    background-color: #dc2626;
    color: white;
}

.btn-confirm:hover {
    background-color: #b91c1c;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

[data-theme="dark"] .option-modal {
    background-color: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .modal-content {
    background-color: #1f2937;
    color: #f9fafb;
}

[data-theme="dark"] .modal-content h3 {
    color: #f9fafb;
}

[data-theme="dark"] .option-choices label:hover {
    background-color: #374151;
}

[data-theme="dark"] .option-choices span {
    color: #f9fafb;
}

[data-theme="dark"] .btn-cancel {
    background-color: #374151;
    color: #f9fafb;
}

[data-theme="dark"] .btn-cancel:hover {
    background-color: #4b5563;
}

/* Combined Option Modal Styles */
.combined-option-modal {
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}

.combined-options-container {
    margin-bottom: 2rem;
}

.option-section {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.option-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.option-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
}

.option-title::before {
    content: "•";
    color: #dc2626;
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.product-note {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.product-note:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.product-note::placeholder {
    color: #9ca3af;
}

[data-theme="dark"] .option-title {
    color: #f9fafb;
}

[data-theme="dark"] .option-section {
    border-bottom-color: #374151;
}

[data-theme="dark"] .product-note {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

[data-theme="dark"] .product-note:focus {
    border-color: #dc2626;
}

[data-theme="dark"] .product-note::placeholder {
    color: #6b7280;
}

/* Category Navigation Active States */
.category-list li.active a,
.category-list a.active {
    color: var(--primary-color);
}

.category-list li.active .category-image-wrapper,
.category-list a.active .category-image-wrapper {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.category-list li.active .category-text-only,
.category-list a.active .category-text-only {
    background-color: var(--primary-dark-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Scrolled Category Navigation Active States */
.category-list-scrolled li.active a,
.category-list-scrolled a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-list-scrolled li a:hover {
    background-color: var(--border-color);
    transform: translateY(-1px);
}

.category-list-scrolled li.active a:hover,
.category-list-scrolled a.active:hover {
    background-color: var(--primary-dark-color);
}

/* Theme Switcher Icon Toggle */
#theme-switcher .fa-sun {
    display: none;
}

#theme-switcher .fa-moon {
    display: inline-block;
}

[data-theme="dark"] #theme-switcher .fa-sun {
    display: inline-block;
}

[data-theme="dark"] #theme-switcher .fa-moon {
    display: none;
}

/* Dark mode support for active states */
/* Welcome Screen Styles */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    height: calc(100vh - env(safe-area-inset-bottom));
    background: linear-gradient(135deg, var(--background-color) 0%, var(--surface-color) 100%);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow-y: auto;
}

.welcome-content {
    max-width: 400px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    margin: 0 auto;
    flex: 1;
    justify-content: center;
    min-height: 0;
}

.welcome-logo img {
    width: 120px;
    height: 120px;
    max-width: 120px;
    max-height: 120px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-md);
}

.welcome-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}



/* Welcome Slider Styles */
.welcome-slider {
    position: relative;
    width: 100%;
    margin: 1rem 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.slider-track {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
    min-height: 60px;
    box-sizing: border-box;
}

.slider-item {
    min-width: 100%;
    height: 100%;
    min-height: 60px;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.slider-item img {
    width: 100%;
    height: 100%;
    min-height: 60px;
    box-sizing: border-box;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1rem;
    text-align: left;
}

.slider-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.slider-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: all;
    box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
    background: white;
    transform: scale(1.1);
}



.go-to-menu-btn {
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.go-to-menu-btn:hover {
    background-color: var(--primary-dark-color);
}

.welcome-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.welcome-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.welcome-link-btn:hover {
    background-color: var(--border-color);
    transform: translateY(-1px);
}

.welcome-link-btn .fas:first-child {
    color: var(--text-secondary);
}
.welcome-link-btn .fas:last-child {
    color: var(--text-light);
    font-size: 0.9rem;
}

.welcome-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Dark theme for welcome screen */
[data-theme="dark"] .welcome-screen {
    background: linear-gradient(135deg, var(--background-color) 0%, var(--surface-color) 100%);
}

/* Dark mode support for active states */
[data-theme="dark"] .category-list li.active .category-image-wrapper,
[data-theme="dark"] .category-list a.active .category-image-wrapper {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

/* RTL Language Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .top-header .header-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .product-card {
    flex-direction: row-reverse;
}

[dir="rtl"] .product-actions {
    order: -1;
}

[dir="rtl"] .cart-drawer {
    right: auto;
    left: -100%;
}

[dir="rtl"] .cart-drawer.open {
    left: 0;
}

[dir="rtl"] .welcome-controls {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-option {
    flex-direction: row-reverse;
}

[dir="rtl"] .slider-controls {
    flex-direction: row-reverse;
}

/* Desktop Header Centering Fix */
@media (min-width: 1200px) {
    .top-header {
        padding: 0 calc((100vw - 1200px) / 2 + 2rem);
    }
    
    .top-header .header-container {
        width: 1200px;
        margin: 0 auto;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .top-header {
        padding: 0 calc((100vw - 1200px) / 2 + 2rem);
    }
}

/* Cart Drawer Styles */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for modern browsers */
    height: calc(100vh - env(safe-area-inset-bottom)); /* Fallback with safe area */
    background-color: var(--surface-color);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-step {
    display: none;
    flex-direction: column;
    height: 100%;
}

.cart-step.active {
    display: flex;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark-color) 100%);
    color: white;
    min-height: 60px;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    flex: 1;
    text-align: center;
}

.close-cart-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-cart-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.back-to-cart-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

/* Cart drawer form styles */
.cart-drawer .form-group {
    margin-bottom: 1.5rem;
}

.cart-drawer .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.cart-drawer .form-group input,
.cart-drawer .form-group select,
.cart-drawer .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--surface-color);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.cart-drawer .form-group input:focus,
.cart-drawer .form-group select:focus,
.cart-drawer .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.cart-drawer .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.cart-drawer .order-type-fields {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--background-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cart-drawer .order-summary {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.cart-drawer .order-summary h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-drawer .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.cart-drawer .summary-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 2px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.cart-drawer .summary-item.discount {
    color: #28a745;
    font-weight: 600;
}

.cart-drawer .btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.cart-drawer .btn-next {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.cart-drawer .btn-next:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.cart-drawer .btn-prev {
    background: #6c757d;
    color: white;
    flex: 1;
    margin-right: 0.5rem;
}

.cart-drawer .btn-prev:hover {
    background: #5a6268;
}

.cart-drawer .btn-confirm {
    background: var(--primary-color);
    color: white;
    flex: 2;
    margin-left: 0.5rem;
}

.cart-drawer .btn-confirm:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Dark mode support for cart drawer forms */
[data-theme="dark"] .cart-drawer .form-group input,
[data-theme="dark"] .cart-drawer .form-group select,
[data-theme="dark"] .cart-drawer .form-group textarea {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .cart-drawer .form-group input:focus,
[data-theme="dark"] .cart-drawer .form-group select:focus,
[data-theme="dark"] .cart-drawer .form-group textarea:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .cart-drawer .order-type-fields {
    background: #374151;
    border-color: #4b5563;
}

[data-theme="dark"] .cart-drawer .order-summary {
    background: #374151;
    border-color: #4b5563;
}

[data-theme="dark"] .cart-drawer .summary-item.total {
    border-color: #4b5563;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-footer {
    padding: 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    background-color: var(--background-color);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Step 1 footer (cart view) */
.cart-step[data-step="1"] .cart-footer {
    display: block;
}

/* Step 2 and 3 footer (checkout) */
.cart-step[data-step="2"] .cart-footer,
.cart-step[data-step="3"] .cart-footer {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.checkout-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.checkout-btn:hover::before {
    left: 100%;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.checkout-btn:disabled {
    background-color: var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* ========================================
   PRODUCT DETAIL ADDITIONAL COMPONENTS
======================================== */

/* ========================================
   MOBILE RESPONSIVE ADJUSTMENTS
======================================== */
@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

/* Business Information Styles */
.welcome-business-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.business-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.business-info-item i {
    width: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.business-info-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.business-info-item a:hover {
    color: var(--primary-dark-color);
}

.business-info-item.order-status {
    padding: 0.5rem;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 0.5rem;
}

.business-info-item.status-open {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.business-info-item.status-open i {
    color: #16a34a;
}

.business-info-item.status-closed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.business-info-item.status-closed i {
    color: #dc2626;
}

/* Dark theme adjustments for business info */
[data-theme="dark"] .welcome-business-info {
    background: var(--surface-dark);
    border-color: var(--border-dark);
}

[data-theme="dark"] .business-info-item.status-open {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

[data-theme="dark"] .business-info-item.status-open i {
    color: #4ade80;
}

[data-theme="dark"] .business-info-item.status-closed {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

[data-theme="dark"] .business-info-item.status-closed i {
    color: #f87171;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for modern browsers */
    height: calc(100vh - env(safe-area-inset-bottom)); /* Fallback with safe area */
    background-color: #ffffff;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Mobile viewport height fixes */
@media screen and (max-width: 768px) {
    /* Ensure content fits properly on mobile */
    body {
        /* Use the smaller of the two viewport heights to prevent overflow */
        min-height: 100vh;
        min-height: 100svh; /* Small viewport height - excludes UI like address bar */
    }
    
    .welcome-screen {
        height: 100vh;
        height: 100svh; /* Small viewport height for mobile */
        /* Remove fixed height and allow content to flow */
        min-height: 100vh;
        min-height: 100svh;
    }
    
    .welcome-content {
        /* Ensure content can scroll if needed */
        max-height: calc(100vh - 4rem);
        max-height: calc(100svh - 4rem);
        overflow-y: auto;
    }
    
    .cart-drawer {
        height: 100vh;
        height: 100svh;
    }
    
    /* Fix for iOS Safari bottom bar */
    @supports (-webkit-touch-callout: none) {
        .welcome-screen,
        .cart-drawer {
            height: -webkit-fill-available;
        }
        
        body {
            min-height: -webkit-fill-available;
        }
    }
}

/* Tablet and desktop - use dynamic viewport */
@media screen and (min-width: 769px) {
    body {
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .welcome-screen,
    .cart-drawer {
        height: 100vh;
        height: 100dvh;
    }
}

/* Directions button styles */
.directions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.directions-btn:hover {
    background-color: var(--primary-dark-color, #0056b3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.directions-btn i {
    font-size: 0.9rem;
    color: white !important;
    width: auto;
}

/* Dark theme adjustments */
[data-theme="dark"] .directions-btn {
    background-color: var(--primary-color);
}

[data-theme="dark"] .directions-btn:hover {
    background-color: var(--primary-dark-color, #0056b3);
}

/* Welcome Top Header */
.welcome-top-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    height: 60px;
    background-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark-color) 100%);
    padding-top: calc(env(safe-area-inset-top));
    box-shadow: var(--shadow-sm);
}

.welcome-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 400px;
    height: 100%;
    min-height: 60px;
    box-sizing: border-box;
}

.welcome-header-left {
    flex: 1;
}

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

.welcome-header-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(10px);
}

.welcome-header-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.welcome-header-btn i {
    font-size: 0.9rem;
}

/* Theme button specific styles */
.welcome-header-btn.theme-btn {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    justify-content: center;
}

.welcome-header-btn.theme-btn .fa-sun {
    display: none;
}

.welcome-header-btn.theme-btn .fa-moon {
    display: inline-block;
}

[data-theme="dark"] .welcome-header-btn.theme-btn .fa-sun {
    display: inline-block;
}

[data-theme="dark"] .welcome-header-btn.theme-btn .fa-moon {
    display: none;
}

/* Welcome Screen Styles */

/* PWA Install Button Styles */
.install-app-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.install-app-btn:hover {
    background: var(--primary-dark-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.install-app-btn i {
    font-size: 16px;
}

.install-app-btn span {
    display: inline-block;
}

@media (max-width: 480px) {
    .install-app-btn span {
        display: none;
    }
    
    .install-app-btn {
        padding: 8px;
        min-width: 40px;
        justify-content: center;
    }
}

[data-theme="dark"] .install-app-btn {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .install-app-btn:hover {
    background: var(--primary-dark-color);
}

