/* ============================================================
   DIBELIIN LEBIH MURAH — DESIGN SYSTEM
   Clean Blue Coffee Commerce
   Mobile-first • Blue & white • Professional
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------ */
:root {
  /* Surface */
  --bg: #f4f8fe;
  --bg-deep: #e8f1fc;
  --surface: #ffffff;
  --surface-soft: #eaf2fb;
  --surface-mute: #f7faff;

  /* Brand blue */
  --primary: #0b6bcb;
  --primary-strong: #084f99;
  --primary-ink: #0a4c90;
  --primary-soft: #e3f0ff;
  --primary-line: #cfe4ff;

  /* Ink */
  --ink: #0f172a;
  --body: #475569;
  --muted: #5b6b82;

  /* Lines */
  --border: #dce8f7;
  --border-strong: #c6dbf2;

  /* Status */
  --success: #047857;
  --success-soft: #ecfdf5;
  --warning: #b45309;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --star: #f59e0b;
  --wa: #25d366;
  --wa-deep: #128c4a;

  /* Shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 28px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 10px -4px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 16px 34px -22px rgba(11, 107, 203, 0.55);
  --shadow-lg: 0 30px 70px -34px rgba(8, 79, 153, 0.6);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --shell: 480px;
  --pad: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* Typography — Official Coffee App Standard (Plus Jakarta Sans + Inter, Tabular Nums) */
  --font-heading: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-sans: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  background:
    radial-gradient(1100px 560px at 12% -8%, #dcebff 0%, transparent 55%),
    radial-gradient(900px 520px at 102% 6%, #e6f2ff 0%, transparent 52%),
    #edf4fc;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  border: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

::selection {
  background: var(--primary-soft);
  color: var(--primary-ink);
}

/* ------------------------------------------------------------
   3. UTILITIES
   ------------------------------------------------------------ */
.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.min-w-0 {
  min-width: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transform: translate(-50%, -160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* Lucide size helpers (icons are inline SVG) */
.w-2\.5 { width: 0.625rem; }
.h-2\.5 { height: 0.625rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.h-3\.5 { height: 0.875rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }

/* ------------------------------------------------------------
   4. APP SHELL
   ------------------------------------------------------------ */
.app-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 248, 254, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.app-top.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 24px -22px rgba(8, 79, 153, 0.8);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--pad) 10px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.header-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  overflow: hidden;
  color: #fff;
  background: #18385e;
  box-shadow: 0 8px 18px -10px rgba(24, 56, 94, 0.72);
}

.logo-mark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-wordmark-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-wordmark-img {
  height: 40px;
  width: auto;
  max-width: 164px;
  object-fit: contain;
  display: block;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.icon-btn:active {
  transform: scale(0.94);
}

.header-back {
  background: rgba(255, 255, 255, 0.9);
}

.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}

.cart-btn:active {
  transform: scale(0.94);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid var(--bg);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  animation: badge-pop 0.3s var(--ease);
}

/* Step progress */
.step-progress {
  padding: 0 var(--pad) 12px;
}

.step-progress-inner {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.step-bars {
  display: flex;
  gap: 5px;
}

.step-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #dbe7f5;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}

.step-bar.is-done {
  background: #9cc6f4;
}

.step-bar.is-current {
  background: linear-gradient(90deg, #1180e8, #0b6bcb);
  box-shadow: 0 0 0 1px rgba(11, 107, 203, 0.14);
}

.app-main {
  padding: 4px var(--pad) 28px;
  outline: none;
  animation: page-in 0.4s var(--ease);
}

body.has-bottom-bar .app-main {
  padding-bottom: 108px;
}

/* ------------------------------------------------------------
   5. TYPOGRAPHY & SECTIONS
   ------------------------------------------------------------ */
.eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 2px;
}

.section {
  margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.section-title.small {
  font-size: 15px;
}

.section-count {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary-ink);
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.section-head.compact {
  margin-bottom: 10px;
}

/* ------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------ */
.hero-card {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.hero-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(140deg, #d9e9fb, #eef6ff);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: hero-zoom 14s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 40, 74, 0.08) 0%,
    rgba(8, 40, 74, 0.18) 55%,
    rgba(244, 248, 254, 0.96) 100%
  );
}

.hero-content {
  position: relative;
  margin-top: -30px;
  padding: 0 16px 16px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-xs);
  color: var(--primary-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-title {
  margin-top: 9px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
}

.hero-title span {
  color: var(--primary);
}

.hero-text {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--body);
  max-width: 34ch;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  margin-top: 13px;
}

.hero-brand-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: -8px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--dot);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: var(--shadow-xs);
}

.hero-brand-note {
  margin-left: 16px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}

/* ------------------------------------------------------------
   7. BRAND GRID
   ------------------------------------------------------------ */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 158px;
  padding: 13px;
  overflow: hidden;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, #ffffff);
  border-radius: var(--r-lg);
  background:
    linear-gradient(158deg, #ffffff 18%, var(--brand-soft) 100%);
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.2s var(--ease);
}

.brand-card:active {
  transform: scale(0.975);
}

.brand-card-glow {
  position: absolute;
  top: -46px;
  right: -40px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  opacity: 0.16;
  pointer-events: none;
}

.brand-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  position: relative;
}

.brand-monogram {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--brand-deep);
  font-size: 18px;
  font-weight: 800;
  box-shadow: var(--shadow-xs);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
}

.brand-rating svg {
  color: var(--star);
}

.brand-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.brand-promo {
  align-self: flex-start;
  padding: 3.5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.brand-tagline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--body);
}

.brand-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed color-mix(in srgb, var(--brand) 18%, transparent);
  position: relative;
}

.brand-menu-count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--body);
}

.brand-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-deep);
}

/* ------------------------------------------------------------
   8. HORIZONTAL RAIL & PROMO CARDS
   ------------------------------------------------------------ */
.h-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-inline: calc(var(--pad) * -1);
  padding: 2px var(--pad) 6px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--pad);
  -webkit-overflow-scrolling: touch;
}

.promo-card {
  flex: 0 0 166px;
  width: 166px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  scroll-snap-align: start;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease);
}

.promo-card:active {
  transform: scale(0.975);
}

.promo-rail {
  scroll-snap-type: x mandatory;
}

.promo-card.is-compact {
  flex-basis: 142px;
  width: 142px;
}

.promo-card.is-compact .promo-media {
  aspect-ratio: 1 / 1;
}

.promo-card.is-compact .promo-name {
  font-size: 11.5px;
}

.promo-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-soft);
}

.promo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.promo-card:hover .promo-img {
  transform: scale(1.05);
}

.promo-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px 11px;
}

.promo-brand {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.promo-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
}

.promo-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 3px;
}

.promo-price strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.promo-price s {
  font-size: 10px;
  color: var(--muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge-save {
  background: #e11d48;
  color: #fff;
  box-shadow: 0 4px 10px -6px rgba(225, 29, 72, 0.9);
}

.badge-best {
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.promo-media .badge,
.product-media > .badge {
  position: absolute;
  top: 8px;
  left: 8px;
}

/* ------------------------------------------------------------
   9. STEPS, TRUST, FOOTER
   ------------------------------------------------------------ */
.steps-list {
  display: grid;
  gap: 9px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.step-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
}

.step-item p {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--body);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 7px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 3px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}

.trust-item strong {
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.trust-item small {
  font-size: 9.5px;
  line-height: 1.3;
  color: var(--muted);
}

.app-footer {
  margin-top: 26px;
  padding: 18px 0 6px;
  border-top: 1px dashed var(--border-strong);
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
}

.footer-brand svg {
  color: var(--primary);
}

.app-footer p {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}

.app-footer p + p {
  margin-top: 2px;
}

/* Last order */
.last-order-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.last-order-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.last-order-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.last-order-copy strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.last-order-copy span {
  font-size: 10.5px;
  color: var(--muted);
}

/* ------------------------------------------------------------
   10. BRAND / OUTLET STRIP
   ------------------------------------------------------------ */
.brand-strip,
.outlet-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--brand) 16%, #ffffff);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, #ffffff 20%, var(--brand-soft) 100%);
  box-shadow: var(--shadow-xs);
}

.brand-strip-logo,
.outlet-strip-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--brand-deep);
  font-size: 19px;
  font-weight: 800;
  box-shadow: var(--shadow-xs);
}

