/* Ordering Pages - General */
.ordering-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ordering-logo-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ordering-logo-banner img {
    max-height: 120px;
    width: auto;
}

/* Menu header (no card) */
.menu-header {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
}

.menu-logo {
    display: block;
    max-height: 100px;
    width: auto;
    margin: 0 auto 1rem;
}

.menu-vendor-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #222;
    margin: 0 0 0.5rem;
}

.menu-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Home Page */
.ordering-home {
    background-color: #000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

/* Location Info */
.location-info {
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Menu Layout */
.menu-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    align-items: stretch;
    gap: 1rem;
    margin-top: 0.5rem;
}

.menu-layout > div {
    display: flex;
    flex-direction: column;
}

.menu-layout .menu-items-container {
    flex: 1;
}

.menu-layout .cart-container {
    flex: 1;
}


@media (max-width: 640px) {
    .menu-layout {
        grid-template-columns: 1fr;
    }
}

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.category-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #888;
}

.category-tab {
    color: #B71C1C;
}

.category-tab.active {
    color: #B71C1C;
    border-bottom-color: #B71C1C;
}

.category-tab:hover {
    color: #8b1515;
}

/* Menu Items */
.menu-items-container {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-top: 0.5rem;
    padding: 1rem;
}

.menu-items-list {
    padding: 0.5rem 0;
}

.menu-item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.menu-item-card {
    flex: 1;
    color: #333;
}

.menu-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-item-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #222;
}

.menu-item-price {
    font-size: 0.9rem;
    color: #666;
}

.menu-item-description {
    width: 100%;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Quantity Stepper */
.quantity-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stepper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid #9ca3af;
    background: #fff;
    color: #374151;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.stepper-btn:hover {
    background: #fee2e2;
}

.stepper-btn.plus:hover {
    background: #dcfce7;
}

.stepper-count {
    width: 2rem;
    text-align: center;
    font-weight: 700;
    color: #1c1917;
}

.customize-btn {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: #dc2626;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.customize-btn:hover {
    background: #b91c1c;
}

/* Cart */
.cart-container {
    background: #fff;
    margin-top: 0.5rem;
    padding: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cart-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #B71C1C;
    text-align: center;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 3px solid #B71C1C;
}

.cart-empty {
    text-align: center;
    padding: 1rem;
    color: #6b7280;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item-modifiers {
    margin-left: 1rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    list-style: disc;
    padding-left: 1rem;
}

.cart-item-modifiers .added {
    color: #15803d;
}

.cart-item-modifiers .removed {
    color: #dc2626;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.2rem;
}

.remove-btn:hover {
    color: #dc2626;
}

/* Checkout Button */
.checkout-btn-container {
    margin-top: 1rem;
}

.btn-red {
    width: 100%;
    background: #ef4444;
    color: #fff;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-red:hover {
    background: #b91c1c;
}

.btn-red:disabled {
    background: #e5e7eb;
    color: #888;
    cursor: not-allowed;
}

/* Checkout Page */
.checkout-section {
    background: #fff;
    color: #57534e;
    margin-top: 0.5rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.checkout-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0.75rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Order Summary */
.order-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    background: #f3f4f6;
    color: #57534e;
    margin-top: 0.5rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.order-summary span {
    text-align: right;
}

.order-summary .label {
    font-weight: 600;
}

.order-summary .value {
    font-weight: 700;
    border-top: 1px solid #9ca3af;
}

.order-summary .total-label {
    font-weight: 600;
}

.order-summary .total-value {
    font-weight: 800;
    border-top: 1px solid #9ca3af;
}

/* Tip Section */
.tip-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tip-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.tip-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    background: #e5e7eb;
    color: #57534e;
}

.tip-btn:hover {
    background: #d1d5db;
}

.tip-btn.selected {
    background: #ef4444;
    color: #fff;
}

.tip-custom-input {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.tip-custom-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Promo Section */
.promo-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.promo-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.promo-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.promo-success {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.5rem;
    color: #16a34a;
}

/* Terms Checkbox */
.terms-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.terms-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid #ccc;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.terms-row input[type="checkbox"]:checked {
    background: #B71C1C;
    border-color: #B71C1C;
}

.terms-row input[type="checkbox"]:checked::after {
    content: "✓";
    color: #fff;
    font-size: 13px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Confirmation Page */
.confirmation-content {
    background: #fff;
    color: #57534e;
    margin-top: 0.5rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.confirmation-content h1 {
    font-size: 1.875rem;
    margin-top: 0.5rem;
}

.confirmation-content .detail {
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

/* Back Button Row */
.back-btn-row {
    display: flex;
    justify-content: center;
    background: #fff;
    color: #57534e;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Checkout Cart Item */
.checkout-cart-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: center;
    background: #f3f4f6;
    color: #57534e;
    margin-top: 0.5rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .checkout-cart-item {
        grid-template-columns: 1fr;
    }
}

/* Billing Section */
.billing-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    margin: 0.5rem 0.75rem;
}

.billing-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #ef4444;
}

.credit-card-section {
    background: #f3f4f6;
    margin: 1rem 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.credit-card-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    padding: 0.5rem 0.75rem;
}

/* ===== Customer order tracking (mobile-first) ===== */

.track-page {
    min-height: 100vh;
    background-color: #f7f7f8;
    padding: 1.5rem 1rem;
    font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
    max-width: 480px;
    margin: 0 auto;
}

.track-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.track-logo {
    height: 80px;
    width: auto;
    margin-bottom: 0.5rem;
}

.track-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.track-search {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.track-search-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.track-search-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.track-search-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.track-search-btn:hover {
    background: #dc2626;
}

.track-search-btn:disabled {
    background: #e5e7eb;
    color: #888;
    cursor: not-allowed;
}

.track-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

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

/* Order card */
.track-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.track-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: none;
}

.status-badge.status-received {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-badge.status-in-progress {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-badge.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.track-estimate {
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    padding: 0.25rem 0.625rem;
    border-radius: 8px;
}

.track-ref {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.25rem;
}

.track-time {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.track-rejection {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #991b1b;
}

.track-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #1e40af;
}

.track-items {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.track-items-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.track-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.track-item-name {
    font-weight: 500;
    color: #222;
}

.track-item-mods {
    list-style: none;
    padding: 0.25rem 0 0 0.75rem;
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.track-item-mods .mod-removed {
    color: #dc2626;
}
