/* ============================================
   UraniaFood — customer.html page-specific styles
   ============================================ */

/* ===== ORDER SECTION ===== */
#order {
    background: var(--sand-pale);
    padding: 8rem 2rem;
}

.order-header {
    max-width: 550px;
    margin: 0 auto 3rem;
    text-align: center;
}

.order-header p.desc {
    font-size: 0.95rem;
    color: var(--stone);
    line-height: 1.9;
    margin-top: 0.5rem;
}

/* Type toggle */
.order-type-toggle {
    display: flex;
    max-width: 340px;
    margin: 0 auto 3rem;
    background: var(--sand);
    border-radius: 50px;
    padding: 4px;
}

.order-type-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    background: none;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--stone);
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s;
}

.order-type-btn.active {
    background: var(--cream);
    color: var(--ink);
    box-shadow: 0 2px 10px rgba(40,35,31,0.08);
}

/* Table selector */
.table-selector {
    max-width: 340px;
    margin: -1.5rem auto 3rem;
    text-align: center;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s;
}

.table-selector.show {
    max-height: 100px;
    opacity: 1;
    margin-top: 0;
}

.table-selector label {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--stone);
    display: block;
    margin-bottom: 0.6rem;
}

.table-nums {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.table-num-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--sand);
    background: var(--cream);
    border-radius: 50%;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.3s;
}

.table-num-btn.active {
    background: var(--terra);
    border-color: var(--terra);
    color: var(--cream);
}

.table-num-btn:hover:not(.active) { border-color: var(--terra); }

/* Menu items for ordering */
.order-grid { max-width: 800px; margin: 0 auto; }
.order-category { margin-bottom: 3rem; }

.order-category-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--sand);
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(229,214,192,0.5);
}

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

.order-item-color {
    width: 52px; height: 52px;
    border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}

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

.order-item-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem; font-weight: 400;
    margin-bottom: 0.15rem;
}

.order-item-desc { font-size: 0.78rem; color: var(--stone); line-height: 1.4; }

.order-item-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

.order-item-price {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem; color: var(--terra);
    min-width: 45px; text-align: right;
}

.qty-control {
    display: flex; align-items: center; gap: 0;
    border: 1px solid var(--sand); border-radius: 50px;
    overflow: hidden; background: var(--cream);
}

