@import url("/assets/css/base.css");

.customer-header {
    position: sticky; top: 0; z-index: 10;
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--space-3);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}
.customer-header__brand { font-weight: 700; text-decoration: none; color: var(--color-text); font-size: 1.1rem; }
.customer-header__meta { display: flex; flex-direction: column; line-height: 1.3; }
.customer-header__meta .customer-header__table { font-size: 0.78rem; font-weight: 600; color: var(--color-primary); }

.cart-icon { position: relative; font-size: 1.4rem; text-decoration: none; }
.cart-icon__badge {
    position: absolute; top: -6px; right: -10px;
    background: var(--color-primary); color: #fff;
    border-radius: 999px; font-size: 0.7rem; font-weight: 700;
    min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

.customer-main { max-width: 640px; margin: 0 auto; padding: var(--space-3); padding-bottom: 80px; }

.back-link { display: inline-block; margin-bottom: var(--space-3); color: var(--color-text); text-decoration: none; font-weight: 600; }

.menu-category h2 { margin-top: var(--space-4); }

.menu-item {
    display: flex; gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none; color: inherit;
}
.menu-item__image { width: 84px; height: 84px; border-radius: var(--radius); object-fit: cover; background: #eee; flex-shrink: 0; }
.item-detail__image { display: block; margin: 0 auto; width: auto; height: auto; max-width: 80vw; border-radius: var(--radius); background: #eee; }
.menu-item__body { flex: 1; }
.menu-item__name { font-weight: 700; margin: 0 0 4px; }
.menu-item__price { font-weight: 700; }
.menu-item--unavailable { opacity: 0.55; }

.modifier-group { margin-bottom: var(--space-4); }
.modifier-group h3 { margin-bottom: var(--space-2); }
.modifier-group__hint { font-weight: 400; font-size: 0.78rem; color: var(--color-muted); text-transform: none; letter-spacing: normal; }
.modifier-option { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.modifier-option label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.modifier-option input { width: auto; }
.modifier-option input:disabled + * { color: var(--color-muted); }

.item-description { color: var(--color-muted); margin-top: -4px; }

.qty-field { margin: var(--space-3) 0; }
.qty-field__label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: var(--space-1); }
.qty-stepper { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; width: fit-content; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.qty-stepper form { display: contents; }
.qty-stepper__btn {
    width: 44px; height: 44px; border-radius: 0; font-size: 1.3rem; line-height: 1;
    background: var(--color-bg); color: var(--color-text); border: none; padding: 0;
}
.qty-stepper__btn:hover { background: var(--color-border); }
.qty-stepper input {
    width: 56px; text-align: center; border: none; border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border); border-radius: 0; height: 44px; font-weight: 700;
}

.cart-line { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.cart-line__body { flex: 1; }
.cart-line__mods { font-size: 0.85rem; color: var(--color-muted); }
.cart-line__actions { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
.cart-line__remove { color: var(--color-danger); background: none; border: none; text-decoration: underline; cursor: pointer; padding: 0; font-size: 0.85rem; }
.cart-line .qty-stepper { transform: scale(0.85); transform-origin: left center; }

.summary-row { display: flex; justify-content: space-between; padding: 4px 0; }
.summary-row--total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--color-border); margin-top: 8px; padding-top: 8px; }

.checkout-section {
    margin-bottom: var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.checkout-section h2 {
    font-size: 1rem; text-transform: uppercase; letter-spacing: .04em;
    color: var(--color-primary-dark); margin: 0 0 var(--space-3);
    padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-border);
}

.sticky-footer {
    position: sticky; bottom: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3);
    margin: 0 calc(-1 * var(--space-3)) calc(-1 * 80px);
}
.sticky-footer button { width: 100%; }
.sticky-footer--dual { display: flex; flex-direction: column; gap: 20px; }

.confirmation { text-align: center; padding: var(--space-5) 0; }
.confirmation__icon { font-size: 3rem; }
