* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
}

.container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Cafe Logo & Branding */
.cafe-logo {
    font-size: 80px;
    text-align: center;
    margin: 20px 0;
    animation: fadeIn 0.6s ease-in;
}

.cafe-name {
    text-align: center;
    color: #6f4e37;
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0 30px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: fadeIn 0.8s ease-in;
}

.cafe-logo-small {
    font-size: 18px;
    font-weight: 600;
    color: #6f4e37;
    margin-bottom: 10px;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Order For Selection Screen */
.order-for-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.order-for-card {
    background-color: white;
    border: 3px solid #e0e0e0;
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.order-for-card:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,123,255,0.15);
}

.order-for-card:active {
    transform: translateY(-2px);
}

.order-icon {
    font-size: 72px;
    line-height: 1;
}

.order-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.order-for-card:hover .order-label {
    color: #007bff;
}

/* Success Screen */
.success-content {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 60px;
    color: white;
    font-weight: bold;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-content h2 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 28px;
}

.success-content p {
    font-size: 16px;
    margin-bottom: 30px;
}

.success-content .btn-primary {
    max-width: 300px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
}

button {
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

button:active {
    opacity: 0.8;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #e2e6ea;
    color: #333;
    padding: 10px;
    width: auto;
    font-size: 14px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.menu-item-btn {
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    gap: 12px;
    transition: all 0.2s ease;
    min-height: 180px;
}

.menu-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.menu-item-emoji {
    font-size: 80px;
    line-height: 1;
}

.menu-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

.menu-item-name {
    font-size: 15px;
    text-align: center;
    line-height: 1.3;
    font-weight: 600;
}

#cart {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#cart-items {
    list-style-type: none;
    padding: 0;
    margin: 0 0 15px 0;
}

#cart-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

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

.cart-item-name {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    word-break: break-word;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 4px 8px;
}

.qty-btn {
    padding: 4px 10px;
    width: auto;
    min-width: 30px;
    background-color: white;
    color: #007bff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.qty-btn:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.qty-btn:active {
    transform: scale(0.95);
}

.quantity {
    min-width: 25px;
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.remove-btn {
    padding: 4px 10px;
    width: auto;
    min-width: 32px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.remove-btn:hover {
    background-color: #e60000;
    transform: scale(1.05);
}
/* Variant Modal */
#variant-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

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

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    width: 450px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #1c1c1c;
}

.modal-content p {
    margin-bottom: 15px;
    color: #666;
}

#variant-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Variant Group Styling */
.variant-group {
    margin-bottom: 10px;
}

.variant-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.group-title {
    font-size: 16px;
    font-weight: 600;
    color: #1c1c1c;
}

.required-badge {
    font-size: 11px;
    text-transform: uppercase;
    color: #ff6b6b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.variant-options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Option Card Styling - Modern like Swiggy/Zomato */
.variant-option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
}

.variant-option-card:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.variant-option-card.selected {
    border-color: #007bff;
    background-color: #f0f7ff;
}

/* Radio Button Indicator */
.radio-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.variant-option-card.selected .radio-indicator {
    border-color: #007bff;
    border-width: 6px;
}

.radio-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.2s ease;
}

.variant-option-card.selected .radio-inner {
    background-color: white;
}

/* Checkbox Indicator */
.checkbox-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background-color: white;
}

.variant-option-card.selected .checkbox-indicator {
    border-color: #007bff;
    background-color: #007bff;
}

.checkmark {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.variant-option-card.selected .checkmark {
    opacity: 1;
}

.option-label {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* Add to Cart Button in Modal */
.add-to-cart-btn {
    margin-top: 10px;
    background-color: #007bff;
    color: white;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.add-to-cart-btn:disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.add-to-cart-btn:not(:disabled):hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 16px;
        max-height: 85vh;
    }
    
    .variant-option-card {
        padding: 12px 14px;
    }
    
    .option-label {
        font-size: 14px;
    }
    
    .group-title {
        font-size: 15px;
    }
    
    .order-for-options {
        gap: 12px;
    }
    
    .order-for-card {
        padding: 25px 15px;
        min-height: 160px;
    }
    
    .order-icon {
        font-size: 60px;
    }
    
    .order-label {
        font-size: 16px;
    }
    
    .success-content {
        padding: 40px 15px;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 48px;
        margin-bottom: 25px;
    }
    
    .success-content h2 {
        font-size: 24px;
    }
    
    .success-content p {
        font-size: 15px;
    }
    
    .menu-item-btn {
        min-height: 160px;
        padding: 16px 8px;
    }
    
    .menu-item-emoji {
        font-size: 64px;
    }
    
    .menu-item-image {
        width: 100px;
        height: 100px;
    }
    
    .menu-item-name {
        font-size: 14px;
    }
    
    #cart-items li {
        padding: 10px 0;
    }
    
    .cart-item-name {
        font-size: 13px;
    }
    
    .quantity-controls {
        gap: 6px;
        padding: 3px 6px;
    }
    
    .qty-btn {
        padding: 3px 8px;
        min-width: 26px;
        font-size: 16px;
    }
    
    .quantity {
        font-size: 14px;
        min-width: 22px;
    }
    
    .remove-btn {
        padding: 3px 8px;
        min-width: 28px;
        font-size: 18px;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: bottom 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    bottom: 20px;
}

@media (max-width: 768px) {
    .toast {
        bottom: -100px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .toast.show {
        bottom: 80px;
    }
}
