﻿/* MenuOnline - "Botanical Elegance" design system, mobile-first */

/* Customer-only CSS (Home/menu + cart/checkout/status flow), used by
   _CustomerLayout.cshtml. This is a curated subset of site-admin.css — rules
   the Admin/Kasir backoffice needs (site-header nav, dashboard, kasir tools,
   settings list, QR print card, etc.) are intentionally left out to keep the
   customer-facing bundle lean. site-admin.css itself is untouched and still
   loads in full for the backoffice (_Layout.cshtml).

   IMPORTANT for future edits: some class NAMES here are reused by the
   backoffice too (e.g. .btn, .form-control, .summary-card) — each file has
   its own copy of the rule, styled for its own context, so a color/spacing
   tweak here doesn't reach the other file. Check usage across ALL of Views/
   (both Views/Storefront and Views/Backoffice) before assuming a class is
   customer-only, and before assuming the same class means the same thing in
   both files. */

#page-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--color-accent);
    z-index: 9999;
    opacity: 0;
    transition: width 0.4s ease-out, opacity 0.2s ease-out;
    pointer-events: none;
}

#page-loading-bar.is-active {
    opacity: 1;
    width: 90%;
}

:root {
    --color-bg: #fbf9f5;
    --color-surface: #ffffff;
    --color-surface-alt: #f5f3ef;
    --color-surface-high: #eae8e4;
    --color-text: #1b1c1a;
    --color-text-muted: #534341;
    --color-border: rgba(134, 115, 112, 0.25);

    --color-accent: #8f4b41;
    --color-accent-rgb: 143, 75, 65; /* same color as --color-accent, split out for rgba() use (e.g. the header's glass background) */
    --color-accent-dark: #632821;
    --color-accent-dark-rgb: 99, 40, 33; /* same color as --color-accent-dark, split out for rgba() use (e.g. the cart bar's glass background) */
    --color-accent-container: #e28f83;
    --color-on-accent: #ffffff;

    --color-secondary: #53624f;
    --color-secondary-container: #d4e5cc;
    --color-on-secondary-container: #586753;

    --color-danger: #ba1a1a;
    --color-danger-container: #ffdad6;
    --color-on-danger-container: #93000a;
    --color-success: #53624f;

    --radius: 1rem;
    --radius-sm: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-pill: 9999px;
    --max-width: 480px;

    --font-heading: 'Libre Caslon Text', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
}

/* ---------- Scrollbar ---------- */
/* Thumb tipis bertema accent untuk semua elemen yang scroll, bukan scrollbar
   bawaan browser yang tebal/abu-abu. .category-pills tetap menyembunyikan
   scrollbar-nya sendiri (aturan lebih spesifik, lihat di bawah). */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--color-accent-rgb), 0.4) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(var(--color-accent-rgb), 0.4);
    border-radius: var(--radius-pill);
}

*::-webkit-scrollbar-thumb:hover {
    background-color: rgba(var(--color-accent-rgb), 0.6);
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-text);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

/* ---------- Header ---------- */

/* Shared floating "glass" chrome for every storefront header — the home
   page's (.app-header) and every other page's back-button header
   (.sub-page-header). Only layout/content differs between them (see their
   own rules below); a header color or blur tweak only needs to happen once,
   here, instead of being kept in sync across both. */
.page-header {
    position: sticky;
    top: 0.6rem;
    width: calc(100% - 1.2rem);
    max-width: var(--max-width);
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(var(--color-accent-dark-rgb), 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(var(--color-accent-rgb), 0.28);
    z-index: 10;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 0.4rem;
    padding: 0.9rem 1rem;
}

/* .brand only ever appears inside a .page-header (the home header itself,
   or _Brand.cshtml inside .sub-page-header) — safe to color it for that
   dark background directly, no extra scoping needed. */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--color-on-accent);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.15s ease;
}

.brand:hover,
.brand:focus-visible {
    color: var(--color-accent-container);
}

