/* Banh Mi Catering Frontend Styles */
/* Using higher specificity to prevent Elementor CSS override */

/* CSS Reset for Elementor compatibility */
.banhmi-catering-order-form *,
.banhmi-catering-menu-display *,
.banhmi-catering-order-status * {
    box-sizing: border-box;
}

/* Force plugin styles to override Elementor */
.banhmi-catering-order-form,
.banhmi-catering-menu-display,
.banhmi-catering-order-status {
    all: initial;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Restore specific styling after reset */
.banhmi-catering-order-form *,
.banhmi-catering-menu-display *,
.banhmi-catering-order-status * {
    all: revert;
}

/* ===== FORM SECTIONS ===== */
.form-section,
body .form-section,
div.form-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
}

.form-section h3,
body .form-section h3,
div.form-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #6D3200;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
    align-items: start;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

input[type=number]{
    width: 80px;
}

/* ===== FORM INPUTS ===== */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
    max-width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6D3200;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(109, 50, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== LOCATION SELECTION ===== */
#location-selection {
    transition: all 0.3s ease;
    animation: slideDown 0.3s ease-out;
}

#location-selection.hidden {
    display: none;
}

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

#location-selection label {
    color: #2c3e50;
    font-weight: 600;
    display: block;
    font-size: 1rem;
}

#pickup_location {
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

#pickup_location:focus {
    outline: none;
    border-color: #6D3200;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(109, 50, 0, 0.1);
}

#pickup_location option {
    padding: 10px;
    background: #ffffff;
    color: #2c3e50;
}

/* ===== RADIO AND CHECKBOX STYLING ===== */
.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.3);
    accent-color: #6D3200;
}

.form-group label:has(input[type="radio"]),
.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    padding: 12px 0;
    font-size: 1rem;
    color: #2c3e50;
}

/* ===== REQUIRED FIELD STYLING ===== */
.form-group.required label::after {
    content: ' *';
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ===== FORM DESCRIPTION ===== */
.form-description {
    color: #5a6c7d;
    font-size: 1rem;
    margin-bottom: 25px;
    text-align: center;
    font-style: italic;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e1e8ed;
}

/* ===== MAIN FORM CONTAINER ===== */
.banhmi-catering-order-form,
body .banhmi-catering-order-form,
div.banhmi-catering-order-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    /* Ensure form is always visible */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* (Removed no-js fallback for container-based selector as container no longer uses no-js) */

/* (Removed debug-specific styling classes to reduce unused CSS) */

.banhmi-catering-order-form h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.8rem;
    margin-bottom: 35px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== MENU ITEMS STYLING ===== */
.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 25px 0;
    width: 100%;
    box-sizing: border-box;
}

.catering-menu-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.catering-menu-item:hover {
    border-color: #6D3200;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.catering-menu-item-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    gap: 8px;
}

.add-to-cart-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    position: relative;
    min-height: 60px;
}

/* ===== PRODUCT CODE STYLING ===== */
.product-code {
    background: #6D3200;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-align: center;
}

/* ===== QUANTITY INPUT GROUP ===== */
.quantity-input-group {
    display: none; /* Hidden by default */
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    margin-right: 10px; /* space before confirm button */
}
.add-confirm-buttons {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.add-to-cart-section .quantity-btn,
.add-to-cart-section .quantity-input {
    height: 44px; /* match button height */
}

.quantity-input-group .label-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-input-group .input-section {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

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

.quantity-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    padding: 0 8px;
}

.quantity-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    opacity: 1;
    height: 20px;
}

/* ===== ADD TO CART BUTTON ===== */
.add-to-cart-btn {
    background: #6D3200;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 20px;
    min-width: 120px;
    height: 44px;
}

.confirm-add-btn {
    background: #6D3200;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 20px;
    min-width: 120px;
    height: 44px;
}