.brand-strip-copy,
.outlet-strip-copy {
  flex: 1;
  min-width: 0;
}

.brand-strip-copy h2,
.outlet-strip-copy h2 {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-strip-copy > span,
.outlet-strip-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  max-width: 100%;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------
   11. SEARCH & CHIPS
   ------------------------------------------------------------ */
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 13px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 107, 203, 0.12);
}

.search-field svg {
  flex-shrink: 0;
  color: var(--muted);
}

.search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.search-input::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 13px;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.chip {
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--body);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.chip:active {
  transform: scale(0.96);
}

.chip.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 16px -10px rgba(11, 107, 203, 0.9);
}

/* ------------------------------------------------------------
   12. OUTLET LIST
   ------------------------------------------------------------ */
.outlet-list {
  display: grid;
  gap: 10px;
}

.outlet-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.25s var(--ease);
}

.outlet-card:active {
  transform: scale(0.985);
}

.outlet-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
}

.outlet-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.outlet-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.outlet-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 9.5px;
  font-weight: 800;
}

.outlet-address {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

.outlet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}

.outlet-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.outlet-arrow {
  flex-shrink: 0;
  color: var(--muted);
}

/* Note card */
.note-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #d8e8fb;
  border-radius: var(--r-sm);
  background: #f1f7ff;
  color: var(--primary-ink);
}

.note-card svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--primary);
}

.note-card p {
  font-size: 11px;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   13. MENU & PRODUCT CARDS
   ------------------------------------------------------------ */
.menu-section {
  margin-top: 16px;
}

.menu-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 12px;
}

.menu-count {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}

.sort-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--body);
  box-shadow: var(--shadow-xs);
}

.sort-field svg {
  position: absolute;
  right: 8px;
  pointer-events: none;
  color: var(--muted);
}

.sort-select {
  height: 100%;
  padding: 0 20px 0 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--body);
  font-size: 12px;
  font-weight: 700;
  -webkit-appearance: none;
  appearance: none;
}

.best-section {
  margin-bottom: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.2s var(--ease);
}

.product-card:active {
  transform: scale(0.975);
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(150deg, #e7f1fd, #f7fbff);
}

.product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.product-add {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: linear-gradient(140deg, #1180e8, #0b6bcb);
  color: #fff;
  box-shadow: 0 8px 16px -8px rgba(11, 107, 203, 0.95);
  transition: transform 0.18s var(--ease);
}

.product-card:active .product-add {
  transform: scale(0.9);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding: 12px;
}

.product-category {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.product-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  color: var(--body);
}

.product-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}

.product-price strong {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-strong);
}

.product-price s {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.product-save-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 7px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--success-soft);
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--body);
}

.product-rating svg {
  color: var(--star);
}

/* Media fallback (behind every photo) */
.media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #e7f1fd, #f8fbff);
  color: #a9c8ea;
}

.media-fallback svg {
  width: 34%;
  height: 34%;
  max-width: 44px;
  max-height: 44px;
}

/* ------------------------------------------------------------
   14. EMPTY STATES
   ------------------------------------------------------------ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 36px 22px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-xl);
  background: var(--surface);
}

.empty-state.compact {
  padding: 26px 18px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 5px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}

.empty-state h2,
.empty-state h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.empty-state p {
  max-width: 280px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--body);
}

.empty-state button {
  margin-top: 8px;
}

.cart-empty {
  margin-top: 8px;
}

/* ------------------------------------------------------------
   15. CART
   ------------------------------------------------------------ */
.cart-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.cart-item {
  display: flex;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  animation: card-in 0.35s var(--ease) both;
}

.cart-media {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-soft);
}

.cart-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-copy {
  flex: 1;
  min-width: 0;
}

.cart-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cart-title-row h3 {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.icon-btn.danger {
  width: 44px;
  height: 44px;
  margin: -10px -8px 0 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.icon-btn.danger:active {
  background: var(--danger-soft);
  color: var(--danger);
}

.cart-options {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}

.cart-notes {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 8px;
  border-radius: 7px;
  background: #fffbeb;
  color: var(--warning);
  font-size: 10px;
  line-height: 1.4;
}

.cart-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.cart-bottom strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

/* Quantity stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
}

.qty-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s var(--ease), background 0.2s var(--ease);
}

.qty-btn:active {
  transform: scale(0.9);
  background: var(--primary-soft);
  color: var(--primary);
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.qty-stepper.small {
  padding: 1px;
}

.qty-stepper.small .qty-btn {
  width: 40px;
  height: 40px;
}

.qty-stepper.small .qty-value {
  min-width: 20px;
  font-size: 12px;
}

/* ------------------------------------------------------------
   16. SUMMARY
   ------------------------------------------------------------ */
.summary-card {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  font-size: 12px;
  color: var(--body);
}

.summary-row strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.summary-row.is-success,
.summary-row.is-success strong {
  color: var(--success);
}

.summary-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 10px;
  line-height: 1.45;
  color: var(--muted);
}

.summary-note svg {
  flex-shrink: 0;
  color: var(--primary);
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.summary-total span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--body);
}

.summary-total strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.checkout-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}

.checkout-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--body);
}

.checkout-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-line strong {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
}

/* ------------------------------------------------------------
   17. CHECKOUT FORM
   ------------------------------------------------------------ */
.form-card {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.form-card > .section-head {
  margin-bottom: 2px;
}

.form-group {
  margin-top: 13px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
}

.form-label > span {
  color: var(--danger);
}

.form-label .optional {
  color: var(--muted);
  font-weight: 500;
}

.form-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fbfdff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.form-input::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.form-input:focus {
  outline: 0;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 107, 203, 0.12);
}

.form-textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.55;
}

.form-input.has-error {
  border-color: var(--danger);
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--danger);
}

.form-error:empty {
  display: none;
}

/* Order mode */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-height: 88px;
  padding: 11px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fbfdff;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.mode-card:active {
  transform: scale(0.98);
}

.mode-card.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.mode-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.mode-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
}

.mode-sub {
  font-size: 9.5px;
  color: var(--muted);
}

.req-badge {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Payment */
.payment-card {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.payment-card > .section-head {
  margin-bottom: 6px;
  align-items: center;
}

.payment-card > .section-head > svg {
  color: var(--primary);
}

.payment-note {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--body);
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--body);
  font-size: 9px;
  font-weight: 700;
}

.payment-badge img {
  max-width: 36px;
  max-height: 14px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.payment-small {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}

/* ------------------------------------------------------------
   18. BUTTONS
   ------------------------------------------------------------ */
.btn-primary,
.btn-wa,
.btn-soft,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s var(--ease);
}

.btn-primary:active,
.btn-wa:active,
.btn-soft:active,
.btn-ghost:active {
  transform: scale(0.975);
}

.btn-primary {
  background: linear-gradient(135deg, #1180e8, #0b6bcb 55%, #0a5aae);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(11, 107, 203, 0.95);
}

.btn-wa {
  background: linear-gradient(135deg, #25d366, #17b45a 55%, #128c4a);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(18, 140, 74, 0.9);
}

.btn-soft {
  min-height: 44px;
  border: 1px solid var(--primary-line);
  background: var(--primary-soft);
  color: var(--primary-ink);
  box-shadow: none;
}

.btn-ghost {
  min-height: 44px;
  background: transparent;
  color: var(--body);
  box-shadow: none;
}

.btn-full {
  width: 100%;
  margin-top: 9px;
}

.btn-sm {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 11.5px;
}

/* ------------------------------------------------------------
   19. BOTTOM BAR
   ------------------------------------------------------------ */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 40;
  width: 100%;
  max-width: var(--shell);
  padding: 10px var(--pad) calc(10px + var(--safe-b));
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid var(--border);
  box-shadow: 0 -18px 40px -30px rgba(8, 79, 153, 0.8);
  transform: translate(-50%, 130%);
  transition: transform 0.38s var(--ease);
  will-change: transform;
}

.bottom-bar.is-visible {
  transform: translate(-50%, 0);
}

.bottom-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bottom-cart-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 6px 11px;
  text-align: left;
  border: 1px solid var(--primary-line);
  border-radius: var(--r-md);
  background: var(--primary-soft);
}