/* Wraps the logo <img> in its own solid backdrop, independent of whatever
   background the header/brand sit on (e.g. the storefront's dark
   .app-header) — a logo whose own background happens to match the header
   would otherwise disappear into it. Background is its own separate
   variable so it can be retuned without touching the header. */
.brand-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0.25rem;
    border-radius: 50%;
    background: var(--color-surface);
    flex: none;
    transition: transform 0.15s ease;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand:hover .brand-logo-box,
.brand:focus-visible .brand-logo-box {
    transform: scale(1.06);
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--color-text-muted);
    cursor: pointer;
}

.inline-form {
    display: inline;
}

/* ---------- Buttons (pill-shaped) ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    transition: transform 0.15s ease;
}

.btn:active {
    transform: scale(0.97);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-on-accent);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-accent-outline {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
}

.btn-sm {
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
    width: auto;
}

.btn-block {
    width: 100%;
}

/* ---------- Qty stepper ---------- */

.qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.qty-stepper button {
    background: var(--color-surface-alt);
    border: none;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.4rem 0.75rem;
    font-size: 1rem;
    cursor: pointer;
}

.qty-stepper input {
    border: none;
    width: 2.2rem;
    text-align: center;
    font-size: 0.85rem;
    background: transparent;
}

/* Hide native up/down spinner arrows on all numeric inputs. */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bottom-sheet .qty-stepper {
    width: fit-content;
    margin-left: auto;
}

/* ---------- Forms ---------- */

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-body);
    background: var(--color-surface);
    color: var(--color-text);
}

.form-control:focus {
    outline: none;
    border-color: rgba(var(--color-accent-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.12);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kasir-nav {
    display: flex;
    gap: 0.5rem;
}

.kasir-nav .btn {
    flex: 1;
    width: auto;
    white-space: nowrap;
    border-radius: var(--radius-sm);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 2.6rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    color: var(--color-text-muted, var(--color-text));
    cursor: pointer;
    padding: 0;
}

.password-toggle .material-symbols-outlined {
    font-size: 20px;
}

.field-validation-error, .validation-summary-errors {
    color: var(--color-danger);
    font-size: 0.78rem;
}

/* ---------- Cards / lists (admin & kasir) ---------- */

.card-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.item-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.85rem;
}

.item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.item-card-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.05rem;
}

.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
}

.badge-baru { background: var(--color-danger-container); color: var(--color-on-danger-container); }
.badge-diproses { background: var(--color-accent-container); color: var(--color-accent-dark); }
.badge-selesai { background: var(--color-secondary-container); color: var(--color-on-secondary-container); }
.badge-batal { background: var(--color-surface-alt); color: var(--color-text-muted); }
.item-card-lines {
    display: grid;
    grid-template-columns: 1fr auto auto;
    column-gap: 0.6rem;
    row-gap: 0.2rem;
    font-size: 0.85rem;
    margin: 0.4rem 0;
    padding-left: 0;
    list-style: none;
}

/* li becomes a transparent grouping element so its children line up as
   columns in the parent grid, keeping Qty/Harga aligned across every item. */
.item-card-lines li {
    display: contents;
}

.item-line-qty {
    color: var(--color-text-muted);
    text-align: right;
}

.item-line-price {
    text-align: right;
    font-weight: 600;
}

.item-line-note {
    grid-column: 1 / -1;
    font-size: 0.76rem;
    font-style: italic;
    color: var(--color-text-muted);
    padding-left: 0.75rem;
    border-left: 2px solid var(--color-border);
    margin-bottom: 0.3rem;
}

/* ---------- Cart line with thumbnail (checkout page) ---------- */

.cart-line {
    display: flex;
    gap: 0.7rem;
}

.cart-line-thumb {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--color-surface-high);
    flex-shrink: 0;
}

.cart-line-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1.3rem;
}