.confirm-add-btn:hover { background: #5a2a00; }

.add-to-cart-btn:hover {
    background: #5a2a00;
}

.add-to-cart-btn:active {
    transform: translateY(1px);
}

/* Style for Confirm button state */
.add-to-cart-btn.confirm {
    background: #007bff;
}

.add-to-cart-btn.confirm:hover {
    background: #0056b3;
}

/* ===== CART STATUS ===== */
.cart-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

/* Mobile: Stack Update and Remove buttons vertically */
@media (max-width: 768px) {
    .cart-status {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        margin-top: 12px;
    }
    
    .update-quantity-btn,
    .remove-from-cart-btn {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: 6px;
        min-height: 36px;
    }
    
    /* Reorganize cart status layout for mobile */
    .add-to-cart-section {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    /* Quantity controls row */
    .quantity-input-group {
        order: 1;
        width: 100%;
        justify-content: center;
        margin: 0;
    }
    
    /* Cart status row (Update/Remove buttons) */
    .cart-status {
        order: 2;
        width: 100%;
        margin: 0;
        flex-direction: row;
        gap: 8px;
        justify-content: center;
    }
    
    .update-quantity-btn,
    .remove-from-cart-btn {
        flex: 1;
        max-width: 120px;
        min-height: 36px;
    }
}

.update-quantity-btn {
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.update-quantity-btn:hover {
    background: #138496;
}

.update-quantity-btn:active {
    transform: translateY(1px);
}

/* Icon-only update button variant (green) */
.update-quantity-btn.icon {
    background: #28a745;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
}

.update-quantity-btn.icon:hover { background: #218838; }

.remove-from-cart-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-from-cart-btn:hover {
    background: #c82333;
}

.remove-from-cart-btn:active {
    transform: translateY(1px);
}

/* Icon-only remove button variant */
.remove-from-cart-btn.icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
}

/* ===== PRODUCT HEADER TITLE ===== */
.catering-menu-item-header h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    line-height: 1.3;
}

/* Title and Price Row */
.title-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.product-title {
    flex: 0 0 80%;
    margin: 0;
}

.product-name {
    text-align: left;
    line-height: 1.3;
    display: block;
    width: 100%;
    margin-bottom: 0;
}

.menu-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.menu-item-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.menu-item-meta .minimum-quantity {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    color: #2e7d32;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.price {
    color: #6D3200;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    flex: 0 0 20%;
    text-align: right;
    margin: 0;
}

.description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 8px 0 0 0;
    text-align: left;
    width: 100%;
}

.catering-menu-item-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.catering-menu-item-controls .add-to-cart-btn {
    align-self: stretch;
    justify-content: center;
    min-width: auto;
}

.catering-menu-item-controls label {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    white-space: nowrap;
    font-size: 1rem;
}

.minimum-order {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    margin: 0;
}

.catering-menu-quantity {
    width: 80px;
    text-align: center;
    font-weight: 500;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 0.9rem;
    background: #fff;
}

.catering-menu-quantity:focus {
    outline: none;
    border-color: #6D3200;
}

.quantity-error {
    color: #e74c3c;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 8px;
    display: block;
    width: 100%;
}

/* removed unused: .btn-icon, .btn-text, .cart-count */

/* ===== NOTIFICATION SYSTEM ===== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    pointer-events: none;
}

.notification {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    transform: translateX(400px);
    transition: all 0.4s ease;
    max-width: 350px;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification.hide {
    transform: translateX(400px);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== ORDER SUMMARY STYLING ===== */
.order-summary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    padding: 30px;
    margin: 35px 0;
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure all children inside order summary use border-box to avoid overflow from padding */
.order-summary *,
.order-summary *::before,
.order-summary *::after {
    box-sizing: border-box;
    max-width: 100%;
}

.order-summary h4 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 1.1rem;
    font-weight: 500;
    flex-wrap: wrap;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.4rem;
    font-weight: 800;
    color: #6D3200;
    border-top: 2px solid #dee2e6;
    padding-top: 20px;
    margin-top: 15px;
}

/* ===== CART ITEMS CONTAINER ===== */
#cart-items-container {
    margin-bottom: 20px;
}

.cart-empty-message {
    text-align: center;
    padding: 30px 20px;
    color: #6c757d;
    font-style: italic;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px dashed #dee2e6;
}

.cart-empty-message p {
    margin: 0;
    font-size: 1rem;
}

/* ===== CART ACTIONS ===== */
.cart-actions {
    margin-top: 20px;
    text-align: center;
}

.clear-cart-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.clear-cart-btn:hover {
    background: #c82333;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.clear-cart-btn:active {
    transform: translateY(1px);
}