.bottom-cart-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.bottom-cart-icon span {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--primary-soft);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.bottom-cart-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bottom-cart-copy small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.bottom-cart-copy strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-total {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}

.bottom-total small {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
}

.bottom-total strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.btn-bottom {
  min-height: 48px;
  flex-shrink: 0;
  padding: 0 15px;
  font-size: 12.5px;
}

/* ------------------------------------------------------------
   20. BOTTOM SHEET (CUSTOMIZER)
   ------------------------------------------------------------ */
body.sheet-open,
body.modal-open {
  overflow: hidden;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 30, 56, 0.48);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.sheet-overlay.is-open {
  opacity: 1;
}

.sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--shell);
  max-height: 92vh;
  max-height: 92dvh;
  overflow: hidden;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  will-change: transform;
}

.sheet-overlay.is-open .sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 8px auto 0;
  flex-shrink: 0;
  border-radius: 999px;
  background: #d6e3f3;
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease);
}

.sheet-close:active {
  transform: scale(0.92);
}

.sheet-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sheet-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.sheet-hero-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(210px, 60vw);
  height: min(210px, 60vw);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 26px -16px rgba(15, 23, 42, 0.24);
}

.sheet-hero.is-bundle-hero .sheet-hero-frame {
  width: min(280px, 78vw);
  height: auto;
  min-height: 148px;
  max-height: 205px;
}

.sheet-hero-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-height: 205px;
  object-fit: contain;
  background: #ffffff;
}

.sheet-hero-badges {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.sheet-body {
  padding: 14px 16px 18px;
}

.sheet-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sheet-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
}

.sheet-desc {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--body);
}

.sheet-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.price-now {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.price-old {
  margin-left: 7px;
  font-size: 11.5px;
  color: var(--muted);
}

.save-pill {
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
}

.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--body);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.info-chip svg {
  flex-shrink: 0;
  color: var(--primary);
}

.sheet-divider {
  height: 0;
  margin: 15px 0;
  border-top: 1px dashed var(--border);
}

/* Option groups */
.option-group {
  margin-bottom: 17px;
}

.option-group:last-child {
  margin-bottom: 4px;
}

.option-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.option-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
}

.option-helper {
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--muted);
}

.option-max {
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-height: 52px;
  padding: 9px 10px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fbfdff;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
    transform 0.15s var(--ease);
}

.option-card:active {
  transform: scale(0.97);
}

.option-card.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.option-label {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.option-price {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
}

.option-note {
  font-size: 9.5px;
  color: var(--muted);
}

/* Toppings */
.topping-list {
  display: grid;
  gap: 6px;
}

.topping-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fbfdff;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.topping-row.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.topping-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  color: #fff;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.topping-row.is-active .topping-check {
  border-color: var(--primary);
  background: var(--primary);
}

.topping-name {
  flex: 1;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
}

.topping-price {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
}

.char-count {
  margin-top: 4px;
  text-align: right;
  font-size: 9.5px;
  color: var(--muted);
}

/* Sheet footer */
.sheet-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 10px 16px calc(10px + var(--safe-b));
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-add-cart {
  flex: 1;
  justify-content: space-between;
  padding: 0 13px;
  min-height: 50px;
  font-size: 12.5px;
}

.btn-price {
  padding: 5px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
}

/* ------------------------------------------------------------
   21. MODAL
   ------------------------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 30, 56, 0.48);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade-in 0.2s var(--ease);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 22px;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-pop 0.32s var(--ease);
}

.modal-card-sm {
  max-width: 340px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-mute);
  color: var(--muted);
}

.success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 2px auto 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
}

.confirm-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 2px auto 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
}

.modal-title {
  margin-bottom: 6px;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.modal-text {
  margin-bottom: 14px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--body);
}

.success-summary {
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface-mute);
}

.success-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  font-size: 11px;
  color: var(--body);
}

.success-row strong {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  text-align: right;
}

.success-row:last-child strong {
  color: var(--primary);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.modal-actions .btn-primary,
.modal-actions .btn-soft {
  min-height: 44px;
  padding: 0 12px;
  font-size: 12px;
}

/* ------------------------------------------------------------
   22. TOAST
   ------------------------------------------------------------ */
.toast-root {
  position: fixed;
  left: 50%;
  bottom: calc(94px + var(--safe-b));
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 420px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: #0b2e52;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 18px 40px -20px rgba(8, 30, 56, 0.9);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast svg {
  flex-shrink: 0;
  color: #6ee7b7;
}

.toast.is-error {
  background: #7f1d1d;
}

.toast.is-error svg {
  color: #fecaca;
}

.cart-btn.is-bump {
  animation: cart-bump 0.45s var(--ease);
}

@keyframes cart-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.14) rotate(-6deg); }
  70% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* Desktop pointer hover polish */
@media (hover: hover) and (pointer: fine) {
  .brand-card:hover,
  .product-card:hover,
  .promo-card:hover,
  .outlet-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-line);
    box-shadow: var(--shadow-md);
  }

  .chip:hover:not(.is-active),
  .option-card:hover:not(.is-active),
  .topping-row:hover:not(.is-active) {
    border-color: var(--primary-line);
    background: var(--surface-mute);
  }

  .btn-primary:hover,
  .btn-wa:hover {
    filter: brightness(1.05);
  }

  .outlet-card:hover .outlet-arrow {
    color: var(--primary);
    transform: translateX(2px);
  }
}

.outlet-arrow {
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

/* Header right actions & order tracker */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.track-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s var(--ease), border-color 0.2s var(--ease);
}

.track-btn svg {
  color: var(--primary);
}

.track-btn:active {
  transform: scale(0.95);
}

/* readability upgrades across secondary text */
.header-eyebrow,
.eyebrow {
  font-size: 11.5px;
}

.header-subtitle {
  font-size: 12px;
}

.hero-eyebrow {
  font-size: 11.5px;
}

.hero-text {
  font-size: 13.5px;
  max-width: 38ch;
}

.hero-brand-note {
  font-size: 12px;
}

.promo-brand {
  font-size: 10.5px;
}

.promo-name {
  font-size: 13px;
  min-height: 35px;
}

.promo-price strong {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--primary-strong);
}

.promo-price s {
  font-family: var(--font-mono);
  font-size: 11px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3.5px 8px;
}

.step-item strong {
  font-size: 13.5px;
}

.step-item p {
  font-size: 12.5px;
}

.trust-item strong {
  font-size: 12px;
}

.trust-item small {
  font-size: 11px;
}

.outlet-name {
  font-size: 14px;
}

.outlet-address {
  font-size: 12.5px;
}

.outlet-meta {
  font-size: 11.5px;
}

.note-card p {
  font-size: 12px;
}

.summary-row,
.summary-row strong {
  font-size: 13px;
}

.summary-total strong,
.price-now,
.btn-price,
.bottom-total strong,
.bottom-cart-copy strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Order Tracker Modal */
.tracker-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tracker-search-row .form-input {
  min-height: 46px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.tracker-result {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-mute);
  text-align: left;
}

.tracker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--border-strong);
}

.tracker-code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.status-pill.is-pending_wa {
  background: #fef3c7;
  color: #b45309;
}

.status-pill.is-processing {
  background: #e0f2fe;
  color: #0369a1;
}

.status-pill.is-completed {
  background: #dcfce7;
  color: #15803d;
}

.status-pill.is-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.tracker-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 0;
}

.tracker-step {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.tracker-step.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-ink);
}

