/* Dapur Mama Yel — merah cabai, krem, putih, aksen hitam */
:root {
  --dmy-red: #B3121F;
  --dmy-red-2: #D7261E;
  --dmy-red-dark: #7E0B14;
  --dmy-cream: #FFF4E2;
  --dmy-cream-2: #F8E6C8;
  --dmy-ink: #18120F;
  --dmy-muted: #6F625A;
  --dmy-radius: 18px;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--dmy-ink);
  --bs-link-color: var(--dmy-red);
  --bs-link-color-rgb: 179, 18, 31;
  --bs-link-hover-color: var(--dmy-red-dark);
}
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--dmy-cream); color: var(--dmy-ink); -webkit-tap-highlight-color: transparent; }
body.has-bottombar { padding-bottom: 84px; }
h1, h2, h3, .section-title, .dmy-brand-name, .order-no { font-family: "Bricolage Grotesque", var(--bs-body-font-family); }

/* ---------- Header ---------- */
.dmy-topbar { background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid #f0e2cc; z-index: 1030; }
.dmy-brand { display: flex; align-items: center; gap: .55rem; color: var(--dmy-ink); }
.dmy-logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--dmy-red); color: #fff; font-weight: 800; letter-spacing: -.5px;
  font-family: "Bricolage Grotesque", sans-serif; box-shadow: 0 4px 0 var(--dmy-ink);
}
.dmy-brand-name { font-weight: 800; font-size: 1.12rem; }
.dmy-brand-sub { font-size: .72rem; color: var(--dmy-muted); margin-top: 2px; }

