/* Cart and Menu Integration Styles */

/* Cart Section */
.cart-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.cart-section h3 {
    color: #8B0000;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Pacifico', cursive;
    text-align: center;
}

.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: #f9f9f9;
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.cart-item-customizations {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #8B0000;
    background: white;
    color: #8B0000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #8B0000;
    color: white;
}

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

.cart-item-price {
    font-weight: 600;
    color: #8B0000;
    min-width: 60px;
    text-align: right;
}

.remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background-color: #ffe6e6;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.empty-cart i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.cart-total {
    border-top: 2px solid #8B0000;
    padding-top: 1rem;
    text-align: center;
    font-size: 1.2rem;
    color: #8B0000;
}

/* Add to Cart Button */
.add-to-cart-btn {
    background: linear-gradient(135deg, #8B0000, #660000);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

.add-to-cart-btn i {
    font-size: 1.1rem;
}

/* Time Slot Selection */
.time-slots {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.time-slot {
    flex: 1;
    padding: 12px;
    border: 2px solid #8B0000;
    background: white;
    color: #8B0000;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.time-slot:hover {
    background: #8B0000;
    color: white;
}

.time-slot.selected {
    background: #8B0000;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

/* Receipt Styles */
.receipt-section {
    background: linear-gradient(rgba(240, 240, 240, 0.95), rgba(245, 245, 245, 0.95)), 
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
}

.receipt-container {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.receipt-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #8B0000;
}

.receipt-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.receipt-header h2 {
    color: #8B0000;
    font-family: 'Pacifico', cursive;
    margin-bottom: 0.5rem;
}

.receipt-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #8B0000, transparent);
    margin: 1rem 0;
}

.receipt-content {
    margin-bottom: 2rem;
}

.receipt-order-info,
.receipt-customer,
.receipt-items,
.receipt-total,
.receipt-notes,
.receipt-pickup {
    margin-bottom: 1.5rem;
}

.receipt-order-info h3 {
    color: #8B0000;
    margin-bottom: 1rem;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.receipt-total h4 {
    color: #8B0000;
    font-size: 1.3rem;
    text-align: center;
    border-top: 2px solid #8B0000;
    padding-top: 1rem;
}

.receipt-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.receipt-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.print-btn {
    background: #8B0000;
    color: white;
}

.print-btn:hover {
    background: #660000;
}

.email-btn {
    background: #0066cc;
    color: white;
}

.email-btn:hover {
    background: #004499;
}

.close-btn {
    background: #666;
    color: white;
}

.close-btn:hover {
    background: #555;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    max-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification-success {
    background: #4CAF50;
}

.notification-warning {
    background: #ff9800;
}

.notification-error {
    background: #f44336;
}

.notification-info {
    background: #2196F3;
}

.notification button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .time-slots {
        flex-direction: column;
    }
    
    .receipt-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .receipt-actions {
        flex-direction: column;
    }
    
    .cart-item-controls {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .receipt-container {
        padding: 1.5rem;
    }
    
    .cart-section {
        padding: 1.5rem;
    }
}

/* Item Actions Container */
.item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.item-actions .quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.item-actions .add-to-cart-btn {
    width: 100%;
    justify-content: center;
}

/* Menu Item Layout */
.menu-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-item .item-info {
    margin-bottom: 10px;
}

.menu-item .item-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.menu-item .item-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.menu-item .item-price {
    font-weight: bold;
    color: #4CAF50;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Flavor Selection Styling */
.flavor-selection {
    margin: 10px 0;
}

.flavor-selection label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.flavor-selection select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

/* Customization Options Styling */
.customization-options {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.customization-options h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.customization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.customization-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.customization-option input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.customization-option label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin: 0;
}

/* Responsive Design for Menu Items */
@media (max-width: 768px) {
    .menu-item {
        padding: 12px;
    }
    
    .item-actions {
        gap: 8px;
    }
    
    .customization-grid {
        grid-template-columns: 1fr;
    }
    
    .flavor-selection select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
} 