.tracker-step.is-done {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.footer-brand-logo {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  display: block;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.footer-install-btn {
  border-color: var(--primary-line);
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
  color: var(--primary-strong);
  box-shadow: 0 8px 18px -12px rgba(11, 107, 203, 0.55);
}

.footer-install-btn:active {
  transform: scale(0.97);
}

.footer-install-btn.is-installed {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
  box-shadow: none;
}

/* ============================================================
   OUTFIT HEADINGS + WELCOME VECTOR DELIGHT + LINEAL COLOR ICONS
   ============================================================ */
h1,
h2,
h3,
.header-title,
.hero-title,
.section-title,
.brand-name,
.product-name,
.sheet-title,
.modal-title {
  font-family: var(--font-heading);
}

.hero-card.is-delight {
  background: linear-gradient(155deg, #ffffff 10%, #eaf3ff 100%);
  border-color: var(--primary-line);
}

.hero-vector-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 14px 4px;
  background: radial-gradient(circle at 50% 45%, rgba(11, 107, 203, 0.1) 0%, transparent 72%);
}

.hero-vector-art {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 18px;
  animation: float-gentle 5.5s ease-in-out infinite;
}

.hero-card.is-delight .hero-content {
  margin-top: 4px;
  padding: 6px 18px 18px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.step-icon.is-art,
.trust-icon.is-art {
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.trust-icon.is-art {
  width: 44px;
  height: 44px;
  margin-bottom: 5px;
}

.step-icon.is-art img,
.trust-icon.is-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.28s var(--ease);
}

.step-item:hover .step-icon.is-art img,
.trust-item:hover .trust-icon.is-art img {
  transform: translateY(-2px) scale(1.06);
}

/* Closed outlet status */
.outlet-card.is-closed {
  opacity: 0.68;
  background: #f8fafc;
  cursor: not-allowed;
}

.closed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 10.5px;
  font-weight: 800;
}

/* Savings Delight Celebration Banner */
.savings-delight-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  margin-top: 14px;
  border: 1px solid #a7f3d0;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  color: #065f46;
}

.savings-delight-banner img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.savings-delight-banner strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  color: #047857;
}

.savings-delight-banner span {
  font-size: 12px;
  color: #065f46;
}

.last-order-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ------------------------------------------------------------
   23. MOTION
   ------------------------------------------------------------ */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes badge-pop {
  0% {
    transform: scale(0.4);
  }
  70% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------
   24. RESPONSIVE (DESKTOP SHELL)
   ------------------------------------------------------------ */
@media (min-width: 600px) {
  .app-shell {
    min-height: calc(100dvh - 48px);
    margin: 24px auto;
    border: 1px solid rgba(11, 107, 203, 0.12);
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-lg);
  }

  .app-top {
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  }

  .bottom-bar {
    bottom: 24px;
    border-radius: 0 0 var(--r-2xl) var(--r-2xl);
  }

  .sheet {
    margin-bottom: 16px;
    border-radius: var(--r-2xl);
    max-height: 88dvh;
  }

  .sheet-handle {
    display: none;
  }

  .sheet-close {
    top: 14px;
  }
}

@media (max-width: 359px) {
  :root {
    --pad: 13px;
  }

  .brand-card {
    min-height: 150px;
    padding: 11px;
  }

  .product-grid {
    gap: 9px;
  }

  .hero-title {
    font-size: 23px;
  }

  .btn-bottom {
    padding: 0 12px;
    font-size: 11.5px;
  }
}

/* ------------------------------------------------------------
   25. ACCESSIBILITY / REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------
   26. OFFICIAL APP V3 UPGRADE:
       - Fixed 4-Tab Bottom Navigation Bar
       - Auto-Rotating Promo Banner Carousel (#/outlet)
       - Official Brand Selector & Samarinda Outlet Hub
       - Aesthetic Official Menu Layout (2-col Must Try + Horizontal Rows)
       - Per-Customer Isolated Transaction History (#/history)
   ------------------------------------------------------------ */

/* Typography & tabular numbers across all prices */
body,
h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.promo-price strong,
.promo-price s,
.product-price strong,
.product-price s,
.menu-row-price strong,
.menu-row-price s,
.must-try-price strong,
.must-try-price s,
.history-total strong,
.summary-row strong,
.summary-total strong,
.price-now,
.price-old,
.btn-price,
.bottom-total strong,
.bottom-cart-copy strong {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}

/* Pad main content for fixed bottom navigation bar */
.app-main {
  padding: 6px var(--pad) calc(88px + var(--safe-b));
}

body.has-bottom-bar .app-main {
  padding-bottom: calc(160px + var(--safe-b));
}

/* Shift floating cart/checkout bar above the bottom navigation bar */
.bottom-bar {
  bottom: calc(64px + var(--safe-b));
  padding: 10px var(--pad);
  border-bottom: 1px solid var(--border);
}

.toast-root {
  bottom: calc(142px + var(--safe-b));
}

/* Fixed 4-Tab Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  width: 100%;
  max-width: var(--shell);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(6px + var(--safe-b));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 26px -18px rgba(15, 23, 42, 0.25);
}

.bottom-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 4px 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), transform 0.15s var(--ease);
}

.bottom-nav-item:active {
  transform: scale(0.95);
}

.bottom-nav-item.is-active {
  color: var(--primary);
  font-weight: 800;
}

.bottom-nav-item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.bottom-nav-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
}

.bottom-nav-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: var(--danger);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Auto-Rotating Promo Banner Carousel (#/outlet) */
.promo-carousel {
  position: relative;
  margin-top: 2px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 12px 28px -18px rgba(11, 107, 203, 0.35);
}

.promo-track {
  position: relative;
  width: 100%;
  min-height: 186px;
}

.promo-slide {
  display: none;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 10px;
  min-height: 186px;
  padding: 16px 14px 34px 16px;
  animation: fade-in 0.38s var(--ease);
}

.promo-slide.is-active {
  display: grid;
}

.promo-slide[data-theme="blue"] {
  background: linear-gradient(135deg, #0b6bcb 0%, #07478b 100%);
  color: #ffffff;
}

.promo-slide[data-theme="orange"] {
  background: linear-gradient(135deg, #ea580c 0%, #9a3412 100%);
  color: #ffffff;
}

.promo-slide[data-theme="amber"] {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  color: #ffffff;
}

.promo-slide[data-theme="emerald"] {
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
  color: #ffffff;
}

.promo-slide-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 2;
}

.promo-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.promo-slide-title {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.promo-slide-sub {
  font-size: 11.5px;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.9);
}

.promo-slide-cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.3);
}

.promo-slide-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 132px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.promo-slide-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-controls {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.promo-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.promo-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}

.promo-dot.is-active {
  width: 20px;
  background: #ffffff;
}

.promo-nav-btns {
  display: flex;
  gap: 5px;
}

.promo-nav-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.25);
  color: #ffffff;
}

/* Official Pickup / Delivery Segmented Toggle Pill */
.service-bar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.service-bar-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.service-bar-copy small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}

.service-bar-copy strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.mode-toggle-pill {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 999px;
  background: #edf2f9;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.mode-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--body);
  font-size: 11.5px;
  font-weight: 700;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.mode-pill-btn.is-active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px -4px rgba(11, 107, 203, 0.7);
}

/* Official Brand Selector Cards on #/outlet */
.brand-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.brand-select-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  text-align: left;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.brand-select-card:active {
  transform: scale(0.975);
}

.brand-select-card.is-selected {
  border-color: var(--primary);
  background: linear-gradient(145deg, #ffffff 30%, #eaf3ff 100%);
  box-shadow: 0 10px 22px -14px rgba(11, 107, 203, 0.65);
}

.brand-select-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-xs);
}

