/* Install Banner Styles - Modern & Responsive */
#install-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: clamp(0.75rem, 2vw, 1.25rem);
    padding-left: clamp(3rem, 10vw, 4rem);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 150;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#install-banner .banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.75rem, 3vw, 1.5rem);
    position: relative;
}

#install-banner .banner-text {
    flex: 1;
    min-width: 0;
    text-align: right;
}

#install-banner .banner-text strong {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

#install-banner .banner-text p {
    margin: 0;
    font-size: clamp(0.85rem, 2vw, 1rem);
    opacity: 0.95;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}

#install-banner .banner-buttons {
    display: flex;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
    align-items: center;
    flex-shrink: 0;
}

#install-app-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: clamp(0.65rem, 1.5vw, 0.85rem) clamp(1.25rem, 3vw, 1.75rem);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

#install-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #f8f9ff;
}

#install-app-btn:active {
    transform: translateY(0);
}

#close-banner-btn {
    position: absolute;
    top: 50%;
    left: clamp(0.5rem, 2vw, 1rem);
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: clamp(0.5rem, 1.5vw, 0.65rem);
    border-radius: 12px;
    cursor: pointer;
    font-size: clamp(1rem, 2vw, 1.1rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(36px, 8vw, 44px);
    height: clamp(36px, 8vw, 44px);
    font-weight: 600;
}

#close-banner-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.05);
}

#close-banner-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    #install-banner {
        padding: 1rem 0.75rem;
        padding-left: 3rem;
    }

    #install-banner .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        position: relative;
    }

    #install-banner .banner-text {
        text-align: center;
        width: 100%;
    }

    #install-banner .banner-buttons {
        width: 100%;
        justify-content: center;
    }

    #install-app-btn {
        flex: 1;
        max-width: 300px;
        justify-content: center;
    }

    #close-banner-btn {
        top: 1rem;
        left: 0.75rem;
        transform: none;
    }

    #close-banner-btn:hover {
        transform: scale(1.05);
    }

    #close-banner-btn:active {
        transform: scale(0.95);
    }
}

/* App Header Styles */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 200;
    padding: 1rem 0;
}

.header-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.header-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    order: 1;
    flex-shrink: 0;
    display: block;
    filter: none !important;
}

.app-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #0d47a1;
    margin: 0;
    font-weight: 700;
    order: 2;
    flex: 1;
    text-align: center;
}

.cart-icon {
    position: relative;
    order: 3;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cart-icon:hover {
    background: #f8f9ff;
}

.cart-icon i {
    font-size: 1.5rem;
    color: #0d47a1;
}

.cart-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.35rem;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
}

/* Main Content Styles */
main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 74px;
    width: 100%;
}

/* Categories Horizontal Scroll */
.categories-container {
    width: 100%;
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.categories-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0 1rem 0.5rem 1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
    height: 6px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.categories-scroll::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.category-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 80px;
}

.category-item:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
}

.category-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-item.active .category-icon {
    background: white;
    color: #667eea;
}

.category-item.active .category-name {
    color: white;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.category-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s ease;
}

/* Menu Items Container */
.menu-items-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    margin-top: 160px;
}

.menu-category-section {
    margin-bottom: 2rem;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.menu-item-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-item-card:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

.item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.item-name {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
    text-align: right;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.vegan-badge {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.item-description,
.item-serving {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
    text-align: right;
}

.item-serving {
    color: #999;
    font-style: italic;
}

.item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d47a1;
}

.add-to-cart-btn {
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.no-items,
.no-categories {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 2rem;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .app-header {
        padding: 0.75rem 0;
    }

    .header-content {
        padding: 0 0.75rem;
    }

    .header-logo {
        width: 40px;
        height: 40px;
    }

    .app-title {
        font-size: 1.25rem;
    }

    .cart-icon {
        width: 40px;
        height: 40px;
    }

    .cart-icon i {
        font-size: 1.25rem;
    }

    main {
        padding-top: 64px;
    }

    .categories-container {
        top: 64px;
    }

    .menu-items-grid {
        grid-template-columns: 1fr;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .category-name {
        font-size: 0.75rem;
    }
}

/* Install Modal Styles */
#install-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#install-modal .modal-content {
    background: white;
    border-radius: 24px;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#close-modal-btn {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#close-modal-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.modal-header img {
    max-width: 120px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: #0d47a1;
    margin: 0 0 0.75rem 0;
    font-weight: 700;
    line-height: 1.2;
}

.modal-header p {
    color: #666;
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin: 0;
    line-height: 1.5;
}

/* Install Instructions Sections */
#android-instructions,
#ios-instructions {
    display: none;
}

#android-instructions {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 1rem;
}

#android-instructions h3 {
    margin: 0 0 1rem 0;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #333;
}

#android-instructions p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

#android-instructions p:last-of-type {
    color: #999;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

/* iOS Instructions - Modern Design */
#ios-instructions {
    padding: 0;
}

.ios-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.ios-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    color: #0d47a1;
    font-weight: 700;
}