.cart-line-body {
    flex: 1;
    min-width: 0;
}

.item-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
}

.item-card-actions .btn {
    width: auto;
    flex: 1;
}

/* use when actions should stay their natural width instead of stretching evenly */
.item-card-actions.compact .btn {
    flex: none;
}

/* Kasir "confirm payment" row: dropdown and button should look like one
   balanced control pair, not a tiny select next to a stretched-out button. */
.payment-confirm-row .form-control {
    flex: 1;
    width: auto;
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
}

.payment-confirm-row .btn {
    flex: 1;
}

.category-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.category-row .item-card-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-row-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
}

.icon-btn {
    padding: 0.35rem;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-row-form {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.form-group-inline {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.form-group-inline .form-label {
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
}

/* ---------- Status page ---------- */

.status-hero {
    text-align: center;
    padding: 1.5rem 0 1rem;
}

.status-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--color-accent-container);
    color: var(--color-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon .material-symbols-outlined {
    font-size: 2.2rem;
}

.status-icon.cancelled {
    background: var(--color-danger-container);
    color: var(--color-on-danger-container);
}

.status-code {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--color-text);
}

.status-label {
    display: inline-block;
    margin-top: 0.4rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-accent-dark);
}

.status-label.cancelled {
    color: var(--color-danger);
}

.status-message {
    margin-top: 0.4rem;
    font-size: 0.85rem;
}

.status-time {
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.status-timeline {
    margin: 1.5rem 0;
    padding-left: 0.5rem;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 24px;
    bottom: -4px;
    width: 2px;
    background: var(--color-border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item.done::before {
    background: var(--color-accent);
}

.timeline-marker {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-marker .material-symbols-outlined {
    font-size: 16px;
    color: var(--color-on-accent);
}

.timeline-item.done .timeline-marker {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.timeline-item.active .timeline-marker {
    border-color: var(--color-accent);
    background: var(--color-accent-container);
}

.timeline-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.timeline-item.done .timeline-label,
.timeline-item.active .timeline-label {
    color: var(--color-text);
    font-weight: 700;
}

.empty-state {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem 1rem;
}

.text-muted {
    color: var(--color-text-muted);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ---------- Toast ---------- */

.toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: calc(100% - 2rem);
    max-width: var(--max-width);
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 14px rgba(27, 28, 26, 0.18);
    animation: toast-in 0.25s ease-out, toast-out 0.3s ease-in 3.2s forwards;
}

.toast-success { background: var(--color-secondary); }
.toast-error { background: var(--color-danger); }
.toast-info { background: var(--color-text); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

/* ---------- Branch selection modal ---------- */

.branch-select-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 28, 26, 0.55);
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.branch-select-modal {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 16px 40px rgba(27, 28, 26, 0.25);
}

.branch-select-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0 0 0.4rem;
    color: var(--color-accent-dark);
}

.branch-select-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 60vh;
    overflow-y: auto;
}

.branch-select-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 150ms ease-in, background 150ms ease-in;
}

.branch-select-item:hover,
.branch-select-item:focus-visible {
    border-color: var(--color-accent);
    background: var(--color-surface-alt);
}

.branch-select-item .material-symbols-outlined {
    color: var(--color-accent);
    flex-shrink: 0;
}

.branch-select-item-name {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
}

.branch-select-item-address {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.branch-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.branch-modal-close {
    background: none;
    border: none;
    padding: 0.25rem;
    line-height: 0;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
}

.branch-modal-close:hover,
.branch-modal-close:focus-visible {
    background: var(--color-surface-alt);
    color: var(--color-accent);
}
/* ---------- Image lightbox (thumbnail zoom only) ---------- */

.image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(27, 28, 26, 0.8);
    z-index: 220;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: zoom-out;
}

.image-lightbox.open {
    display: flex;
}

.image-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* ---------- Product detail modal ---------- */

.product-detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(27, 28, 26, 0.8);
    z-index: 210;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.product-detail-modal.open {
    display: flex;
}

.product-detail-card {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: var(--max-width);
    max-height: 100%;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(27, 28, 26, 0.25);
}

.product-detail-photo-wrap {
    position: relative;
}

.product-detail-card img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    background: var(--color-surface-alt);
    display: block;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-detail-photo-wrap .thumb-cart-badge {
    top: 0.7rem;
    right: 0.7rem;
    min-width: 2.1rem;
    height: 2.1rem;
    font-size: 0.85rem;
    border-width: 3px;
}

.product-detail-body {
    padding: 1rem 1.25rem 1.25rem;
}

.product-detail-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    color: var(--color-accent-dark);
}

.product-detail-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-pill);
    border: none;
    background: rgba(27, 28, 26, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ---------- Confirm modal ---------- */

.confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(27, 28, 26, 0.45);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.confirm-box {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 8px 24px rgba(27, 28, 26, 0.2);
}

.confirm-box p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

.confirm-box .confirm-actions {
    display: flex;
    gap: 0.6rem;
}

.confirm-box .confirm-actions .btn {
    width: auto;
    flex: 1;
}

/* =====================================================================
   Home page - "Botanical Elegance" customer-facing layout
   ===================================================================== */

.app-header {
    min-height: 4rem;
    padding: 0 1.1rem;
    flex-wrap: wrap;
    row-gap: 0.4rem;
}

.app-header .brand {
    font-size: 1.3rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.app-header-actions a,
.app-header-actions .link-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-accent-dark);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    border: 1px solid transparent;
    background: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-header-actions .icon-button {
    padding: 0.45rem;
    width: 2.1rem;
    height: 2.1rem;
    justify-content: center;
}

/* The header itself is dark now (see .app-header above) — override the
   default link-button color above just for the storefront header's own
   actions. */
.app-header-actions a,
.app-header-actions .link-button {
    color: var(--color-on-accent);
}

.app-header-actions .icon-button .material-symbols-outlined {
    font-size: 20px;
}

.app-header-actions a:hover,
.app-header-actions a:focus-visible,
.app-header-actions .link-button:hover,
.app-header-actions .link-button:focus-visible {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--color-accent-dark);
    box-shadow: 0 2px 8px rgba(143, 75, 65, 0.12);
}

.app-header-actions a:active,
.app-header-actions .link-button:active {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.9);
}