.brand-select-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-select-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.brand-select-promo {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-select-promo.is-coming-soon {
  background: #fef3c7;
  color: #b45309;
}

.brand-select-card.is-coming-soon {
  opacity: 0.86;
}

.empty-state.is-coming-soon-card {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  border: 1px dashed #f59e0b;
}

.brand-select-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-select-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.brand-select-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.brand-select-card.is-selected .brand-select-check {
  opacity: 1;
  transform: scale(1);
}

/* Official Outlet Card V2 (inspired by Kopi Kenangan 202335.png) */
.outlet-card-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  padding: 14px;
  text-align: left;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.outlet-card-v2:active {
  transform: scale(0.985);
}

.outlet-card-v2.is-selected {
  border-color: var(--primary);
  background: #f8fbff;
  box-shadow: 0 10px 24px -16px rgba(11, 107, 203, 0.7);
}

.outlet-card-v2.is-closed {
  opacity: 0.65;
  background: #f8fafc;
}

.outlet-v2-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.distance-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 9px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.distance-pill.is-nearest {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
}

.outlet-v2-main {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.outlet-v2-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 2px;
}

.outlet-v2-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.outlet-v2-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.outlet-v2-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.outlet-v2-address {
  font-size: 12px;
  color: var(--body);
  line-height: 1.4;
}

.outlet-v2-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 11.5px;
  color: var(--muted);
}

.service-dots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}

.service-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #10b981;
}

/* Official Top Outlet Bar & Menu Guard on #/menu */
.outlet-guard-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 26px 18px;
  margin-top: 8px;
  border-radius: 22px;
  border: 1.5px dashed var(--primary-line);
  background: linear-gradient(160deg, #ffffff 30%, #eef6ff 100%);
  box-shadow: var(--shadow-sm);
}

.outlet-guard-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.outlet-guard-logos img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.top-outlet-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.top-outlet-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.top-outlet-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 2px;
}

.top-outlet-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-outlet-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-outlet-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
}

.top-outlet-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-outlet-sub {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quick Price/Discount Filter Pills */
.price-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 6px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--body);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.16s var(--ease);
}

.filter-pill.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-strong);
}

/* Official 2-Column "Must Try!" Showcase Grid */
.must-try-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.must-try-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s var(--ease), box-shadow 0.2s var(--ease);
}

.must-try-card:active {
  transform: scale(0.975);
}

.must-try-media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #eef5ff, #f8fbff);
  margin-bottom: 8px;
}

.must-try-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.must-try-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.must-try-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
}

.must-try-price {
  display: flex;
  flex-direction: column;
}

.must-try-price strong {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}

.must-try-price s {
  font-size: 11px;
  color: var(--muted);
}

.circle-add-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 14px -6px rgba(11, 107, 203, 0.85);
}

/* Official Horizontal Aesthetic Menu Rows (inspired by Fore 202536 & Tomoro 202445) */
.menu-category-group {
  margin-top: 18px;
}

.menu-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.menu-category-header h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.menu-category-header span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.menu-rows-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-row-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.menu-row-card:active {
  transform: scale(0.985);
}

.menu-row-media {
  position: relative;
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(145deg, #eef5ff, #f8fbff);
}

.menu-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-row-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.menu-row-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.menu-row-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.menu-row-best {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 9.5px;
  font-weight: 800;
}

.menu-row-save {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 9.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.menu-row-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.menu-row-desc {
  font-size: 11.5px;
  color: var(--body);
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.menu-row-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.menu-row-price strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.menu-row-price s {
  font-size: 11.5px;
  color: var(--muted);
}

/* Official Riwayat Transaksi Cards (#/history — inspired by Fore 202514.png) */
.history-device-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--primary-line);
  background: linear-gradient(145deg, #ffffff 30%, #eef6ff 100%);
  margin-bottom: 14px;
}

.history-device-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
}

.history-device-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
  color: var(--body);
}

.history-device-copy strong {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

.history-outlet {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.history-outlet-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 2px;
}

.history-outlet-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.history-outlet-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.history-outlet-copy strong {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-outlet-copy span {
  font-size: 11px;
  color: var(--muted);
}

.history-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--body);
}

.history-item-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.history-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.history-total {
  display: flex;
  flex-direction: column;
}

.history-total small {
  font-size: 10.5px;
  color: var(--muted);
}

.history-total strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (min-width: 600px) {
  .bottom-nav {
    bottom: 24px;
    border-radius: 0 0 var(--r-2xl) var(--r-2xl);
  }
  .bottom-bar {
    bottom: 88px;
    border-radius: 0;
  }
}

/* ------------------------------------------------------------
   27. V4 OFFICIAL SUPER-UX UPGRADE:
       1. Intro Promo Story Splash Showcase (#splash-root)
       2. Smart Auto-Hide Header on Scroll Down / Reveal on Scroll Up
       3. Organic Curved Wave Hero & Physics-Spring Ad Carousel (#/outlet)
       4. Modern Pickup / Delivery Method Card with Info Strip
       5. Ticket-Notch Organic Outlet Cards with Pulsing Open Indicator
       6. 4 Distinct Brand Menu UI Personalities (Fore, Tomoro, Kenangan, Janji Jiwa)
       7. Balanced Floating Dock Bottom Action Bar (Cart & Checkout)
       8. Modern Aesthetic Order Tracker Pop-up Modal
   ------------------------------------------------------------ */

/* 1. Anti-Scroll Sticky Top Header (Always Pinned & Never Hides on Scroll) */
.app-top.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 26px -20px rgba(8, 79, 153, 0.45);
}

/* 2. Balanced Floating Dock Bottom Bar (Not Cramped on Left) */
.bottom-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.bottom-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  padding: 2px 4px;
}

.bottom-total small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.bottom-total-save {
  display: inline-block;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
}

.bottom-total strong {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.btn-bottom {
  min-height: 50px;
  min-width: 184px;
  padding: 0 18px;
  border-radius: 15px;
  font-size: 13.5px;
  font-weight: 800;
  justify-content: center;
  flex-shrink: 0;
}

/* 3. Intro Promo Story Splash Showcase (#splash-root) */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(9, 18, 36, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  opacity: 1;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.splash-overlay.is-closing {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-card {
  position: relative;
  width: 100%;
  max-width: 412px;
  border-radius: 28px;
  overflow: hidden;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  animation: modal-pop 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.splash-progress-row {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.splash-prog-seg {
  height: 3.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.splash-prog-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #ffffff;
  transition: width 0.2s linear;
}

.splash-prog-seg.is-done .splash-prog-fill {
  width: 100%;
}

.splash-prog-seg.is-active .splash-prog-fill {
  width: 100%;
  animation: splash-fill 3.4s linear forwards;
}

@keyframes splash-fill {
  from { width: 0%; }
  to { width: 100%; }
}

.splash-top-bar {
  position: absolute;
  top: 24px;
  left: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.splash-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
}

.splash-brand-pill img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
}

.splash-skip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.68);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
}

.splash-stage {
  position: relative;
  width: 100%;
  height: 470px;
  overflow: hidden;
}

.splash-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.splash-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.splash-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
}

.splash-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.45) 0%,
    rgba(15, 23, 42, 0.08) 38%,
    rgba(15, 23, 42, 0.88) 78%,
    rgba(15, 23, 42, 0.98) 100%
  );
}

.splash-slide-content {
  position: relative;
  z-index: 4;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.splash-secondary-banner {
  width: 100%;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.6);
  margin-bottom: 4px;
}

.splash-secondary-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splash-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--splash-accent, #0b6bcb);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.splash-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.splash-sub {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

.splash-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px 16px;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.splash-nav-dots {
  display: flex;
  gap: 6px;
}

.splash-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.25s var(--ease);
}

.splash-dot.is-active {
  width: 24px;
  background: #ffffff;
}

