/* Google Fonts - Montserrat for headers, Open Sans for body text */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* Unified Notification System Components */
@import url('components/notifications.css');

/* Global Mobile-First Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Prevent elements from causing horizontal scroll */
.container, .hero-content, .products-grid, .steps-grid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Product image placeholder styles */
/* Utility class to hide elements */
.hidden {
    display: none !important;
}

/* Action buttons for dashboard quick actions (second row) */
.action-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px #0001;
    text-decoration: none;
    text-align: center;
}
.action-btn:hover {
    background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);
    color: #fff;
}
/* ===============================
   DASHBOARD PAGE STYLES & BUTTON UTILITIES
   =============================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Profile Actions Container */
.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.btn-profile-action {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    margin-right: 0;
    margin-bottom: 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-profile-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Danger button styling for Change Password */
.btn-profile-action.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-color: #dc3545;
}

.btn-profile-action.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    border-color: #bd2130;
    color: white;
}

.dashboard-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 2rem;
    position: relative;
}
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Ensure buttons have consistent styling */
.quick-actions-grid .btn-update,
.quick-actions-grid .btn-link,
.quick-actions-grid .btn-scroll {
    text-align: center;
    padding: 12px 16px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

/* Make btn-link buttons in Quick Actions match the blue gradient style of btn-scroll */
.quick-actions-grid .btn-link {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border-color: #4a90e2;
    position: relative;
    overflow: hidden;
}

.quick-actions-grid .btn-link:hover {
    background: linear-gradient(135deg, #357abd 0%, #2968a3 100%);
    color: white;
    border-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    text-decoration: none;
}

/* Remove tablet breakpoint - keep consistent single column */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}
.dashboard-section {
    margin-bottom: 2.5rem;
}
.preference-section {
    margin-bottom: 2rem;
}
.preference-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

/* Hide the default checkbox for toggle switches */
.preference-toggle input[type="checkbox"] {
    display: none;
}

.preference-slider {
    width: 50px;
    height: 26px;
    background: #e9ecef;
    border-radius: 13px;
    position: relative;
    transition: background 0.3s ease;
    margin-right: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

.preference-slider:before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Checked state for toggle switches */
.preference-toggle input[type="checkbox"]:checked + .preference-slider {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a) !important;
}

.preference-toggle input[type="checkbox"]:checked + .preference-slider:before {
    left: 27px !important;
}
.restriction-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.restriction-item input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007bff; /* Modern browsers checkbox color */
    border: 2px solid #ddd;
    border-radius: 3px;
    background: white;
    position: relative;
    flex-shrink: 0;
    /* Hide default browser appearance and create custom styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Ensure checkbox checked state is visible - with higher specificity */
.restriction-item input[type="checkbox"]:checked {
    background-color: #007bff !important;
    border-color: #007bff !important;
}

/* Custom checkmark for better visibility - SINGLE DEFINITION */
.restriction-item input[type="checkbox"]:checked::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 12px;
    position: absolute;
    top: -1px;
    left: 2px;
    line-height: 1;
    display: block;
}

.restriction-item label {
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
}
.btn-update {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #2c2c2c;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn-update:hover {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    border-color: #2c2c2c;
    transform: translateY(-1px);
}

/* Scroll buttons - special styling for navigation actions */
.btn-scroll {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border-color: #4a90e2;
    position: relative;
    overflow: hidden;
}