.app-footer {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-surface-high);
}

.app-footer-staff-link {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-decoration: none;
    opacity: 0.7;
    padding: 0.4rem 0.8rem;
}

.app-footer-staff-link:hover,
.app-footer-staff-link:focus-visible {
    opacity: 1;
    color: var(--color-accent);
}

.app-main {
    max-width: var(--max-width);
    min-height: 100vh;
    margin: 0 auto;
    padding: 1.25rem 1.1rem 8rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.app-main.wide-page {
    max-width: 900px;
}

/* ---------- Hero banner ---------- */

.hero-banner {
    position: relative;
    height: 12rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.75rem;
    background-color: var(--color-accent-dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 28, 26, 0.65) 0%, rgba(27, 28, 26, 0) 65%);
}

.hero-banner-content {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.1rem;
    color: #fff;
}

.hero-dots {
    position: absolute;
    bottom: 0.6rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    z-index: 5;
}

.hero-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    padding: 0;
    cursor: pointer;
}

.hero-dot.active {
    background: #fff;
    width: 1.1rem;
    border-radius: var(--radius-pill);
}

.hero-banner-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 0.25rem;
}

.hero-banner-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ---------- Store info strip ---------- */

.store-info-strip {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: linear-gradient(160deg, var(--color-secondary-container), var(--color-secondary-container) 55%, var(--color-surface-high));
    color: var(--color-on-secondary-container);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -2px 3px rgba(27, 28, 26, 0.1),
        0 3px 10px rgba(27, 28, 26, 0.1);
}

