/* =====================================================================
   CƠM TẤM KHÓI - Giao diện khách hàng (mobile-first)
   Nhận diện: đỏ than, vàng nghệ, cam lửa, đen than, trắng gạo.
   Display: Baloo 2 (đậm, bo tròn như chữ trên logo) · Body: Be Vietnam Pro · Slogan: Pacifico
   ===================================================================== */
:root {
    --red: #D7261E;
    --red-deep: #A8160F;
    --yellow: #FFC72C;
    --yellow-soft: #FFE7A3;
    --ember: #F26B1D;
    --char: #1F1A17;
    --char-2: #3A322D;
    --rice: #FFFDF7;
    --smoke: #F3EEE6;
    --line: #E6DED2;
    --muted: #6B615A;
    --green: #1E8E4E;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-hard: 4px 4px 0 var(--char);
    --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif;
    --font-script: "Pacifico", cursive;
    --bottom-nav-h: 64px;
    --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--char);
    background: var(--rice);
    overflow-x: hidden;
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}
@media (min-width: 992px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; border-radius: 6px; }
.visually-hidden-focusable:focus { position: fixed; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 8px 12px; }

h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
p { margin: 0 0 1em; }
.lead { font-size: 1.125rem; color: var(--char-2); max-width: 62ch; }
.text-muted-k { color: var(--muted); }
.slogan { font-family: var(--font-script); font-weight: 400; color: var(--char); line-height: 1.3; }
.slogan b { color: var(--red); font-weight: 400; }

/* Chữ tiêu đề kiểu bảng hiệu: đỏ, viền đen, bóng vàng như logo */
.signage {
    color: var(--red);
    -webkit-text-stroke: 2px var(--char);
    paint-order: stroke fill;
    text-shadow: 3px 3px 0 var(--yellow);
}

.container-k { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container-k { padding: 0 24px; } }
.section { padding: 56px 0; }
@media (min-width: 992px) { .section { padding: 88px 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); max-width: 60ch; }
.bg-yellow { background: var(--yellow); }
.bg-smoke { background: var(--smoke); }
.bg-char { background: var(--char); color: #F7EFE6; }
.bg-char h2, .bg-char h3 { color: #fff; }

/* ---------- Nút ---------- */
.btn-k {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 10px 22px;
    font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.1;
    border: 2px solid var(--char); border-radius: 999px;
    text-decoration: none; cursor: pointer; user-select: none; white-space: nowrap;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn-k:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--char); }
.btn-k[disabled], .btn-k.disabled { opacity: .55; pointer-events: none; }
.btn-red { background: var(--red); color: #fff; box-shadow: var(--shadow-hard); }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--char); box-shadow: var(--shadow-hard); }
.btn-yellow:hover { background: #FFD24F; color: var(--char); }
.btn-ghost { background: #fff; color: var(--char); }
.btn-ghost:hover { background: var(--smoke); color: var(--char); }
.btn-sm-k { min-height: 40px; padding: 6px 16px; font-size: .95rem; }
.btn-block-k { width: 100%; }
.btn-add {
    width: 44px; height: 44px; flex: 0 0 44px;
    border-radius: 50%; border: 2px solid var(--char); background: var(--yellow); color: var(--char);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; line-height: 1; font-weight: 700; cursor: pointer;
    box-shadow: 2px 2px 0 var(--char);
}
.btn-add:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--char); }
.btn-add[disabled] { background: var(--smoke); color: var(--muted); box-shadow: none; border-color: var(--line); }

/* ---------- Header ---------- */
.topbar { background: var(--char); color: #F7EFE6; font-size: .875rem; }
.topbar .container-k { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--yellow); text-decoration: none; font-weight: 600; }
.topbar .promo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 253, 247, .97); backdrop-filter: saturate(140%) blur(6px);
    border-bottom: 2px solid var(--char);
}
.site-header .container-k { height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.brand-logo { display: block; flex: 0 0 auto; }
.brand-logo img { height: 48px; width: auto; display: block; }
@media (min-width: 992px) { .brand-logo img { height: 54px; } }
.main-nav { display: none; margin-left: auto; }
.main-nav a {
    color: var(--char); text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover { background: var(--smoke); }
.main-nav a.active { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
@media (min-width: 1100px) { .main-nav { display: flex; gap: 2px; } }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 1100px) { .header-actions { margin-left: 8px; } }
.header-hotline { display: none; color: var(--char); text-decoration: none; font-weight: 700; line-height: 1.15; font-size: .9rem; }
.header-hotline span { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); }
@media (min-width: 768px) { .header-hotline { display: block; white-space: nowrap; } }
@media (min-width: 1100px) and (max-width: 1399px) { .header-hotline { display: none; } }
.icon-btn {
    position: relative; width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid var(--char); background: #fff; color: var(--char);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; cursor: pointer;
}
.cart-badge {
    position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px;
    border-radius: 11px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700;
    display: none; align-items: center; justify-content: center; border: 2px solid var(--rice);
}
.cart-badge.show { display: inline-flex; }
.nav-toggle { display: inline-flex; }
@media (min-width: 1100px) { .nav-toggle { display: none; } }
.header-order { display: none; }
@media (min-width: 576px) { .header-order { display: inline-flex; } }

.offcanvas-nav .nav-link-k {
    display: flex; align-items: center; gap: 12px; padding: 14px 4px; font-size: 1.1rem; font-weight: 600;
    color: var(--char); text-decoration: none; border-bottom: 1px solid var(--line);
}
.offcanvas-nav .nav-link-k i { color: var(--red); width: 24px; text-align: center; }

/* ---------- Thanh điều hướng dưới (mobile) ---------- */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--char); display: grid; grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a, .bottom-nav button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: #E9E1D8; text-decoration: none; font-size: .72rem; font-weight: 600;
    background: none; border: 0; position: relative; min-height: 48px;
}
.bottom-nav i { font-size: 1.3rem; }
.bottom-nav .is-active { color: var(--yellow); }
.bottom-nav .bn-order {
    background: var(--red); color: #fff; margin: 6px 4px; border-radius: 14px; border: 2px solid var(--yellow);
}
.bottom-nav .cart-badge { top: 4px; right: calc(50% - 22px); border-color: var(--char); }
@media (min-width: 992px) { .bottom-nav { display: none; } }

