/* =========================================================
   Frienddy Coffee — public website styles
   ========================================================= */
:root {
  --bg: #F7F1E6;
  --paper: #FBF7EF;
  --band: #F3EBDD;
  --ink: #2A2019;
  --ink-2: #4E4136;
  --muted: #7A6A5B;
  --line: #E4D6C1;
  --brown: #8A5A2B;
  --brown-2: #6E4520;
  --brown-soft: #B98A5C;
  --sage: #7E9A55;
  --white: #fff;
  --danger: #B3442E;
  --ok: #4E7A3A;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(74, 47, 22, .25);
  --serif: 'Lora', 'Noto Serif Khmer', Georgia, serif;
  --sans: 'Kantumruy Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Caveat', 'Fasthand', cursive;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg) url('../img/paper.svg');
  overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--brown); text-decoration: none; }
a:hover { color: var(--brown-2); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.35; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; border-radius: 6px; }

/* ---------- Script headings ---------- */
.script { font-family: var(--script); font-weight: 500; color: var(--brown); letter-spacing: .01em; }
html[lang="km"] .script { font-size: 1.05em; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 {
  font-family: var(--script); font-weight: 600; font-size: clamp(30px, 4vw, 42px); color: var(--ink);
  display: inline-flex; align-items: center; gap: 18px; margin: 0;
}
html[lang="km"] .section-title h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.6; }
.section-title h2::before, .section-title h2::after {
  content: ''; width: 46px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 10'%3E%3Cpath d='M1 5c6-5 10 5 16 0s10-5 16 0 8 2 12 0' fill='none' stroke='%238A5A2B' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain;
}
.section-title p { color: var(--ink-2); margin: 6px 0 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--brown);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 26px; min-height: 48px;
  background: var(--bg-btn) linear-gradient(100deg, rgba(255,255,255,.12), rgba(0,0,0,.08));
  color: #fff; border: 0; cursor: pointer; font-weight: 500;
  border-radius: 26px 20px 24px 18px / 20px 26px 18px 24px;
  box-shadow: 0 6px 16px -8px rgba(110, 69, 32, .7), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn:hover { color: #fff; background-color: var(--brown-2); transform: translateY(-1px); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn-outline {
  background: transparent; color: var(--ink); box-shadow: none;
  border: 1.5px solid var(--brown-soft);
}
.btn-outline:hover { background: var(--brown); color: #fff; border-color: var(--brown); }
.btn-sm { min-height: 38px; padding: 7px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(251, 247, 239, .94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-logo { width: 44px; height: 44px; color: var(--ink); }
.brand-logo-img { max-height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--script); font-size: 24px; font-weight: 600; }
html[lang="km"] .brand-name { font-size: 22px; line-height: 1.4; }
.brand-sub { font-family: var(--script); font-size: 17px; color: var(--muted); }
.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); font-size: 15.5px; position: relative; padding: 6px 0; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--ink); transform: scaleX(0); transition: transform .25s;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(255,255,255,.5); }
.lang-switch a { padding: 2px 11px; border-radius: 999px; font-size: 13.5px; color: var(--muted); }
.lang-switch a.active { background: var(--brown); color: #fff; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: rgba(138, 90, 43, .08); }
.icon-btn .icon { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--brown); color: #fff; font-size: 11.5px; line-height: 19px; text-align: center; font-weight: 600;
}
.cart-count[data-count="0"] { display: none; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 10px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 24px; }
.hero-copy { padding: 30px 0; position: relative; z-index: 2; }
.hero-eyebrow { font-family: var(--script); font-size: 30px; color: var(--brown); margin: 0 0 4px; }
html[lang="km"] .hero-eyebrow { font-size: 26px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.15; margin-bottom: 22px; font-weight: 500; letter-spacing: -.01em; }
html[lang="km"] .hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.5; font-weight: 600; }
.hero-text { font-size: 17px; max-width: 30em; margin-bottom: 30px; }
.hero-art { position: relative; margin-right: calc((100vw - min(var(--container), 100vw - 32px)) / -2); }
.wc-frame {
  position: relative;
  -webkit-mask: url('../img/wc-mask.svg') center / 100% 100% no-repeat;
  mask: url('../img/wc-mask.svg') center / 100% 100% no-repeat;
}
.wc-frame > img { width: 100%; height: auto; }
.hero-art .wc-frame { aspect-ratio: 870 / 760; }
.hero-art .wc-frame > img { height: 100%; object-fit: cover; }
.chalk {
  position: absolute; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--script); color: #F2EEE4; line-height: 1.25; transform: rotate(2deg);
  text-shadow: 0 0 1px rgba(255,255,255,.5); pointer-events: none;
}
.chalk span { display: block; }
.chalk .heart { font-size: .8em; margin-top: 4px; }
.hero .chalk { left: 76%; top: 14%; width: 18.5%; height: 38%; font-size: clamp(14px, 1.9vw, 25px); }
html[lang="km"] .chalk { line-height: 1.55; font-size: clamp(12px, 1.5vw, 20px); }
.has-custom-image .chalk { display: none; }