/* ===== SUBMIT BUTTON STYLING ===== */
.submit-order-btn {
    background: #6D3200;
    color: white;
    border: none;
    padding: 18px 36px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 6px 20px rgba(109, 50, 0, 0.3);
    margin-top: 20px;
}

/* Hover effects removed as requested */

.submit-order-btn:active {
    transform: translateY(2px);
    box-shadow: 0 4px 15px rgba(109, 50, 0, 0.3);
}

.submit-order-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ===== MODAL STYLING ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    animation: modalSlideIn 0.4s ease-out;
}

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

.close {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #95a5a6;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: #6D3200;
    background: #f8f9fa;
}

/* ===== MENU DISPLAY STYLING ===== */
.banhmi-catering-menu-display {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.banhmi-catering-menu-display h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.menu-grid {
    display: grid;
    gap: 25px;
}

.menu-columns-1 { grid-template-columns: 1fr; }
.menu-columns-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.menu-columns-3 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.menu-columns-4 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Mobile responsive adjustments for menu grid */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 360px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.menu-item-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

/* Mobile responsive adjustments for menu item cards */
@media (max-width: 768px) {
    .menu-item-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .menu-item-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .menu-item-card .description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .menu-item-card .menu-item-meta {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        text-align: center;
    }
    
    .menu-item-card .minimum-quantity {
        font-size: 0.8rem;
        text-align: center;
    }
}

/* Hover effects removed as requested */

.menu-item-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.menu-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}

.menu-item-meta .product-code {
    background: #6D3200;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: monospace;
    min-width: 60px;
    text-align: center;
}

.menu-item-meta .minimum-quantity {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    font-style: italic;
}

