/* Chè Không Ngọt ordering: same look as chekhongngot.com (cream, strawberry, sky, sunshine,
   Fraunces headings, Manrope body). */
:root {
  --cream: #fdfcf8; --cream2: #f7f2e7; --ink: #051223; --muted: #5b6676; --line: #ece5d6;
  --strawberry: #dc0020; --strawberry-soft: #fde4e4; --sky: #3faff3; --sky-soft: #e0f2fd;
  --sunshine: #fcca21; --sunshine-soft: #fff4cc; --navy: #004183; --green: #12a150;
  --radius: 20px; --shadow: 0 8px 28px rgba(5, 18, 35, .08), 0 1px 3px rgba(5, 18, 35, .06);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--cream); color: var(--ink); font-family: Manrope, Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.45; }
h1, h2, h3, .display { font-family: Fraunces, 'Cormorant Garamond', Georgia, serif; letter-spacing: -.01em; margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--navy); }
img { display: block; max-width: 100%; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(253, 252, 248, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 10px; height: 60px; }
.logo { width: 38px; height: 38px; border-radius: 12px; background: var(--strawberry); color: #fff; display: grid; place-items: center; font-family: Fraunces, serif; font-weight: 700; font-size: 20px; flex: none; }
.brand { flex: 1; min-width: 0; }
.brand b { display: block; font-family: Fraunces, serif; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge.open { background: #dcf7e6; color: var(--green); }
.badge.closed { background: var(--strawberry-soft); color: var(--strawberry); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; background: #fff; }

/* hero */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; margin: 16px 0; min-height: 210px; background: var(--sunshine-soft); box-shadow: var(--shadow); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,18,35,0) 25%, rgba(5,18,35,.72)); }
.hero .txt { position: relative; z-index: 1; padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: 210px; }
.hero h1 { font-size: 30px; line-height: 1.1; }
.hero p { margin: 6px 0 0; opacity: .92; font-size: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.chip { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }

/* order type */
.seg { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.seg button { flex: 1; padding: 10px 6px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--ink); color: #fff; }

/* categories + items */
.cats { position: sticky; top: 60px; z-index: 15; background: var(--cream); display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.cats button.on { background: var(--strawberry); color: #fff; border-color: var(--strawberry); }
.cat-title { margin: 22px 0 10px; font-size: 22px; }
.items { display: grid; gap: 12px; }
.item { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); text-align: left; width: 100%; }
.item img { width: 104px; height: 104px; border-radius: 14px; object-fit: cover; flex: none; background: var(--cream2); }
.item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item h3 { font-size: 17px; line-height: 1.2; }
.item .en { font-size: 13px; color: var(--muted); margin-top: 2px; }
.item .contents { font-size: 12px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.price { font-weight: 800; font-size: 16px; color: var(--strawberry); }
.add { width: 36px; height: 36px; border-radius: 50%; background: var(--strawberry); color: #fff; font-size: 22px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.item.out { opacity: .5; }
.best { background: var(--sunshine); color: #270f00; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; align-self: flex-start; margin-bottom: 4px; }
.qtytag { background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 8px; }

/* bottom cart bar */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(253,252,248,0), var(--cream) 30%); }
.cartbar button { max-width: 728px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; background: var(--strawberry); color: #fff; border-radius: 999px; padding: 15px 20px; font-weight: 800; font-size: 16px; box-shadow: 0 10px 26px rgba(220, 0, 32, .35); }
.cartbar .count { background: rgba(255,255,255,.22); border-radius: 999px; padding: 2px 10px; margin-right: 8px; }

/* sheets */
.scrim { position: fixed; inset: 0; background: rgba(5,18,35,.45); z-index: 40; animation: fade .15s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92vh; overflow-y: auto; background: var(--cream); border-radius: 24px 24px 0 0; animation: up .22s ease-out; padding-bottom: env(safe-area-inset-bottom); }
.sheet .inner { max-width: 760px; margin: 0 auto; padding: 18px 16px 24px; }
.sheet .photo { width: 100%; height: 230px; object-fit: cover; border-radius: 18px; margin-bottom: 14px; }
.sheet h2 { font-size: 24px; }
.close { position: sticky; top: 0; float: right; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 18px; z-index: 2; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sec { font-weight: 800; margin: 18px 0 8px; font-size: 15px; }
.tops { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.top-opt { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); font-size: 14px; text-align: left; }
.top-opt.on { border-color: var(--strawberry); background: var(--strawberry-soft); }
.top-opt small { color: var(--muted); font-weight: 700; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; background: var(--cream2); font-size: 20px; font-weight: 800; }
.stepper b { min-width: 18px; text-align: center; }
.btn { text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 18px; border-radius: 999px; background: var(--strawberry); color: #fff; font-weight: 800; font-size: 16px; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.dark { background: var(--ink); }
.btn.green { background: var(--green); }
.btn:disabled { opacity: .5; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); }
.line { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.line .tp { font-size: 12px; color: var(--muted); }
.total { display: flex; justify-content: space-between; font-weight: 800; font-size: 19px; padding: 12px 0; }
.err { background: var(--strawberry-soft); color: var(--strawberry); border-radius: 14px; padding: 10px 12px; font-weight: 700; font-size: 14px; margin: 10px 0; }
.note { background: var(--sky-soft); color: var(--navy); border-radius: 14px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.link { color: var(--sky); font-weight: 800; font-size: 14px; }

/* order status */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin: 14px 0; }
.steps { display: flex; gap: 6px; margin: 12px 0 4px; }
.steps div { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps div.on { background: var(--green); }
.qr { width: 100%; max-width: 320px; margin: 10px auto; border-radius: 14px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
footer { text-align: center; padding: 30px 16px 120px; color: var(--muted); font-size: 13px; }