/* Thanh giỏ hàng nổi */
.cart-bar {
    position: fixed; left: 12px; right: 12px; z-index: 1034;
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 10px);
    display: none; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--red); color: #fff; border: 2px solid var(--char); border-radius: 16px;
    padding: 10px 12px 10px 16px; box-shadow: var(--shadow-hard); cursor: pointer; text-align: left; width: auto;
}
.cart-bar.show { display: flex; }
.cart-bar strong { font-family: var(--font-display); font-size: 1.15rem; }
.cart-bar .cb-go { background: var(--yellow); color: var(--char); border-radius: 999px; padding: 8px 14px; font-weight: 800; white-space: nowrap; }
@media (min-width: 992px) { .cart-bar { left: auto; right: 24px; bottom: 24px; width: 380px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--yellow); border-bottom: 2px solid var(--char); }
.hero::before {
    /* tia nắng như bảng hiệu quán */
    content: ""; position: absolute; inset: -40%;
    background: repeating-conic-gradient(from 0deg at 72% 48%, rgba(255,255,255,.22) 0 6deg, transparent 6deg 18deg);
    pointer-events: none;
}
.hero .container-k { position: relative; display: grid; gap: 20px; padding-top: 28px; padding-bottom: 36px; }
@media (min-width: 992px) { .hero .container-k { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 56px; padding-bottom: 64px; } }
.hero h1 { margin-bottom: .2em; color: var(--char); }
.hero h1 .signage { display: block; font-size: 1.15em; }
.hero .slogan { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 4px 0 14px; }
.hero-sub { font-size: 1.05rem; font-weight: 500; max-width: 44ch; margin-bottom: 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; font-weight: 600; font-size: .95rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-visual { position: relative; }
.hero-visual .plate {
    background: var(--rice); border: 2px solid var(--char); border-radius: var(--radius-lg);
    box-shadow: 8px 8px 0 var(--char); padding: 12px; transform: rotate(-1.5deg);
}
.hero-visual .plate img { display: block; width: 100%; border-radius: 14px; }
.hero-visual .smoke {
    position: absolute; top: -20px; right: 18%; width: 120px; height: 160px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255,255,255,.75), transparent 70%);
    filter: blur(6px); animation: smoke 6s ease-in-out infinite;
}
@keyframes smoke { 0%,100% { transform: translateY(0) scale(1); opacity: .55; } 50% { transform: translateY(-24px) scale(1.15); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .hero-visual .smoke { animation: none; } html { scroll-behavior: auto; } }
.online-ribbon {
    display: inline-flex; align-items: center; gap: 8px; background: var(--char); color: var(--yellow);
    padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; margin-bottom: 14px;
}

/* ---------- Bảng menu (hàng như bảng menu quán) ---------- */
.board {
    background: #fff; border: 2px solid var(--char); border-radius: var(--radius-lg); overflow: hidden;
}
.board-head {
    background: var(--red); color: #fff; padding: 14px 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap;
    border-bottom: 2px solid var(--char);
}
.board-head h3 { margin: 0; color: #fff; font-size: 1.35rem; }
.board-head .formula { background: var(--yellow); color: var(--char); border-radius: 999px; padding: 2px 12px; font-size: .85rem; font-weight: 700; font-style: italic; }
.board-rows { list-style: none; margin: 0; padding: 4px 0; }
.item-row {
    display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
    padding: 12px 14px 12px 16px; border-bottom: 1px dashed var(--line);
}
.item-row:last-child { border-bottom: 0; }
.item-row.has-thumb { grid-template-columns: 76px 1fr auto; }
.item-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid var(--char); background: var(--smoke); }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-thumb .img-placeholder { height: 100%; padding: 4px; }
.item-thumb .img-placeholder .ph-text { display: none; }
.item-thumb .img-placeholder img { width: 44px; height: 44px; }
.code-chip {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 32px; padding: 0 8px;
    background: var(--yellow); border: 2px solid var(--char); border-radius: 10px;
    font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
}
.item-main { min-width: 0; }
.item-name { font-weight: 700; font-size: 1.02rem; line-height: 1.3; color: var(--char); text-decoration: none; display: block; }
.item-name:hover { color: var(--red); }
.item-desc { font-size: .86rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1.5px solid currentColor; }
.tag-hot { color: var(--red); }
.tag-out { color: var(--muted); }
.tag-sale { color: var(--green); }
.item-side { display: flex; align-items: center; gap: 10px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--red); white-space: nowrap; line-height: 1; text-align: right; }
.price del { display: block; font-family: var(--font-body); font-size: .78rem; color: var(--muted); font-weight: 500; }
.item-row.sold-out { opacity: .6; }
.item-row .code-chip + .item-main { }
@media (max-width: 400px) {
    .item-row { grid-template-columns: 1fr auto; }
    .item-row .code-chip { grid-row: span 1; }
    .item-row > .code-chip { display: none; }
    .item-row.has-thumb { grid-template-columns: 64px 1fr auto; }
    .item-thumb { width: 64px; height: 64px; }
    .item-code-inline { display: inline-flex !important; }
}
.item-code-inline { display: none; margin-right: 6px; height: 24px; min-width: 32px; font-size: .85rem; border-radius: 8px; vertical-align: middle; }