/* ---------- Features band ---------- */
.features { background: linear-gradient(180deg, rgba(243,235,221,.0), rgba(243,235,221,.85) 18%, rgba(243,235,221,.85) 82%, rgba(243,235,221,0)); padding: 40px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { text-align: center; padding: 10px; }
.feature-ico { width: 52px; height: 52px; margin: 0 auto 10px; display: block; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
html[lang="km"] .feature p { line-height: 1.7; }

/* ---------- Menu ---------- */
.section { padding: 70px 0; }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.menu-card { position: relative; text-align: center; border-radius: var(--radius); padding: 10px 10px 18px; transition: background .25s, transform .25s, box-shadow .25s; }
.menu-card:hover { background: rgba(255,255,255,.55); transform: translateY(-3px); box-shadow: var(--shadow); }
.menu-card .thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: 6px; }
.menu-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.menu-card .thumb img.photo { object-fit: cover; border-radius: 14px; }
.menu-card h3 { font-size: 18px; margin: 0 0 2px; font-weight: 600; }
html[lang="km"] .menu-card h3 { font-size: 17px; }
.menu-card .desc { font-size: 14px; color: var(--muted); margin: 4px 0 8px; line-height: 1.6; min-height: 3.2em; }
.price { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.price-usd { font-family: var(--serif); font-weight: 600; color: var(--ink); }
.price-khr { font-size: 12.5px; color: var(--muted); }
.add-btn {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 99px;
  border: 1.5px solid var(--brown-soft); background: transparent; color: var(--brown-2); font-size: 14px; cursor: pointer; transition: all .2s;
}
.add-btn:hover { background: var(--brown); color: #fff; border-color: var(--brown); }
.add-btn.added { background: var(--ok); border-color: var(--ok); color: #fff; }
.soldout { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--danger); border: 1px dashed currentColor; padding: 3px 12px; border-radius: 99px; }
.center { text-align: center; }
.mt-lg { margin-top: 38px; }

.menu-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 34px; }
.menu-tabs button {
  padding: 8px 18px; border-radius: 99px; border: 1.5px solid var(--line); background: rgba(255,255,255,.6); cursor: pointer; color: var(--ink-2);
}
.menu-tabs button.active, .menu-tabs button:hover { border-color: var(--brown); background: var(--brown); color: #fff; }
.menu-search { max-width: 380px; margin: 0 auto 22px; position: relative; }
.menu-search input { width: 100%; padding: 11px 16px 11px 42px; border: 1.5px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.75); }
.menu-search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.cat-heading { font-family: var(--script); font-size: 30px; color: var(--brown); margin: 30px 0 14px; display: flex; align-items: center; gap: 14px; }
.cat-heading::after { content: ''; flex: 1; height: 1px; background: var(--line); }
html[lang="km"] .cat-heading { font-size: 26px; }
.empty-note { text-align: center; color: var(--muted); padding: 30px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.about-copy h2 { font-family: var(--script); font-size: clamp(32px, 4vw, 44px); font-weight: 600; }
html[lang="km"] .about-copy h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.6; }
.about-art { margin-right: calc((100vw - min(var(--container), 100vw - 32px)) / -2); position: relative; }
.about-art .wc-frame { aspect-ratio: 840 / 488; }
.about-art .wc-frame > img { height: 100%; object-fit: cover; }
.about-art .chalk { left: 74.5%; top: 9%; width: 16.5%; height: 50%; font-size: clamp(13px, 1.7vw, 22px); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: 64px 0; text-align: center; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: url('../img/wash.svg') center / 100% 100% no-repeat; opacity: .95; }
.cta-band .leaves { position: absolute; bottom: -10px; width: 150px; height: auto; opacity: .95; }
.cta-band .leaves.left { left: max(0px, calc(50% - 640px)); }
.cta-band .leaves.right { right: max(0px, calc(50% - 640px)); transform: scaleX(-1); }
.cta-band h2 { position: relative; font-family: var(--script); font-size: clamp(28px, 3.6vw, 38px); font-weight: 600; line-height: 1.3; margin: 0; }
html[lang="km"] .cta-band h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.75; }
.heart-divider { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; color: var(--brown-soft); }
.heart-divider::before, .heart-divider::after { content: ''; width: 34px; height: 1.5px; background: currentColor; }
.heart-divider svg { width: 18px; height: 18px; fill: #C99A6A; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: 40px 0 20px; text-align: center; }
.page-hero h1 { font-family: var(--script); font-weight: 600; font-size: clamp(36px, 5vw, 54px); margin: 0; }
html[lang="km"] .page-hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.6; }
.page-hero p { color: var(--muted); margin: 6px 0 0; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* ---------- Cards & forms ---------- */
.card { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset; }
.card h2, .card h3 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14.5px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brown-soft); box-shadow: 0 0 0 4px rgba(185, 138, 92, .18); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field .error { font-size: 13px; color: var(--danger); margin-top: 4px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 15px;
}
.radio-card input:checked + span { border-color: var(--brown); box-shadow: 0 0 0 3px rgba(138, 90, 43, .15); color: var(--brown-2); }
.radio-card input:focus-visible + span { outline: 2px solid var(--brown); }
.hp-field { position: absolute !important; left: -9999px !important; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; border: 1px solid; }
.alert .icon { margin-top: 4px; }
.alert span { flex: 1; }
.alert-success { background: #EEF4E6; border-color: #C7D9B2; color: #3D5F2B; }
.alert-error { background: #FBEDE8; border-color: #EFC5B8; color: #8E3420; }
.alert-info { background: #F4EEE4; border-color: var(--line); color: var(--ink-2); }
.alert-close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; }
.info-list .ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #F3E7D5; color: var(--brown); }
.info-list strong { display: block; color: var(--ink); font-weight: 600; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 22px; aspect-ratio: 16/10; background: #EFE5D6; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs button { background: none; border: 0; padding: 10px 16px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs button.active { color: var(--brown-2); border-color: var(--brown); }
.tab-panel[hidden] { display: none; }

/* ---------- Checkout / order ---------- */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 28px; align-items: start; }
.summary { position: sticky; top: 96px; }
.summary-items { list-style: none; margin: 0 0 14px; padding: 0; }
.summary-items li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary-items img { width: 54px; height: 44px; object-fit: contain; }
.summary-items .nm { flex: 1; color: var(--ink); line-height: 1.4; }
.summary-items .nm small { display: block; color: var(--muted); }
.totals { display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 19px; font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.totals .grand small { display: block; text-align: right; font-weight: 400; font-size: 13px; color: var(--muted); }
.pay-box { background: #F6EFE3; border-radius: 12px; padding: 14px; font-size: 14.5px; margin-top: 10px; }
.success-box { text-align: center; max-width: 640px; margin: 0 auto; }
.success-box .big-ico { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: #E8F0DD; color: var(--ok); }
.success-box .big-ico .icon { width: 36px; height: 36px; }
.order-no { font-family: var(--serif); font-size: 26px; color: var(--ink); letter-spacing: .04em; }
.timeline { display: flex; justify-content: space-between; position: relative; margin: 26px 0; }
.timeline::before { content: ''; position: absolute; top: 15px; left: 6%; right: 6%; height: 2px; background: var(--line); }
.timeline .step { position: relative; flex: 1; text-align: center; font-size: 13px; color: var(--muted); }
.timeline .dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line); margin: 0 auto 6px; display: grid; place-items: center; }
.timeline .step.done .dot { background: var(--brown); border-color: var(--brown); color: #fff; }
.timeline .step.done { color: var(--ink); }
.status-cancelled { color: var(--danger); font-weight: 600; }
.table-simple { width: 100%; border-collapse: collapse; }
.table-simple td, .table-simple th { padding: 9px 4px; border-bottom: 1px dashed var(--line); text-align: left; }
.table-simple td:last-child, .table-simple th:last-child { text-align: right; }

/* ---------- Footer ---------- */
.site-footer { background: rgba(243, 235, 221, .7); border-top: 1px solid var(--line); padding: 34px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: center; }
.footer-item { display: flex; gap: 14px; align-items: center; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.footer-item .icon { width: 26px; height: 26px; color: var(--ink); }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background .2s; }
.socials a:hover { background: rgba(138, 90, 43, .1); color: var(--brown); }
.socials .icon { width: 22px; height: 22px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; font-size: 13.5px; color: var(--muted); }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted); }

/* ---------- Cart drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(42, 32, 25, .35); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 80; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); z-index: 90;
  transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.12);
}
.drawer.open { transform: none; }
.drawer.open + .drawer-backdrop, .drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); background: rgba(243,235,221,.5); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cart-item img { width: 64px; height: 50px; object-fit: contain; }
.cart-item .nm { color: var(--ink); font-weight: 500; line-height: 1.4; }
.cart-item .pr { font-size: 14px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: #fff; }
.qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.qty button .icon { width: 15px; height: 15px; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.cart-empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.cart-empty .icon { width: 48px; height: 48px; color: var(--brown-soft); margin-bottom: 8px; }
.cart-sub { display: flex; justify-content: space-between; font-size: 17px; color: var(--ink); font-weight: 600; margin-bottom: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; z-index: 120;
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 99px; font-size: 14.5px; transition: all .3s; pointer-events: none;
  display: flex; gap: 8px; align-items: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav ul { gap: 22px; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .checkout-grid, .contact-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -16px rgba(0,0,0,.25); display: none; margin: 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 14px; }
  .main-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav a.active { color: var(--brown); font-weight: 600; }
  .header-actions { margin-left: auto; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 10px 0 0; text-align: left; }
  .hero-art, .about-art { margin-right: -16px; margin-left: -16px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-inner { gap: 10px; min-height: 66px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-name { font-size: 20px; }
  html[lang="km"] .brand-name { font-size: 18px; }
  .brand-sub { font-size: 14px; }
  .lang-switch a { padding: 2px 8px; font-size: 12.5px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .menu-card { padding: 6px 4px 14px; }
  .menu-card .desc { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .section { padding: 50px 0; }
  .cta-band .leaves { width: 80px; }
  .timeline .step { font-size: 11.5px; }
}