/* 4. Organic Curved Wave Hero & Smooth Physics Ad Carousel (#/outlet) */
.outlet-hero-stage {
  position: relative;
  margin: -6px calc(var(--pad) * -1) 0;
  padding: 14px var(--pad) 24px;
  background:
    radial-gradient(420px 200px at 85% 10%, rgba(56, 189, 248, 0.24) 0%, transparent 70%),
    linear-gradient(155deg, #094a91 0%, #0b6bcb 52%, #1d8cf8 100%);
  color: #ffffff;
  border-radius: 0 0 34px 34px;
  overflow: hidden;
  box-shadow: 0 18px 36px -22px rgba(8, 79, 153, 0.75);
}

.outlet-hero-orb {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.outlet-hero-orb.orb-1 {
  width: 190px;
  height: 190px;
  top: -60px;
  right: -50px;
}

.outlet-hero-orb.orb-2 {
  width: 150px;
  height: 150px;
  bottom: -50px;
  left: -40px;
}

.outlet-hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.outlet-loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
}

.outlet-story-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

/* Physics-Spring Official Ad Banner Carousel */
.ad-showcase-carousel {
  position: relative;
  z-index: 2;
  border-radius: 22px;
  overflow: hidden;
  background: #0f172a;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 38px -18px rgba(7, 23, 52, 0.75);
}

.ad-showcase-viewport {
  width: 100%;
  overflow: hidden;
}

.ad-showcase-track {
  display: flex;
  width: 100%;
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.ad-showcase-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  background: #0f172a;
}

.ad-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 4.5s ease-out;
}

.ad-showcase-slide.is-active .ad-showcase-img {
  transform: scale(1.06);
}

.ad-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.05) 0%,
    rgba(15, 23, 42, 0.15) 45%,
    rgba(15, 23, 42, 0.88) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 14px 34px;
}

.ad-showcase-tag {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ad-showcase-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.ad-showcase-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2px;
}

.ad-showcase-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 5. Modern Pickup vs Delivery Method Card (Floating Overlap) */
.method-hub-card {
  position: relative;
  z-index: 4;
  margin-top: -14px;
  padding: 13px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px -18px rgba(11, 107, 203, 0.35);
}

.method-hub-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border-radius: 16px;
  background: #f1f6fd;
  border: 1px solid var(--border);
}

.method-option-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  text-align: left;
  color: var(--body);
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.method-option-btn.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 6px 16px -8px rgba(11, 107, 203, 0.45);
}

.method-option-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #e3eefc;
  color: var(--primary);
  transition: all 0.22s var(--ease);
}

.method-option-btn.is-active .method-option-icon {
  background: var(--primary);
  color: #ffffff;
}

.method-option-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.method-option-copy strong {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
}

.method-option-copy small {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

.method-info-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4f9ff 0%, #eaf3ff 100%);
  border: 1px solid var(--primary-line);
  font-size: 11.5px;
  color: var(--primary-ink);
}

.method-info-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.method-info-badge {
  padding: 2.5px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--primary-line);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

/* 6. Organic Brand Pill Cards & Ticket-Notch Outlet Cards */
.brand-select-card {
  border-radius: 20px;
  padding: 12px;
  overflow: hidden;
}

.brand-select-card::after {
  content: "";
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: var(--brand-tint, rgba(11, 107, 203, 0.08));
  pointer-events: none;
}

.outlet-card-v2 {
  border-radius: 22px;
  padding: 15px;
  overflow: hidden;
}

.outlet-card-v2::before,
.outlet-card-v2::after {
  content: "";
  position: absolute;
  bottom: 36px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  z-index: 2;
}

.outlet-card-v2::before {
  left: -8px;
}

.outlet-card-v2::after {
  right: -8px;
}

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 10.5px;
  font-weight: 800;
}

.open-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.22);
}

/* 7. Smooth Physics-Spring Brand Ad Carousel on #/menu (Brand themes moved to src/css/brand-themes.css) */
.brand-ad-carousel {
  position: relative;
  margin-top: 10px;
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px -18px rgba(15, 23, 42, 0.45);
}

.brand-ad-viewport {
  width: 100%;
  overflow: hidden;
}

.brand-ad-track {
  display: flex;
  width: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.brand-ad-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 7.2;
  overflow: hidden;
  background: #0f172a;
}

.brand-ad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 4.2s ease-out;
  backface-visibility: hidden;
}

.brand-ad-slide.is-active img {
  transform: scale(1.045);
}

.brand-ad-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.brand-ad-dots,
.brand-ad-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
}

.brand-ad-dots {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.brand-ad-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.28s var(--ease), background 0.28s var(--ease);
}

.brand-ad-dot.is-active {
  width: 18px;
  background: #ffffff;
}

.brand-ad-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  transition: transform 0.15s var(--ease), background 0.18s var(--ease);
}

.brand-ad-btn:active {
  transform: scale(0.92);
}

/* 8. Modern Aesthetic Order Tracker Modal (Scrollable + Unclipped WA Button + Product Breakdown Cards) */
.modal-card.tracker-modal-card {
  display: flex;
  flex-direction: column;
  max-width: 412px;
  max-height: 88vh;
  max-height: 88dvh;
  padding: 0;
  overflow: hidden;
  border-radius: 26px;
}

.tracker-hero-banner {
  position: relative;
  flex-shrink: 0;
  padding: 20px 18px 16px;
  background: linear-gradient(135deg, #094a91 0%, #0b6bcb 55%, #1d8cf8 100%);
  color: #ffffff;
  text-align: left;
}

.tracker-hero-banner .modal-close {
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.tracker-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tracker-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 24px;
}

.tracker-quick-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.tracker-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--primary-line);
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.tracker-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.tracker-tl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.tracker-tl-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  font-size: 11px;
  font-weight: 800;
}

.tracker-tl-item.is-done {
  color: #15803d;
  font-weight: 700;
}

.tracker-tl-item.is-done .tracker-tl-dot {
  background: #dcfce7;
  border-color: #22c55e;
  color: #15803d;
}

.tracker-tl-item.is-active {
  color: var(--primary-strong);
  font-weight: 800;
}

.tracker-tl-item.is-active .tracker-tl-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 107, 203, 0.18);
}

/* Detailed Product Cards inside Order Tracker & History */
.tracker-meta-box {
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.tracker-items-section {
  padding: 11px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.tracker-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-ink);
}

.tracker-item-card {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.tracker-item-card:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.tracker-item-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}

.tracker-item-qty {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 11.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.tracker-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.tracker-item-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  word-break: break-word;
}

.tracker-item-unit {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.tracker-item-opts {
  font-size: 11px;
  color: var(--body);
  line-height: 1.35;
}

.tracker-item-note {
  font-size: 11px;
  font-style: italic;
  color: var(--primary-ink);
}

.tracker-item-subtotal {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.tracker-total-box {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f0f7ff;
  border: 1px solid var(--primary-line);
}

.tracker-total-box .success-row.is-grand {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed var(--primary-line);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.tracker-total-box .success-row.is-grand strong {
  font-size: 15px;
  color: var(--primary-strong);
}

.tracker-admin-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12px;
  line-height: 1.45;
}

.tracker-wa-footer {
  margin-top: 12px;
  padding-top: 4px;
}

.tracker-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

/* History Item Card Polish */
.history-item-card {
  padding: 6px 9px;
  border-radius: 10px;
  background: var(--surface-mute);
  border: 1px solid #edf2f9;
}

.history-item-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.history-qty-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 800;
}

.history-item-price {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.history-item-opts {
  margin-top: 2px;
  padding-left: 32px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.history-item-note {
  margin-top: 2px;
  padding-left: 32px;
  font-size: 11px;
  font-style: italic;
  color: var(--primary-ink);
}

.noscript-note {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
  color: var(--body);
  font-size: 14px;
  text-align: center;
}

/* ============================================================
   28. V5.0 UPGRADE:
       - Apple/macOS Liquid Glass Sticky Header & Floating Bottom Dock
       - Clean 4:5 HD Intro Splash + Trust Vector Strip
       - Textured Curved Wave Hero Stage + Ambient Footage + Sculpted Peek Ads (#/outlet)
       - Compact Method Switch & Real GPS Location Bar
       - Brand-Themed Sculpted Peek Ad Stage (#/menu) — Zero Text/Controls Over Poster
   ============================================================ */

/* A. LIQUID GLASS STICKY HEADER (.app-top) — Always Pinned Anti-Scroll */
.app-top {
  position: sticky;
  top: 0;
  z-index: 45;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.76) 0%,
    rgba(240, 247, 255, 0.62) 100%
  );
  -webkit-backdrop-filter: blur(26px) saturate(195%);
  backdrop-filter: blur(26px) saturate(195%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(11, 107, 203, 0.08),
    0 8px 26px -18px rgba(8, 79, 153, 0.28);
  transition: background 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.app-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.92) 30%,
    rgba(11, 107, 203, 0.16) 50%,
    rgba(255, 255, 255, 0.92) 70%,
    rgba(255, 255, 255, 0.1) 100%
  );
  pointer-events: none;
}