.store-info-strip .material-symbols-outlined {
    font-size: 22px;
    flex-shrink: 0;
    color: var(--color-secondary);
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5));
}

.store-info-strip > span:not(.material-symbols-outlined) {
    flex: 1 1 auto;
    min-width: 0;
}

.store-info-branch {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--color-secondary);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow-wrap: break-word;
}

.store-info-address {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 0.1rem;
}

.store-info-switch {
    margin-left: auto;
    flex-shrink: 0;
    width: auto;
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    line-height: 1.2;
    background: var(--color-surface-high);
}

/* ---------- Category pills ---------- */

/* Sticky: nempel tepat di bawah .page-header (top:0.6rem + tinggi header
   ~4rem, lihat .app-header min-height) supaya tetap kepegang saat scroll
   daftar menu yang panjang — pill jadi navigasi lompat-ke-kategori, bukan
   cuma filter (lihat initMenuFilter di site-customer.js). z-index sengaja
   di bawah .page-header (10) supaya header tetap di atas saat keduanya
   nempel bersamaan. */
.category-pills {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    margin: 0 -1.1rem 1.5rem;
    padding: 0.6rem 1.1rem;
    scrollbar-width: none;
    position: sticky;
    top: 4.6rem;
    z-index: 9;
    background: var(--color-surface);
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.pill {
    flex: none;
    border: none;
    background: var(--color-surface-high);
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    white-space: nowrap;
}

.pill.active {
    background: var(--color-accent-container);
    color: var(--color-accent-dark);
}

/* ---------- Menu list (horizontal cards) ---------- */

/* Dulu grid 1-kolom berisi card langsung; sekarang flex-column berisi
   .menu-category-section per kategori (supaya ada target id yang bisa
   dituju pill kategori saat di-klik). Gap di sini jadi jarak ANTAR
   section — jarak antar card DALAM satu section ada di
   .menu-category-section sendiri, di bawah. */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* scroll-margin-top: supaya saat pill kategori di-klik dan section ini
   di-scroll ke atas, bagian atasnya tidak ketutup .page-header + sticky
   .category-pills yang nempel di atasnya. */
#menu-list,
.menu-category-section {
    scroll-margin-top: 8rem;
}

.menu-category-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-category-heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: var(--color-accent);
    margin: 0;
}

.menu-list-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.9rem;
    display: flex;
    gap: 1rem;
    cursor: pointer;
    align-items: center;
    box-shadow: 0 10px 24px rgba(143, 75, 65, 0.06);
}

.menu-list-card.unavailable {
    opacity: 0.55;
}

.menu-list-thumb-wrap {
    position: relative;
    flex: none;
}

.menu-list-thumb {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--color-surface-high);
    display: block;
    cursor: zoom-in;
}

.menu-list-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1.6rem;
    cursor: default;
}

.thumb-cart-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.3rem;
    border-radius: var(--radius-pill);
    background: var(--color-accent);
    color: var(--color-on-accent);
    border: 2px solid var(--color-surface);
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.menu-list-tag {
    position: absolute;
    top: 0.3rem;
    left: 0.3rem;
    background: var(--color-secondary-container);
    color: var(--color-on-secondary-container);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-pill);
}

.menu-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.menu-list-name {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--color-accent);
    margin: 0;
}

.menu-list-desc {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.35;
    margin: 0;
}

.menu-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.3rem;
}

.menu-list-price {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 400;
    font-size: 1rem;
}

.menu-list-status {
    margin-left: auto;
}

.add-btn {
    width: 2.75rem;
    height: 2.75rem;
    flex: none;
    border-radius: 50%;
    border: none;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(143, 75, 65, 0.25);
}

.add-btn:active {
    transform: scale(0.9);
}

.menu-list-footer-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-qty-chip {
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.5rem;
    flex: none;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--color-accent-container);
    color: var(--color-accent-dark);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-qty-chip:active {
    transform: scale(0.92);
}