.btn-scroll:hover {
    background: linear-gradient(135deg, #357abd 0%, #2968a3 100%);
    color: white;
    border-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-scroll:active {
    transform: translateY(0);
}

/* Touch-friendly sizing for mobile */
@media (max-width: 768px) {
    .btn-scroll {
        min-height: 48px; /* iOS recommended touch target */
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

/* Add Address Button */
.add-address-btn {
    margin-top: 10px;
}
.btn-link {
    background: none;
    color: #007bff;
    border: none;
    box-shadow: none;
    text-decoration: underline;
    padding: 0;
    margin: 0 0.5rem 0.5rem 0;
    font-size: 1rem;
    cursor: pointer;
}
.btn-link:hover {
    color: #0056b3;
    text-decoration: underline;
}
.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: #fff !important;
}
.btn-save {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
    color: #fff !important;
}
.btn-cancel {
    background: #e9ecef !important;
    color: #333 !important;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    margin-left: 0.5rem;
    cursor: pointer;
}
.btn-cancel:hover {
    background: #d6d8db !important;
}
.update-form-container {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 2rem 2.5rem;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.update-form-container.hidden {
    display: none !important;
}

.update-form-container h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.25rem;
}

/* ===============================
   RECENT ORDERS STYLES
   =============================== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-id {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.order-total {
    font-weight: 700;
    color: #28a745;
    font-size: 1rem;
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.order-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.order-items-count {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.btn-reorder {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-reorder:hover {
    background: #0056b3;
}

/* ===============================
   ENHANCED ORDER ITEMS STYLES
   =============================== */

.order-item-enhanced {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #007bff;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-item-enhanced:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.order-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.order-status-row {
    margin-bottom: 1rem;
}

.order-items-preview {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
}

.order-item-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.order-item-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.item-quantity {
    font-size: 0.85rem;
    color: #6c757d;
}

.item-price {
    font-weight: 600;
    color: #28a745;
    font-size: 0.9rem;
}

.order-total-row {
    text-align: right;
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid #e9ecef;
}

.order-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-details {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-details:hover {
    background: #5a6268;
}

.btn-feedback {
    background: #f8f9fa;
    color: #2c2c2c;
    border: 2px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.btn-feedback:hover {
    background: #2c2c2c;
    color: white;
    border-color: #2c2c2c;
}

.order-notes {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

/* ===============================
   ORDER DETAILS MODAL STYLES
   =============================== */

.order-details-modal {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

/* ===============================
   FEEDBACK MODAL STYLES
   =============================== */
.feedback-modal {
    max-width: 500px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.rating-text {
    margin-top: 0.5rem;
    font-weight: 600;
    min-height: 1.5rem;
    transition: all 0.2s ease;
}

.rating-text.visible {
    opacity: 1;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    min-height: 44px;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rating-section {
    text-align: center;
}

.rating-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    display: inline-block;
    padding: 4px;
    transition: opacity 0.2s ease, transform 0.1s ease;
    opacity: 0.3;
}

.star:hover {
    transform: scale(1.1);
}

.rating-text {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-height: 1.5rem;
}

.rating-text.visible {
    opacity: 1;
}

.comment-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.comment-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.comment-section textarea:focus {
    outline: none;
    border-color: #007bff;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-submit-feedback {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    min-height: 44px;
    position: relative;
    z-index: 1;
}

.btn-submit-feedback:disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.btn-submit-feedback.enabled {
    background: #28a745 !important;
    cursor: pointer !important;
    opacity: 1;
}

.btn-submit-feedback.enabled:hover {
    background: #218838 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-submit-feedback:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-cancel:hover {
    background: #5a6268;
}

.order-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    font-size: 0.95rem;
}

.info-item strong {
    color: #333;
}

.order-notes-detail {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    color: #6c757d;
}

.order-items-detail h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.order-detail-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.item-image-large {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-full-details {
    flex: 1;
}

.item-name-large {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.item-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.item-ingredients {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.item-category {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.75rem;
}

.item-dietary-section {
    margin-bottom: 1rem;
}

.item-dietary-section strong {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.item-dietary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.dietary-tag {
    background: #e8f5e8;
    color: #155724;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #c3e6cb;
}

.item-pricing {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.item-quantity {
    font-weight: 600;
    color: #495057;
}

.item-unit-price {
    color: #6c757d;
}

.item-total-price {
    font-weight: 700;
    color: #28a745;
    margin-left: auto;
}

.item-full-details h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.item-description {
    color: #6c757d;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.item-ingredients,
.item-category {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}



.item-pricing {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.item-quantity {
    font-weight: 600;
    color: #495057;
}

.item-unit-price {
    color: #6c757d;
}

.item-total-price {
    font-weight: 700;
    color: #28a745;
    margin-left: auto;
}

.order-actions-modal {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
}

.order-actions-modal .btn-reorder {
    padding: 12px 24px;
    font-size: 1rem;
}

.order-actions-modal .btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.order-actions-modal .btn-cancel:hover {
    background: #5a6268;
}

/* ===============================
   RESPONSIVE STYLES
   =============================== */

@media (max-width: 768px) {
    .order-item-enhanced {
        padding: 1rem;
    }
    
    .order-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .order-item-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
    }
    
    .order-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-details,
    .btn-reorder,
    .btn-feedback {
        width: 100%;
        justify-content: center;
    }
    
    .order-detail-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .item-image-large {
        width: 100%;
        height: 200px;
        align-self: center;
    }
    
    .item-pricing {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .item-total-price {
        margin-left: 0;
    }
    
    .order-actions-modal {
        flex-direction: column;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .feedback-modal {
        width: 98%;
        margin: 1rem;
    }
    
    .star-rating {
        gap: 0.5rem;
    }
    
    .star {
        font-size: 1.8rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-submit-feedback,
    .btn-cancel {
        width: 100%;
    }
}

/* ===============================
   DIETARY PREFERENCES STYLES
   =============================== */
.dietary-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.restriction-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Custom dietary restrictions styling */
.restriction-item.custom-restriction {
    opacity: 0.8;
    border: 1px dashed #ccc;
    padding: 0.5rem;
    border-radius: 4px;
    background: #f9f9f9;
}

.custom-tag-note {
    color: #666;
    font-style: italic;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* ===============================
   LOADING STATES
   =============================== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-bottom: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===============================
   ALERT/MESSAGE STYLES - MOBILE FIRST DESIGN
   =============================== */

/* Modern Flash Message System - Mobile First */
.flash-message {
    position: fixed;
    top: 90px; /* Account for header height on mobile */
    left: 10px;
    right: 10px;
    z-index: 10001; /* Higher than header's z-index: 1000 */
    border-radius: 8px;
    font-size: 16px; /* Prevent zoom on iOS */
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    animation: slideInDown 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.flash-message__content {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.flash-message__text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.flash-message__close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
    width: 44px; /* iOS recommended touch target */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.flash-message__close:hover,
.flash-message__close:focus {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
}

.flash-message--success {
    background: rgba(34, 197, 94, 0.95);
    color: white;
}

.flash-message--error {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop and larger screens */
@media (min-width: 769px) {
    .flash-message {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        max-width: 600px;
        margin: 0 auto 1rem auto;
        animation: slideInRight 0.3s ease-out;
    }
}

/* Legacy Alert styles moved to /assets/css/components/notifications.css for consolidation */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===============================
   LOADING STATES
   =============================== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p,
.loading-spinner p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* ===============================
   ALERT MESSAGES
   =============================== */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}
.main-content {
    margin-top: 0.5rem;
    padding: 1rem;
}
.hero-section {
    text-align: center;
    margin-bottom: 2.5rem;
}
/* ===============================
   PRODUCT MODAL STYLES
   
   Z-INDEX HIERARCHY:
   - Base product-modal: 10000
   - Update info modal: 10001 (appears over dashboard)
   - Address modal: 10002 (appears over update modal)
   - Notifications: 10000 (same level as base modals)
   =============================== */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    transition: opacity 0.2s;
}
.product-modal.hidden {
    display: none !important;
}

/* Dashboard Modal Enhancements */
.product-modal:not(.hidden) {
    display: flex !important;
}

/* Feedback Modal Styles */
.feedback-modal .star {
    cursor: pointer !important;
    user-select: none !important;
}

.feedback-modal .btn-submit-feedback:disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
}

.feedback-modal .btn-submit-feedback.enabled {
    background: #28a745 !important;
    cursor: pointer !important;
}

/* Profile Form Container Visibility */
.update-form-container:not(.hidden) {
    display: block !important;
}

.password-change-container:not(.hidden) {
    display: block !important;
}

/* Update Info Modal Specific Styling */
#update-info-container.product-modal {
    z-index: 10001; /* Higher than base product-modal (10000) */
}

#update-info-container .modal-content {
    max-width: 600px; /* Wider for form content */
    width: 95vw; /* Responsive width */
    max-height: 85vh; /* Allow more height for form */
}

/* Form styling within modal */
#update-info-container .form-group {
    margin-bottom: 1.25rem;
}

#update-info-container .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    /* Enhanced Mobile Modal Optimizations */
    #update-info-container .modal-content {
        width: 95vw;
        margin: 2.5vh auto;
        max-height: 95vh;
        padding: 1.25rem;
    }
    
    #update-info-container .form-group {
        margin-bottom: 1rem;
    }
    
    #update-info-container .form-control {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    #update-info-container .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
        padding-top: 0.75rem;
    }
    
    #update-info-container .form-actions .btn-update,
    #update-info-container .form-actions .btn-cancel {
        width: 100%;
        margin: 0;
        min-height: 48px;
        font-size: 1rem;
    }
    
    /* Enhanced Address Modal Mobile Optimizations */
    #address-modal .modal-content {
        width: 95vw;
        min-width: unset;
        margin: 2.5vh auto;
        max-height: 95vh;
        padding: 1.25rem;
    }
    
    #address-modal .form-group {
        margin-bottom: 1rem;
    }
    
    #address-modal .form-control {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    #address-modal .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    #address-modal .form-actions .btn-update,
    #address-modal .form-actions .btn-cancel {
        width: 100%;
        margin: 0;
        min-height: 48px;
        font-size: 1rem;
    }
    
    /* Modal Header Mobile Optimizations */
    #update-info-container .modal-header,
    #address-modal .modal-header {
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }
    
    #update-info-container .modal-header h2,
    #address-modal .modal-header h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    #update-info-container .modal-close,
    #address-modal .modal-close {
        font-size: 1.75rem;
        padding: 0.25rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Extra Small Screens (iPhone SE, small Android phones) */
@media (max-width: 400px) {
    /* Ultra-compact modal for very small screens */
    #update-info-container .modal-content,
    #address-modal .modal-content {
        width: 98vw;
        margin: 1vh auto;
        max-height: 98vh;
        padding: 1rem;
        border-radius: 8px;
    }
    
    #update-info-container .modal-header h2,
    #address-modal .modal-header h2 {
        font-size: 1.125rem;
    }
    
    #update-info-container .form-control,
    #address-modal .form-control {
        padding: 0.65rem;
        font-size: 16px;
    }
    
    #update-info-container .form-group,
    #address-modal .form-group {
        margin-bottom: 0.875rem;
    }
    
    #update-info-container .form-actions .btn-update,
    #update-info-container .form-actions .btn-cancel,
    #address-modal .form-actions .btn-update,
    #address-modal .form-actions .btn-cancel {
        min-height: 50px;
        font-size: 1rem;
        font-weight: 600;
    }
}

/* Profile Address Styles */
.profile-addresses-list {
    margin: 10px 0;
}

.profile-address-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 8px;
}

.profile-address-item .primary-badge {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-left: 8px;
}

.profile-address-item .btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 3px;
    cursor: pointer;
}

.profile-address-item .btn-sm.edit-address-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.profile-address-item .btn-sm.set-primary-btn {
    background: #28a745;
    color: white;
    border: none;
}

.profile-address-item .btn-sm.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.empty-state {
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 5px;
    margin: 10px 0;
}