.app-top.is-scrolled {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(241, 247, 255, 0.68) 100%
  );
  border-bottom-color: rgba(203, 224, 248, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(11, 107, 203, 0.12),
    0 14px 32px -20px rgba(8, 79, 153, 0.45);
}

.app-header .track-btn,
.app-header .cart-btn,
.app-header .icon-btn {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(242, 248, 255, 0.66) 100%
  );
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 14px -8px rgba(11, 107, 203, 0.35),
    0 1px 3px rgba(15, 23, 42, 0.06);
}

/* B. FLOATING LIQUID GLASS BOTTOM NAVIGATION DOCK (.bottom-nav & .bottom-bar) */
.app-main {
  padding: 6px var(--pad) calc(108px + var(--safe-b));
}

body.has-bottom-bar .app-main {
  padding-bottom: calc(188px + var(--safe-b));
}

.bottom-nav {
  position: fixed;
  bottom: calc(10px + var(--safe-b));
  left: 50%;
  transform: translateX(-50%);
  z-index: 48;
  width: calc(100% - 20px);
  max-width: calc(var(--shell) - 20px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.74) 0%,
    rgba(238, 246, 255, 0.62) 100%
  );
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  backdrop-filter: blur(28px) saturate(210%);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(11, 107, 203, 0.08),
    0 18px 42px -18px rgba(8, 45, 96, 0.34),
    0 4px 14px -6px rgba(15, 23, 42, 0.14);
}

/* Specular Liquid Glass Edge Rim (adapted from glass.html) */
.bottom-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.3px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.25) 35%,
    rgba(11, 107, 203, 0.12) 65%,
    rgba(255, 255, 255, 0.82) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.bottom-nav-item {
  position: relative;
  min-height: 52px;
  border-radius: 22px;
  color: #475569;
  transition: background 0.24s var(--ease), color 0.22s var(--ease), transform 0.16s var(--ease), box-shadow 0.24s var(--ease);
}

.bottom-nav-item.is-active {
  color: var(--primary);
  font-weight: 800;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(224, 240, 255, 0.72) 100%
  );
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.98),
    0 6px 16px -8px rgba(11, 107, 203, 0.42);
}

.bottom-nav-item.is-active::before {
  display: none;
}

.bottom-bar {
  bottom: calc(82px + var(--safe-b));
  width: calc(100% - 20px);
  max-width: calc(var(--shell) - 20px);
  border-radius: 22px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(241, 248, 255, 0.72) 100%
  );
  -webkit-backdrop-filter: blur(26px) saturate(195%);
  backdrop-filter: blur(26px) saturate(195%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 16px 34px -18px rgba(8, 52, 112, 0.35);
}

.toast-root {
  bottom: calc(162px + var(--safe-b));
}

@media (min-width: 600px) {
  .bottom-nav {
    bottom: 34px;
    border-radius: 28px;
  }
  .bottom-bar {
    bottom: 106px;
    border-radius: 22px;
  }
}

/* C. CLEAN 4:5 HD INTRO SPLASH + TRUST VECTOR STRIP (#splash-root) */
.splash-card {
  max-width: 396px;
  border-radius: 28px;
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 32px 80px -18px rgba(4, 18, 44, 0.78);
}

.splash-stage {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 60dvh;
  overflow: hidden;
  background: #0f172a;
}

.splash-slide {
  transform: scale(1.02);
}

.splash-slide-bg {
  filter: none;
  object-fit: cover;
  object-position: center;
}

.splash-trust-strip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #f5faff 0%, #e7f2ff 100%);
  border-top: 1px solid rgba(11, 107, 203, 0.12);
}

.splash-trust-vec {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(11, 107, 203, 0.2));
}

.splash-trust-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.splash-trust-copy strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
}

.splash-trust-copy span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

.splash-footer {
  padding: 11px 16px 14px;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.splash-dot {
  background: #cbd5e1;
}

.splash-dot.is-active {
  width: 22px;
  background: var(--primary);
}

/* C2. FULLSCREEN 3D MOTION PEMBUKA APLIKASI (JasDor RISGOLD) */
body.splash-open {
  overflow: hidden;
}

.splash-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  opacity: 1;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.splash-fullscreen.is-closing {
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
}

.splash-fullscreen-stage {
  perspective: 1900px;
  perspective-origin: 50% 50%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-3d-rig {
  transform-style: preserve-3d;
  will-change: transform;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-svg-canvas {
  width: 100%;
  height: 100%;
  display: block;
  -webkit-user-select: none;
  user-select: none;
}

.splash-skip-floating {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(21, 59, 102, 0.14);
  background: rgba(246, 248, 251, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #153b66;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}

.splash-skip-floating:active {
  transform: scale(0.95);
}

/* D. TEXTURED CURVED WAVE HERO STAGE + AMBIENT FOOTAGE + SCULPTED PEEK ADS (#/outlet) */
.outlet-hero-stage {
  position: relative;
  margin: -6px calc(var(--pad) * -1) 0;
  padding: 14px 0 42px;
  background: linear-gradient(155deg, #073d7a 0%, #0b6bcb 52%, #1982ef 100%);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.hero-ambient-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-ambient-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(165%);
  transform: scale(1.16);
  opacity: 0.36;
  transition: opacity 0.45s ease;
}

.hero-ambient-img.is-fading {
  opacity: 0.14;
}

.hero-ambient-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(380px 220px at 18% 12%, rgba(56, 189, 248, 0.35) 0%, transparent 72%),
    linear-gradient(165deg, rgba(7, 56, 114, 0.72) 0%, rgba(11, 107, 203, 0.68) 54%, rgba(8, 72, 146, 0.82) 100%);
}

.hero-texture-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.42;
}

.outlet-hero-top {
  padding: 0 var(--pad);
  margin-bottom: 12px;
}

.ad-showcase-carousel {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.ad-showcase-viewport {
  width: 100%;
  overflow: hidden;
  padding: 8px 16px 6px;
}

.ad-showcase-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.ad-showcase-slide {
  position: relative;
  flex: 0 0 228px;
  width: 228px;
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  cursor: pointer;
  transform: scale(0.92);
  opacity: 0.76;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.ad-showcase-slide.is-active {
  transform: scale(1);
  opacity: 1;
}

.ad-sculpted-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 30px 12px 30px 12px;
  overflow: hidden;
  background: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    0 20px 38px -16px rgba(5, 22, 58, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ad-showcase-slide.is-active .ad-sculpted-frame {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 22px 42px -14px rgba(4, 18, 52, 0.8),
    0 0 0 3px rgba(255, 255, 255, 0.22);
}

.ad-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: transform 0.55s var(--ease);
}

.ad-showcase-slide.is-active .ad-showcase-img {
  transform: scale(1.02);
}

.ad-floating-brand {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 18px -6px rgba(8, 28, 68, 0.55);
}

.ad-floating-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 999px;
}

.ad-showcase-bar-external {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px var(--pad) 0;
}

.hero-wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 30px;
  z-index: 3;
  display: block;
  pointer-events: none;
}

/* E. COMPACT PICKUP / DELIVERY CARD & REAL GPS BAR */
.method-hub-card.is-compact {
  margin-top: -18px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 26px -16px rgba(11, 107, 203, 0.35);
}

.gps-loc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid var(--primary-line);
  background: linear-gradient(135deg, #f4f9ff 0%, #e9f3ff 100%);
  font-size: 11.5px;
  color: var(--primary-ink);
}

.gps-loc-bar.is-granted {
  border-color: #a7f3d0;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  color: #065f46;
}

.gps-loc-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-weight: 600;
}

.gps-pulse-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.gps-loc-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--primary-line);
  background: #ffffff;
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s var(--ease), background 0.18s var(--ease);
}

.gps-loc-btn.is-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 14px -6px rgba(11, 107, 203, 0.65);
}

