/* Royal Burger - Main Styles */

:root {
    --primary-gold: #d4af37;
    --secondary-gold: #ffd700;
    --accent-gold: #ffed4a;
    --dark-bg: #1a0f0a;
    --medium-bg: #2d1810;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.9);
    --success-green: #25D366;
    --whatsapp-green: #128C7E;
    --error-red: #ff6b6b;
    --warning-orange: #ff9500;
}

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--medium-bg) 50%, var(--dark-bg) 100%);
    color: var(--text-light);
    overflow-x: hidden;
    direction: rtl;
}

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-gold);
    box-shadow: 0 2px 20px rgba(212, 175, 55, 0.3);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transition: transform 0.3s ease;
}

    .logo-img:hover {
        transform: scale(1.05);
    }

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

.cart-btn {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
}

.cart-btn:hover {
    background: linear-gradient(45deg, var(--secondary-gold), var(--accent-gold));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.6);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(26, 15, 10, 0.8)), radial-gradient(circle at center, var(--primary-gold) 0%, transparent 70%);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
}

.hero-content::before {
    content: '👑';
    position: absolute;
    top: -60px;
    right: 50%;
    transform: translateX(50%);
    font-size: 4rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--primary-gold);
    font-weight: 600;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cta-btn {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.3rem;
    border-radius: 35px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.6);
}

/* Section Styles */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.menu-category {
    margin-bottom: 4rem;
}

.category-title {
    color: var(--primary-gold);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.menu-item {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.05));
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
    border-color: var(--primary-gold);
}

.menu-item h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--primary-gold);
    position: relative;
    z-index: 2;
}

.menu-item p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-gold);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.add-to-cart {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.add-to-cart:hover {
    background: linear-gradient(45deg, var(--secondary-gold), var(--accent-gold));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
}

.royal-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 3;
}

/* About Section */
.about-text {
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Modal Overlay Base Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    /* Active state - this is what shows the modal */
    .modal-overlay.active {
        display: flex !important; /* Override any inline styles */
        opacity: 1;
    }

/* Options Modal Content */
.options-modal-content {
    background: linear-gradient(135deg, var(--medium-bg), var(--dark-bg));
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    position: relative;
    text-align: right;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

/* Modal Styles */
.cart-modal, .modal-overlay, .verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

    .modal-overlay.active {
        display: flex !important;
    }
.verification-modal {
    z-index: 3000;
}

.verification-modal.active, .modal-overlay.active {
    display: flex;
}

.cart-content, .options-modal-content, .verification-content {
    background: linear-gradient(135deg, var(--medium-bg), var(--dark-bg));
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    position: relative;
}

.verification-content {
    max-width: 450px;
    text-align: center;
}

.options-modal-content {
    max-width: 500px;
    text-align: right;
}

.cart-title, .form-title {
    color: var(--primary-gold);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.form-title {
    margin-bottom: 1.5rem;
}

.close-cart, .close-btn {
    background: #666;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    float: left;
    margin-bottom: 1rem;
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    color: var(--primary-gold);
    font-size: 1.8rem;
    padding: 0;
    margin: 0;
    width: auto;
}

/* Cart Items */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 1rem;
}

.cart-total {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-gold);
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    background: rgba(212, 175, 55, 0.1);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.quantity-btn {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Form Styles */
.customer-form {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.05));
    padding: 2rem;
    border-radius: 15px;
    margin: 1rem 0;
    border: 2px solid rgba(212, 175, 55, 0.3);
    display: none;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--primary-gold) !important;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4) !important;
    color: var(--text-light) !important;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background: rgba(0, 0, 0, 0.6) !important;
    color: var(--text-light) !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    font-style: italic;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error-red);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: var(--success-green);
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
}

.required {
    color: var(--error-red);
}

/* Button Styles */
.checkout-btn {
    background: linear-gradient(45deg, var(--success-green), var(--whatsapp-green));
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 1.5rem;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-btn:hover {
    background: linear-gradient(45deg, var(--whatsapp-green), #075E54);
    transform: translateY(-2px);
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Options Modal */
.options-group {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.options-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--secondary-gold);
}

.options-group input[type="checkbox"] {
    margin-left: 0.5rem;
    transform: scale(1.2);
    accent-color: var(--primary-gold);
}

.options-group span {
    margin-right: 0.5rem;
}

.options-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.options-buttons button {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.options-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
}

/* Verification Modal Specific */
.verification-content h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.verification-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: var(--text-light);
}

.verification-content input[type="text"] {
    width: calc(100% - 20px);
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.3rem;
}

.verification-content button {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin: 0.5rem;
    width: 80%;
}

.verification-content button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
}