/* ---------- Menu card "featured" (showcase foto besar, lihat
   _MenuCardFeatured.cshtml & MenuItemViewModel.FeaturedCardThreshold) ---------- */

.menu-list-featured {
    gap: 1.75rem;
}

.menu-list-featured .menu-category-section {
    gap: 1.5rem;
}

/* .menu-card-featured cuma modifier di atas .menu-list-card (lihat komentar
   di _MenuCardFeatured.cshtml) — override arah flex dari baris jadi kolom,
   sisanya (border, radius, shadow, cursor) tetap warisan dari .menu-list-card. */
.menu-card-featured {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.menu-card-featured-thumb-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--color-surface-high);
}

.menu-card-featured-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.menu-card-featured-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 3rem;
    cursor: default;
}

.menu-card-featured-body {
    padding: 1.1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.menu-card-featured-name {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--color-accent);
    margin: 0;
}

.menu-card-featured-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin: 0;
}

.menu-card-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.4rem;
}

.menu-card-featured-price {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 400;
    font-size: 1.25rem;
}

.switch {
    display: inline-flex;
    position: relative;
    cursor: pointer;
}

.switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.switch-track {
    width: 2.6rem;
    height: 1.5rem;
    border-radius: var(--radius-pill);
    background: var(--color-border);
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    padding: 0 2px;
}

.switch-thumb {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.switch input:checked + .switch-track {
    background: var(--color-secondary);
}

.switch input:checked + .switch-track .switch-thumb {
    transform: translateX(1.1rem);
}

.switch input:focus-visible + .switch-track {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.segmented-control {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.segmented-control .segmented-option {
    flex: 1 1 45%;
}

.segmented-option {
    flex: 1;
    position: relative;
}

.segmented-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.segmented-option span {
    display: block;
    text-align: center;
    padding: 0.6rem 0.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.segmented-option input:checked + span {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-on-accent);
}

.segmented-option input:focus-visible + span {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(27, 28, 26, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 150;
}

.sheet-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

body.sheet-open {
    overflow: hidden;
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    max-width: var(--max-width);
    background: var(--color-surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 0.6rem 1.25rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
    z-index: 151;
}

.bottom-sheet.open {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 2.5rem;
    height: 4px;
    border-radius: var(--radius-pill);
    background: var(--color-border);
    margin: 0 auto 0.75rem;
}

.bottom-sheet .qty-stepper {
    width: 8rem;
}

.bottom-sheet input[type="text"] {
    font-size: 0.78rem;
    padding: 0.45rem 0.7rem;
}

.bottom-sheet-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.bottom-sheet-actions .btn {
    width: auto;
}

/* ---------- Floating cart bar (glass) ---------- */

#cart-bar-container {
    background-color: var(--color-bg);
}

.cart-bar {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.2rem);
    max-width: calc(var(--max-width) - 1.1rem);
    background: rgba(var(--color-accent-dark-rgb), 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-on-accent);
    padding: 0.8rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-lg);
    text-decoration: none;
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(var(--color-accent-dark-rgb), 0.28);
    z-index: 30;
}

.cart-bar .cart-bar-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.cart-bar .cart-qty {
    background: var(--color-accent);
    color: #fff;
    border-radius: 999px;
    min-width: 1.3rem;
    height: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.cart-bar .cart-bar-label {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}

.cart-bar .cart-bar-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
}

.cart-bar .cart-total {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--color-accent-container);
}

/* ---------- Bottom navigation ---------- */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--color-surface-alt);
    box-shadow: 0 -4px 16px rgba(143, 75, 65, 0.06);
    border-radius: var(--radius) var(--radius) 0 0;
    z-index: 30;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-pill);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item:active {
    background: color-mix(in srgb, var(--color-accent-container) 45%, transparent);
    color: var(--color-accent-dark);
}

