/* =========================================================
   Halaman Menu & Harga (data dari POS)
   Memakai token & komponen dari home.css; di sini hanya tata letak khusus halaman menu.
   ========================================================= */

.page-menu { --cat-h: 56px; }

/* ---------- Kepala halaman (kristal low-poly seperti hero beranda) ---------- */
.page-head {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(48px, 7vw, 88px);
    color: #fff;
    background: #3a0409;
}
.page-head .hero-poly { inset: 0; }
.page-head .hero-poly svg { object-fit: cover; }
.page-head-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(26, 2, 6, .78) 0%, rgba(26, 2, 6, .45) 55%, rgba(26, 2, 6, .2) 100%);
}
[dir="rtl"] .page-head-shade {
    background: linear-gradient(270deg, rgba(26, 2, 6, .78) 0%, rgba(26, 2, 6, .45) 55%, rgba(26, 2, 6, .2) 100%);
}
.page-title {
    margin: 0 0 14px;
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 600;
    line-height: 1;
}
.page-lead {
    max-width: 52ch;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .86);
}

/* ---------- Pita kategori (menempel di bawah navigasi) ---------- */
.cat-bar {
    position: sticky;
    top: var(--nav-h);
    z-index: 50;
    background: rgba(238, 241, 242, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .07);
}
.cat-scroll {
    display: flex;
    gap: 8px;
    width: min(var(--container), 100% - var(--gutter) * 2);
    margin-inline: auto;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-scroll a {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 16px;
    border: 1.5px solid var(--rule);
    border-radius: 999px;
    background: var(--panel);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .25s, color .25s;
}
.cat-scroll a:hover { border-color: var(--red); color: var(--red); }

/* ---------- Isi ---------- */
.menu-page { padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 9vw, 120px); }
.menu-sec { scroll-margin-top: calc(var(--nav-h) + var(--cat-h) + 16px); }
.menu-sec + .menu-sec { margin-top: clamp(40px, 6vw, 72px); }
.menu-sec-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--rule);
    font-family: var(--font-hand);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1;
    color: var(--red);
}
.menu-sec-title .alt {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-soft);
}