/* Mobile responsive adjustments for dashboard */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mobile Profile Actions */
    .profile-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.25rem;
        padding-top: 1rem;
    }
    
    .btn-profile-action {
        width: 100%;
        padding: 14px 20px;
        min-height: 52px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .profile-address-item {
        padding: 8px;
    }
    
    .profile-address-item .btn-sm {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    /* Mobile-friendly quick actions - keep same single column layout */
    .quick-actions-grid,
    .quick-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .quick-actions-grid .btn-update,
    .quick-actions .action-btn {
        padding: 14px 12px;
        font-size: 0.9rem;
        text-align: center;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        border-radius: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }
    
    /* Ensure scroll buttons are clearly distinguishable */
    .quick-actions-grid .btn-scroll,
    .quick-actions .btn-scroll {
        background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
        color: white;
        border-color: #4a90e2;
        font-weight: 600;
    }
    
    .quick-actions-grid .btn-scroll:hover,
    .quick-actions .btn-scroll:hover {
        background: linear-gradient(135deg, #357abd 0%, #2968a3 100%);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(74, 144, 226, 0.25);
    }
    
    /* For smaller screens, make single column */
    @media (max-width: 480px) {
        .quick-actions-grid,
        .quick-actions {
            grid-template-columns: 1fr;
            gap: 0.5rem;
        }
        
        .quick-actions-grid .btn-update,
        .quick-actions .action-btn {
            padding: 16px 20px;
            min-height: 52px;
            font-size: 1rem;
        }
        
        .dashboard-card {
            padding: 1.5rem 1rem;
            margin-bottom: 1.5rem;
        }
    }
    
    /* For very small screens */
    @media (max-width: 360px) {
        .quick-actions-grid .btn-update,
        .quick-actions .action-btn {
            padding: 14px 16px;
            font-size: 0.95rem;
            min-height: 48px;
        }
        
        .dashboard-card {
            padding: 1rem 0.75rem;
        }
        
        /* Very small screens - profile actions */
        .profile-actions {
            gap: 0.5rem;
            margin-top: 1rem;
            padding-top: 0.75rem;
        }
        
        .btn-profile-action {
            padding: 12px 16px;
            min-height: 48px;
            font-size: 0.95rem;
        }
    }
}

/* ===============================
   MODAL STYLES - PROPER POPUP OVERLAY
   =============================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}
.modal-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 16px;
    max-width: 95vw;
    width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 20px;
    transform: scale(1);
    transition: transform 0.3s ease;
}

/* Mobile-first modal improvements */
@media (max-width: 480px) {
    .modal-content {
        margin: 10px;
        padding: 1rem;
        border-radius: 12px;
        max-height: 95vh;
    }
}

.modal.hidden .modal-content {
    transform: scale(0.9);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}
.modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
}
.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.modal-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.modal-image img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 12px;
    object-fit: cover;
    background: #f8f8f8;
}
.modal-info {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.modal-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e67e22;
}
.modal-description h4,
.modal-ingredients h4,
.modal-dietary h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    color: #444;
}
.modal-description p,
.modal-ingredients p {
    font-size: 1rem;
    color: #222;
    margin: 0;
}
.modal-dietary .dietary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.modal-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}
.modal-add-cart {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px #0001;
    transition: background 0.2s;
}
.modal-add-cart:hover {
    background: linear-gradient(90deg, #b91c1c, #991b1b);
}

/* Modal Cart Container Styles */
.modal-cart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.modal-quantity-controls {
    display: none;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
    gap: 1rem;
    border: 1px solid #e9ecef;
}

.modal-quantity-controls .qty-btn {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-quantity-controls .qty-btn:hover {
    background: #b91c1c;
}

.modal-quantity-controls .quantity-display {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
    color: #2c3e50;
}
@media (max-width: 600px) {
    .modal-content {
        width: 98vw;
        max-width: 98vw;
        padding: 1rem;
        border-radius: 10px;
        margin: 10px;
    }
    .modal-header h2 {
        font-size: 1.1rem;
    }
    .modal-image img {
        max-height: 120px;
    }
    .modal-add-cart {
        width: 100%;
        padding: 1rem 0;
        font-size: 1rem;
    }
    
    .modal-cart-container {
        width: 100%;
    }
    
    .modal-quantity-controls {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }
    
    .modal-quantity-controls .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .modal-quantity-controls .quantity-display {
        font-size: 1.2rem;
        font-weight: 700;
    }
}
/* Traditional Turkish Kitchen - Core Application Styles */
/* Consolidated: style.css + homepage.css + cart.css + favorites.css + order-success.css */
/* Created: Asset Consolidation Phase */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    color: #1a1a1a;
    background-color: #fafafa;
    font-weight: 400;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 110px; /* Account for fixed header - increased for proper clearance */
}

/* Main content area */
main {
    min-height: calc(100vh - 110px);
}

/* Typography Hierarchy - Refined for Turkish Restaurant */
/* Montserrat: Brand name, main headers, menu navigation only */
/* Open Sans: All detailed content, forms, descriptions, ingredients */

h1, h2, h3, h4 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75em;
    color: #2c2c2c;
}

/* Only main page headers and section titles use Montserrat */
 .section-title {
    font-family: 'Montserrat', sans-serif;
}

/* Form elements, descriptions, ingredients use Open Sans */
.form-control, label, 
.product-description, .checkout-form,
input, textarea, select, button, .instructions, .notes {
    font-family: 'Open Sans', sans-serif;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 500;
}

p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2em;
    color: #4a4a4a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Modern Minimal Header - Centered Company Name Design */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #000;
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.shrink {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: 70px;
}

/* Ensure navigation sections don't overflow */
.nav-left, .nav-right {
    min-width: 0; /* Allow content to shrink */
    overflow: hidden;
}

.nav-left {
    justify-self: start;
}

.nav-right {
    justify-self: end;
}

/* Centered company name */
.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: #2c2c2c;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    justify-self: center;
    text-align: center;
    white-space: nowrap;
}

.header.shrink .logo {
    font-size: 1.4rem;
}

.logo:hover {
    color: #dc2626;
    transform: translateY(-1px);
}

/* Right navigation */
.nav-right {
    justify-self: end;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
}

.nav-menu a {
    font-family: 'Montserrat', sans-serif;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.02em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.nav-menu a:hover {
    color: #dc2626;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc2626;
    transition: width 0.3s ease;
    opacity: 0;
}

.nav-menu a:hover::after {
    width: 100%;
    opacity: 1;
}

/* Mobile Menu Toggle - Modern Design */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu-toggle:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #2c2c2c;
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-origin: center;
    display: block;
    margin: 0;
}

.mobile-menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 999;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
}