.menu-grid { display: grid; gap: 20px; }
@media (min-width: 992px) { .menu-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .menu-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }

/* Placeholder ảnh */
.img-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
    background: repeating-linear-gradient(45deg, var(--yellow-soft) 0 12px, #FFF3CC 12px 24px);
    color: var(--char-2); position: relative; aspect-ratio: 4 / 3; width: 100%;
}
.img-placeholder img { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--char); background: #fff; }
.img-placeholder .ph-code { position: absolute; top: 8px; left: 8px; background: var(--yellow); border: 2px solid var(--char); border-radius: 8px; padding: 0 8px; font-weight: 800; font-family: var(--font-display); }
.img-placeholder .ph-text { font-size: .8rem; font-weight: 600; }

/* ---------- Thanh lọc menu ---------- */
.menu-toolbar {
    position: sticky; top: var(--header-h); z-index: 1020; background: var(--rice); border-bottom: 1px solid var(--line);
    padding: 10px 0;
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--char); background: #fff;
    color: var(--char); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center;
}
.chip.active, .chip:hover { background: var(--char); color: var(--yellow); }
.search-row { display: flex; gap: 8px; margin-bottom: 8px; }
.input-k {
    width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--char);
    background: #fff; border: 2px solid var(--char); border-radius: 12px;
}
.input-k:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,38,30,.18); }
select.input-k { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--char) 50%), linear-gradient(135deg, var(--char) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
textarea.input-k { min-height: 96px; resize: vertical; }
.label-k { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field-k { margin-bottom: 16px; }
.field-error { color: var(--red); font-size: .85rem; margin-top: 4px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Bottom sheet tùy chọn món ---------- */
.sheet .offcanvas-header { border-bottom: 2px solid var(--char); background: var(--yellow); }
.sheet.offcanvas-bottom { height: auto; max-height: 92vh; border-top-left-radius: 22px; border-top-right-radius: 22px; border-top: 2px solid var(--char); }
@media (min-width: 768px) { .sheet.offcanvas-bottom { max-width: 560px; margin: 0 auto; } }
.sheet .offcanvas-body { padding-bottom: 0; }
.opt-group { margin-bottom: 18px; }
.opt-group-title { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; margin-bottom: 8px; font-family: var(--font-display); font-size: 1.1rem; }
.opt-group-title small { font-family: var(--font-body); font-weight: 600; font-size: .78rem; color: var(--muted); }
.opt {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; min-height: 52px;
}
.opt:has(input:checked) { border-color: var(--char); background: #FFF6D6; }
.opt input { width: 20px; height: 20px; accent-color: var(--red); flex: 0 0 auto; }
.opt .opt-name { flex: 1; font-weight: 600; }
.opt .opt-price { font-weight: 700; color: var(--red); white-space: nowrap; }
.sheet-footer {
    position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center;
}
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--char); border-radius: 999px; overflow: hidden; background: #fff; flex: 0 0 auto; }
.stepper button { width: 44px; height: 44px; border: 0; background: #fff; font-size: 1.3rem; font-weight: 700; cursor: pointer; color: var(--char); }
.stepper button:active { background: var(--smoke); }
.stepper input, .stepper span { width: 36px; text-align: center; border: 0; font-weight: 800; font-size: 1.05rem; background: transparent; }
.stepper.sm button { width: 36px; height: 36px; font-size: 1.1rem; }
.stepper.sm span { width: 28px; }

/* ---------- Giỏ hàng (drawer) ---------- */
.cart-drawer .offcanvas-header { background: var(--char); color: #fff; }
.cart-drawer .btn-close { filter: invert(1); }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cart-line .cl-name { font-weight: 700; }
.cart-line .cl-opts, .cart-line .cl-note { font-size: .82rem; color: var(--muted); }
.cart-line .cl-price { font-weight: 800; color: var(--red); text-align: right; white-space: nowrap; }
.cart-line .cl-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.cart-line.unavailable { opacity: .55; }
.link-remove { background: none; border: 0; color: var(--muted); font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 8px 0; }
.cart-empty { text-align: center; padding: 40px 12px; color: var(--muted); }
.cart-empty img { width: 120px; margin-bottom: 12px; }
.cart-foot { border-top: 2px solid var(--char); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: #fff; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.sum-row.total { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.sum-row.total span:last-child { color: var(--red); }
.sum-row.discount span:last-child { color: var(--green); font-weight: 700; }

/* ---------- Toast ---------- */
.toast-k {
    position: fixed; left: 50%; top: calc(var(--header-h) + 12px); transform: translateX(-50%) translateY(-20px);
    background: var(--char); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 2000;
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center;
}
.toast-k.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-k.error { background: var(--red); }

/* ---------- Khối nội dung ---------- */
.panel { background: #fff; border: 2px solid var(--char); border-radius: var(--radius-lg); padding: 20px; }
.panel-soft { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.2em; }
.prose img { border-radius: 12px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px; }

.reason-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .reason-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .reason-grid { grid-template-columns: repeat(4, 1fr); } }
.reason { border-top: 3px solid var(--yellow); padding-top: 14px; }
.reason i { font-size: 1.8rem; color: var(--yellow); }
.reason h3 { margin: 8px 0 6px; }
.reason p { color: #D9CFC5; margin: 0; }

.split { display: grid; gap: 28px; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; } }

/* Chi nhánh */
.branch-list { display: grid; gap: 14px; }
@media (min-width: 768px) { .branch-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .branch-list { grid-template-columns: repeat(3, 1fr); } }
.branch-card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--char); }
.branch-card.is-active { border-color: var(--char); box-shadow: var(--shadow-hard); }
.branch-card h3 { font-size: 1.2rem; margin: 0; }
.branch-card .addr { color: var(--char-2); font-size: .95rem; }
.status-pill { align-self: flex-start; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.status-pill.on { background: #DDF3E5; color: #0F5E31; }
.status-pill.soon { background: var(--yellow-soft); color: #6A4B00; }
.status-pill.off { background: var(--smoke); color: var(--muted); }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 2px solid var(--char); border-radius: var(--radius-lg); overflow: hidden; background: var(--smoke); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Tin tức */
.news-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-item { display: flex; flex-direction: column; text-decoration: none; color: var(--char); }
.news-item .thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--char); background: var(--yellow); margin-bottom: 12px; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-item .thumb.noimg { display: flex; align-items: center; justify-content: center; }
.news-item .thumb.noimg img { width: 60%; height: auto; object-fit: contain; }
.news-item h3 { font-size: 1.2rem; margin: 0 0 6px; }
.news-item:hover h3 { color: var(--red); }
.news-item .date { font-size: .85rem; color: var(--muted); }

.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.review .stars { color: var(--ember); letter-spacing: 2px; }

/* Breadcrumb */
.crumbs { font-size: .85rem; color: var(--muted); padding: 12px 24px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.page-title { padding: 16px 24px 24px; }
.page-title h1 { margin-bottom: 8px; }

/* ---------- Checkout ---------- */
.checkout { display: grid; gap: 20px; padding-bottom: 32px; }
@media (min-width: 992px) { .checkout { grid-template-columns: 1.25fr .9fr; align-items: start; } .checkout-summary { position: sticky; top: calc(var(--header-h) + 16px); } }
.step { background: #fff; border: 2px solid var(--char); border-radius: var(--radius-lg); padding: 18px; }
.step + .step { margin-top: 16px; }
.step-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin-bottom: 14px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--char); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.choice-grid { display: grid; gap: 10px; }
@media (min-width: 576px) { .choice-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.choice {
    position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; min-height: 56px;
}
.choice:has(input:checked) { border-color: var(--char); background: #FFF6D6; box-shadow: 3px 3px 0 var(--char); }
.choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.choice input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--red); flex: 0 0 auto; }
.choice .c-title { font-weight: 700; display: block; }
.choice .c-desc { font-size: .85rem; color: var(--muted); display: block; }
.choice .c-badge { position: absolute; top: -10px; right: 10px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--char); }
.alert-k { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; border: 2px solid; font-weight: 500; }
.alert-k.error { border-color: var(--red); background: #FDECEA; color: #7A120C; }
.alert-k.warn { border-color: #C98A00; background: #FFF5D6; color: #5C3F00; }
.alert-k.ok { border-color: var(--green); background: #E3F5EA; color: #0F5E31; }
.alert-k ul { margin: 0; padding-left: 1.2em; }
.sum-lines { max-height: 320px; overflow: auto; }
.place-bar { position: sticky; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); background: var(--rice); padding: 10px 0; z-index: 5; }
@media (min-width: 992px) { .place-bar { position: static; padding: 0; } }

/* Vị trí giao hàng */
.loc-status { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); background: #fff; }
.loc-status i { font-size: 1.15rem; line-height: 1.3; }
.loc-status.ok { border-color: var(--green); background: #EEF8F1; }
.loc-status.ok i { color: var(--green); }
.loc-status.warn { border-color: #C98A00; background: #FFF8E1; }
.loc-status.err { border-color: var(--red); background: #FDECEA; }
.loc-status.err i { color: var(--red); }
.loc-status .loc-actions { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.loc-status .loc-actions button, .loc-status .loc-actions a { background: none; border: 0; padding: 0; color: var(--red); font-weight: 600; text-decoration: underline; cursor: pointer; font-size: .85rem; }
.loc-status .attr { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.loc-map { margin-top: 8px; aspect-ratio: 16 / 9; border: 2px solid var(--char); border-radius: 12px; overflow: hidden; background: var(--smoke); }
.loc-map iframe { width: 100%; height: 100%; border: 0; display: block; }
[data-use-location][aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Thanh toán QR ---------- */
.pay-wrap { max-width: 520px; margin: 0 auto; padding: 16px 0 40px; }
.qr-box { background: #fff; border: 2px solid var(--char); border-radius: var(--radius-lg); padding: 16px; text-align: center; box-shadow: 6px 6px 0 var(--char); }
.qr-box img { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: contain; }
.countdown { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--red); }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); text-align: left; }
.copy-row .k { color: var(--muted); font-size: .85rem; }
.copy-row .v { font-weight: 800; word-break: break-all; }
.copy-btn { border: 2px solid var(--char); background: var(--yellow); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .85rem; cursor: pointer; min-height: 36px; white-space: nowrap; }
.sandbox-banner { background: repeating-linear-gradient(45deg, #FFE7A3 0 10px, #FFD86B 10px 20px); border: 2px dashed var(--char); border-radius: 12px; padding: 8px 12px; font-weight: 700; margin-bottom: 12px; }

/* Theo dõi đơn */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 34px; }
.timeline li::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.timeline li.done .dot { background: var(--green); border-color: var(--green); }
.timeline li.current .dot { background: var(--yellow); border-color: var(--char); box-shadow: 0 0 0 4px rgba(255,199,44,.4); }
.timeline li.cancel .dot { background: var(--red); border-color: var(--red); }
.timeline .t-title { font-weight: 700; }
.timeline .t-time { font-size: .82rem; color: var(--muted); }
.order-code-big { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: .02em; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.status-warning, .pay-warning { background: #FFF1C2; color: #6A4B00; }
.status-info { background: #DCEBFF; color: #0B3D82; }
.status-primary { background: #FFE0CC; color: #8A3300; }
.status-purple { background: #EADFFF; color: #47227F; }
.status-success, .pay-success { background: #DDF3E5; color: #0F5E31; }
.status-secondary, .pay-secondary, .pay-light, .status-light { background: var(--smoke); color: var(--muted); }
.pay-danger { background: #FDECEA; color: #7A120C; }

/* ---------- Footer ---------- */
.site-footer { background: var(--char); color: #D9CFC5; padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #F7EFE6; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: var(--yellow); font-size: 1.1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { background: var(--rice); border-radius: 14px; padding: 8px; display: inline-block; margin-bottom: 12px; }
.footer-logo img { height: 64px; width: auto; display: block; }
.footer-bottom { border-top: 1px solid #3A322D; margin-top: 32px; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85rem; }
.social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.social a { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #5A4F48; border-radius: 999px; padding: 6px 12px; }

/* Nút gọi/Zalo nổi (desktop) */
.float-contact { position: fixed; right: 18px; bottom: 120px; display: none; flex-direction: column; gap: 10px; z-index: 1025; }
@media (min-width: 992px) { .float-contact { display: flex; } }
.float-contact a { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--char); box-shadow: 3px 3px 0 var(--char); font-size: 1.4rem; text-decoration: none; }
.float-contact .fc-call { background: var(--red); color: #fff; }
.float-contact .fc-zalo { background: #0068FF; color: #fff; font-weight: 800; font-size: .85rem; }

/* Phân trang */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--char); border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--char); background: #fff; }
.pager .current { background: var(--char); color: var(--yellow); }

.empty-state { text-align: center; padding: 48px 16px; }
.empty-state img { width: 140px; margin-bottom: 12px; }
.menu-board-img { border: 2px solid var(--char); border-radius: var(--radius-lg); overflow: hidden; display: block; }
.menu-board-img img { display: block; width: 100%; }

@media print {
    .site-header, .site-footer, .bottom-nav, .cart-bar, .order-bar, .mode-bar, .float-contact, .topbar { display: none !important; }
    body { padding: 0; background: #fff; }
}

/* =====================================================================
   Luồng đặt món kiểu "chạm là thêm": thanh hình thức nhận, món dạng thẻ ảnh,
   nút − số lượng + ngay tại món, thanh tổng đơn cố định dưới màn hình
   ===================================================================== */
:root { --mode-h: 0px; --order-bar-h: 72px; }
body.has-mode { --mode-h: 54px; }

/* Thanh hình thức nhận món (vàng, dính dưới header) */
.mode-bar {
    position: sticky; top: var(--header-h); z-index: 1025;
    background: var(--yellow); border-bottom: 2px solid var(--char); height: var(--mode-h);
    display: flex; align-items: center;
}
.mode-tabs { display: flex; gap: 6px; width: 100%; max-width: 640px; margin: 0 auto; padding: 0 12px; }
.mode-tabs button {
    flex: 1 1 0; min-height: 40px; border: 2px solid transparent; border-radius: 999px; background: transparent;
    font-weight: 800; font-size: .95rem; color: var(--char); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer; white-space: nowrap; padding: 0 8px;
}
.mode-tabs button i { font-size: 1.1rem; }
.mode-tabs button[aria-checked="true"] { background: var(--char); color: var(--yellow); }
.mode-tabs button:not([aria-checked="true"]):hover { border-color: var(--char); }
@media (max-width: 380px) { .mode-tabs button { font-size: .85rem; } .mode-tabs button i { display: none; } }
body.has-mode .menu-toolbar { top: calc(var(--header-h) + var(--mode-h)); }
body.has-mode { scroll-padding-top: calc(var(--header-h) + var(--mode-h) + 110px); }
html:has(body.has-mode) { scroll-padding-top: calc(var(--header-h) + var(--mode-h) + 110px); }

/* Ô tìm kiếm thực đơn */
.search-row { display: flex; gap: 8px; margin-bottom: 8px; }
.search-box { position: relative; flex: 1 1 auto; }
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box .input-k { padding-left: 40px; }
.sort-select { max-width: 150px; flex: 0 0 auto; }
.promo-strip {
    display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 14px;
    background: #FFF6D6; border: 2px dashed var(--char); border-radius: 12px; font-weight: 700; font-size: .95rem;
}
.promo-strip i { color: var(--red); font-size: 1.15rem; }

/* Danh mục trên trang thực đơn */
.menu-page { padding-top: 4px; padding-bottom: 40px; }
.menu-sections { max-width: 860px; margin: 0 auto; }
.menu-section { padding-top: 22px; }
.ms-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 8px; border-bottom: 3px solid var(--char); }
.ms-head h2 { font-size: 1.45rem; margin: 0; color: var(--red); }
.ms-head h2 small { font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.ms-head p { margin: 0; font-size: .88rem; font-weight: 600; font-style: italic; color: var(--char-2); }
.menu-list { list-style: none; margin: 0; padding: 0; }

/* Thẻ món: ảnh lớn bên trái, tên, mô tả, giá + nút số lượng */
.menu-item {
    display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: stretch;
    padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item.no-thumb { grid-template-columns: 1fr; padding-left: 16px; padding-right: 14px; }
.board-rows .menu-item.has-thumb { padding-left: 14px; padding-right: 14px; }
@media (min-width: 576px) { .menu-item { grid-template-columns: 132px 1fr; } }
.mi-thumb {
    display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; border: 2px solid var(--char); background: var(--smoke);
    align-self: start;
}
.mi-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mi-thumb .img-placeholder { height: 100%; padding: 6px; gap: 2px; }
.mi-thumb .img-placeholder img { width: 56px; height: 56px; }
.mi-thumb .img-placeholder .ph-code { top: 6px; left: 6px; font-size: .85rem; }
.mi-thumb .img-placeholder .ph-text { font-size: .68rem; line-height: 1.2; text-align: center; }
.mi-body { min-width: 0; display: flex; flex-direction: column; }
.mi-name { font-weight: 700; font-size: 1.04rem; line-height: 1.3; color: var(--char); text-decoration: none; }
.mi-name:hover { color: var(--red); }
.mi-name .code-chip { height: 22px; min-width: 30px; font-size: .8rem; border-radius: 7px; margin-right: 6px; vertical-align: 2px; display: inline-flex; }
.mi-desc {
    font-size: .86rem; color: var(--muted); line-height: 1.4; margin: 3px 0 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tag-opt { background: var(--smoke); color: var(--char-2); border: 1px solid var(--line); }
.mi-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mi-foot .price { text-align: left; font-size: 1.3rem; }
.mi-foot .price del { display: inline; margin-right: 6px; }
.mi-out { font-weight: 700; font-size: .85rem; color: var(--muted); }
.menu-item.sold-out .mi-thumb, .menu-item.sold-out .mi-name { opacity: .55; }

/* Nút − số lượng + */
.qty { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.qty button {
    width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--char); font-size: 1.25rem; font-weight: 800; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.qty .qty-inc { background: var(--yellow); color: var(--char); box-shadow: 2px 2px 0 var(--char); }
.qty .qty-inc:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--char); }
.qty .qty-dec { background: #fff; color: var(--char); }
.qty .qty-val { min-width: 30px; text-align: center; font-weight: 800; font-family: var(--font-display); font-size: 1.15rem; }
.qty:not(.has-qty) .qty-dec, .qty:not(.has-qty) .qty-val { visibility: hidden; }
.qty.bump .qty-val { animation: qtybump .25s ease-out; }
@keyframes qtybump { 50% { transform: scale(1.35); color: var(--red); } }
@media (prefers-reduced-motion: reduce) { .qty.bump .qty-val { animation: none; } }

/* Thanh tổng đơn hàng (thay cho thanh giỏ hàng cũ) */
.order-bar {
    position: fixed; left: 0; right: 0; z-index: 1034;
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
    display: none; align-items: center; gap: 10px;
    background: var(--rice); border-top: 2px solid var(--char);
    padding: 10px 12px; box-shadow: 0 -6px 18px rgba(31, 26, 23, .12);
}
.order-bar.show { display: flex; }
.ob-sum { flex: 1 1 auto; min-width: 0; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--char); line-height: 1.2; }
.ob-label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); }
.ob-total { display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--red); }
.ob-go { flex: 0 0 auto; min-height: 50px; padding: 0 20px; font-size: 1.02rem; }
body.order-mode { padding-bottom: calc(var(--order-bar-h) + env(safe-area-inset-bottom) + 8px); }
body.order-mode .bottom-nav { display: none; }
body.order-mode .order-bar { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
body.order-mode .float-contact { bottom: calc(var(--order-bar-h) + 24px); }
@media (min-width: 992px) {
    .order-bar { bottom: 0; }
    .order-bar > * { max-width: none; }
    .order-bar { padding-left: max(24px, calc((100vw - 860px) / 2)); padding-right: max(24px, calc((100vw - 860px) / 2)); }
    body.order-mode { padding-bottom: calc(var(--order-bar-h) + 16px); }
}

/* Hộp xác nhận số điện thoại */
.phone-modal { border: 2px solid var(--char); border-radius: var(--radius-lg); padding: 26px 22px 22px; background: var(--rice); box-shadow: var(--shadow-hard); position: relative; }
.phone-modal .btn-close { position: absolute; top: 14px; right: 14px; }
.phone-modal h2 { font-size: 1.8rem; text-align: center; margin-bottom: .3em; }
.phone-modal p { text-align: center; color: var(--char-2); font-size: .95rem; }
.field-error { color: var(--red); font-size: .85rem; font-weight: 600; margin-top: 6px; }
body.has-order-bar:not(.order-mode) { padding-bottom: calc(var(--bottom-nav-h) + var(--order-bar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { body.has-order-bar:not(.order-mode) { padding-bottom: var(--order-bar-h); } }

/* ---------- Trang thanh toán đơn đặt (1 cột) ---------- */
.co-wrap { max-width: 640px; margin: 0 auto; padding: 8px 16px 24px; }
.co-head { display: flex; align-items: center; gap: 8px; padding: 10px 0 6px; }
.co-head h1 { font-size: 1.6rem; margin: 0; }
.co-back { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--char); display: inline-flex; align-items: center; justify-content: center; color: var(--char); background: #fff; flex: 0 0 auto; }
.co-card { background: #fff; border: 2px solid var(--char); border-radius: var(--radius-lg); padding: 16px; margin-top: 14px; }
.co-title { font-size: 1.2rem; margin: 0 0 12px; }
.opt-list { display: grid; gap: 10px; }
.opt-list.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 400px) { .opt-list.two { grid-template-columns: 1fr; } }
.opt-card { align-items: center; padding: 12px 14px; position: relative; }
.opt-card input { margin-top: 0; }
.opt-card .oc-ic { font-size: 1.4rem; color: var(--red); flex: 0 0 auto; }
.opt-list.two .opt-card { align-items: flex-start; }
.opt-list.two .opt-card input, .opt-list.two .opt-card .oc-ic { margin-top: 2px; }
.addr-box { position: relative; }
.addr-box i { position: absolute; left: 14px; top: 14px; color: var(--red); font-size: 1.1rem; pointer-events: none; }
.addr-box .input-k { padding-left: 40px; min-height: 72px; }
.co-branch-line { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: #FFF6D6; border: 2px dashed var(--char); border-radius: 14px; }
.co-branch-line i { font-size: 1.4rem; color: var(--red); line-height: 1.2; }
.input-k[aria-invalid="true"], [data-accept-terms][aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,38,30,.18); }

.co-items { list-style: none; margin: 0; padding: 0; }
.co-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: start; }
.co-item:first-child { padding-top: 0; }
.co-item.unavailable .co-img, .co-item.unavailable .co-name { opacity: .5; }
.co-img { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid var(--char); background: var(--smoke); display: flex; align-items: center; justify-content: center; }
.co-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-img img.ph { width: 48px; height: 48px; object-fit: contain; }
.co-main { min-width: 0; }
.co-name { font-weight: 700; line-height: 1.3; }
.co-name .code-chip { height: 22px; min-width: 30px; font-size: .78rem; border-radius: 7px; margin-right: 6px; display: inline-flex; vertical-align: 1px; }
.co-main .cl-opts, .co-main .cl-note { font-size: .82rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.co-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.co-price { color: var(--red); font-family: var(--font-display); font-size: 1.15rem; }
.co-row .qty button { width: 34px; height: 34px; font-size: 1.1rem; }
.co-del { background: none; border: 0; color: var(--muted); font-size: 1.1rem; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.co-del:hover { color: var(--red); background: #FDECEA; }
.co-totals { margin-top: 14px; }
.co-items .cart-empty { text-align: center; padding: 10px 0; border: 0; display: block; }

.slot-picker { margin-top: 14px; }
.day-chips .chip { flex-direction: column; line-height: 1.15; padding: 6px 14px; min-height: 48px; justify-content: center; cursor: pointer; }
.day-chips .chip small { font-weight: 600; font-size: .75rem; }
.day-chips .chip[disabled] { opacity: .4; cursor: not-allowed; background: var(--smoke); }
.day-chips .chip[disabled]:hover { background: var(--smoke); color: var(--char); }
.co-terms { display: flex; gap: 10px; align-items: flex-start; margin: 16px 2px 0; font-size: .9rem; }
.co-terms input { width: 22px; height: 22px; accent-color: var(--red); flex: 0 0 auto; margin-top: 1px; }
.co-place .ob-go { min-width: 150px; }
.co-place .ob-label { color: var(--char-2); }
/* Thông báo "Đã thêm" nằm ngay trên thanh tổng đơn, không che thanh hình thức nhận */
body.has-order-bar .toast-k, body.order-mode .toast-k {
    top: auto; bottom: calc(var(--order-bar-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); font-size: .92rem;
}
body.has-order-bar:not(.order-mode) .toast-k { bottom: calc(var(--bottom-nav-h) + var(--order-bar-h) + 16px + env(safe-area-inset-bottom)); }
body.has-order-bar .toast-k.show, body.order-mode .toast-k.show { transform: translateX(-50%) translateY(0); }
@media (max-width: 575px) { .sort-select { max-width: 124px; font-size: .9rem; padding-left: 12px; } }