.badge-nonhalal {
  display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 999px;
  background: var(--dmy-ink); color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .06em; white-space: nowrap;
}
.badge-nonhalal::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dmy-red-2); box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.badge-nonhalal-lg { font-size: .85rem; padding: .4rem .8rem; background: #fff; color: var(--dmy-ink); }

/* ---------- Hero ---------- */
.dmy-hero {
  position: relative; overflow: hidden; color: #fff; padding: 2.25rem 0 2.75rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.12) 0 120px, transparent 121px),
    radial-gradient(circle at 10% 110%, rgba(0,0,0,.18) 0 200px, transparent 201px),
    linear-gradient(135deg, var(--dmy-red-2), var(--dmy-red) 55%, var(--dmy-red-dark));
}
.dmy-hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 26px; background: var(--dmy-cream);
  clip-path: polygon(0 100%, 0 40%, 5% 70%, 10% 40%, 15% 70%, 20% 40%, 25% 70%, 30% 40%, 35% 70%, 40% 40%, 45% 70%, 50% 40%, 55% 70%, 60% 40%, 65% 70%, 70% 40%, 75% 70%, 80% 40%, 85% 70%, 90% 40%, 95% 70%, 100% 40%, 100% 100%);
}
.dmy-hero-title { font-weight: 800; font-size: clamp(2.1rem, 7vw, 3.6rem); line-height: 1; letter-spacing: -.02em; }
.dmy-hero-title span { color: var(--dmy-cream-2); font-size: .62em; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.pill-light { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }
.dmy-ready {
  display: inline-block; margin: 1rem 0 1.1rem; padding: .5rem .9rem; border-radius: 10px; font-weight: 800;
  background: var(--dmy-cream); color: var(--dmy-red-dark); letter-spacing: .02em; box-shadow: 0 4px 0 var(--dmy-ink);
}
.dmy-countdown { background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.18); border-radius: var(--dmy-radius); padding: .9rem 1rem; max-width: 430px; }
.cd-box { flex: 1; background: #fff; color: var(--dmy-ink); border-radius: 12px; text-align: center; padding: .45rem .2rem; }
.cd-box span { display: block; font: 800 1.6rem/1 "Bricolage Grotesque", sans-serif; }
.cd-box small { font-size: .68rem; color: var(--dmy-muted); text-transform: uppercase; letter-spacing: .05em; }
.btn-cta {
  --bs-btn-bg: var(--dmy-ink); --bs-btn-color: #fff; --bs-btn-hover-bg: #000; --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #000; --bs-btn-active-color: #fff; --bs-btn-disabled-bg: #8b817b; --bs-btn-disabled-color: #eee;
  --bs-btn-disabled-border-color: transparent;
  font-weight: 800; border-radius: 14px; padding: .75rem 1.25rem; letter-spacing: .02em;
}
.dmy-hero .btn-cta { --bs-btn-bg: #fff; --bs-btn-color: var(--dmy-red); --bs-btn-hover-bg: var(--dmy-cream); --bs-btn-hover-color: var(--dmy-red-dark); box-shadow: 0 5px 0 var(--dmy-ink); }
.dmy-hero-collage { position: relative; height: 400px; max-width: 620px; margin-left: auto; }
.dmy-hero-collage img { position: absolute; width: 60%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; border: 6px solid #fff; box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.collage-0 { top: 0; right: 0; transform: rotate(4deg); }
.collage-1 { top: 115px; left: 2%; transform: rotate(-5deg); }
.collage-2 { bottom: 0; right: 16%; transform: rotate(2deg); width: 46% !important; }

/* ---------- Info ---------- */
.info-card { display: flex; gap: .65rem; align-items: flex-start; background: #fff; border-radius: 14px; padding: .8rem; height: 100%; border: 1px solid #f0e2cc; }
.info-card i { font-size: 1.3rem; color: var(--dmy-red); }
.info-card small { display: block; color: var(--dmy-muted); font-size: .72rem; }
.info-card strong { font-size: .86rem; line-height: 1.25; display: block; }
.info-card-red { background: var(--dmy-red); color: #fff; border-color: var(--dmy-red); }
.info-card-red i, .info-card-red small { color: rgba(255,255,255,.85); }
.dmy-ongkir { display: flex; gap: .6rem; align-items: center; background: var(--dmy-cream-2); border: 1px dashed #d8b98a; border-radius: 14px; padding: .7rem .9rem; font-size: .9rem; }
.dmy-ongkir i { color: var(--dmy-red); font-size: 1.2rem; }
.dmy-closed-banner { display: flex; gap: .9rem; align-items: center; background: #fff; border-left: 6px solid var(--dmy-red); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.dmy-closed-banner i { color: var(--dmy-red); }
.section-title { font-weight: 800; font-size: 1.6rem; }

/* ---------- Menu card ---------- */
.menu-card { background: #fff; border-radius: var(--dmy-radius); overflow: hidden; display: flex; flex-direction: column; border: 2px solid transparent; box-shadow: 0 6px 18px rgba(80, 40, 10, .07); transition: border-color .15s, transform .15s; }
.menu-card.in-cart { border-color: var(--dmy-red); }
.menu-photo { position: relative; aspect-ratio: 4/3; min-height: 0; overflow: hidden; background: var(--dmy-cream-2); }
.menu-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-tag { position: absolute; top: 10px; left: 10px; background: var(--dmy-ink); color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .08em; padding: .25rem .5rem; border-radius: 6px; }
.menu-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.menu-name { font-size: 1.15rem; font-weight: 800; margin: 0 0 .2rem; }
.menu-desc { font-size: .82rem; color: var(--dmy-muted); margin-bottom: .5rem; }
.menu-price { font-weight: 800; font-size: 1.2rem; color: var(--dmy-red); margin-bottom: .75rem; }
.menu-price span { font-size: .85rem; color: var(--dmy-muted); font-weight: 600; }
.btn-add { --bs-btn-bg: var(--dmy-red); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--dmy-red-dark); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--dmy-red-dark); --bs-btn-active-color: #fff; --bs-btn-disabled-bg: #c9bdb3; --bs-btn-disabled-border-color: transparent; font-weight: 700; border-radius: 12px; min-height: 48px; }
.qty-stepper { display: flex; align-items: center; gap: .4rem; }
.qty-stepper .btn { width: 48px; height: 48px; border-radius: 12px; background: var(--dmy-cream); border: 0; font-size: 1.2rem; color: var(--dmy-ink); }
.qty-stepper .btn:hover { background: var(--dmy-cream-2); }
.qty-stepper .form-control { height: 48px; text-align: center; font-weight: 800; font-size: 1.15rem; border-radius: 12px; -moz-appearance: textfield; }
.qty-stepper .form-control::-webkit-outer-spin-button, .qty-stepper .form-control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper-sm .btn { width: 34px; height: 34px; font-size: 1rem; border-radius: 9px; }
.menu-subtotal { color: var(--dmy-muted); text-align: right; }

/* ---------- Cart ---------- */
.cart-panel, .panel { background: #fff; border-radius: var(--dmy-radius); padding: 1.15rem; box-shadow: 0 6px 18px rgba(80, 40, 10, .07); }
.cart-row { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px dashed #eadbc4; }
.cart-row img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }
.cart-total { padding: .8rem 0 .2rem; font-size: 1.05rem; }
.cart-total strong { font-size: 1.3rem; color: var(--dmy-red); }
.dmy-offcanvas { height: auto !important; max-height: 85vh; border-radius: 22px 22px 0 0; }
.dmy-bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: var(--dmy-ink); color: #fff;
  border-radius: 18px 18px 0 0; box-shadow: 0 -8px 24px rgba(0,0,0,.2);
}
.dmy-bottombar .btn-light { border-radius: 12px; padding: .7rem 1rem; }

/* ---------- Checkout & order ---------- */
.dmy-steps { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 1rem; font-size: .8rem; overflow-x: auto; }
.dmy-steps li { display: flex; align-items: center; gap: .35rem; padding: .35rem .7rem .35rem .35rem; background: #fff; border-radius: 999px; color: var(--dmy-muted); white-space: nowrap; }
.dmy-steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--dmy-cream-2); font-weight: 800; }
.dmy-steps li.active { background: var(--dmy-ink); color: #fff; }
.dmy-steps li.active span { background: var(--dmy-red); color: #fff; }
.dmy-steps li.done span { background: #198754; color: #fff; }
.dmy-deadline-strip { background: var(--dmy-red); color: #fff; padding: .55rem .9rem; border-radius: 12px; }
.form-control-lg, .form-select-lg { font-size: 1rem; border-radius: 12px; }
.form-control:focus, .form-select:focus { border-color: var(--dmy-red); box-shadow: 0 0 0 .2rem rgba(179, 18, 31, .15); }
.dmy-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.summary-table tfoot td { border-bottom: 0; }
.order-hero { background: #fff; border-radius: var(--dmy-radius); padding: 1.1rem 1.2rem; border-top: 6px solid var(--dmy-red); }
.order-no { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 800; letter-spacing: .01em; }
.step-dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--dmy-red); color: #fff; font-size: .85rem; margin-right: .3rem; }
.transfer-box { background: var(--dmy-cream); border-radius: 14px; padding: .4rem 1rem; }
.row-kv { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1rem; padding: .7rem 0; border-bottom: 1px dashed #e2cfb1; }
.row-kv:last-child { border-bottom: 0; }
.row-kv > span { color: var(--dmy-muted); font-size: .88rem; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .04em; }
.btn-wa { --bs-btn-bg: #25D366; --bs-btn-color: #fff; --bs-btn-hover-bg: #1da851; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #1da851; --bs-btn-active-color: #fff; font-weight: 800; border-radius: 14px; }
.timeline { list-style: none; padding-left: 1rem; border-left: 2px solid var(--dmy-cream-2); }
.timeline li { position: relative; padding: .25rem 0 .25rem .5rem; }
.timeline li::before { content: ""; position: absolute; left: -1.38rem; top: .6rem; width: 10px; height: 10px; border-radius: 50%; background: var(--dmy-red); }
.closed-icon { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--dmy-red); font-size: 3rem; box-shadow: 0 8px 0 var(--dmy-ink); }

/* ---------- Footer ---------- */
.dmy-footer { background: var(--dmy-ink); color: #fff; }

@media (min-width: 992px) {
  .dmy-hero { padding: 3.5rem 0 4rem; }
  body.has-bottombar { padding-bottom: 0; }
}
@media (max-width: 575.98px) {
  .menu-card { flex-direction: row; }
  .menu-photo { width: 38%; aspect-ratio: auto; min-height: 100%; flex-shrink: 0; }
  .menu-body { padding: .75rem; }
  .menu-name { font-size: 1.02rem; }
  .menu-desc { display: none; }
  .menu-price { font-size: 1.05rem; margin-bottom: .5rem; }
  .qty-stepper .btn { width: 44px; height: 44px; }
  .qty-stepper .form-control { height: 44px; }
  .btn-add { min-height: 44px; }
  .cd-box span { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Tanya Dulu (chat) ---------- */
.chat-box { background: var(--dmy-cream); border-radius: 14px; padding: .75rem; max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; }
.chat-empty { color: var(--dmy-muted); font-size: .88rem; text-align: center; padding: 1rem 0; }
.chat-msg { max-width: 85%; padding: .5rem .75rem; border-radius: 14px; font-size: .92rem; word-wrap: break-word; }
.chat-msg.from-me { align-self: flex-end; background: var(--dmy-ink); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.from-admin { align-self: flex-start; background: #fff; border: 1px solid #ecd9bd; border-bottom-left-radius: 4px; }
.chat-who { font-size: .72rem; opacity: .7; margin-bottom: .15rem; }
.chat-form { display: flex; gap: .5rem; align-items: flex-end; }
.chat-form textarea { border-radius: 12px; resize: vertical; }
.chat-form .btn { flex-shrink: 0; min-height: 48px; }

/* ---------- Panduan alur pemesanan (hero) ---------- */
.dmy-guide { background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.22); border-radius: var(--dmy-radius); padding: 1rem 1.1rem; }
.dmy-guide-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 .8rem; }
.dmy-guide-steps { list-style: none; margin: 0; padding: 0; }
.dmy-guide-steps li { display: flex; gap: .75rem; align-items: flex-start; position: relative; padding-bottom: .75rem; }
.dmy-guide-steps li:last-child { padding-bottom: 0; }
.dmy-guide-steps li:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 2px; background: rgba(255,255,255,.3); }
.dmy-guide .step-num { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--dmy-red); font-weight: 800; font-size: .95rem; position: relative; z-index: 1; }
.dmy-guide .step-title { font-weight: 700; line-height: 1.3; }
.dmy-guide .step-title i { opacity: .8; margin-right: .15rem; }
.dmy-guide .step-desc { font-size: .84rem; opacity: .9; line-height: 1.45; margin-top: .1rem; }
.dmy-guide .step-desc a { color: #fff; font-weight: 700; }
.dmy-guide-note { margin-top: .8rem; padding-top: .65rem; border-top: 1px dashed rgba(255,255,255,.3); font-size: .85rem; }

/* Desktop lebar: 3 kolom (teks | panduan | kolase) */
@media (min-width: 1200px) {
  .dmy-hero-title { font-size: 2.6rem; }
  .dmy-ready { font-size: .9rem; white-space: nowrap; }
  .dmy-hero .pill { font-size: .78rem; }
  .dmy-hero-collage { height: 440px; max-width: none; }
  .dmy-hero-collage img { width: 72%; }
  .collage-0 { top: 0; right: 0; }
  .collage-1 { top: 140px; left: 0; }
  .collage-2 { bottom: 0; right: 6%; width: 56% !important; }
}
@media (min-width: 1400px) {
  .dmy-hero-title { font-size: 3rem; }
}