.bottom-nav-item.active {
    background: var(--color-accent-container);
    color: var(--color-accent-dark);
}

/* =====================================================================
   Cart / Checkout page
   ===================================================================== */

/* Wraps the back button + brand pill for every storefront header except
   Home's — Checkout, Detail, Pembayaran, Status, Lookup, ... The row itself
   carries the sticky offset; .page-header's own sticky/margin is neutralized
   below so the two don't stack. */
.sub-page-header-row {
    position: sticky;
    top: 0.6rem;
    z-index: 11;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: calc(100% - 1.2rem);
    max-width: var(--max-width);
    margin: 0 auto 1.5rem;
}

.sub-page-header-row .page-header {
    position: static;
    margin: 0;
}

/* The centered brand, with the back button (when present) absolutely
   positioned at the left edge — .page-branch-tag still lives outside this
   pill so page context doesn't crowd the brand/nav row itself. Positioning
   the back button absolutely (rather than as a flex sibling) keeps the brand
   perfectly centered on the pill whether or not a back button is present. */
.sub-page-header {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 2.7rem;
    min-width: 0;
}

.back-btn {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-on-accent);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.back-btn:hover,
.back-btn:active {
    background: rgba(255, 255, 255, 0.14);
}

/* Small icon + text tag showing which branch a page's content belongs to.
   Sits beside a page's own title (.sub-page-title) instead of inside the
   header, since it's page context rather than brand chrome. */
.page-branch-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.page-branch-tag .material-symbols-outlined {
    font-size: 16px;
    color: var(--color-secondary);
}

.sub-page-title {
    text-align: center;
    margin: 1.75rem 0 2rem;
}

.sub-page-title .eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-container);
    margin-bottom: 0.4rem;
}

.sub-page-title h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.6rem;
    margin: 0;
}

.sub-page-title .divider {
    width: 3rem;
    height: 2px;
    background: var(--color-accent-container);
    border-radius: var(--radius-pill);
    margin: 1rem auto 0;
}

.cart-item-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 12px 28px rgba(143, 75, 65, 0.07);
    position: relative;
}

.cart-item-photo {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--color-surface-high);
    flex-shrink: 0;
}

.cart-item-photo.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1.5rem;
}

.cart-item-body {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--color-accent);
    margin: 0 0 0.2rem;
}

.cart-item-note {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin: 0 0 0.6rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.cart-item-price {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 400;
    font-size: 0.95rem;
}

.cart-item-remove {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.cart-item-remove:hover {
    color: var(--color-danger);
}

.cart-suggest {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 1.6rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.summary-card {
    background: var(--color-surface);
    border: 1px solid var(--color-surface-high);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 12px 28px rgba(143, 75, 65, 0.07);
    margin-top: 1.5rem;
}

.summary-card h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

/* ---------- Shared "nothing here" state ---------- */
/* One shared look for every full-page empty/no-results state (Home menu
   empty, Home search-no-results, Cart empty, Riwayat empty/loading/error) so
   icon size and spacing can't drift out of sync between them again — style
   this once here instead of adding another page-specific *-empty-state class. */

.page-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--color-text-muted);
}

.page-empty-state .material-symbols-outlined {
    font-size: 3rem;
    color: var(--color-accent-container);
}

.page-empty-state h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--color-text);
    margin: 0.75rem 0 0.4rem;
}

.page-empty-state p {
    font-size: 0.85rem;
    margin: 0;
    max-width: 22rem;
    margin-inline: auto;
}

.page-empty-state .btn {
    margin-top: 1.25rem;
}

.page-empty-state .material-symbols-outlined.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------- Order/cart total summary (used by _TotalsBreakdown,
   Order/Detail, Order/Pembayaran) ---------- */

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
}

.summary-divider {
    height: 1px;
    background: var(--color-surface-high);
    margin: 0.9rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.summary-total span:first-child {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.summary-total .amount {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-accent);
}