.verification-content button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#skip-verification-btn {
    background: var(--warning-orange) !important;
    margin-top: 1rem;
}

#verification-status {
    margin-top: 1rem;
    color: var(--primary-gold);
}

/* Debug Info */
.debug-info {
    background: rgba(212, 175, 55, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.9rem;
}

.debug-info h5 {
    color: var(--secondary-gold);
    margin-bottom: 0.5rem;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 100px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 3000;
    font-weight: bold;
}

.error-message {
    color: var(--error-red);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--dark-bg), var(--medium-bg));
    padding: 3rem 2rem;
    text-align: center;
    border-top: 3px solid var(--primary-gold);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-gold);
    color: var(--dark-bg);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

.fade-in { opacity: 1; transition: opacity 0.3s ease; }
.fade-out { opacity: 0; transition: opacity 0.3s ease; }

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .menu-item {
        border-width: 3px;
        border-color: var(--primary-gold);
    }
    
    .cart-btn,
    .add-to-cart,
    .cta-btn,
    .checkout-btn {
        border: 2px solid var(--dark-bg);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Add this to your styles.css file */

/* Loading Spinner Styles */
.loading-spinner {
    border: 4px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--primary-gold);
    width: 40px;
    height: 40px;
    animation: rotate 1s linear infinite;
    margin: 1rem auto;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Menu Loading Section */
#menu-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    opacity: 0.8;
}

    #menu-loading p {
        margin-top: 1rem;
        font-size: 1.1rem;
        color: var(--primary-gold);
    }

/* Menu refresh button (optional) */
.menu-refresh-btn {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    margin: 1rem auto;
    display: block;
    transition: all 0.3s ease;
}

    .menu-refresh-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
    }

/* Dynamic menu success indicator */
.dynamic-menu-loaded {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #menu-loading {
        min-height: 150px;
        padding: 1rem;
    }

        #menu-loading p {
            font-size: 1rem;
        }

    .loading-spinner {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }
}

/* Menu Item Image Styles */
.menu-item {
    position: relative;
    overflow: hidden;
}

.menu-item-image {
    /*width: 330px;*/
    /*height: 200px;*/
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    margin: -2rem -2rem 1rem -2rem;
    position: relative;
    /*background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.05));*/
    display: flex;
    justify-content: center;
    top: 30px;
/*    left: 15px;
    right: 15px;*/
}

    .menu-item-image img {
        width: 95%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
        border-radius: 15px 15px 0 0;
    }

.menu-item:hover .menu-item-image img {
    transform: scale(1.05);
}

/* Image loading placeholder */
.menu-item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.05));
    border-radius: 15px 15px 0 0;
    z-index: 1;
}

.menu-item-image img {
    position: relative;
    z-index: 2;
}

/* Loading spinner for images */
.menu-item-image.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--primary-gold);
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* Adjust menu item content when image is present */
.menu-item:has(.menu-item-image) {
    padding-top: 1rem;
}

/* Image overlay effects */
.menu-item-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( to bottom, transparent 60%, rgba(26, 15, 10, 0.3) 80%, rgba(26, 15, 10, 0.6) 100% );
    z-index: 2;
    pointer-events: none;
}

/* No image state - adjust spacing */
.menu-item:not(:has(.menu-item-image)) {
    padding: 2rem;
}

/* Image error state */
.menu-item-image img[src=""],
.menu-item-image img:not([src]) {
    display: none;
}


/* Enhanced hover effects for items with images */
.menu-item:has(.menu-item-image):hover {
    transform: translateY(-20px) scale(1.02);
}

    .menu-item:has(.menu-item-image):hover .menu-item-image::after {
        background: linear-gradient( to bottom, transparent 50%, rgba(212, 175, 55, 0.1) 70%, rgba(212, 175, 55, 0.2) 100% );
    }

/* Responsive image styles */
@media (max-width: 768px) {
    .menu-item-image {
        height: 180px;
        margin: -1.5rem -1.5rem 1rem -1.5rem;
    }

    .menu-item:has(.menu-item-image) {
        padding-top: 0.8rem;
    }
}