.mobile-nav-menu.active {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.mobile-nav-menu .nav-menu {
    flex-direction: column;
    gap: 0;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-nav-menu .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-menu .nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu .nav-menu a {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    display: block;
    transition: all 0.3s ease;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-nav-menu .nav-menu a:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0 0 0;
    margin-top: 0.5rem;
    text-align: left;
}

.mobile-language-switcher .mobile-lang-btn {
    display: inline-block;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    background: transparent;
    transition: color 0.3s ease;
    border: none;
    text-align: left;
}

.mobile-language-switcher .mobile-lang-btn:hover {
    color: #dc2626;
    background: transparent;
}

/* Hide desktop language switcher on mobile */
@media (max-width: 768px) {
    .language-switcher {
        display: none !important;
    }
}

/* Special styling for logout link */

.header.shrink .mobile-nav-menu {
    top: 64px;
}

/* Enhanced Mobile and Tablet Responsiveness */

/* Extra Large Screens */
@media (min-width: 1400px) {
    .header-content {
        max-width: 1600px;
        padding: 0 2rem;
    }
    
    .nav-menu {
        gap: 2rem;
    }
}

/* Critical breakpoint for navigation wrapping (around 1000-1100px) */
@media (max-width: 1100px) {
    .header-content {
        max-width: 1000px;
        padding: 0 1rem;
        gap: 0.25rem;
    }
    
    .nav-menu {
        gap: 0.8rem;
    }
    
    .nav-menu a {
        font-size: 0.82rem;
        padding: 0.3rem 0;
    }
    
    .logo {
        font-size: 1.7rem;
    }
}

/* Large Tablet/Small Desktop (1200px and down) */
@media (max-width: 1200px) {
    .header-content {
        max-width: 1200px;
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
    }
}

/* Tablet Landscape (1024px and down) */
@media (max-width: 1024px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 0.7rem;
        flex-wrap: nowrap;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.4rem 0;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

/* Tablet Portrait and Large Mobile (768px and down) */
@media (max-width: 768px) {
    .header-content {
        padding: 0 0.75rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .nav-menu a {
        font-size: 0.75rem;
        padding: 0.3rem 0;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Keep navigation visible but more compact */
    .logo {
        font-size: 1.6rem;
    }
    
    .header.shrink .logo {
        font-size: 1.2rem;
    }
}

/* Mobile Portrait and Small Tablets (640px and down) */
@media (max-width: 640px) {
    body {
        padding-top: 90px;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .header.shrink {
        padding: 0.7rem 0;
    }
    
    .header-content {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative;
        padding: 0 1rem;
        grid-template-columns: none !important;
        grid-template-areas: none !important;
        min-height: 70px;
        flex-wrap: nowrap !important;
        gap: 0.5rem;
    }
    
    .nav-left, .nav-right {
        display: none !important;
    }
    
    .logo {
        font-size: 1.5rem !important;
        text-align: left !important;
        flex: 1;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 50px);
        line-height: 1.2;
        display: flex;
        align-items: center;
        order: 1;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        cursor: pointer !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        flex-shrink: 0;
        margin-left: auto;
        align-self: center;
        z-index: 1002;
        order: 3;
    }
    
    .mobile-nav-menu {
        top: 70px;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.25s ease;
    }
    
    .header.shrink .logo {
        font-size: 1.3rem !important;
    }
    
    /* Form improvements for tablets */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .btn {
        min-height: 48px; /* Better touch targets */
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Ensure buttons are properly sized for touch */
    button, input[type="submit"], .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* Improved cart button layout for mobile */
    .cart-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .cart-actions .btn {
        width: 100%;
        max-width: 320px;
        min-width: auto;
        padding: 16px 30px;
        font-size: 1rem;
        letter-spacing: 0.3px;
    }
    
    /* Mobile-specific button adjustments */
    .cart-actions .btn-secondary {
        background: rgba(108, 117, 125, 0.1);
        border: 2px solid rgba(108, 117, 125, 0.25);
    }
    
    .cart-actions .btn-secondary:hover {
        background: rgba(108, 117, 125, 0.2);
    }
    
    /* Ensure cart actions have proper padding in full-width mobile layout */
    .cart-actions {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Tablet-specific cart button improvements (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .cart-actions {
        flex-direction: row;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .cart-actions .btn {
        width: auto;
        min-width: 180px;
        padding: 16px 35px;
        font-size: 1rem;
    }
    
    /* Adjust transparency for tablet */
    .cart-actions .btn-secondary {
        background: rgba(108, 117, 125, 0.12);
        border: 2px solid rgba(108, 117, 125, 0.28);
    }
    
    /* Ensure cart actions have proper padding in tablet full-width layout */
    .cart-actions {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Mobile Phones (480px and down) */
@media (max-width: 480px) {
    body {
        padding-top: 85px;
    }
    
    .header {
        padding: 0.8rem 0;
    }
    
    .header.shrink {
        padding: 0.6rem 0;
    }
    
    .header-content {
        padding: 0 0.75rem;
        min-height: 60px;
    }
    
    .logo {
        font-size: 1.3rem !important;
        letter-spacing: -0.01em;
        margin: 0;
        max-width: calc(100% - 50px);
        line-height: 1.2;
        display: flex;
        align-items: center;
    }
    
    .header.shrink .logo {
        font-size: 1.1rem !important;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
        margin-left: 0;
        align-self: center;
        z-index: 1002;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
    
    .mobile-nav-menu {
        top: 60px;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.25s ease;
        padding: 1rem 0;
    }
    
    .header.shrink .mobile-nav-menu {
        top: 58px;
    }
    
    .mobile-nav-menu .nav-menu a {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }
    
    /* Better mobile form styling */
    .form-control, input[type="text"], input[type="email"], input[type="tel"], 
    input[type="password"], textarea, select {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 0.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* Mobile-friendly tables */
    
    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Mobile cart improvements */
    .cart-floating {
        bottom: 15px;
        right: 15px;
    }
    
    .cart-info-floating {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Enhanced mobile cart item styles for small screens */
    .cart-item-row {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .cart-item-name {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .cart-item-each {
        font-size: 0.85rem;
    }
    
    .cart-qty-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.1rem;
    }
    
    .cart-qty-display {
        font-size: 1rem;
        min-width: 2.5rem;
    }
    
    .cart-item-price {
        font-size: 1.1rem;
    }
    
    .cart-remove-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 48px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .form-control {
        font-size: 16px;
        padding: 0.8rem;
        border-radius: 8px;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
    }
}

/* Very small screens (320px and down) */
@media (max-width: 320px) {
    .header-content {
        padding: 0 0.5rem;
        gap: 0.5rem;
        min-height: 60px;
    }
    
    .logo {
        font-size: 1.1rem !important;
        max-width: calc(100% - 40px);
        letter-spacing: -0.02em;
        line-height: 1.2;
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .header.shrink .logo {
        font-size: 1rem !important;
    }
    
    .mobile-menu-toggle {
        width: 24px;
        height: 24px;
        padding: 2px;
        margin-left: 0;
        align-self: center;
        z-index: 1002;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle span {
        width: 18px;
        height: 1.5px;
    }
    
    .mobile-nav-menu {
        top: 50px;
    }
    
    .header.shrink .mobile-nav-menu {
        top: 48px;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    /* Override for cart container on very small screens */
    .container.cart-container {
        padding: 0;
    }
    
    /* Ultra-compact cart styles for very small screens */
    .cart-item-row {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .cart-item-name {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .cart-item-each {
        font-size: 0.8rem;
    }
    
    /* Adjust content padding for very small screens */
    .cart-section,
    .weekly-menu-status,
    .form-section,
    .section-title {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .cart-actions {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .cart-qty-btn {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .cart-qty-display {
        font-size: 0.9rem;
        min-width: 2rem;
    }
    
    .cart-item-price {
        font-size: 1rem;
    }
    
    .cart-remove-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-height: 44px;
    }
}

/* Floating Cart - Bottom Right */
.cart-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    text-decoration: none;
}

.cart-info-floating {
    background: #dc2626;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 6px 20px rgba(220,38,38,0.4);
    transition: all 0.3s ease;
    border: 3px solid white;
}

.cart-floating:hover .cart-info-floating {
    background: #b91c1c;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(220,38,38,0.5);
}

.cart-badge {
    background: white;
    color: #dc2626;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Cart Animation Effects */
.cart-bounce {
    animation: cartBounce 0.6s ease-out;
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1.05); }
    75% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes flyToCart {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Hero Section - Elevated Design */
.hero {
    background: linear-gradient(135deg, 
        rgba(44,44,44,0.85) 0%, 
        rgba(26,26,26,0.9) 100%), 
        radial-gradient(circle at center, 
        rgba(255,107,107,0.1) 0%, 
        transparent 70%),
        url('assets/images/evyemekleri.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 73vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
}

.hero .container {
    width: 100%;
    color: white !important;
}

.hero h1 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.1"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* View Menu Container - Center the button */
.view-menu-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem 0;
}

/* Premium Button System - Modern Black Design */
.btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Secondary Button */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 4px 15px rgba(108,117,125,0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #3d4043 100%);
    box-shadow: 0 8px 30px rgba(108,117,125,0.4);
}

/* Order Now Button - White/Black Reversed Colors */
.btn-order {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255,255,255,0.8);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 2;
}

.btn-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    transition: left 0.6s;
}

.btn-order:hover::before {
    left: 100%;
}

.btn-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: white;
    border-color: #000000;
}

.btn-order:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Button state classes for dynamic toggling */

/* Product Sections & Cards - Premium Tava Kitchen Style */
.products-section, .how-it-works, .contact-section {
    padding: 6rem 0;
    background: white;
}

.products-section:nth-child(even) {
    background: #fafafa;
}

.section-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 4rem;
    color: #2c2c2c;
    position: relative;
    /* Fix for mobile and desktop - no scrollbars */
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: visible;
    white-space: normal;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    border-radius: 2px;
}

/* Category Filter - Enhanced */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    color: #666;
    border: 2px solid #e9ecef;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8,145,178,0.3);
}

/* Premium Product Grid - Tava Kitchen Aesthetic */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,107,0.02), rgba(255,167,38,0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: rgba(255,107,107,0.2);
}

.product-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #aaa;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Favorite Button Positioning */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.favorite-btn .heart-icon {
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.favorite-btn.favorited {
    background: rgba(255, 255, 255, 0.95);
}

.favorite-btn.favorited .heart-icon {
    animation: heartPulse 0.6s ease-out;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 2rem;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    justify-content: space-between;
}

.product-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 1.3;
    margin: 0;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    min-height: 3.2rem; /* Ensure consistent height for 2 lines */
}

.product-price {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff6b6b;
    margin: 0;
}

.dietary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 2rem; /* Consistent height even when empty */
    align-items: flex-start;
}

.dietary-tag {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

/* See Details Button */
.see-details-btn {
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    color: #2c2c2c;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    order: 1;
}

.see-details-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: none;
    box-shadow: none;
}

/* Add to Cart Button and Quantity Controls Container */
.cart-action-container {
    order: 2;
    min-height: 54px; /* Consistent height for both states */
    display: flex;
    align-items: center;
}

/* Quantity controls for products already in cart */
.quantity-controls {
    display: none; /* Hidden by default, shown when item is in cart */
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    min-height: 54px;
}

.quantity-controls.active {
    display: flex;
}

.qty-btn {
    background: #2c2c2c;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.qty-btn:hover {
    background: #1a1a1a;
    transform: scale(1.1);
}

.qty-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.quantity-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c2c2c;
    min-width: 30px;
    text-align: center;
}

/* Add to Cart Button - Modern White Design */
.add-to-cart {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #2c2c2c;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44,44,44,0.1), transparent);
    transition: left 0.5s;
}

.add-to-cart:hover::before {
    left: 100%;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    border-color: #2c2c2c;
}

.add-to-cart:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Cart Styles */
.cart-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

/* Menu link styling for empty cart messages */
.menu-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.menu-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item.delivery-fee {
    font-style: italic;
    color: #666;
}

/* Enhanced Cart Item Row Styles */
.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.cart-item-info {
    flex: 1;
    margin-right: 1rem;
}

.cart-item-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.cart-item-each {
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-qty-btn {
    border: none;
    background: #495057;
    color: #fff;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    background: #343a40;
    transform: scale(1.05);
}

.cart-qty-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.cart-qty-display {
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item-price {
    margin-left: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #28a745;
    min-width: 4rem;
    text-align: right;
}

.cart-remove-btn {
    background: #dc3545;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: auto;
}

.cart-remove-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.cart-remove-btn:active {
    transform: translateY(0);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-top: 1px solid #ddd;
    margin-top: 0.5rem;
}

.cart-total {
    text-align: right;
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

/* Form Styles */
.form-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

/* Core form controls - scoped to avoid conflicts with auth/admin */
.core-form .form-control,
.contact-form .form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.core-form .form-control:focus,
.contact-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Force error styling with higher specificity and override success states - scoped to core forms */
.core-form .form-control.error,
.core-form .form-control.error:focus,
.core-form .form-control.error:active,
.core-form .form-control.error:hover,
.contact-form .form-control.error,
.contact-form .form-control.error:focus,
.contact-form .form-control.error:active,
.contact-form .form-control.error:hover,
input.core-form .form-control.error,
textarea.core-form .form-control.error,
input.contact-form .form-control.error,
textarea.contact-form .form-control.error,
select.core-form .form-control.error,
select.contact-form .form-control.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    background-color: #fff5f5 !important;
    animation: shake 0.5s ease-in-out;
}

/* Ensure success styling can still be applied when no error - scoped to core forms */
.core-form .form-control.success:not(.error),
.contact-form .form-control.success:not(.error) {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modern Footer - Matching Header Design */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #2c2c2c;
    padding: 3rem 0 1.5rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: left;
}

.footer-grid h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.footer-grid h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.footer-grid p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0.5rem;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-link {
    font-family: 'Open Sans', sans-serif;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-link:hover {
    color: #dc2626;
    transform: translateX(3px);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-divider {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
    text-align: center;
}

.footer-divider p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #777;
    margin: 0;
    opacity: 0.8;
}

/* Mobile responsive footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-divider {
        margin: 1.5rem auto 0;
        padding: 1rem 2rem 0;
    }
}

/* Loading States & Spinners */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Loading animations */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading::after {
    content: "...";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 33% { content: "."; }
    34%, 66% { content: ".."; }
    67%, 100% { content: "..."; }
}

/* ===================================
   HOMEPAGE SPECIFIC STYLES
   =================================== */

.how-it-works {
    background: #f8f9fa;
    padding: 4rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    margin-bottom: 0.5rem;
}

.contact-section {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #333 !important;
    padding: 4rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    color: #333 !important;
}

.contact-info h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: #333 !important;
}

.contact-info p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    color: #333 !important;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item span {
    font-size: 1.2rem;
    width: 24px;
    flex-shrink: 0;
}

.contact-item div {
    flex: 1;
    color: #333 !important;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #333 !important;
}

.contact-item small {
    color: #666 !important;
    font-size: 0.9rem;
}

.contact-form {
    background: rgba(255,255,255,0.9);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333 !important;
}

.contact-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333 !important;
    font-size: 1rem;
}

.contact-form .form-control::placeholder {
    color: #999 !important;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: #28a745;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.contact-form-title {
    color: #333 !important;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.btn-contact {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white !important;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-contact:hover {
    background: linear-gradient(135deg, #218838 0%, #1dc7a0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.contact-footer-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666 !important;
    text-align: center;
}

/* ===================================
   CART PAGE SPECIFIC STYLES
   =================================== */

.cart-container {
    padding: 2rem 0;
}

/* Mobile-responsive cart container - match checkout.php behavior */
@media (max-width: 768px) {
    .cart-container {
        padding: 1rem 0;
    }
    
    /* Override container horizontal padding for full-width mobile experience */
    .container.cart-container {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Add back inner padding to cart content */
    .cart-section,
    .weekly-menu-status,
    .form-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .section-title {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .cart-container {
        padding: 0.5rem 0;
    }
    
    /* Ensure full-width on mobile like checkout */
    .container.cart-container {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Adjust inner content padding for mobile */
    .cart-section,
    .weekly-menu-status,
    .form-section {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .section-title {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.cart-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

/* Ensure both cart buttons have consistent sizing */
.cart-actions .btn {
    flex: 0 0 auto;
    min-width: 200px;
    padding: 18px 40px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Enhanced Continue Shopping button - Semi-transparent design */
.cart-actions .btn-secondary {
    background: rgba(108, 117, 125, 0.15);
    border: 2px solid rgba(108, 117, 125, 0.3);
    color: #495057;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cart-actions .btn-secondary:hover {
    background: rgba(108, 117, 125, 0.25);
    border-color: rgba(108, 117, 125, 0.5);
    color: #343a40;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.2);
}

/* Primary Checkout button - Bold and prominent */
.cart-actions .btn:not(.btn-secondary) {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cart-actions .btn:not(.btn-secondary):hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Shimmer effect for primary button */
.cart-actions .btn:not(.btn-secondary)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.cart-actions .btn:not(.btn-secondary):hover::before {
    left: 100%;
}

/* Remove the old margin-based approach - now using flexbox gap */

/* Additional cart button safety and accessibility */
.cart-actions .btn:focus {
    outline: 3px solid rgba(0, 123, 255, 0.3);
    outline-offset: 2px;
}

.cart-actions .btn:active {
    transform: translateY(1px);
}

/* Ensure proper text contrast for accessibility */
.cart-actions .btn-secondary:focus,
.cart-actions .btn-secondary:hover {
    color: #212529;
}

/* Smooth transitions for all states */
.cart-actions .btn * {
    transition: inherit;
}

/* Loading state support for checkout button */
.cart-actions .btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cart-actions .btn-secondary {
        background: rgba(108, 117, 125, 0.3);
        border: 2px solid #495057;
        color: #212529;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cart-actions .btn {
        transition: none;
    }
    
    .cart-actions .btn::before {
        display: none;
    }
}

.coupon-form {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.coupon-form-group {
    flex: 1;
    margin-bottom: 0;
}

/* ===================================
   FAVORITES PAGE SPECIFIC STYLES
   =================================== */

.favorites-header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 2rem;
}

.favorites-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.favorite-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.favorite-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f8f9fa;
}

.favorite-image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: #f8f9fa;
}

.favorite-content {
    padding: 1.5rem;
}

.favorite-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.favorite-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.favorite-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 1rem;
}

.favorite-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart {
    flex: 1;
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-remove-fav {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-fav:hover {
    background: #c82333;
}

.favorite-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.75rem;
}

.empty-favorites {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.back-nav {
    margin-bottom: 2rem;
}

.back-nav a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-nav a:hover {
    color: #0056b3;
}

.btn-menu-link {
    margin-top: 1rem;
    display: inline-block;
    text-decoration: none;
}

/* ===================================
   ORDER SUCCESS PAGE STYLES
   =================================== */

/* Extra small mobile devices */
@media (max-width: 375px) {
    .success-container {
        padding: 0 0.75rem;
        margin: 0.5rem auto 1rem;
    }
    
    .order-details {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .info-card {
        padding: 0.875rem;
        gap: 0.75rem;
        min-height: 70px;
    }
    
    .info-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .info-content p {
        font-size: 0.85rem;
    }
}

.success-container {
    max-width: 900px;
    margin: 1rem auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .success-container {
        margin: 2rem auto;
        padding: 0 1.5rem;
    }
}

.success-header {
    text-align: center;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 2rem 1.5rem; /* Reduced padding for mobile */
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.3);
    /* Ensure header is fully visible on mobile */
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .success-header {
        padding: 3rem 2rem; /* Restore larger padding on tablets+ */
        margin-top: 0;
    }
}

.success-icon {
    font-size: 3rem; /* Smaller on mobile */
    margin-bottom: 1rem;
    animation: bounce 1s ease-out;
    display: block;
}

@media (min-width: 768px) {
    .success-icon {
        font-size: 4rem; /* Larger on tablets+ */
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.success-subtitle {
    font-size: 1rem; /* Smaller on mobile */
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .success-subtitle {
        font-size: 1.2rem; /* Larger on tablets+ */
    }
}

.order-details {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    overflow: hidden; /* Prevent content overflow */
    display: block;
    width: 100%;
}

@media (min-width: 768px) {
    .order-details {
        padding: 2rem;
    }
}

/* Mobile-first order info grid */
.order-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

@media (min-width: 576px) {
    .order-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .order-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .order-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.info-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    min-height: 75px;
}

@media (min-width: 768px) {
    .info-card {
        padding: 1.25rem;
        gap: 1.25rem;
        min-height: 85px;
    }
}

.info-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #007bff;
}

.info-card.total-card {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

.info-card.combo-savings-card {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
    border: none;
}

.info-card.combo-savings-card .info-content h4,
.info-card.combo-savings-card .info-content p {
    color: white;
}

.info-card.combo-savings-card .info-icon {
    background: rgba(255,255,255,0.25);
}

.savings-amount {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: white !important;
}

@media (min-width: 768px) {
    .savings-amount {
        font-size: 1.4rem !important;
    }
}

.info-card.total-card .info-content h4,
.info-card.total-card .info-content p {
    color: white;
}

.info-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,123,255,0.15);
    border-radius: 8px;
    margin-top: 0;
}

@media (min-width: 768px) {
    .info-icon {
        font-size: 1.6rem;
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }
}

.info-card.total-card .info-icon {
    background: rgba(255,255,255,0.25);
}

.info-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-content h4 {
    margin: 0 0 0.4rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .info-content h4 {
        margin: 0 0 0.6rem 0;
        font-size: 0.8rem;
        letter-spacing: 0.6px;
    }
}

.info-card.total-card .info-content h4 {
    color: rgba(255,255,255,0.9);
}

.info-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #212529;
    line-height: 1.3;
    word-break: break-word;
    font-weight: 500;
}

@media (min-width: 768px) {
    .info-content p {
        font-size: 1rem;
        line-height: 1.4;
    }
}

.total-amount {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: white !important;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #ffc107, #ffcd39);
    color: #212529;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Different status colors */
.status-badge.requested {
    background: linear-gradient(135deg, #ffc107, #ffcd39);
    color: #212529;
    border-color: rgba(255, 193, 7, 0.3);
}

.status-badge.confirmed {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    border-color: rgba(23, 162, 184, 0.3);
}

.status-badge.preparing {
    background: linear-gradient(135deg, #fd7e14, #ff8c00);
    color: white;
    border-color: rgba(253, 126, 20, 0.3);
}

.status-badge.delivered {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-color: rgba(40, 167, 69, 0.3);
}

@media (min-width: 768px) {
    .status-badge {
        padding: 0.6rem 1.4rem;
        font-size: 0.9rem;
        letter-spacing: 0.8px;
    }
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    .order-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .info-card.full-width {
        grid-column: span 2;
    }
    
    .info-content h4 {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .info-content p {
        font-size: 1.1rem;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
}

/* Desktop screens */
@media (min-width: 1024px) {
    .order-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.75rem;
    }
    
    .info-card.full-width {
        grid-column: span 3;
    }
    
    .info-content h4 {
        font-size: 0.9rem;
    }
    
    .info-content p {
        font-size: 1.2rem;
    }
    
    .total-amount {
        font-size: 1.6rem !important;
    }
}

.section-heading {
    margin-bottom: 1.25rem;
    color: #212529;
    font-size: 1.25rem;
    font-weight: 600;
    display: block !important;
    width: 100% !important;
    text-align: left;
    clear: both;
    float: none !important;
    position: relative;
}

@media (min-width: 768px) {
    .section-heading {
        margin-bottom: 1.5rem;
        font-size: 1.4rem;
    }
}

.detail-label {
    font-weight: 600;
    color: #495057;
}

.detail-value {
    color: #212529;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #ffc107;
    color: #212529;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.next-steps {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem; /* Smaller padding on mobile */
    border-left: 4px solid #007bff;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .next-steps {
        padding: 2rem;
    }
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem; /* Add gap for better mobile spacing */
}

.step-number {
    background: #007bff;
    color: white;
    width: 22px; /* Slightly smaller on mobile */
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem; /* Smaller font */
    font-weight: bold;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .step {
        gap: 1rem;
    }
}

.step-description {
    color: #6c757d;
}

.step-description strong {
    color: #007bff;
    font-weight: 600;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 0.75rem; /* Smaller gap on mobile */
    margin-top: 1.5rem; /* Smaller margin on mobile */
}

@media (min-width: 480px) {
    .action-buttons {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on small tablets */
    }
}

@media (min-width: 768px) {
    .action-buttons {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-top: 2rem;
    }
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem; /* Slightly smaller padding on mobile */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem; /* Smaller font on mobile */
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .btn-action {
        padding: 1rem;
        font-size: 1rem;
    }
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.text-muted {
    color: #6c757d !important;
}

.text-success {
    color: #28a745 !important;
}

.estimated-time {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    padding: 1rem; /* Smaller padding on mobile */
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem; /* Smaller font on mobile */
}

@media (min-width: 768px) {
    .estimated-time {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center {
    text-align: center;
}

.sold-out-btn {
    background: #6c757d;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    /* Remove conflicting header rules - handled by specific mobile breakpoints */
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero {
        padding-bottom: 3rem;
        background-attachment: scroll; /* Fix for mobile performance */
        min-height: 80vh;
        display: flex;
        align-items: flex-end;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    /* Enhanced mobile cart item styles */
    .cart-item-row {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0.75rem;
        gap: 1rem;
    }
    
    .cart-item-info {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-name {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .cart-item-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: space-between;
        width: 100%;
    }
    
    .cart-qty-controls {
        order: 1;
        flex: 0 0 auto;
    }
    
    .cart-item-price {
        order: 2;
        margin-left: 0;
        font-size: 1.2rem;
        text-align: left;
        min-width: auto;
    }
    
    .cart-remove-btn {
        order: 3;
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
        padding: 0.75rem;
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* Improve touch targets for mobile */
    .btn, .add-to-cart, 
    .core-form .form-control,
    .contact-form .form-control {
        min-height: 48px;
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Better mobile spacing */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        /* Ensure no horizontal scrollbars on mobile */
        word-wrap: break-word;
        overflow-wrap: break-word;
        overflow: visible;
        white-space: normal;
        padding: 0 10px;
    }
    
    .products-section, .how-it-works, .contact-section {
        padding: 3rem 0;
    }
    
    /* Homepage mobile adjustments */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }
    
    /* Favorites mobile adjustments */
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .favorite-actions {
        flex-direction: column;
    }
}

/* ===================================
   ANIMATIONS & EFFECTS
   =================================== */

/* Animation classes */
.favorites-fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.8); }
}

/* Shake animation for form errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* General fade in animation */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slide up animation */

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Success animations */

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Field error styling */
.field-error {
    color: #dc3545 !important;
    font-size: 0.875rem;
    margin-top: 0.5rem !important;
    padding: 0.75rem !important;
    background-color: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    border-radius: 0.25rem;
    display: block !important;
    animation: slideDown 0.3s ease-out;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1) !important;
}

/* Mobile-friendly error messages */
@media (max-width: 768px) {
    .field-error {
        font-size: 14px !important;
        padding: 12px !important;
        margin-top: 8px !important;
        border-radius: 8px !important;
        line-height: 1.4 !important;
    }
}

/* Phone validation message styling */
.phone-validation-message {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    display: block;
    animation: slideDown 0.3s ease-out;
}

.phone-validation-message.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.phone-validation-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Mobile improvements for validation messages */
@media (max-width: 768px) {
    .phone-validation-message {
        font-size: 14px;
        padding: 10px 12px;
        border-radius: 8px;
        margin-top: 8px;
    }
}

/* ===================================
   FORM VALIDATION STYLES - UNIFIED
   =================================== */

/* Form control states */
.form-control {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Global placeholder styles for consistency */
.form-control::placeholder {
    color: #6c757d;
    opacity: 0.8;
    font-style: italic;
}

.form-control::-webkit-input-placeholder {
    color: #6c757d;
    opacity: 0.8;
    font-style: italic;
}

.form-control::-moz-placeholder {
    color: #6c757d;
    opacity: 0.8;
    font-style: italic;
}

.form-control:-ms-input-placeholder {
    color: #6c757d;
    opacity: 0.8;
    font-style: italic;
}

/* Error state - High specificity to override any other styles */
.form-control.error,
input.form-control.error,
textarea.form-control.error,
select.form-control.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
    background-color: #fff5f5 !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23dc3545' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.form-control.error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Success state - High specificity to override other styles */
.form-control.success:not(.error),
input.form-control.success:not(.error),
textarea.form-control.success:not(.error),
select.form-control.success:not(.error) {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15) !important;
    background-color: #f8fff9 !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2328a745' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.form-control.success:focus:not(.error) {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Error message styling - Consistent across all forms */
.field-error {
    display: block !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: #dc3545 !important;
    background-color: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1) !important;
    animation: slideDown 0.3s ease-out !important;
}

/* Error shake animation */
.form-control.error,
.field-error {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Shake animation */
@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Form group spacing with errors */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group.has-error {
    margin-bottom: 2.5rem;
}

/* Required field indicator */
.form-group.required label::after {
    content: "*";
    color: #dc3545;
    margin-left: 0.25rem;
}

/* Loading state for forms */
.form-control.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 38 38' stroke='%23007bff'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg transform='translate(1 1)' stroke-width='2'%3E%3Ccircle stroke-opacity='.5' cx='18' cy='18' r='18'/%3E%3Cpath d='M36 18c0-9.94-8.06-18-18-18'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 18 18' to='360 18 18' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1rem 1rem !important;
    padding-right: calc(1.5em + 0.75rem) !important;
}

/* Validation tooltip */

/* Password strength indicator - Moved to app-auth.css for authentication forms */

/* ===================================
   GLOBAL ANIMATIONS - SHARED ACROSS ALL MODULES
   =================================== */

/* slideDown - Used across auth, checkout, and other modules for form validation */
/* This is the canonical definition - other modules reference this animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Performance optimizations */

/* Focus management for accessibility */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .core-form .form-control,
    .contact-form .form-control {
        border: 2px solid currentColor;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Google Maps fix */
.pac-container {
    z-index: 10001 !important; /* Higher than modal z-index (10000) */
}

/* Additional Google Maps autocomplete fixes for modals */
.pac-container:after {
    background-image: none !important;
    height: 0px;
}

/* Ensure Google Maps suggestions appear above modal */
.modal-content .pac-container {
    z-index: 10001 !important;
}

/* Cart info link styling */

/* Phone Input Styles - Mobile Friendly */
.phone-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.phone-prefix {
    position: absolute;
    left: 10px;
    color: #666;
    pointer-events: none;
    z-index: 1;
    font-weight: 500;
    font-size: 0.9rem;
}

.phone-input-container input[type="tel"] {
    padding-left: 40px !important;
    width: 100%;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.3px;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

.phone-input-container input[type="tel"]:focus {
    position: relative;
    z-index: 1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Mobile improvements */
@media (max-width: 768px) {
    .phone-input-container input[type="tel"] {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 12px 12px 40px;
        min-height: 44px; /* Better touch target */
    }
    
    .phone-prefix {
        font-size: 16px;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Error state */
.phone-input-container input[type="tel"].error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.phone-input-container input[type="tel"].error + .phone-prefix {
    color: #dc3545;
}

/* Success state */
.phone-input-container input[type="tel"].success {
    border-color: #28a745;
    background-color: #f8fff9;
}

.phone-input-container input[type="tel"].success + .phone-prefix {
    color: #28a745;
}

/* ========================================
   ADDRESS MANAGEMENT STYLES
   ======================================== */

.primary-badge {
    background: #28a745;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.empty-state p:first-child {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-state p:last-child {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Address Form Modal Styles */
#address-modal {
    z-index: 10002 !important; /* Always on top of other modals including update form */
}

#address-modal .modal-content {
    max-width: 650px; /* Increased from 600px to accommodate toggle text */
    min-width: 500px; /* Ensure minimum width for proper layout */
}

/* Google Maps Autocomplete Dropdown Fix - Must appear above all modals */
.pac-container {
    z-index: 10003 !important; /* Higher than address modal (10002) */
    position: absolute !important;
    background-color: white !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.pac-item {
    padding: 8px 12px !important;
    border-bottom: 1px solid #eee !important;
    cursor: pointer !important;
}

.pac-item:hover {
    background-color: #f5f5f5 !important;
}

.pac-item:last-child {
    border-bottom: none !important;
}

/* Ensure the autocomplete works properly in modals */
#address-modal .form-group input[type="text"] {
    position: relative !important;
    z-index: 1 !important;
}

#address-form .form-row {
    display: flex;
    gap: 1rem;
}

#address-form .form-row .form-group {
    flex: 1;
}

#address-form textarea {
    resize: vertical;
    min-height: 60px;
}

#address-form .preference-toggle {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}

#address-form .preference-toggle:hover {
    background: #e9ecef;
}

/* Specific styling for the address primary toggle */
.address-primary-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem !important;
    margin: 1rem 0 !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.address-primary-toggle:hover {
    background: #e9ecef !important;
}

.address-primary-toggle .toggle-text {
    flex: 1 !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure proper spacing for the toggle text in address form */
#address-form .preference-toggle span:not(.preference-slider) {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile responsive adjustments for address form toggle */
@media (max-width: 768px) {
    #address-form .preference-toggle {
        padding: 0.5rem;
        font-size: 0.9rem;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    #address-form .preference-toggle span:not(.preference-slider) {
        white-space: normal;
        line-height: 1.3;
    }
    
    .address-primary-toggle {
        padding: 0.5rem !important;
        gap: 0.5rem !important;
    }
    
    .address-primary-toggle .toggle-text {
        font-size: 0.9rem !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
}

/* Button Styles for Address Management */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.2;
    border-radius: 4px;
    border: 1px solid transparent;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-sm:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-sm.btn-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-sm.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    color: white;
}

.error-message {
    color: #dc3545;
    text-align: center;
    padding: 1rem;
    font-style: italic;
}

/* Saved Address Selection in Checkout */
.saved-addresses-section {
    margin-bottom: 1.5rem;
}

/* When saved addresses section is hidden, adjust new address form positioning */
body.no-saved-addresses .new-address-form {
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: block !important;
}

body.no-saved-addresses .new-address-form h4 {
    margin-top: 0;
}

/* Hide the "Use a different address" option when no saved addresses */
body.no-saved-addresses .new-address-option {
    display: none !important;
}

/* Style for normal address form when no saved addresses */
body.no-saved-addresses .save-address-checkbox {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

body.no-saved-addresses #address-label-section {
    margin-top: 0.5rem;
}

/* Address label input placeholder styling */
#new_address_label::placeholder {
    color: #6c757d;
    opacity: 1;
    font-style: italic;
}

#new_address_label::-webkit-input-placeholder {
    color: #6c757d;
    opacity: 1;
    font-style: italic;
}

#new_address_label::-moz-placeholder {
    color: #6c757d;
    opacity: 1;
    font-style: italic;
}

#new_address_label:-ms-input-placeholder {
    color: #6c757d;
    opacity: 1;
    font-style: italic;
}

/* Enhanced focus state for address label input */
#new_address_label:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.15);
    outline: none;
}

/* Ensure placeholder disappears when user types */
#new_address_label:not(:placeholder-shown) {
    font-style: normal;
}

/* Force show address form when needed */
.new-address-form.force-show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Debug styles to ensure address form is visible */
.new-address-form {
    transition: all 0.3s ease;
}

.new-address-form:not(.hidden) {
    display: block !important;
}

.saved-addresses-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.saved-address-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.saved-address-option:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.saved-address-option.selected {
    border-color: #007bff;
    background: #e7f3ff;
}

.saved-address-option input[type="radio"] {
    margin: 0;
    margin-top: 0.2rem;
}

.saved-address-content {
    flex: 1;
}

.saved-address-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.saved-address-text {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.new-address-option {
    padding: 0.75rem;
    text-align: center;
    border: 2px dashed #007bff;
    border-radius: 8px;
    color: #007bff;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
    /* Mobile touch improvements */
    -webkit-tap-highlight-color: rgba(0, 123, 255, 0.2);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    min-height: 44px; /* iOS minimum touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-address-option:hover,
.new-address-option:active,
.new-address-option:focus {
    background: #e7f3ff;
    border-color: #0056b3;
    color: #0056b3;
    outline: none;
}

/* Mobile-specific styles for better touch interaction */
@media (max-width: 768px) {
    .new-address-option {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px; /* Larger touch target for mobile */
        margin: 0.5rem 0;
    }
    
    .new-address-option:active {
        transform: translateY(1px);
        background: #d4edda;
    }
}

.new-address-form {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

/* Responsive Styles for Address Management */
@media (max-width: 768px) {
    
    /* Ensure delivery address section remains interactive on mobile */
    .saved-addresses-section {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .saved-addresses-section label {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 123, 255, 0.2);
        touch-action: manipulation;
        padding: 0.25rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .saved-addresses-section select {
        min-height: 48px;
        touch-action: manipulation;
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* Make new address form more mobile-friendly */
    .new-address-form {
        padding: 1rem 0.75rem;
        margin-top: 0.75rem;
    }
    
    .new-address-form textarea,
    .new-address-form input {
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .new-address-form textarea {
        min-height: 80px;
        resize: vertical;
    }
    
    #address-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .saved-address-option {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .saved-address-option input[type="radio"] {
        margin-top: 0;
        align-self: flex-start;
    }
    
    .btn-sm {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Postal Code Validation Styles */
#address-postal.valid {
    border-color: #28a745 !important;
    background-color: #f8fff9 !important;
}

#address-postal.invalid {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

#address-postal.valid:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

#address-postal.invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* ===============================
   ORDER TRACKING PAGE STYLES
   =============================== */

.track-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.track-header {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.track-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.track-header .track-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    position: relative;
    z-index: 2;
}

.track-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 2;
}

.track-header .track-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Form Section */
.track-form-section {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
}

.track-form {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.track-form .form-group {
    margin-bottom: 2rem;
}

.track-form label {
    display: block;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
}

.track-form .form-control {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 3px solid #e9ecef;
    border-radius: 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.track-form .form-control:focus {
    outline: none;
    border-color: #4caf50;
    background: #fff;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15);
    transform: translateY(-2px);
}

.track-form .form-control.valid {
    border-color: #28a745;
    background: #f8fff9;
}

.track-form .form-control.invalid {
    border-color: #dc3545;
    background: #fff5f5;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

.track-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    color: #fff;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.track-btn:hover {
    background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.track-btn:active {
    transform: translateY(-1px);
}

.track-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Track Info Section */
.track-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    border-left: 5px solid #4caf50;
}

.track-info h3 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.track-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.track-info li {
    padding: 0.5rem 0;
    color: #495057;
    font-weight: 500;
}

/* Alert Styles */
.alert {
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: center;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #c3e6cb;
}

/* Order Results */
.track-results {
    margin-top: 3rem;
}

.order-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 3rem;
    margin-bottom: 2rem;
    border-left: 6px solid #4caf50;
    position: relative;
    overflow: hidden;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #43a047, #4caf50);
    background-size: 200% 100%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
}

.order-date {
    color: #6c757d;
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.status-badge {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.status-badge.requested {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212529;
}

.status-badge.confirmed {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #fff;
}

.status-badge.preparing {
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
    color: #fff;
}

.status-badge.delivered {
    background: linear-gradient(135deg, #28a745 0%, #20763a 100%);
    color: #fff;
}

.status-badge.cancelled {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
}

/* Status Progress Section */
.status-progress-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.status-progress-section h3 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
}

.status-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e9ecef;
    z-index: 1;
}

.status-timeline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #43a047);
    z-index: 2;
    width: var(--progress-width, 0%);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step {
    background: #fff;
    border: 4px solid #e9ecef;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-step.completed {
    border-color: #4caf50;
    background: #4caf50;
    color: #fff;
    transform: scale(1.1);
}

.timeline-step.active {
    border-color: #ffc107;
    background: #ffc107;
    color: #212529;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.timeline-label {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
}

.timeline-label.completed {
    color: #4caf50;
}

.timeline-label.active {
    color: #ffc107;
}

/* Mobile Timeline Labels Optimization */
@media (max-width: 767px) {
    .timeline-labels {
        justify-content: center;
        gap: 1rem;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .timeline-label {
        display: none;
        font-size: 0.8rem;
        flex: 0 0 auto;
        min-width: 70px;
        transition: all 0.3s ease;
    }
    
    /* Show active status prominently */
    .timeline-label.active {
        display: block;
        font-weight: 700;
        color: #ffc107;
        font-size: 0.9rem;
    }
    
    /* Show previous and next status with mobile-optimized styling */
    .timeline-label.mobile-visible {
        display: block;
    }
    
    .timeline-label.mobile-previous {
        font-size: 0.7rem;
        opacity: 0.6;
        color: #4caf50;
    }
    
    .timeline-label.mobile-next {
        font-size: 0.7rem;
        opacity: 0.5;
        color: #6c757d;
    }
}

/* Current Status Display */
.current-status {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    border-left: 5px solid #4caf50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.status-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.status-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.status-content p {
    color: #6c757d;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Order Summary */
.order-summary-track {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.order-summary-track h3 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
}

.summary-label {
    font-weight: 600;
    color: #495057;
}

.summary-value {
    font-weight: 700;
    color: #2c3e50;
}

.summary-total {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    color: #fff;
}

/* Actions */
.track-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.track-actions .btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.track-actions .btn-primary {
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    color: #fff;
}

.track-actions .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
}

.track-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Error States */
.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
    text-align: center;
    border: 2px solid #f5c6cb;
    font-weight: 500;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .track-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .track-header {
        padding: 2rem 1.5rem;
    }
    
    .track-header h1 {
        font-size: 2.2rem;
    }
    
    .track-form-section {
        padding: 2rem 1.5rem;
    }
    
    .order-card {
        padding: 2rem 1.5rem;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .status-timeline {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .timeline-step {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .track-actions {
        flex-direction: column;
    }
    
    .track-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .track-header h1 {
        font-size: 1.8rem;
    }
    
    .track-form-section {
        padding: 1.5rem 1rem;
    }
    
    .order-card {
        padding: 1.5rem 1rem;
    }
    
    .status-display {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .status-icon {
        font-size: 2.5rem;
    }
}

/* Dietary Filter Styling */

/* New Compact Dietary Filter */
.dietary-filter-compact {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4f1d4 100%);
    border: 1px solid #a8d5a8;
    border-radius: 16px;
    padding: 1.2rem;
    margin: 1.2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    flex-wrap: wrap;
    gap: 1rem;
    transition: all 0.3s ease;
}

.dietary-filter-compact:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.dietary-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 220px;
}

.dietary-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.dietary-text {
    color: #1f4722;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
}

.dietary-text strong {
    color: #0f3212;
    font-weight: 600;
}

.dietary-toggle {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.toggle-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.25rem;
}

.toggle-switch input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    pointer-events: none;
}

.dietary-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
    border-radius: 26px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 2px rgba(0,0,0,0.1);
    cursor: pointer;
}

.dietary-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.1);
}

.toggle-switch input[type="checkbox"]:checked + .dietary-slider {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 2px 4px rgba(40,167,69,0.3), inset 0 1px 2px rgba(0,0,0,0.1);
}

.toggle-switch input[type="checkbox"]:checked + .dietary-slider:before {
    transform: translateX(24px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.toggle-switch:hover .dietary-slider {
    box-shadow: 0 3px 6px rgba(0,0,0,0.2), inset 0 1px 2px rgba(0,0,0,0.1);
}

.toggle-switch:hover input[type="checkbox"]:checked + .dietary-slider {
    box-shadow: 0 3px 6px rgba(40,167,69,0.4), inset 0 1px 2px rgba(0,0,0,0.1);
}

.toggle-label {
    font-size: 0.95rem;
    color: #1f4722;
    font-weight: 600;
    white-space: nowrap;
    user-select: none;
}

/* Screen reader only class */

/* Global checkbox reset for toggle switches */
.dietary-filter-compact input[type="checkbox"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

@media (max-width: 768px) {
    
    /* Mobile styles for compact filter */
    .dietary-filter-compact {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1rem;
        gap: 0.75rem;
        margin: 1rem 0;
    }
    
    .dietary-header {
        justify-content: center;
        min-width: auto;
        flex: none;
        gap: 0.5rem;
    }
    
    .dietary-icon {
        font-size: 1.2rem;
    }
    
    .dietary-text {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .dietary-toggle {
        justify-content: center;
        align-self: center;
        padding: 0.5rem;
        border-radius: 8px;
        background: rgba(255,255,255,0.3);
        margin-top: 0.25rem;
    }
    
    .toggle-switch {
        gap: 0.5rem;
    }
    
    .toggle-label {
        font-size: 0.9rem;
    }
    
    .dietary-slider {
        width: 46px;
        height: 24px;
    }
    
    .dietary-slider:before {
        height: 18px;
        width: 18px;
        left: 3px;
    }
    
    .toggle-switch input[type="checkbox"]:checked + .dietary-slider:before {
        transform: translateX(22px);
    }
    
    /* Ensure checkbox is completely hidden on mobile */
    .toggle-switch input[type="checkbox"] {
        display: none !important;
        visibility: hidden !important;
    }
}

/* ===============================
   CONTACT PAGE STYLES
   =============================== */

/* Contact Hero Section */
.contact-hero {
    background: white !important;
    color: #333;
    padding: 4rem 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

.contact-hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    border-radius: 2px;
}

.contact-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c2c2c;
    font-family: 'Montserrat', sans-serif;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c2c2c;
    font-family: 'Montserrat', sans-serif;
}

.service-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #495057;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    border-color: #2c2c2c;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border-color: #2c2c2c;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #28a745;
    font-family: 'Montserrat', sans-serif;
}

.pricing-card.featured .pricing-amount {
    color: #ffc107;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

.pricing-card.featured .pricing-features li {
    border-bottom-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Contact Content Section */
.contact-content {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-description-large {
    text-align: center;
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

/* Contact Form Styles */
.contact-form {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.quote-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #2c2c2c;
    font-family: 'Montserrat', sans-serif;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c2c2c;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2c2c2c;
}

.btn-submit {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Contact Info Styles */
.contact-info {
    background: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: fit-content;
}

.contact-form-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #2c2c2c;
    font-family: 'Montserrat', sans-serif;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.25rem;
}

.info-item small {
    color: #6c757d;
    display: block;
    margin-top: 0.25rem;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 3rem 0;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-section,
    .pricing-section,
    .contact-content {
        padding: 3rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form,
    .contact-info {
        padding: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

/* Weekly Menu Package Cards - Shared Styles for Dashboard and Index */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.package-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    border-left: 4px solid #2c5aa0;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.package-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c5aa0;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.package-description {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.05);
}

.package-features {
    margin-bottom: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.feature:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.feature-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    color: #2c5aa0;
}

.package-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Public CTA Section for index.php */
.packages-cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
    border: 2px solid #4caf50;
}

.packages-cta-section h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.packages-cta-section p {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.btn-cta-primary {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #4caf50, #43a047);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 10px 10px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-cta-primary:hover {
    background: linear-gradient(135deg, #43a047, #388e3c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-cta-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    color: #2c5aa0;
    text-decoration: none;
    border: 2px solid #2c5aa0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 10px 10px 0;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Loading states for packages */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4caf50;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-packages-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Mobile responsiveness for packages */
@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .package-card {
        padding: 15px;
    }
    
    .package-name {
        font-size: 1.2rem;
    }
    
    .packages-cta-section {
        padding: 20px;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}

/* ===============================
   CONTACT PAGE STYLES
   =============================== */

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Contact Content Section */
.contact-content {
    padding: 3rem 0;
}

.contact-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Contact Info Section */
.contact-info {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: 2rem;
}

.contact-info .contact-form-title,
.contact-info h2 {
    color: #2c5530;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.info-item div {
    color: #333;
    line-height: 1.6;
}

.info-item strong {
    color: #2c5530;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.info-item small {
    color: #666;
    font-size: 0.9rem;
}

/* Contact page responsive adjustments */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .info-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .info-icon {
        font-size: 1.25rem;
        width: 35px;
    }
    
    .contact-info .contact-form-title,
    .contact-info h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}