/* Promo berlangsung */
.promo-strip {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: clamp(32px, 5vw, 48px);
    padding: 14px 18px;
    border-inline-start: 4px solid var(--red);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.promo-label {
    flex: none;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.promo-strip ul { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.promo-strip li { display: grid; gap: 2px; overflow-wrap: anywhere; }
.promo-name { font-weight: 700; }
.promo-desc { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 560px) {
    .promo-strip { flex-direction: column; gap: 10px; }
}

.until { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }

/* Paket hemat */
.combo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(16px, 2.5vw, 28px);
}
.combo {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: var(--panel);
    box-shadow: var(--shadow);
}
.combo-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f6f6 url('../images/ornament/bowl.svg') center / 50% no-repeat;
}
.combo-media img { width: 100%; height: 100%; object-fit: cover; }
.combo-body { display: flex; flex-direction: column; flex: 1; padding: 14px 8px 6px; }
.combo h3 {
    margin: 0 0 6px;
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.15;
}
.combo-items { margin: 0 0 8px; padding-inline-start: 18px; color: var(--ink-soft); font-size: .93rem; }
.combo-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 10px; }
.combo-price { margin: 0; flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.combo-price strong { font-size: 1.25rem; color: var(--red); }
.combo-price s { color: var(--ink-soft); font-size: .92rem; }
.save {
    padding: 1px 8px;
    border-radius: 999px;
    background: #fde8eb;
    color: var(--red-hover);
    font-size: .8rem;
    font-weight: 700;
}
.combo-foot .until { margin: 0; flex: 1; }

.btn--sm { min-height: 44px; padding: 8px 18px; font-size: .92rem; gap: 8px; }

/* Daftar menu per kategori */
.item-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px clamp(16px, 3vw, 36px);
}
.item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px;
    background: var(--panel);
    box-shadow: 0 8px 22px -16px rgba(60, 10, 18, .35);
}
.item-media {
    width: 76px;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f6f6 url('../images/ornament/bowl.svg') center / 62% no-repeat;
}
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.item-name {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
/* Nama kedua (Arab di halaman Indonesia/Inggris, Indonesia di halaman Arab): rata mengikuti halaman. */
.item-alt { margin: 2px 0 0; font-size: .88rem; color: var(--ink-soft); text-align: match-parent; }
.combo .item-alt { margin: -4px 0 6px; }
/* Teks POS yang belum diterjemahkan tetap dibaca kiri-ke-kanan, tetapi rata mengikuti halaman. */
.xl { text-align: match-parent; }
.item-desc {
    margin: 4px 0 0;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--ink-soft);
}
.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: end; }
.item-price { margin: 0; font-weight: 700; color: var(--red); white-space: nowrap; }
/* "Mulai" — harga bisa naik karena pilihan wajib (lihat posFromPrice). */
.item-price .from { font-size: .75rem; font-weight: 600; color: var(--ink-soft); }
.item-order {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 4px 12px;
    border: 1.5px solid var(--red);
    border-radius: 999px;
    color: var(--red);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    touch-action: manipulation;
    transition: background-color .25s, color .25s;
}
.item-order:hover { background: var(--red); color: #fff; }
/* Area sentuh minimal 44px tanpa membesarkan tampilan tombol */
.item-order { position: relative; }
.item-order::after { content: ''; position: absolute; inset: -5px -4px; }

.badge-out {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #ececec;
    color: #5f5f5f;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}
/* Tombol Pesan & label Habis menempati sel yang sama; status cukup diganti lewat kelas .is-out
   (juga oleh menu.js tanpa muat ulang) sehingga tata letak tidak bergeser. */
.avail { display: inline-grid; justify-items: end; align-items: center; }
.avail > * { grid-area: 1 / 1; }
.combo .avail { justify-items: start; }
.is-out [data-order],
:is(.item, .combo):not(.is-out) .badge-out { visibility: hidden; }

.is-out .item-media img,
.is-out .combo-media img { filter: grayscale(1); opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
    .item-media img, .combo-media img { transition: filter .4s, opacity .4s; }
}

/* Pita "Menu diperbarui" dari menu.js (di atas tombol WA pada layar kecil) */
.menu-update {
    position: fixed;
    z-index: 95;
    inset-inline: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    width: max-content;
    max-width: calc(100% - 32px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    padding-inline-start: 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: .92rem;
    font-weight: 600;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
}
.menu-update button {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
}
.menu-update-reload { margin-inline-start: 8px; padding: 0 16px; background: #fff; color: var(--red); }
.menu-update-reload:hover { background: #fde8eb; }
.menu-update-close { width: 44px; background: transparent; color: #fff; font-size: 1.3rem; line-height: 1; }
.menu-update-close:hover { background: rgba(255, 255, 255, .12); }
@media (min-width: 600px) {
    .menu-update { inset-inline: 16px 92px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: no-preference) {
    .menu-update { animation: menu-update-in .25s ease-out; }
    @keyframes menu-update-in { from { opacity: 0; transform: translateY(8px); } }
}
.is-out .item-price,
.is-out .combo-price strong { color: var(--ink-soft); }

.menu-note { margin: clamp(40px, 6vw, 64px) 0 0; text-align: center; font-size: .88rem; color: var(--ink-soft); }

/* Data POS belum tersedia */
.empty-panel {
    max-width: 560px;
    margin-inline: auto;
    padding: clamp(28px, 5vw, 44px);
    text-align: center;
    background: var(--panel);
    box-shadow: var(--shadow);
}
.empty-panel h2 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 1.8rem; }
.empty-panel p { margin: 0 0 22px; color: var(--ink-soft); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 860px) {
    .item-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .item { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; }
    .item-media { width: 64px; }
    .item-name { font-size: 1.1rem; }
}

/* ---------- Keranjang pesanan (cart.js) ---------- */
/* Tombol Tambah / − jumlah + menempati sel yang sama dengan tombol Pesan & label Habis,
   dengan lebar tetap, sehingga pergantian keadaan tidak menggeser tata letak. */
.qty { display: inline-flex; width: 104px; height: 36px; visibility: hidden; }
.cart-on :is(.item, .combo):not(.is-out) .qty,
.cart-line .qty { visibility: visible; }
.cart-on .avail--cart > [data-order] { visibility: hidden; }
.qty [hidden], .cart-bar[hidden], .cart-sheet [hidden] { display: none !important; }
.qty-add,
.qty-step {
    flex: 1;
    display: inline-flex;
    align-items: center;
    height: 36px;
    border: 1.5px solid var(--red);
    border-radius: 999px;
}
.qty-add {
    position: relative;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    background: var(--panel);
    color: var(--red);
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color .2s, color .2s;
}
.qty-add:hover { background: var(--red); color: #fff; }
.qty-step { justify-content: space-between; padding: 0 1px; background: var(--red); color: #fff; }
.qty-dec,
.qty-inc {
    position: relative;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    touch-action: manipulation;
}
.qty-dec:hover, .qty-inc:hover { background: rgba(255, 255, 255, .2); }
.qty-inc[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
/* Area sentuh 44px tanpa membesarkan tampilan */
.qty-dec::after, .qty-inc::after { content: ''; position: absolute; inset: -6px -3px; }
.qty-add::after { content: ''; position: absolute; inset: -5px -2px; }
.qty-n { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty .ico { width: .95em; height: .95em; }
.qty :focus-visible { outline-color: var(--ink); }

/* Bar bawah: muncul hanya bila keranjang berisi */
.cart-bar {
    position: fixed;
    z-index: 92;
    inset-inline: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.cart-open {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 480px;
    min-height: 58px;
    padding: 8px 22px;
    padding-inline-start: 9px;
    border: 0;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 16px 34px -14px rgba(110, 6, 16, .75);
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color .2s;
}
.cart-open:hover { background: var(--red-hover); }
.cart-open:focus-visible { outline-color: var(--ink); }
.cart-ico {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}
.cart-ico .ico { width: 1.35rem; height: 1.35rem; }
.cart-count {
    position: absolute;
    top: -5px;
    inset-inline-end: -7px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: var(--red);
    font-size: .75rem;
    line-height: 21px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.cart-label { flex: 1; text-align: start; }
.cart-total { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Bar bawah ada: tombol WA, pita "Menu diperbarui", dan akhir halaman bergeser ke atasnya */
.has-cart .wa-float { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.has-cart .menu-update { bottom: calc(154px + env(safe-area-inset-bottom, 0px)); }
.has-cart .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 600px) {
    .has-cart .menu-update { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

/* Dialog pesanan: lembar dari bawah di HP, kotak di tengah di layar lebar */
html.cart-lock { overflow: hidden; }
.cart-sheet {
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    max-height: min(88dvh, 760px);
    margin: auto auto 0;
    padding: 0;
    border: 0;
    border-radius: 22px 22px 0 0;
    background: var(--panel);
    color: var(--ink);
    box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .35);
    overflow: hidden;
}
.cart-sheet::backdrop { background: rgba(20, 6, 8, .55); }
@media (min-width: 600px) {
    .cart-sheet { margin: auto; border-radius: 22px; }
}
.cart-box { display: flex; flex-direction: column; max-height: inherit; }
.cart-head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 10px 8px;
    padding-inline-start: 20px;
    border-bottom: 2px dashed var(--rule);
}
.cart-head h2 { margin: 0; font-family: var(--font-hand); font-size: 2.1rem; line-height: 1.15; color: var(--red); }
.cart-x {
    flex: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}
.cart-x:hover { background: #f1f2f3; }
.cart-main,
.cart-sent {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 20px calc(18px + env(safe-area-inset-bottom, 0px));
}
.cart-lines { margin: 0; padding: 0; list-style: none; }
.cart-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
}
.cart-line + .cart-line { border-top: 1px solid #eceeef; }
.cl-info { display: grid; gap: 1px; min-width: 0; }
.cl-name { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.cl-unit { font-size: .85rem; color: var(--ink-soft); }
.cl-out { display: none; justify-self: start; margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: #ececec; color: #5f5f5f; font-size: .76rem; font-weight: 700; }
.cart-line.is-out .cl-out { display: inline-block; }
.cart-line.is-out .cl-name { color: var(--ink-soft); }
.cl-sum { min-width: 66px; text-align: end; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-line.is-out .cl-sum { color: var(--ink-soft); text-decoration: line-through; }
.cart-msg { margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: #fff4e0; color: #6b4600; font-size: .9rem; }
.cart-empty { margin: 16px 0 8px; color: var(--ink-soft); }
.cart-form { display: grid; gap: 6px; margin-top: 12px; }
.cart-form label { font-size: .92rem; font-weight: 600; }
.cart-form textarea {
    min-height: 66px;
    padding: 10px 12px;
    border: 1.5px solid var(--rule);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: 16px; /* di bawah 16px iOS Safari memperbesar halaman saat mengetik */
    line-height: 1.45;
    resize: vertical;
}
.cart-form textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; border-radius: 12px; }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 16px 0 0; font-weight: 600; }
.cart-sum strong { font-size: 1.3rem; color: var(--red); font-variant-numeric: tabular-nums; }
.cart-err { margin: 10px 0 0; color: var(--red-hover); font-size: .9rem; font-weight: 600; }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.cart-send { flex: 1 1 100%; background: #0b7a52; color: #fff; }
.cart-send:hover { background: #086343; }
.cart-send[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.cart-clear,
.cart-back {
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.cart-clear[data-armed="1"] { color: var(--red); background: #fde8eb; text-decoration: none; }
.cart-sent h3 { margin: 6px 0 6px; font-family: var(--font-serif); font-size: 1.6rem; line-height: 1.2; }
.cart-sent h3:focus { outline: none; }
.cart-sent p { margin: 0; color: var(--ink-soft); }
.cart-done { background: var(--red); color: #fff; }
.cart-done:hover { background: var(--red-hover); }
.cl-opts { font-size: .84rem; line-height: 1.4; color: var(--ink-soft); }
/* Catatan per menu (baris penuh di bawah nama, jumlah, dan harga). */
.cl-note-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin-top: -8px; }
.cl-note { min-width: 0; font-size: .84rem; line-height: 1.4; color: var(--ink-soft); overflow-wrap: anywhere; }
.cl-note-btn { min-height: 36px; padding: 0; border: 0; background: none; color: var(--red-hover); font: inherit; font-size: .84rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cl-note-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.cl-note-in { flex: 1 1 100%; min-width: 0; min-height: 42px; margin: 4px 0; padding: 8px 12px; border: 1.5px solid var(--rule); border-radius: 10px; background: #fff; color: inherit; font: inherit; font-size: 16px; }
.cl-note-in:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; }

/* Lembar pilihan varian/topping/ukuran */
.opt-sheet form { margin: 0; }
.opt-base { margin: 0 0 4px; font-weight: 700; color: var(--red); }
.opt-group { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.opt-group legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; width: 100%; padding: 0; margin-bottom: 6px; }
.opt-gname { font-weight: 700; font-size: 1.02rem; }
.opt-rule { font-size: .82rem; color: var(--ink-soft); }
.opt-err { margin: 0 0 6px; color: var(--red-hover); font-size: .88rem; font-weight: 600; }
.opt-val {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 6px 12px;
    border: 1.5px solid #e3e6e8;
    border-radius: 12px;
    cursor: pointer;
}
.opt-val + .opt-val { margin-top: 6px; }
.opt-val:has(input:checked) { border-color: var(--red); background: #fff5f6; }
.opt-val input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--red); }
.opt-vname { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.opt-vprice { font-size: .9rem; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt-vout { display: none; padding: 1px 8px; border-radius: 999px; background: #ececec; color: #5f5f5f; font-size: .76rem; font-weight: 700; }
.opt-val.is-out { cursor: not-allowed; color: var(--ink-soft); }
.opt-val.is-out .opt-vout { display: inline-block; }
.opt-val.is-out .opt-vprice { display: none; }
.opt-val:has(input:disabled):not(.is-out) { opacity: .5; cursor: not-allowed; }
.opt-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; font-weight: 600; }
.opt-qty .qty-step { flex: none; width: 112px; }
.opt-foot { flex: none; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #eceeef; }
.opt-submit { width: 100%; background: var(--red); color: #fff; font: inherit; font-weight: 700; border: 0; }
.opt-submit:hover { background: var(--red-hover); }
.opt-sheet .cart-main { padding-bottom: 12px; }

@media (prefers-reduced-motion: no-preference) {
    .cart-sheet[open] { animation: cart-up .28s var(--ease); }
    .cart-bar .cart-open { animation: cart-up .25s ease-out; }
    @keyframes cart-up { from { opacity: 0; transform: translateY(24px); } }
}
@media (max-width: 380px) {
    .cart-main, .cart-sent { padding-inline: 14px; }
    .cart-line { gap: 8px; }
    .cl-sum { min-width: 0; }
}