.qty-btn {
    width: 34px; height: 34px; border: none; background: none;
    font-size: 1rem; color: var(--ink); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover { background: var(--sand-light); }
.qty-btn:active { background: var(--sand); }

.qty-val {
    width: 28px; text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem; font-weight: 400;
}

/* Floating cart bar */
.cart-bar {
    position: fixed; bottom: -100px; left: 50%;
    transform: translateX(-50%); z-index: 900;
    background: var(--ink); color: var(--cream);
    padding: 1rem 2rem; border-radius: 60px;
    display: flex; align-items: center; gap: 1.5rem;
    box-shadow: 0 8px 30px rgba(40,35,31,0.25);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; max-width: 90vw;
}

.cart-bar.show { bottom: 2rem; }

.cart-bar-count {
    background: var(--terra); width: 30px; height: 30px;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 0.8rem; font-weight: 500; flex-shrink: 0;
}

.cart-bar-text { font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; flex-shrink: 0; }

.cart-bar-total {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem; margin-left: auto;
}

.cart-bar-arrow { opacity: 0.5; flex-shrink: 0; }

/* ===== ORDER REVIEW MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(40,35,31,0.6); backdrop-filter: blur(6px);
    z-index: 2000; display: none;
    align-items: flex-end; justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal {
    background: var(--cream); border-radius: 20px 20px 0 0;
    width: 100%; max-width: 500px; max-height: 85vh;
    overflow-y: auto; padding: 2rem;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-handle { width: 36px; height: 4px; background: var(--sand); border-radius: 2px; margin: 0 auto 1.5rem; }

.modal-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.8rem; font-weight: 300;
    text-align: center; margin-bottom: 0.3rem;
}

.modal-subtitle { text-align: center; font-size: 0.78rem; color: var(--stone); letter-spacing: 1px; margin-bottom: 2rem; }
.modal-items { margin-bottom: 2rem; }

.modal-item {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 0.7rem 0; border-bottom: 1px solid var(--sand-light);
}

.modal-item:last-child { border-bottom: none; }
.modal-item-name { font-size: 0.95rem; }
.modal-item-qty { font-size: 0.78rem; color: var(--stone); }
.modal-item-price { font-family: Georgia, 'Times New Roman', serif; font-size: 1.1rem; color: var(--terra); }

.modal-total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 1rem 0; border-top: 2px solid var(--ink); margin-bottom: 2rem;
}

.modal-total-label { font-size: 0.75rem; letter-spacing: 2.5px; text-transform: uppercase; }
.modal-total-price { font-family: Georgia, 'Times New Roman', serif; font-size: 1.6rem; font-weight: 400; }

.modal-submit {
    width: 100%; padding: 1.1rem; border: none;
    background: var(--ink); color: var(--cream);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 0.78rem;
    font-weight: 400; letter-spacing: 3px; text-transform: uppercase;
    border-radius: 60px; cursor: pointer; transition: background 0.3s;
}

.modal-submit:hover { background: var(--terra-deep); }

.modal-close {
    display: block; width: 100%; text-align: center;
    margin-top: 1rem; font-size: 0.78rem; color: var(--stone);
    cursor: pointer; background: none; border: none;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; letter-spacing: 1px;
}

/* ===== CONFIRMATION SCREEN ===== */
.confirmation {
    position: fixed; inset: 0; background: var(--cream);
    z-index: 3000; display: none;
    align-items: center; justify-content: center;
    flex-direction: column; text-align: center; padding: 2rem;
}

.confirmation.open { display: flex; }

.conf-check {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--olive); display: flex;
    align-items: center; justify-content: center;
    margin-bottom: 2rem; animation: popIn 0.5s 0.2s both;
}

@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

.conf-check svg { animation: drawCheck 0.5s 0.5s both; }
@keyframes drawCheck { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }

.conf-label { font-size: 0.68rem; letter-spacing: 4px; text-transform: uppercase; color: var(--terra); margin-bottom: 0.8rem; animation: fadeSlide 0.8s 0.4s both; }

.conf-order-num {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4rem; font-weight: 300; letter-spacing: 4px;
    color: var(--ink); margin-bottom: 0.5rem; animation: fadeSlide 0.8s 0.6s both;
}

.conf-type { font-size: 0.85rem; color: var(--stone); margin-bottom: 2rem; animation: fadeSlide 0.8s 0.7s both; }

.conf-time-box { background: var(--sand-pale); border-radius: 12px; padding: 1.5rem 2.5rem; margin-bottom: 2rem; animation: fadeSlide 0.8s 0.8s both; }
.conf-time-label { font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase; color: var(--stone); margin-bottom: 0.4rem; }
.conf-time { font-family: Georgia, 'Times New Roman', serif; font-size: 2rem; font-weight: 300; color: var(--ink); }

.conf-pay-note { font-size: 0.82rem; color: var(--stone); margin-bottom: 3rem; animation: fadeSlide 0.8s 0.9s both; }

.conf-new-order {
    font-size: 0.75rem; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--terra); background: none; border: 1px solid var(--terra);
    padding: 0.9rem 2.5rem; border-radius: 60px; cursor: pointer;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; transition: all 0.3s;
    animation: fadeSlide 0.8s 1s both;
}

.conf-new-order:hover { background: var(--terra); color: var(--cream); }

/* ===== CUSTOMER RESPONSIVE ===== */
@media (max-width: 600px) {
    #order { padding: 5rem 1.2rem; }
    .order-item { flex-wrap: wrap; gap: 0.8rem; }
    .order-item-right { width: 100%; justify-content: space-between; }
    .cart-bar { padding: 0.8rem 1.5rem; gap: 1rem; }
}