.gps-loc-btn:active {
  transform: scale(0.95);
}

.gps-loc-status {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
}

/* F. BRAND-THEMED SCULPTED PEEK AD STAGE (#/menu) — 100% UNOBSTRUCTED POSTERS */
.brand-ad-stage {
  position: relative;
  margin-top: 12px;
  padding: 14px 0 11px;
  border-radius: 28px 14px 28px 14px;
  overflow: hidden;
  background: var(--brand-stage-bg, linear-gradient(145deg, #084f99 0%, #0b6bcb 100%));
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 32px -18px rgba(15, 23, 42, 0.45);
}

.brand-ad-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.brand-ad-ambient img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(160%);
  transform: scale(1.18);
  opacity: 0.34;
}

.brand-ad-ambient-tint {
  position: absolute;
  inset: 0;
  background: var(--brand-stage-bg, linear-gradient(145deg, #084f99 0%, #0b6bcb 100%));
  opacity: 0.68;
}

.brand-ad-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.45;
}

.brand-ad-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  padding: 2px 14px 4px;
}

.brand-ad-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  min-width: 100%;
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.brand-ad-slide {
  flex: 0 0 212px;
  width: 212px;
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  transform: scale(0.92);
  opacity: 0.78;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.42s ease;
}

.brand-ad-slide.is-active {
  transform: scale(1);
  opacity: 1;
}

.brand-ad-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 24px 10px 24px 10px;
  overflow: hidden;
  background: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 30px -14px rgba(15, 23, 42, 0.65);
}

.brand-ad-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: transform 0.55s var(--ease);
}

.brand-ad-slide.is-active .brand-ad-frame img {
  transform: scale(1.02);
}

.brand-ad-bar-external {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 0;
}

.brand-ad-bar-external .brand-ad-dots {
  background: rgba(15, 23, 42, 0.28);
}

.brand-ad-bar-external .brand-ad-btn {
  background: rgba(15, 23, 42, 0.28);
}

/* G. SUBTLE SHIMMER PLACEHOLDER BEHIND LOADING IMAGES (Never hides img) */
.must-try-media,
.menu-row-media,
.ad-sculpted-frame,
.brand-ad-frame,
.cart-media {
  background-image: linear-gradient(
    110deg,
    rgba(226, 236, 249, 0.45) 8%,
    rgba(255, 255, 255, 0.85) 18%,
    rgba(226, 236, 249, 0.45) 33%
  );
  background-size: 200% 100%;
}

img.is-img-failed {
  opacity: 0.15;
}

/* Seamless Infinite Loop Carousel: zero-flicker invisible snap */
.ad-showcase-track.is-instant,
.ad-showcase-track.is-instant *,
.brand-ad-track.is-instant,
.brand-ad-track.is-instant * {
  transition: none !important;
}

/* H. CART NUDGE & SYARAT KETENTUAN (CHECKOUT + LIQUID GLASS MODAL) */
.cart-nudge-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  margin-top: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(235, 244, 255, 0.92) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(11, 107, 203, 0.22);
  box-shadow: 0 10px 24px -16px rgba(11, 107, 203, 0.35);
}

.cart-nudge-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b6bcb 0%, #2563eb 100%);
  color: #ffffff;
}

.cart-nudge-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.cart-nudge-copy strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

.cart-nudge-copy span {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.btn-xs {
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.terms-consent-card {
  margin-top: 12px;
  padding: 14px 15px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 248, 254, 0.96) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.28);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.terms-consent-card.is-checked {
  border-color: rgba(11, 107, 203, 0.45);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 12px 26px -18px rgba(11, 107, 203, 0.38);
}

.terms-consent-card.has-error {
  border-color: var(--danger);
  background: #fff5f5;
}

.terms-check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  user-select: none;
}

.terms-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.terms-check-box {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: transparent;
  transition: all 0.2s var(--ease);
}

.terms-checkbox:checked + .terms-check-box {
  border-color: #0b6bcb;
  background: linear-gradient(135deg, #0b6bcb 0%, #1d8cf8 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px -3px rgba(11, 107, 203, 0.55);
}

.terms-checkbox:focus-visible + .terms-check-box {
  outline: 2px solid #0b6bcb;
  outline-offset: 2px;
}

.terms-check-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.terms-check-copy strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.terms-check-copy span {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.terms-actions-row {
  margin-top: 10px;
  padding-left: 33px;
}

.terms-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 107, 203, 0.08);
  border: 1px solid rgba(11, 107, 203, 0.22);
  color: var(--primary-strong);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.terms-open-btn:hover,
.terms-open-btn:active {
  background: rgba(11, 107, 203, 0.15);
  transform: translateY(-1px);
}

/* Liquid Glass Syarat & Ketentuan Pop-up Modal */
.modal-card.terms-modal-card {
  display: flex;
  flex-direction: column;
  max-width: 416px;
  max-height: 88vh;
  max-height: 88dvh;
  padding: 0;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(26px) saturate(195%);
  backdrop-filter: blur(26px) saturate(195%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 24px 60px -18px rgba(8, 30, 56, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.terms-modal-hero {
  position: relative;
  flex-shrink: 0;
  padding: 20px 18px 16px;
  background: linear-gradient(135deg, rgba(9, 74, 145, 0.95) 0%, rgba(11, 107, 203, 0.92) 55%, rgba(29, 140, 248, 0.9) 100%);
  color: #ffffff;
}

.terms-modal-hero .modal-close {
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.terms-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.terms-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-clause-card {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.terms-clause-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 11.5px;
  font-weight: 800;
}

.terms-clause-copy strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}

.terms-clause-copy p {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--body);
  margin: 0;
}

.terms-modal-foot {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px 18px 16px;
  background: rgba(248, 251, 255, 0.92);
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.terms-modal-foot.is-single-action {
  grid-template-columns: 1fr;
}

/* I. KOPI KENANGAN BUNDLING BUILDER MODAL */
.bundle-chosen-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 12px;
}

.bundle-chosen-chip {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1.5px solid rgba(153, 27, 27, 0.22);
}

.bundle-chosen-chip.is-editing {
  background: #fff5f5;
  border-color: #991b1b;
}

.bundle-chosen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bundle-chosen-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.bundle-chosen-thumb {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.bundle-chosen-thumb img {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bundle-chosen-copy {
  min-width: 0;
  flex: 1;
}

.bundle-chosen-top strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.bundle-chosen-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.bundle-chosen-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bundle-extra-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.bundle-subdrawer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(153, 27, 27, 0.22);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bundle-sub-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bundle-sub-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--body);
}

.bundle-sub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bundle-pill {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--body);
  cursor: pointer;
}

.bundle-pill.is-active {
  background: #991b1b;
  border-color: #991b1b;
  color: #ffffff;
}

.bundle-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.bundle-slot-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 8px 9px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.bundle-slot-card:hover:not(:disabled) {
  border-color: #991b1b;
}

.bundle-slot-card:active:not(:disabled) {
  transform: scale(0.98);
}

.bundle-slot-card.has-picked {
  border-color: #991b1b;
  background: #fef2f2;
}

.bundle-slot-card.is-disabled,
.bundle-slot-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bundle-slot-thumb {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.bundle-slot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.bundle-slot-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #991b1b;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(153, 27, 27, 0.35);
}

.bundle-slot-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bundle-slot-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: break-word;
}

.bundle-slot-meta {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.2;
}

.bundle-slot-extra {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
  font-size: 10px;
}

.bundle-habis-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 800;
  font-size: 10px;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