.ios-header p {
    color: #666;
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.ios-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    counter-reset: step-counter;
}

.ios-steps li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.ios-steps li:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.ios-steps li:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.step-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.step-content span {
    flex: 1;
    color: #333;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 500;
    line-height: 1.4;
    text-align: right;
}

.share-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.ios-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border-radius: 16px;
    border: 2px solid #4CAF50;
}

.ios-success i {
    color: #4CAF50;
    font-size: 1.5rem;
}

.ios-success span {
    color: #2e7d32;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

#install-button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: clamp(1rem, 2vw, 1.1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Installed Messages */
#installed-message,
#mobile-installed-message,
#use-app-message,
#pwa-launched-message {
    display: none;
    padding: 2rem;
    text-align: center;
}

#installed-message .icon,
#mobile-installed-message .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#mobile-installed-message .icon {
    font-size: 4rem;
}

#installed-message h3,
#mobile-installed-message h3,
#use-app-message h3,
#pwa-launched-message h3 {
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #4CAF50;
}

#use-app-message h3,
#pwa-launched-message h3 {
    color: #333;
}

#installed-message p,
#mobile-installed-message p,
#use-app-message p,
#pwa-launched-message p {
    color: #666;
    margin-bottom: 1.5rem;
}

#pwa-launched-message p {
    margin-bottom: 1rem;
}

#open-pwa-btn,
#open-installed-app-btn {
    width: 100%;
    max-width: 300px;
    background: #4CAF50;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
}

#open-installed-app-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 1rem;
}

#mobile-installed-message .steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

#mobile-installed-message .step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

#mobile-installed-message .step .icon {
    font-size: 2rem;
    margin: 0;
}

#mobile-installed-message .step span {
    flex: 1;
    text-align: right;
    color: #555;
}

/* Installation Loading */
#installation-loading {
    display: none;
    padding: 2rem;
    text-align: center;
}

#installation-loading .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

#installation-loading h3 {
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #333;
}

#installation-loading p {
    color: #666;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Installation Success */
#installation-success {
    display: none;
    padding: 2rem;
    text-align: center;
}

#installation-success .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

#installation-success h3 {
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #4CAF50;
}

#installation-success p {
    color: #666;
}

/* PWA Open Instructions */
#pwa-open-instructions {
    display: none;
    padding: 2rem;
}

#pwa-open-instructions .icon {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

#pwa-open-instructions h3 {
    margin: 0 0 1rem 0;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #333;
    text-align: center;
}

#pwa-open-instructions > p {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
}

#pwa-open-instructions ol {
    text-align: right;
    padding-right: 1.5rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

#pwa-open-instructions .note {
    color: #999;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

#continue-browser-btn {
    width: 100%;
    max-width: 300px;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
}

#use-app-message a,
#pwa-launched-message a {
    color: #667eea;
    text-decoration: underline;
    font-size: 0.95rem;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 50%;
    transform: translateX(50%) translateY(-20px);
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1001;
    font-weight: 600;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(50%) translateY(0);
}

/* Size Selection Modal */
.size-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.size-modal-content {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.size-modal-content h3 {
    color: #0d47a1;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.size-modal-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.size-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.size-btn {
    flex: 1;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.close-size-modal {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

/* Cart Modal */
.cart-modal-overlay,
.checkout-modal-overlay,
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.cart-modal-content,
.checkout-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-modal-header,
.checkout-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.cart-modal-header h2,
.checkout-modal-header h2 {
    color: #0d47a1;
    margin: 0;
    font-size: 1.5rem;
}

.close-cart-modal,
.close-checkout-modal {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
    transition: all 0.3s ease;
}

.close-cart-modal:hover,
.close-checkout-modal:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.cart-items-list {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-size: 1.1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    gap: 1rem;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.cart-item-price {
    color: #0d47a1;
    font-weight: 700;
    margin: 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-qty-btn:hover {
    transform: scale(1.1);
}

.cart-qty {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

.cart-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f44336;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.cart-remove-btn:hover {
    transform: scale(1.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    border-top: 2px solid #f0f0f0;
    font-size: 1.25rem;
}

.checkout-btn,
.submit-order-btn {
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover,
.submit-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Checkout Form */
#checkout-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
    text-align: right;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    text-align: right;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    background: #f8f9ff;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* Success Modal */
.success-modal-content {
    background: white;
    border-radius: 24px;
    padding: 3rem 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem auto;
}

.success-modal-content h2 {
    color: #4CAF50;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.success-modal-content p {
    color: #666;
    margin-bottom: 2rem;
}

.close-success-modal {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
}

/* Checkout Modal Styles */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.checkout-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.checkout-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.checkout-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.close-checkout-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.close-checkout-modal:hover {
    color: var(--secondary-color);
}

.checkout-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.checkout-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.checkout-iframe-wrapper {
    width: 100%;
    height: 600px;
    position: relative;
}

.checkout-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .checkout-iframe-wrapper {
        height: 500px;
    }
}