/* ===== ORDER STATUS STYLING ===== */
.banhmi-catering-order-status {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.banhmi-catering-order-status h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.check-status-btn {
    background: #6D3200;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

/* Hover effects removed as requested */

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .banhmi-catering-order-form,
    .banhmi-catering-menu-display,
    .banhmi-catering-order-status {
        padding: 20px;
    }
    
    .banhmi-catering-order-form h2,
    .banhmi-catering-menu-display h2,
    .banhmi-catering-order-status h2 {
        font-size: 2.2rem;
    }
    
    .form-section {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .catering-menu-item {
        padding: 20px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 25px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .banhmi-catering-order-form h2,
    .banhmi-catering-menu-display h2,
    .banhmi-catering-order-status h2 {
        font-size: 2rem;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .catering-menu-item {
        padding: 18px;
    }
    
    .banhmi-catering-order-form {
        padding: 15px;
    }
}

/* ===== UTILITY CLASSES ===== */
.no-menu-items {
    text-align: center;
    color: #5a6c7d;
    font-style: italic;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px dashed #e1e8ed;
    font-size: 1.1rem;
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6D3200;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== SUCCESS/ERROR MESSAGES ===== */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #c3e6cb;
    margin: 25px 0;
    font-size: 1rem;
    line-height: 1.6;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f5c6cb;
    margin: 25px 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== FORM STATES ===== */
.form-group.focused {
    transform: scale(1.01);
    transition: transform 0.2s ease;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    background: #fff5f5;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.banhmi-catering-order-form.submitting {
    opacity: 0.8;
    pointer-events: none;
}

.banhmi-catering-order-form.success {
    animation: successPulse 0.6s ease-in-out;
}

.banhmi-catering-order-form.error {
    animation: errorShake 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* ===== NOTICE STYLES ===== */
.notice {
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 12px;
    border-left: 4px solid;
    font-size: 1rem;
    line-height: 1.6;
}

.notice-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.notice-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* ===== ORDER STATUS RESULTS ===== */
.order-status-results {
    margin-top: 30px;
}

.order-status-results h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.order-status-item {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* Hover effects removed as requested */

.order-status-item h4 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.order-details p {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #555;
}

.status-pending { color: #ffc107; font-weight: bold; }
.status-confirmed { color: #17a2b8; font-weight: bold; }
.status-preparing { color: #007bff; font-weight: bold; }
.status-ready { color: #28a745; font-weight: bold; }
.status-completed { color: #6c757d; font-weight: bold; }
.status-cancelled { color: #dc3545; font-weight: bold; }

.no-orders {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* ===== BUTTON STYLES ===== */
.button {
    display: inline-block;
    padding: 8px 16px;
    background: #6D3200;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Hover effects removed as requested */

.button-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.catering-menu-item:focus {
    outline: 3px solid #6D3200;
    outline-offset: 2px;
}

.catering-menu-item:focus .catering-menu-quantity {
    outline: 2px solid #6D3200;
    outline-offset: 1px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .banhmi-catering-order-form,
    .banhmi-catering-menu-display,
    .banhmi-catering-order-status {
        box-shadow: none;
        border: none;
    }
    
    .submit-order-btn,
    .check-status-btn,
    .button {
        display: none;
    }
    
    .form-section {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* ===== CART SYSTEM STYLING ===== */
/* Note: Quantity controls are now handled by JavaScript showCartStatus method */

.cart-quantity-input {
    width: 80px;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.cart-quantity-input:focus {
    outline: none;
    border-color: #6D3200;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(109, 50, 0, 0.1);
}

.cart-quantity-input:invalid {
    border-color: #e74c3c;
    background: #fff5f5;
}

/* ===== QUANTITY CONTROLS ===== */
/* Note: Quantity controls are now handled by JavaScript showCartStatus method */





/* Mobile responsive styles for quantity controls */
@media (max-width: 768px) {
    .quantity-controls {
        padding: 4px 8px;
        gap: 4px;
        margin-top: 0;
        height: 40px;
    }
    
    .quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .quantity-input {
        min-width: 32px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .quantity-controls {
        padding: 3px 6px;
        gap: 3px;
        margin-top: 0;
        height: 36px;
    }
    
    .quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .quantity-input {
        min-width: 28px;
        height: 36px;
        font-size: 0.8rem;
    }
}

/* ===== CART ICON ===== */
.cart-icon {
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
}

.add-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-icon.has-items {
    background: #6D3200;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* ===== CART ITEMS DISPLAY ===== */
.cart-empty-message {
    text-align: center;
    color: #95a5a6;
    font-style: italic;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e1e8ed;
    margin-bottom: 20px;
}

/* ===== CART NOTIFICATION SYSTEM ===== */
.cart-message {
    margin-bottom: 15px;
    animation: slideInDown 0.3s ease-out;
    position: relative;
    z-index: 1000;
}

/* Floating notification for cart actions */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid;
}

.cart-notification.show {
    transform: translateX(0);
}

.cart-notification.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.cart-notification.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.cart-notification.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.cart-notification.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Cart message with enhanced styling */
.cart-message.notice {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
}

.cart-message.notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    opacity: 0.8;
}

.cart-message.notice-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cart-message.notice-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.cart-message.notice-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.cart-message.notice-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Enhanced slideInDown animation */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive notifications */
@media (max-width: 768px) {
    .cart-notification {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .cart-notification.show {
        transform: translateY(0);
    }
    
    .cart-message {
        margin-bottom: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cart-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .cart-message {
        margin-bottom: 10px;
        font-size: 0.85rem;
    }
}

/* ===== CART ITEM STYLING ===== */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #6D3200;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-name {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.3;
}

.cart-item-details {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.9rem;
    color: #5a6c7d;
    flex-wrap: wrap;
}

.cart-item-product-code {
    background: #6D3200;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    box-shadow: 0 1px 3px rgba(109, 50, 0, 0.2);
}

.cart-item-price {
    color: #6D3200;
    font-weight: 700;
    font-size: 1rem;
}



.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Cart item quantity button styles are defined in the main quantity-btn section above */

.cart-item-quantity-display {
    min-width: 45px;
    text-align: center;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Enhanced cart item styling */
.cart-item-details {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.cart-item-product-code {
    background: #6D3200;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    box-shadow: 0 1px 3px rgba(109, 50, 0, 0.2);
}

.cart-item-price-per-unit {
    color: #5a6c7d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== CART ITEM ROW STRUCTURE ===== */
.cart-item-quantity-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
}

.cart-item-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #e1e8ed;
}

/* ===== CART ITEM TOTAL ===== */
.cart-item-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.cart-item-total-label {
    font-size: 0.8rem;
    color: #5a6c7d;
    font-weight: 500;
}

.cart-item-total-price {
    font-size: 1.1rem;
    color: #6D3200;
    font-weight: 700;
}

.cart-quantity-input {
    width: 50px;
    text-align: center;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    background: #ffffff;
    transition: all 0.2s ease;
}

.cart-quantity-input:focus {
    outline: none;
    border-color: #6D3200;
    box-shadow: 0 0 0 3px rgba(109, 50, 0, 0.1);
}

.cart-quantity-btn {
    width: 28px;
    height: 28px;
    border: 2px solid #e1e8ed;
    background: #ffffff;
    color: #6D3200;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cart-quantity-btn:hover {
    border-color: #6D3200;
    background: #6D3200;
    color: white;
    transform: scale(1.05);
}

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

.cart-quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.remove-cart-item {
    background: #e74c3c;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.remove-cart-item:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.remove-cart-item:active {
    transform: scale(0.95);
}

/* ===== CART ACTIONS ===== */
.cart-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
    text-align: center;
}

.clear-cart-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-cart-btn:hover {
    background: #7f8c8d;
}

/* ===== MENU ITEM CONTROLS ===== */
.catering-menu-item-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.catering-menu-item-controls .add-to-cart-btn {
    align-self: stretch;
    justify-content: center;
    min-width: auto;
}

.catering-menu-item-controls .quantity-input-group {
    width: 100%;
    max-width: none;
}

/* ===== RESPONSIVE CART DESIGN ===== */
@media (max-width: 768px) {
    .catering-menu-item-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    

    
    .catering-menu-item-controls .add-to-cart-btn {
        align-self: stretch;
        justify-content: center;
        min-width: auto;
    }
    
    /* Mobile Order Summary Cart Items - Vertical Layout */
    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 18px;
        text-align: center;
    }
    
    /* Product Name - First Line */
    .cart-item-info {
        order: 1;
        width: 100%;
        text-align: center;
        margin-bottom: 0;
    }
    
    .cart-item-name {
        font-size: 1.1rem;
        font-weight: 700;
        color: #2c3e50;
        text-align: center;
        margin: 0;
        padding: 0;
        line-height: 1.3;
    }
    
    /* Quantity Controls - Second Line (After Product Name) */
    .cart-item-quantity-row {
        order: 2;
        width: 100%;
        justify-content: center;
        padding: 12px 0;
        margin: 0;
        border-top: 1px solid #e1e8ed;
        border-bottom: 1px solid #e1e8ed;
    }
    
    .cart-item-quantity {
        gap: 8px;
        justify-content: center;
    }
    
    .cart-quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        border: 2px solid #6D3200;
        background: #ffffff;
        color: #6D3200;
        border-radius: 8px;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }
    
    .cart-quantity-btn:hover {
        background: #6D3200;
        color: white;
        transform: scale(1.05);
    }
    
    .cart-quantity-input {
        width: 70px;
        height: 40px;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        border: 2px solid #e1e8ed;
        border-radius: 8px;
        background: #ffffff;
        flex-shrink: 0;
    }
    
    .cart-quantity-input:focus {
        border-color: #6D3200;
        box-shadow: 0 0 0 3px rgba(109, 50, 0, 0.1);
    }
    
    /* Total and Delete - Third Line (After Quantity Controls) */
    .cart-item-total-row {
        order: 3;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        margin: 0;
        border-top: none;
        border-bottom: none;
    }
    
    .cart-item-total {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-width: auto;
        gap: 20px;
        margin: 0;
        padding: 0;
    }
    
    .cart-item-total-label {
        font-size: 1rem;
        color: #5a6c7d;
        font-weight: 600;
    }
    
    .cart-item-total-price {
        font-size: 1.2rem;
        color: #6D3200;
        font-weight: 800;
    }
    
    .remove-cart-item {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        background: #e74c3c;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
        margin-left: 15px;
    }
    
    .remove-cart-item:hover {
        background: #c0392b;
        transform: scale(1.1);
    }
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Menu Items Grid - Single column layout for mobile */
    .menu-items-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 10px;
    }
    
    /* Menu Item Box */
    .catering-menu-item {
        padding: 12px;
        margin: 0;
        border-radius: 6px;
        min-width: 0;
        width: 100%;
    }
    
    /* Menu Item Header */
    .catering-menu-item-header {
        gap: 8px;
        margin-bottom: 12px;
        align-items: flex-start;
        text-align: left;
        flex-direction: column;
    }
    
    /* Title and Price Row - Mobile */
    .title-price-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .catering-menu-item-header h4 {
        font-size: 1.1rem;
        text-align: left;
        flex: 0 0 80%;
        margin: 0;
        min-width: 0;
    }
    
    /* Add to Cart Section */
    .add-to-cart-section {
        margin-top: auto;
        justify-content: flex-end;
        min-height: 50px;
    }
    
    /* Product Name */
    .product-name {
        font-size: 0.95rem;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Price */
    .price {
        font-size: 0.9rem;
        margin: 0;
        flex: 0 0 20%;
        text-align: right;
    }
    
    /* Description */
    .description {
        font-size: 0.85rem;
        margin: 6px 0 0 0;
        text-align: left;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Quantity Input Group */
    .quantity-input-group {
        margin-bottom: 0;
        margin-right: 8px;
        height: 40px;
    }
    
    .quantity-input-group label {
        font-size: 0.8rem;
    }
    
    .quantity-controls {
        border-radius: 4px;
    }
    
    .quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .quantity-input {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    /* Cart Status */
    .cart-status {
        margin-top: 6px;
    }
    
    .update-quantity-btn {
        font-size: 0.75rem;
        padding: 3px 6px;
        margin-right: 6px;
    }
    
    .remove-from-cart-btn {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    /* Add to Cart Button */
    .add-to-cart-btn {
        padding: 0 16px;
        font-size: 0.85rem;
        min-width: 100px;
        align-self: flex-end;
        flex-shrink: 0;
        height: 40px;
    }
    
    /* Style for Confirm button state */
    .add-to-cart-btn.confirm {
        background: #007bff;
    }

    .add-to-cart-btn.confirm:hover {
        background: #0056b3;
    }
    
    /* Menu Item Controls */
    .catering-menu-item-controls {
        gap: 12px;
        padding: 15px 0;
        align-items: center;
    }
    
    /* Cart Quantity Input */
    .cart-quantity-input {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .menu-items-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        padding: 0 5px;
    }
    
    .catering-menu-item {
        padding: 12px;
        border-radius: 6px;
        min-width: 0;
        width: 100%;
    }
    
    .catering-menu-item-header h4 {
        font-size: 1rem;
        text-align: left;
        min-width: 0;
    }
    
    .add-to-cart-section {
        margin-top: auto;
        justify-content: flex-end;
        min-height: 45px;
    }
    
    .product-name {
        font-size: 0.9rem;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .price {
        font-size: 0.85rem;
        flex: 0 0 20%;
        text-align: right;
    }
    
    .description {
        font-size: 0.85rem;
        margin: 6px 0 0 0;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .add-to-cart-btn {
        padding: 0 10px;
        font-size: 0.85rem;
        flex-shrink: 0;
        height: 38px;
    }
    
    /* Style for Confirm button state */
    .add-to-cart-btn.confirm {
        background: #007bff;
    }

    .add-to-cart-btn.confirm:hover {
        background: #0056b3;
    }
    

    
    .cart-quantity-input {
        max-width: 150px;
    }
    
    .update-quantity-btn {
        font-size: 0.75rem;
        padding: 3px 6px;
        margin-right: 6px;
    }
    
    .remove-from-cart-btn {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .menu-items-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 0 2px;
    }
    
    .catering-menu-item {
        padding: 10px;
        border-radius: 6px;
        min-width: 0;
        width: 100%;
    }
    
    .catering-menu-item-header {
        gap: 6px;
        align-items: flex-start;
        text-align: left;
        flex-direction: column;
    }
    
    .title-price-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 6px;
    }
    
    .catering-menu-item-header h4 {
        font-size: 0.95rem;
        text-align: left;
        flex: 0 0 80%;
        min-width: 0;
    }
    
    .add-to-cart-section {
        margin-top: auto;
        justify-content: flex-end;
        min-height: 42px;
    }
    
    .product-name {
        font-size: 0.85rem;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .price {
        font-size: 0.8rem;
        flex: 0 0 20%;
        text-align: right;
    }
    
    .description {
        font-size: 0.85rem;
        margin: 6px 0 0 0;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .add-to-cart-btn {
        padding: 0 8px;
        font-size: 0.8rem;
        flex-shrink: 0;
        height: 36px;
    }
    
    /* Style for Confirm button state */
    .add-to-cart-btn.confirm {
        background: #007bff;
    }

    .add-to-cart-btn.confirm:hover {
        background: #0056b3;
    }
    
    .catering-menu-item-controls {
        gap: 12px;
        padding: 15px 0;
    }
    

    
    .cart-quantity-input {
        max-width: 120px;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .update-quantity-btn {
        font-size: 0.7rem;
        padding: 2px 5px;
        margin-right: 5px;
    }
    
    .remove-from-cart-btn {
        font-size: 0.7rem;
        padding: 2px 5px;
    }
    
    .order-summary {
        padding: 15px;
        margin: 15px 0;
    }
    
    .submit-order-btn {
        padding: 16px 18px;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .menu-items-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 0;
    }
    
    .catering-menu-item {
        padding: 12px 10px;
        border-radius: 6px;
        min-width: 0;
        width: 100%;
    }
    
    .title-price-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 6px;
    }
    
    .catering-menu-item-header h4 {
        font-size: 1rem;
        text-align: left;
        flex: 0 0 80%;
        min-width: 0;
    }
    
    .add-to-cart-section {
        margin-top: auto;
        justify-content: flex-end;
        min-height: 40px;
    }
    
    .product-name {
        font-size: 0.9rem;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .price {
        font-size: 0.85rem;
        flex: 0 0 20%;
        text-align: right;
    }
    
    .description {
        font-size: 0.8rem;
        margin: 6px 0 0 0;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .add-to-cart-btn {
        padding: 0 6px;
        font-size: 0.75rem;
        flex-shrink: 0;
        height: 34px;
    }
    
    /* Style for Confirm button state */
    .add-to-cart-btn.confirm {
        background: #007bff;
    }

    .add-to-cart-btn.confirm:hover {
        background: #0056b3;
    }
    
    .cart-quantity-input {
        max-width: 100px;
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .update-quantity-btn {
        font-size: 0.65rem;
        padding: 2px 4px;
        margin-right: 4px;
    }
    
    .remove-from-cart-btn {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
}

/* ===== LANDSCAPE ORIENTATION OPTIMIZATION ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .catering-menu-item {
        padding: 15px 20px;
    }
    
    .catering-menu-item-header {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .title-price-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .catering-menu-item-header h4 {
        text-align: left;
        flex: 0 0 80%;
    }
    
    .add-to-cart-section {
        justify-content: flex-end;
    }
    
    .product-name {
        text-align: left;
    }
    
    .price {
        flex: 0 0 20%;
        text-align: right;
    }
    
    .description {
        text-align: left;
    }
    
    .catering-menu-item-controls {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .update-quantity-btn {
        font-size: 0.8rem;
        padding: 4px 8px;
        margin-right: 8px;
    }
    
    .remove-from-cart-btn {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATION ===== */
@media (hover: none) and (pointer: coarse) {
    /* Optimize for touch devices */
    .add-to-cart-btn {
        min-height: 44px; /* Minimum touch target size */
    }
    
    /* Style for Confirm button state on touch devices */
    .add-to-cart-btn.confirm {
        background: #007bff;
    }

    .add-to-cart-btn.confirm:hover {
        background: #0056b3;
    }
    
    .cart-quantity-input {
        min-height: 44px;
    }
    
    .quantity-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .remove-cart-item {
        min-height: 44px;
        min-width: 44px;
    }
    
    .update-quantity-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .remove-from-cart-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .submit-order-btn {
        min-height: 48px;
    }
    
    .clear-cart-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* (Removed stepper navigation UI styles - UI no longer rendered) */

/* ===== STEPPER CONTENT ===== */
.stepper-content { display: none; }
.stepper-content.active { display: block !important; }
.stepper-content[data-step="1"] { display: none; }

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

.step-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
}

.step-header h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.step-description {
    color: #6c757d;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* ===== MINI CART PREVIEW ===== */
.mini-cart-preview {
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mini-cart-preview h4 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.mini-cart-total {
    text-align: center;
    padding: 15px 0;
    border-top: 2px solid #e1e8ed;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #6D3200;
}

/* ===== STEP NAVIGATION ===== */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 2px solid #e1e8ed;
}

.btn-prev,
.btn-next {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-prev:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-next {
    background: #6D3200;
    color: white;
}

.btn-next:hover:not(:disabled) {
    background: #5a2a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 50, 0, 0.3);
}

.btn-next:disabled {
    background: #e1e8ed;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== ORDER SUMMARY IN STEP 4 ===== */
.customer-summary,
.order-info-summary {
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.customer-summary h4,
.order-info-summary h4 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 2px solid #e1e8ed;
    padding-bottom: 10px;
}

.customer-summary p,
.order-info-summary p {
    margin: 8px 0;
    color: #495057;
    font-size: 1rem;
}

.customer-summary strong,
.order-info-summary strong {
    color: #2c3e50;
    font-weight: 600;
}

/* ===== RESPONSIVE STEPPER ===== */
@media (max-width: 768px) {
    .stepper-navigation {
        flex-direction: column;
        gap: 20px;
        padding: 15px 0;
    }
    
    .stepper-navigation::before {
        display: none;
    }
    
    .stepper-step {
        padding: 0 10px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .step-title {
        font-size: 12px;
    }
    
    .step-header h3 {
        font-size: 1.5rem;
    }
    
    .step-description {
        font-size: 1rem;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-prev,
    .btn-next {
        width: 100%;
        justify-content: center;
    }
    
    .mini-cart-preview {
        max-width: 100%;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .stepper-navigation {
        gap: 15px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .step-title {
        font-size: 11px;
    }
    
    .step-header {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .step-header h3 {
        font-size: 1.3rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
}

/* ===== MINI CART ITEMS ===== */
.mini-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e1e8ed;
}

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

.mini-cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.mini-cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.mini-cart-item-quantity {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

/* Controls removed from mini cart; container retained for layout but no interactive controls */
.mini-cart-item-controls { display: none; }

.mini-cart-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: #6D3200;
    margin-left: 15px;
}

/* Order Summary Table */
.order-summary-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.order-summary-table td { padding: 8px 6px; vertical-align: middle; background: transparent !important; }
.order-summary-table tr { background: #ffffff; }
.order-summary-table .mini-col-info { display: flex; align-items: center; gap: 10px; }
.order-summary-table .mini-col-price { text-align: right; white-space: nowrap; color: #2c3e50; font-weight: 600; }
.order-summary-table .mini-col-qty { text-align: right; white-space: nowrap; color: #2c3e50; font-weight: 600; }
/* Fixed column sizing to prevent overflow */
.order-summary-table .mini-col-info { width: 100%; word-break: break-word; overflow-wrap: anywhere; }
.order-summary-table .mini-col-price { width: 15%; }
.order-summary-table .mini-col-qty { width: 25%; }

/* Mobile containment for order summary */
@media (max-width: 768px) {
    .order-summary {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .order-summary-table {
        min-width: 320px;
    }
    /* Ensure controls don't wrap to a second line off-screen */
    .order-summary-table .mini-col-qty { white-space: normal; }
    .mini-cart-item-controls { flex-wrap: nowrap; }
}

/* Very small screens: ensure no overflow beyond viewport */
@media (max-width: 480px) {
    .order-summary {
        width: 100%;
        max-width: 100vw;
        overflow-x: auto;
        padding: 16px;
        margin: 16px 0;
    }
    .summary-row { gap: 10px; }
    .summary-row span { max-width: 100%; word-break: break-word; }
    .order-summary-table .mini-col-info { width: 100%; }
    .order-summary-table .mini-col-price { width: 14%; }
    .order-summary-table .mini-col-qty { width: 28%; }
    .mini-cart-item-controls { gap: 6px; }
    .quantity-btn.mini { width: 28px; height: 28px; font-size: 1rem; }
    .mini-cart-quantity-input { width: 48px; height: 32px; font-size: 0.95rem; }
}

/* Compact quantity input in order summary */
.mini-cart-quantity-input {
    width: 54px;
    height: 36px;
    text-align: center;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
}
.quantity-btn.mini {
    width: 32px;
    height: 32px;
    border: 2px solid #e1e8ed;
    background: #ffffff;
    color: #6D3200;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
}