@media (max-width: 480px) {
    .menu-item-image {
        height: 160px;
        margin: -1rem -1rem 1rem -1rem;
    }

    .menu-item:has(.menu-item-image) {
        padding-top: 0.5rem;
    }
}

/* Print styles - hide images in print */
@media print {
    .menu-item-image {
        display: none;
    }

    .menu-item:has(.menu-item-image) {
        padding: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .menu-item-image::after {
        background: linear-gradient( to bottom, transparent 60%, rgba(0, 0, 0, 0.5) 80%, rgba(0, 0, 0, 0.8) 100% );
    }
}

/* Dark mode adjustments (if you add dark mode later) */
@media (prefers-color-scheme: dark) {
    .menu-item-image::before {
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(255, 215, 0, 0.02));
    }
}

/* Performance optimizations */
.menu-item-image {
    contain: layout style paint;
    will-change: transform;
}

    .menu-item-image img {
        contain: layout style paint;
        will-change: transform;
    }

    /* Accessibility improvements */
    .menu-item-image img {
        alt: attr(alt);
    }

/* Focus states for accessibility */
.menu-item:focus-within .menu-item-image img {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Image aspect ratio maintenance */
.menu-item-image {
    aspect-ratio: 16 / 9;
}

/* Items with images get slightly more space */
.menu-item:has(.menu-item-image) {
    min-height: 400px;
}

/* Image quality optimization */
.menu-item-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-contrast;
}

/* Loading states */
.menu-item-image.loading {
    background: linear-gradient( 90deg, rgba(212, 175, 55, 0.1) 25%, rgba(212, 175, 55, 0.2) 50%, rgba(212, 175, 55, 0.1) 75% );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ===================================
   MENU ITEMS - CONSISTENT LAYOUT
   =================================== */

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: start;
    direction: rtl;
}

/* Menu Item Card */
.menu-item {
    display: flex;
    flex-direction: column;
    min-height: 550px;
    max-height: 550px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.05));
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .menu-item:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
        border-color: var(--primary-gold);
    }

/* Menu Item Image */
.menu-item-image {
    height: 300px;
    min-height: 200px;
    max-height: 300px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    margin: -2rem -2rem 1rem -2rem;
    position: relative;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.05));
    display: flex;
    justify-content: center;
    align-items: center;
}

    .menu-item-image img {
        width: 95%;
        height: 100%;
        object-fit: cover;
        border-radius: 15px 15px 0 0;
        transition: transform 0.4s ease;
    }

.menu-item:hover .menu-item-image img {
    transform: scale(1.05);
}

/* Menu Item Content Wrapper */
.menu-item-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0;
}

.menu-item:has(.menu-item-image) .menu-item-content {
    padding-top: 0;
}

/* Menu Item Title */
.menu-item h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--primary-gold);
    position: relative;
    z-index: 2;
    min-height: 2.8rem;
    max-height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Menu Item Description */
.menu-item p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 60px;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Menu Item Price */
.menu-item .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-gold);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Add to Cart Button */
.menu-item .add-to-cart {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    margin-top: auto;
    margin-bottom: 0.5rem;
}

    .menu-item .add-to-cart:hover {
        background: linear-gradient(45deg, var(--secondary-gold), var(--accent-gold));
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
    }

/* Royal Badge */
.menu-item .royal-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 3;
}

/* Empty Message */
.menu-empty-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 2px dashed rgba(212, 175, 55, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-item {
        max-width: 100%;
    }
}

.enhanced-success .success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.enhanced-success .success-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.enhanced-success .success-detail {
    font-size: 1rem;
    margin: 0.5rem 0;
    opacity: 0.9;
}

.enhanced-success .success-footer {
    font-size: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0.8;
    font-weight: bold;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-50px) scale(0.9);
    }
}

/* Verification modal enhancements for unified flow */
.verification-content {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.1), rgba(76, 175, 80, 0.1));
    border: 2px solid rgba(212, 175, 55, 0.3);
}

    .verification-content h3 {
        background: linear-gradient(45deg, #d4af37, #ffd700);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

/* Status indicators */
.system-status {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .status-indicator.connected {
        border-color: var(--success-green);
        color: var(--success-green);
    }

    .status-indicator.disconnected {
        border-color: var(--error-red);
        color: var(--error-red);
    }