@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --coffee-dark: #1f120c;
  --coffee-roast: #2d1a11;
  --coffee: #5a3825;
  --caramel: #b58b60;
  --gold: #d9ae7c;
  --cream: #fff8ef;
  --text: #2e1b12;
  --muted: #7b6655;
  --border: rgba(181, 139, 96, 0.25);
  --shadow-sm: 0 8px 20px rgba(45, 26, 17, 0.08);
  --shadow-md: 0 16px 38px rgba(45, 26, 17, 0.13);
  --shadow-lg: 0 24px 70px rgba(45, 26, 17, 0.24);
  --heading: 'Plus Jakarta Sans', 'Inter', Arial, sans-serif;
  --body: 'Inter', Arial, sans-serif;
  --ui: 'Inter', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217,174,124,0.25), transparent 34%),
    radial-gradient(circle at top right, rgba(90,56,37,0.16), transparent 30%),
    linear-gradient(135deg, #fffaf2 0%, #f3e5d4 50%, #fff8ef 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(90,56,37,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,56,37,0.045) 1px, transparent 1px);
  background-size: 38px 38px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* NAVBAR */

.cafe-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 9999;
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  padding: 12px 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(31,18,12,0.95), rgba(75,45,31,0.92), rgba(90,56,37,0.9));
  border: 1px solid rgba(217,174,124,0.25);
  box-shadow: 0 18px 44px rgba(31,18,12,0.26);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cafe-brand {
  text-decoration: none;
  color: var(--cream);
}

.cafe-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.cafe-partnership-name {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--heading);
  font-size: 24px;
  font-weight: 800;
  color: #fff4e6;
  white-space: nowrap;
}

.cafe-partnership-mark {
  color: var(--gold);
}

.cafe-brand-text small {
  margin-top: 6px;
  font-family: var(--ui);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 999px;
  color: rgba(255,248,239,0.78);
  text-decoration: none;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 800;
  transition: 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--coffee-roast);
  background: linear-gradient(135deg, #fff1df, var(--gold));
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(217,174,124,0.35);
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--cream);
  font-size: 23px;
  cursor: pointer;
}

/* HERO */

.cafe-hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 24px 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cafe-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(217,174,124,0.32), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(90,56,37,0.18), transparent 38%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1220px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 520px);
  align-items: center;
  gap: 64px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(181,139,96,0.28);
  background: rgba(255,255,255,0.62);
  color: var(--coffee);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-text h1 {
  margin: 0;
  max-width: 820px;
  font-family: var(--heading);
  font-size: clamp(54px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: var(--coffee-roast);
}

.hero-text > p:not(.hero-kicker) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-btn,
.secondary-btn {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-btn {
  color: var(--cream);
  background: linear-gradient(135deg, var(--coffee-roast), var(--coffee));
  box-shadow: 0 14px 30px rgba(45,26,17,0.18);
}

.secondary-btn {
  color: var(--coffee);
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--border);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

/* HERO CARD */

.hero-logos {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  padding: 50px 38px;
  border-radius: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  overflow: hidden;
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(31,18,12,0.98), rgba(45,26,17,0.96), rgba(90,56,37,0.92));
  border: 1px solid rgba(217,174,124,0.22);
  box-shadow: var(--shadow-lg);
}

.hero-logos::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-logos::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  left: -150px;
  top: -130px;
  border-radius: 50%;
  border: 1px solid rgba(217,174,124,0.18);
}

.hero-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.hero-logo-circle {
  width: 170px;
  height: 170px;
  padding: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(245,238,229,0.92));
  border: 9px solid rgba(255,255,255,0.92);
  box-shadow:
    0 28px 60px rgba(0,0,0,0.34),
    inset 0 0 0 1px rgba(181,139,96,0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.hero-logo-mark {
  color: var(--gold);
  font-family: var(--heading);
  font-size: 42px;
  font-weight: 800;
}

.hero-logo-kicker {
  margin: 8px 0 0;
  color: var(--gold);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-logos h2 {
  margin: 0;
  color: #fffaf4;
  font-family: var(--heading);
  font-size: clamp(40px, 4vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-logo-copy {
  max-width: 440px;
  margin: 0;
  color: rgba(255,248,239,0.78);
  font-size: 16px;
  line-height: 1.7;
}

/* MAIN */

main {
  padding-bottom: 90px;
}

.menu-toolbar {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto 22px;
  padding: 30px;
  border-radius: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 22px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.menu-toolbar h2,
.menu-section-header h2,
.visit-card h2 {
  margin: 0;
  font-family: var(--heading);
  color: var(--coffee);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
}


/* MENU SECTIONS */

.menu-section {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto 78px;
  scroll-margin-top: 120px;
}

.menu-section.is-hidden {
  display: none;
}

.menu-section-header {
  margin-bottom: 28px;
  text-align: center;
}

.menu-section-header .section-kicker {
  margin-left: auto;
  margin-right: auto;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* PRODUCT CARDS */

.menu-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,248,239,0.94));
  box-shadow: var(--shadow-sm);
  transition: 0.28s ease;
}

.menu-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(31,18,12,0.98), rgba(90,56,37,0.95));
  opacity: 0;
  transition: 0.28s ease;
}

.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(217,174,124,0.55);
}

.menu-card:hover::before {
  opacity: 1;
}

.menu-image-btn {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  padding: 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-image-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
  background: rgba(255,255,255,0.76);
  padding: 13px;
  transition: 0.28s ease;
}

.menu-card:hover .menu-image-btn img {
  transform: scale(1.04);
  background: rgba(255,255,255,0.96);
}

.menu-card-body {
  padding: 0 20px 24px;
  text-align: center;
}

.product-status {
  display: inline-flex;
  margin-bottom: 11px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(181,139,96,0.14);
  color: var(--coffee);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.28s ease;
}

.menu-card h3 {
  margin: 0 0 13px;
  font-family: var(--heading);
  font-size: 27px;
  line-height: 1.05;
  color: var(--coffee);
  transition: 0.28s ease;
}

.menu-card strong {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--coffee);
  background: #f6e4d2;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 900;
  transition: 0.28s ease;
}

.menu-card:hover .product-status {
  background: rgba(255,248,239,0.92);
  color: var(--coffee-roast);
}

.menu-card:hover h3 {
  color: #fff8ef;
}

.menu-card:hover strong {
  color: var(--coffee-roast);
  background: #fff1df;
}

.menu-card.not-matching,
.menu-card.unavailable-hidden {
  display: none !important;
}

/* VISIT SECTION */

.visit-section {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
}

.visit-card {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 58px);
  border-radius: 36px;
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(31,18,12,0.98), rgba(45,26,17,0.96), rgba(90,56,37,0.93));
  box-shadow: var(--shadow-lg);
}

.visit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 36%),
    radial-gradient(circle at 92% 10%, rgba(217,174,124,0.35), transparent 34%);
}

.visit-card > * {
  position: relative;
  z-index: 1;
}

.visit-card .section-kicker {
  color: var(--gold);
  background: rgba(255,255,255,0.08);
  border-color: rgba(217,174,124,0.24);
}

.visit-card h2 {
  color: #fff4e6;
}

.visit-card p {
  max-width: 780px;
  color: rgba(255,248,239,0.78);
  font-size: 16px;
  line-height: 1.75;
}

.visit-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.visit-info span {
  display: inline-flex;
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(217,174,124,0.2);
  color: #fff4e6;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 800;
}

/* IMAGE MODAL */

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(31,18,12,0.74);
  backdrop-filter: blur(9px);
}

.image-modal.show {
  display: flex;
}

.image-modal img {
  max-width: min(680px, 92vw);
  max-height: 72vh;
  object-fit: contain;
  border-radius: 30px;
  background: #fffaf4;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.image-modal p {
  position: fixed;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,248,239,0.96);
  color: var(--coffee);
  font-family: var(--ui);
  font-weight: 900;
}

.image-modal-close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff4e6;
  color: var(--coffee);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

/* SCROLL TOP */

.scroll-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--coffee-roast), var(--coffee));
  box-shadow: var(--shadow-md);
  font-size: 22px;
  cursor: pointer;
}

.scroll-top-btn.show {
  display: flex;
}

/* EMPTY */

.no-results {
  width: min(1220px, calc(100% - 36px));
  margin: 20px auto 60px;
  padding: 30px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.75);
  border: 1px dashed rgba(181,139,96,0.35);
  font-family: var(--ui);
  font-weight: 900;
}

/* ANIMATION */

.fade-in-up,
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fade-in-up.visible,
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-logos {
    width: min(760px, 100%);
    margin: 0 auto;
  }

  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .menu-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .cafe-nav {
    top: 12px;
    width: calc(100% - 24px);
    border-radius: 24px;
  }

  .cafe-partnership-name {
    font-size: 21px;
  }

  .cafe-brand-text small {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: 94px;
    right: 12px;
    width: min(340px, calc(100vw - 24px));
    padding: 14px;
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: linear-gradient(145deg, rgba(31,18,12,0.98), rgba(90,56,37,0.97));
    border: 1px solid rgba(217,174,124,0.24);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition: 0.22s ease;
  }

  .nav-links.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links a {
    width: 100%;
    min-height: 46px;
    border-radius: 15px;
  }

  .cafe-hero {
    min-height: auto;
    padding-top: 128px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-logos {
    min-height: 460px;
    padding: 42px 28px;
  }

  .hero-logo-circle {
    width: 145px;
    height: 145px;
    border-width: 8px;
  }
}

@media (max-width: 620px) {
  .cafe-nav {
    min-height: 68px;
    padding: 9px 13px;
  }

  .cafe-partnership-name {
    font-size: 17px;
    gap: 4px;
    white-space: normal;
  }

  .cafe-brand-text small {
    display: none;
  }

  .nav-links {
    top: 84px;
    right: 10px;
    width: calc(100vw - 20px);
  }

  .cafe-hero {
    padding: 118px 16px 54px;
  }

  .hero-text h1 {
    font-size: 47px;
  }

  .hero-text > p:not(.hero-kicker) {
    font-size: 15px;
  }

  .hero-actions {
    width: 100%;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .hero-logos {
    min-height: 380px;
    padding: 34px 20px;
    border-radius: 30px;
  }

  .hero-logo-row {
    gap: 15px;
  }

  .hero-logo-circle {
    width: 104px;
    height: 104px;
    padding: 9px;
    border-width: 6px;
  }

  .hero-logo-mark {
    font-size: 28px;
  }

  .hero-logo-kicker {
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }

  .hero-logos h2 {
    font-size: 36px;
  }

  .hero-logo-copy {
    font-size: 14px;
  }

  .menu-toolbar,
  .menu-section,
  .visit-section {
    width: calc(100% - 20px);
  }

  .menu-toolbar {
    padding: 22px;
    border-radius: 24px;
  }

  .menu-toolbar h2,
  .menu-section-header h2,
  .visit-card h2 {
    font-size: 35px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .menu-card {
    border-radius: 24px;
  }

  .menu-card h3 {
    font-size: 25px;
  }

  .visit-card {
    border-radius: 26px;
  }

  .visit-info span {
    width: 100%;
    border-radius: 16px;
  }

  .image-modal {
    padding: 14px;
  }

  .image-modal img {
    padding: 12px;
    border-radius: 22px;
  }

  .image-modal p {
    bottom: 24px;
    width: calc(100% - 32px);
    text-align: center;
  }
}

@media (max-width: 390px) {
  .cafe-partnership-name {
    font-size: 15px;
  }

  .hero-text h1 {
    font-size: 40px;
  }

  .hero-logo-circle {
    width: 90px;
    height: 90px;
  }

  .hero-logos h2 {
    font-size: 31px;
  }

  .menu-toolbar h2,
  .menu-section-header h2,
  .visit-card h2 {
    font-size: 30px;
  }

  .section-kicker,
  .hero-kicker {
    font-size: 9px;
    letter-spacing: 0.09em;
  }
}
/* MENU-FIRST SALES UPDATE */
.menu-first-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 500px);
}

.sales-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.sales-points span {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--border);
  color: var(--coffee);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 800;
}

.hero-featured-card {
  min-height: 520px;
  padding: 38px;
  border-radius: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  background: linear-gradient(145deg, #1f120c, #5a3825);
  border: 1px solid rgba(217,174,124,0.28);
  box-shadow: var(--shadow-lg);
}

.hero-featured-card img {
  width: min(310px, 90%);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 8px auto 18px;
  padding: 22px;
  border-radius: 32px;
  background: rgba(255,255,255,0.95);
}

.hero-featured-card h2 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.hero-featured-card > p:not(.hero-logo-kicker) {
  margin: 16px 0 22px;
  color: rgba(255,248,239,0.78);
  line-height: 1.7;
}

.featured-cta,
.buy-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--ui);
  font-weight: 900;
}

.featured-cta {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--coffee-roast);
  background: linear-gradient(135deg, #fff1df, var(--gold));
}

.menu-intro {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-copy {
  min-height: 48px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.product-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.buy-menu-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--coffee-roast), var(--coffee));
  font-size: 11px;
  transition: 0.2s ease;
}

.buy-menu-btn:hover {
  transform: translateY(-2px);
}

.menu-card:hover .product-copy {
  color: rgba(255,248,239,0.78);
}

.menu-card:hover .buy-menu-btn {
  color: var(--coffee-roast);
  background: var(--gold);
}

.order-section {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
}

.order-card {
  padding: clamp(34px, 6vw, 70px);
  border-radius: 36px;
  text-align: center;
  color: var(--cream);
  background: linear-gradient(135deg, #1f120c, #5a3825);
  box-shadow: var(--shadow-lg);
}

.order-card .section-kicker { margin-left: auto; margin-right: auto; }
.order-card h2 { margin: 0; font-family: var(--heading); font-size: clamp(38px, 5vw, 66px); }
.order-card p { max-width: 760px; margin: 18px auto 26px; color: rgba(255,248,239,0.78); line-height: 1.75; }
.order-card .primary-btn { background: linear-gradient(135deg, #fff1df, var(--gold)); color: var(--coffee-roast); }

@media (max-width: 900px) {
  .menu-first-hero { grid-template-columns: 1fr; }
  .hero-featured-card { min-height: auto; }
}

@media (max-width: 620px) {
  .sales-points span { width: 100%; text-align: center; }
  .hero-featured-card { padding: 28px 20px; border-radius: 28px; }
  .product-buy-row { align-items: stretch; flex-direction: column; }
  .product-buy-row strong, .buy-menu-btn { width: 100%; justify-content: center; }
  .order-section { width: calc(100% - 20px); }
}

/* FUTURE DESSERT & PASTRY CATEGORIES */
.future-menu-section {
  scroll-margin-top: 120px;
}

.future-menu-grid {
  grid-template-columns: minmax(280px, 520px);
  justify-content: center;
}

.future-menu-card {
  border-style: dashed;
  text-align: center;
}

.future-menu-visual {
  min-height: 250px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(217,174,124,0.28), transparent 58%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(246,228,210,0.92));
}

.future-menu-visual span {
  font-size: clamp(86px, 12vw, 138px);
  filter: drop-shadow(0 18px 18px rgba(45,26,17,0.18));
  transition: transform 0.28s ease;
}

.future-menu-card:hover .future-menu-visual span {
  transform: translateY(-6px) scale(1.05) rotate(-2deg);
}

.future-badge {
  display: inline-flex;
  min-height: 40px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--coffee-roast);
  background: linear-gradient(135deg, #fff1df, var(--gold));
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* MENU-FIRST LANDING PAGE */
.menu-first-main {
  padding-top: 128px;
}

.menu-page-header {
  margin-top: 0;
  grid-template-columns: 1fr;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(217,174,124,0.24), transparent 35%),
    rgba(255,255,255,0.9);
}

.menu-page-header h1 {
  margin: 0;
  max-width: 760px;
  font-family: var(--heading);
  color: var(--coffee-roast);
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.menu-page-header .menu-intro {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .menu-first-main {
    padding-top: 108px;
  }

  .menu-page-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .menu-first-main {
    padding-top: 94px;
  }

  .menu-page-header h1 {
    font-size: 42px;
  }

  .menu-page-header .menu-intro {
    font-size: 15px;
  }
}


/* STICKY CUSTOMER CATEGORY NAVIGATION */
.menu-category-shell {
  position: sticky;
  top: 76px;
  z-index: 9200;
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto 30px;
  padding: 10px;
  border: 1px solid rgba(181, 139, 96, 0.28);
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 12px 30px rgba(45, 26, 17, 0.13);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.menu-category-track {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.menu-category-track::-webkit-scrollbar {
  display: none;
}

.menu-category-link {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  scroll-snap-align: center;
  color: var(--coffee);
  background: rgba(181, 139, 96, 0.1);
  text-decoration: none;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.menu-category-link:hover {
  color: var(--coffee-roast);
  border-color: rgba(181, 139, 96, 0.32);
  background: #f6e4d2;
  transform: translateY(-1px);
}

.menu-category-link.active,
.menu-category-link[aria-current="page"] {
  color: #fffaf4;
  border-color: rgba(217, 174, 124, 0.5);
  background: linear-gradient(135deg, var(--coffee-roast), var(--coffee));
  box-shadow: 0 8px 18px rgba(45, 26, 17, 0.22);
}

.menu-category-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(90, 56, 37, 0.1);
  font-size: 11px;
  line-height: 1;
}

.menu-category-link.active .menu-category-icon,
.menu-category-link[aria-current="page"] .menu-category-icon {
  color: var(--coffee-roast);
  background: var(--gold);
}

.menu-section {
  scroll-margin-top: 158px;
}

@media (max-width: 1160px) {
  .menu-category-shell {
    top: 72px;
  }
}

@media (max-width: 620px) {
  .menu-category-shell {
    top: 68px;
    width: calc(100% - 20px);
    margin-bottom: 24px;
    padding: 8px;
    border-radius: 18px;
  }

  .menu-category-link {
    min-height: 43px;
    padding: 8px 13px;
    border-radius: 13px;
    font-size: 11px;
  }

  .menu-category-icon {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .menu-section {
    scroll-margin-top: 142px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-category-track {
    scroll-behavior: auto;
  }

  .menu-category-link {
    transition: none !important;
  }
}

/* UNAVAILABLE PRODUCTS */
.menu-card.not-available {
  opacity: 0.72;
}

.menu-card.not-available:hover {
  transform: translateY(-3px);
}

.menu-card.not-available .menu-image-btn {
  cursor: default;
}

.menu-card.not-available .menu-image-btn img {
  filter: grayscale(0.45);
}

.product-status.unavailable-status {
  color: #7a2e22;
  background: #f8ddd7;
}

.unavailable-btn {
  cursor: not-allowed;
  opacity: 0.7;
  background: #d8cec5;
  color: #68584c;
  pointer-events: none;
}

.menu-card.not-available:hover .product-status.unavailable-status {
  color: #7a2e22;
  background: #f8ddd7;
}

/* ADMIN-STYLE MENU NAVIGATION */
.cafe-nav {
  top: 0;
  width: 100%;
  min-height: 104px;
  padding: 14px 40px;
  border-radius: 0;
  border: 1px solid rgba(217, 174, 124, 0.35);
  background: linear-gradient(105deg, #24130d 0%, #3a2016 48%, #5a3425 100%);
  box-shadow: 0 10px 30px rgba(31, 18, 12, 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cafe-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.nav-logo-circle {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  color: #3a2016;
  background: #fff8ef;
  border: 3px solid rgba(255, 248, 239, 0.92);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  font-family: var(--heading);
  font-size: 26px;
  font-weight: 800;
}

.nav-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.cafe-partnership-name {
  font-size: 28px;
}

.cafe-brand-text small {
  margin-top: 7px;
  color: #ddb382;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.nav-links {
  gap: 12px;
}

.nav-links a {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 248, 239, 0.74);
  font-size: 13px;
}

.nav-link-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(217, 174, 124, 0.45);
  box-shadow: 0 0 0 5px rgba(217, 174, 124, 0.08);
}

.nav-links a:hover,
.nav-links a.active {
  color: #3b2418;
  background: linear-gradient(135deg, #fff0da, #dfb47f);
  box-shadow: 0 8px 20px rgba(20, 10, 6, 0.18);
}

.nav-links a:hover .nav-link-dot,
.nav-links a.active .nav-link-dot {
  background: #6a402a;
  box-shadow: 0 0 0 5px rgba(106, 64, 42, 0.1);
}

.menu-first-main {
  padding-top: 138px;
}

@media (max-width: 1180px) {
  .cafe-nav {
    padding-left: 22px;
    padding-right: 22px;
  }

  .nav-logo-cravings {
    display: none;
  }

  .nav-links {
    gap: 5px;
  }

  .nav-links a {
    padding: 0 12px;
  }
}

@media (max-width: 900px) {
  .cafe-nav {
    top: 0;
    width: 100%;
    min-height: 88px;
    padding: 12px 18px;
    border-radius: 0;
  }

  .nav-logo-circle {
    width: 50px;
    height: 50px;
  }

  .cafe-partnership-name {
    font-size: 22px;
  }

  .nav-links {
    top: 88px;
    right: 12px;
  }

  .nav-links a {
    justify-content: flex-start;
  }

  .menu-first-main {
    padding-top: 116px;
  }
}

@media (max-width: 620px) {
  .cafe-nav {
    min-height: 76px;
    padding: 9px 12px;
  }

  .nav-logo-circle {
    width: 45px;
    height: 45px;
  }

  .nav-logo-cravings {
    display: none;
  }

  .cafe-brand {
    gap: 9px;
  }

  .cafe-partnership-name {
    font-size: 18px;
  }

  .cafe-brand-text small {
    display: block;
    font-size: 7px;
  }

  .nav-links {
    top: 76px;
  }

  .menu-first-main {
    padding-top: 100px;
  }
}

@media (max-width: 390px) {
  .cafe-partnership-name {
    font-size: 16px;
  }

  .cafe-brand-text small {
    display: none;
  }
}

/* INTEGRATION & ACCESSIBILITY FIXES */
.menu-first-main {
  padding-top: 42px;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .menu-first-main { padding-top: 30px; }
}

@media (max-width: 620px) {
  .menu-first-main { padding-top: 24px; }
}
/* =========================================================
   AKopi Customer Cart + QR Ordering
   File: cafe/style.css
   APPEND THIS BLOCK TO THE BOTTOM OF YOUR EXISTING style.css
========================================================= */

/* ===============================
   ORDERING VARIABLES
================================ */

:root {
  --order-success: #0a8754;
  --order-success-soft: #e7f7ef;
  --order-warning: #a96f00;
  --order-warning-soft: #fff5d9;
  --order-danger: #c0392b;
  --order-danger-soft: #fff0ee;
  --order-overlay: rgba(31, 18, 12, 0.68);
}

/* ===============================
   BODY LOCKS
================================ */

body.customer-cart-open,
body.customer-modal-open {
  overflow: hidden;
}

/* ===============================
   CART BUTTON
================================ */

.customer-cart-toggle {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 9970;
  min-height: 52px;
  padding: 0 17px;
  border: 1px solid rgba(217, 174, 124, 0.34);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff8ef;
  background:
    linear-gradient(135deg, var(--coffee-roast), var(--coffee));
  box-shadow: 0 16px 34px rgba(45, 26, 17, 0.26);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.customer-cart-toggle[hidden] {
  display: none !important;
}

.customer-cart-toggle.is-updated {
  animation: customer-cart-pop 0.5s ease;
}

.customer-cart-toggle.has-active-qr {
  background: linear-gradient(135deg, #0b6643, var(--order-success));
}

@keyframes customer-cart-pop {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-5px) scale(1.07); }
}

.customer-cart-toggle:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 20px 42px rgba(45, 26, 17, 0.3);
}

.customer-cart-toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.customer-cart-toggle-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--coffee-roast);
  background: linear-gradient(135deg, #fff1df, var(--gold));
  font-size: 14px;
}

.customer-cart-count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--order-danger);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(192, 57, 43, 0.28);
}

/* ===============================
   CART BACKDROP
================================ */

.customer-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: var(--order-overlay);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.customer-cart-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===============================
   CART DRAWER
================================ */

.customer-order-cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10030;
  width: min(460px, 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(217, 174, 124, 0.2), transparent 34%),
    linear-gradient(180deg, #fffdf8 0%, #f8ecdf 100%);
  border-left: 1px solid rgba(181, 139, 96, 0.28);
  box-shadow: -22px 0 60px rgba(31, 18, 12, 0.28);
  transform: translateX(104%);
  visibility: hidden;
  transition:
    transform 0.28s ease,
    visibility 0.28s ease;
}

.customer-order-cart.show {
  transform: translateX(0);
  visibility: visible;
}

.customer-cart-header {
  position: relative;
  overflow: hidden;
  padding: 26px 72px 24px 24px;
  color: #fff8ef;
  background:
    linear-gradient(135deg, var(--coffee-dark), var(--coffee-roast), var(--coffee));
  border-bottom: 1px solid rgba(217, 174, 124, 0.24);
}

.customer-cart-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 36%),
    radial-gradient(circle at 90% 10%, rgba(217,174,124,0.34), transparent 34%);
}

.customer-cart-header > * {
  position: relative;
  z-index: 1;
}

.customer-cart-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.customer-cart-header h2 {
  margin: 0;
  color: #fff8ef;
  font-family: var(--heading);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.customer-cart-header p {
  margin: 10px 0 0;
  color: rgba(255, 248, 239, 0.74);
  font-size: 13px;
  line-height: 1.6;
}

.customer-cart-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(217, 174, 124, 0.22);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff8ef;
  background: rgba(255,255,255,0.09);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.customer-cart-close:hover {
  background: rgba(255,255,255,0.16);
}

.customer-cart-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
}

.customer-cart-items {
  display: grid;
  gap: 12px;
}

.customer-cart-empty {
  min-height: 260px;
  padding: 28px 20px;
  border: 1px dashed rgba(181, 139, 96, 0.36);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.7);
}

.customer-cart-empty-icon {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--coffee);
  background: #f6e4d2;
  font-size: 28px;
}

.customer-cart-empty strong {
  color: var(--coffee-roast);
  font-family: var(--heading);
  font-size: 25px;
}

.customer-cart-empty p {
  max-width: 290px;
  margin: 0;
  line-height: 1.65;
}

/* ===============================
   CART ITEM
================================ */

.customer-cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 13px;
  padding: 13px;
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(181, 139, 96, 0.24);
  box-shadow: var(--shadow-sm);
}

.customer-cart-item-image-wrap {
  width: 74px;
  height: 74px;
  padding: 7px;
  border-radius: 17px;
  overflow: hidden;
  background: #fff7ee;
  border: 1px solid rgba(181, 139, 96, 0.2);
}

.customer-cart-item-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.customer-cart-item-content {
  min-width: 0;
}

.customer-cart-item-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.customer-cart-item-name {
  margin: 0;
  color: var(--coffee-roast);
  font-family: var(--heading);
  font-size: 19px;
  line-height: 1.1;
}

.customer-cart-remove {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #c0392b;
  box-shadow: 0 5px 14px rgba(192, 57, 43, 0.32);
  cursor: pointer;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.customer-cart-remove:hover {
  transform: scale(1.08);
  background: #8f251c;
  box-shadow: 0 7px 18px rgba(143, 37, 28, 0.38);
}

.customer-cart-remove:focus-visible {
  outline: 3px solid var(--gold, #d9ae7c);
  outline-offset: 3px;
}

.customer-cart-item-price {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 10.5px;
  font-weight: 800;
}

.customer-cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.customer-cart-quantity {
  display: grid;
  grid-template-columns: 34px 48px 34px;
  align-items: center;
  gap: 6px;
}

.customer-cart-qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--coffee-roast), var(--coffee));
  font-family: var(--ui);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.customer-cart-qty-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.customer-cart-qty-input {
  width: 48px;
  height: 34px;
  padding: 0 4px;
  border: 1px solid rgba(181, 139, 96, 0.3);
  border-radius: 11px;
  text-align: center;
  color: var(--coffee-roast);
  background: #fff;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 900;
}

.customer-cart-line-total {
  color: var(--coffee);
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

/* ===============================
   CART FOOTER
================================ */

.customer-cart-footer {
  flex: 0 0 auto;
  padding: 18px;
  background: rgba(255, 253, 248, 0.96);
  border-top: 1px solid rgba(181, 139, 96, 0.24);
  box-shadow: 0 -10px 24px rgba(45, 26, 17, 0.08);
}

.customer-cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.customer-cart-total-row span {
  color: var(--muted);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.customer-cart-total-row strong {
  color: var(--coffee-roast);
  font-family: var(--heading);
  font-size: 28px;
}

.customer-cart-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
}

.customer-cart-clear-btn,
.customer-cart-checkout-btn {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.customer-cart-clear-btn {
  color: var(--coffee);
  background: #efe2d6;
  border: 1px solid rgba(181, 139, 96, 0.24);
}

.customer-cart-checkout-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--coffee-roast), var(--coffee));
  border: 0;
  box-shadow: 0 10px 22px rgba(45, 26, 17, 0.18);
}

/* ===============================
   ADD TO CART BUTTON
================================ */

.add-to-cart-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--coffee-roast), var(--coffee));
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.add-to-cart-btn:disabled,
.add-to-cart-btn.unavailable-btn {
  opacity: 0.62;
  cursor: not-allowed;
  pointer-events: none;
  color: #68584c;
  background: #d8cec5;
}

.menu-card:hover .add-to-cart-btn:not(:disabled) {
  color: var(--coffee-roast);
  background: var(--gold);
}

/* ===============================
   ORDER MODALS
================================ */

.customer-order-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--order-overlay);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.customer-order-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.customer-order-modal[hidden] {
  display: none !important;
}

.customer-order-modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 28px;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(217,174,124,0.2), transparent 35%),
    linear-gradient(180deg, #fffdf8 0%, #f7eadc 100%);
  border: 1px solid rgba(181, 139, 96, 0.32);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.2s ease;
}

.customer-order-modal.show .customer-order-modal-card {
  transform: translateY(0) scale(1);
}

.customer-order-modal-large {
  width: min(760px, 100%);
}

.customer-order-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--coffee-roast);
  background: #efe0d1;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.customer-order-modal-kicker {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--caramel);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.customer-order-modal-card h2 {
  margin: 0 48px 10px 0;
  color: var(--coffee-roast);
  font-family: var(--heading);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.customer-order-modal-copy {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.68;
  font-size: 14px;
}

/* ===============================
   CHECKOUT SUMMARY
================================ */

.customer-checkout-summary {
  margin: 18px 0;
  padding: 16px;
  border-radius: 19px;
  color: #fff8ef;
  background:
    linear-gradient(135deg, var(--coffee-dark), var(--coffee));
}

.customer-checkout-items {
  display: grid;
  gap: 9px;
}

.customer-checkout-line,
.customer-checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.customer-checkout-line {
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
}

.customer-checkout-fee-row {
  margin-top: 10px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px dashed rgba(255,255,255,0.2);
  color: rgba(255,248,239,0.82);
}

.customer-checkout-fee-row[hidden] {
  display: none !important;
}

.customer-checkout-fee-row strong {
  color: var(--gold);
  white-space: nowrap;
}

.customer-checkout-line span {
  color: rgba(255,248,239,0.82);
}

.customer-checkout-line strong {
  color: var(--gold);
  white-space: nowrap;
}

.customer-checkout-total {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,0.22);
}

.customer-checkout-total span {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.customer-checkout-total strong {
  color: var(--gold);
  font-family: var(--heading);
  font-size: 25px;
}

/* ===============================
   CHECKOUT FORM
================================ */

.customer-order-form {
  display: grid;
  gap: 16px;
}

.customer-service-type-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.customer-service-type-field legend {
  margin-bottom: 8px;
  color: var(--coffee-roast);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-service-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-service-type-card {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: stretch;
  cursor: pointer;
}

.customer-service-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.customer-service-type-card span {
  width: 100%;
  min-height: 76px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(181, 139, 96, 0.28);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.customer-service-type-card strong {
  color: var(--coffee-roast);
  font-family: var(--heading);
  font-size: 17px;
  line-height: 1.1;
}

.customer-service-type-card small {
  font-size: 12px;
  line-height: 1.35;
}

.customer-service-type-card input:checked + span {
  border-color: rgba(181, 139, 96, 0.58);
  background: #fff8ef;
  box-shadow: 0 0 0 4px rgba(181, 139, 96, 0.12);
}

.customer-service-type-card input:focus-visible + span {
  outline: 3px solid rgba(181, 139, 96, 0.24);
  outline-offset: 2px;
}

.customer-delivery-fields {
  display: grid;
  gap: 16px;
}

.customer-delivery-fields[hidden] {
  display: none !important;
}

.customer-order-form:has(#qrOrderTypeDelivery:checked) #qrDeliveryFields {
  display: grid !important;
}

.customer-order-field {
  display: grid;
  gap: 7px;
}

.customer-order-field label {
  color: var(--coffee-roast);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-order-field input,
.customer-order-field select,
.customer-order-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(181, 139, 96, 0.32);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  font-family: var(--body);
  font-size: 14px;
}

.customer-order-field textarea {
  min-height: 92px;
  padding-top: 13px;
  padding-bottom: 13px;
  line-height: 1.45;
  resize: vertical;
}

.customer-order-field input:focus,
.customer-order-field select:focus,
.customer-order-field textarea:focus {
  outline: none;
  border-color: var(--caramel);
  box-shadow: 0 0 0 4px rgba(181, 139, 96, 0.15);
}

.customer-order-form-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.customer-order-form-message {
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 13px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.customer-order-form-message:not(:empty) {
  padding: 11px 13px;
}

.customer-order-form-message.is-error {
  color: var(--order-danger);
  background: var(--order-danger-soft);
  border: 1px solid rgba(192, 57, 43, 0.22);
}

.customer-order-form-message.is-warning {
  color: var(--order-warning);
  background: var(--order-warning-soft);
  border: 1px solid rgba(169, 111, 0, 0.22);
}

.customer-order-form-message.is-success {
  color: var(--order-success);
  background: var(--order-success-soft);
  border: 1px solid rgba(10, 135, 84, 0.22);
}

.customer-generate-qr-btn {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--order-success), #18a66b);
  box-shadow: 0 12px 24px rgba(10, 135, 84, 0.2);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.customer-generate-qr-btn:disabled {
  opacity: 0.68;
  cursor: wait;
}

/* ===============================
   QR LOADING
================================ */

.customer-qr-loading {
  min-height: 340px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.customer-qr-spinner {
  width: 58px;
  height: 58px;
  border: 5px solid rgba(181, 139, 96, 0.22);
  border-top-color: var(--coffee);
  border-radius: 50%;
  animation: customerQrSpin 0.8s linear infinite;
}

.customer-qr-loading strong {
  color: var(--coffee-roast);
  font-family: var(--heading);
  font-size: 25px;
}

.customer-qr-loading p {
  margin: 0;
  color: var(--muted);
}

@keyframes customerQrSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ===============================
   QR RESULT
================================ */

.customer-qr-result {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.customer-qr-visual {
  padding: 18px;
  border-radius: 24px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(181, 139, 96, 0.26);
  box-shadow: var(--shadow-md);
}

.customer-qr-code {
  width: min(300px, 100%);
  min-height: 280px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #eadfd5;
}

.customer-qr-code img,
.customer-qr-code canvas {
  display: block;
  width: min(256px, 100%) !important;
  height: auto !important;
  max-width: 100%;
}

.customer-qr-unavailable {
  min-height: 210px;
  padding: 20px;
  border: 1px dashed rgba(181,139,96,0.35);
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  background: #fffaf6;
}

.customer-qr-unavailable strong {
  color: var(--coffee-roast);
}

.customer-qr-countdown-wrap {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--coffee-roast);
  background: #f6e4d2;
}

.customer-qr-countdown-wrap span {
  display: block;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-qr-countdown {
  display: block;
  margin-top: 4px;
  color: var(--order-danger);
  font-family: var(--heading);
  font-size: 31px;
  line-height: 1;
}

.customer-qr-details {
  min-width: 0;
}

.customer-qr-status-message {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 15px;
  color: var(--order-success);
  background: var(--order-success-soft);
  border: 1px solid rgba(10, 135, 84, 0.22);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.customer-qr-status-message.is-expired {
  color: var(--order-danger);
  background: var(--order-danger-soft);
  border-color: rgba(192, 57, 43, 0.22);
}

.customer-qr-meta {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.customer-qr-meta-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eadfd5;
}

.customer-qr-meta-row span {
  color: var(--muted);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.customer-qr-meta-row strong {
  color: var(--coffee-roast);
  overflow-wrap: anywhere;
}

.customer-qr-items-card {
  padding: 15px;
  border-radius: 18px;
  color: #fff8ef;
  background:
    linear-gradient(135deg, var(--coffee-dark), var(--coffee));
}

.customer-qr-items-card h3 {
  margin: 0 0 12px;
  color: #fff8ef;
  font-family: var(--heading);
  font-size: 23px;
}

.customer-qr-order-items {
  display: grid;
  gap: 8px;
}

.customer-qr-order-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
}

.customer-qr-order-line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.customer-qr-order-line span {
  color: rgba(255,248,239,0.82);
}

.customer-qr-order-line strong {
  color: var(--gold);
  white-space: nowrap;
}

.customer-qr-token-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed rgba(181, 139, 96, 0.4);
  border-radius: 14px;
  color: var(--muted);
  background: #fffaf6;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.customer-qr-token-box strong {
  display: block;
  margin-bottom: 5px;
  color: var(--coffee-roast);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.customer-qr-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.customer-qr-action-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--coffee-roast), var(--coffee));
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.customer-qr-action-btn.secondary {
  color: var(--coffee);
  background: #efe2d6;
}

/* ===============================
   NOTIFICATIONS
================================ */

.customer-order-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10080;
  width: min(460px, calc(100% - 28px));
  padding: 13px 16px;
  border-radius: 15px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--coffee-roast), var(--coffee));
  box-shadow: 0 18px 42px rgba(31, 18, 12, 0.3);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}

.customer-order-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.customer-order-toast.is-success {
  background: linear-gradient(135deg, #087347, var(--order-success));
}

.customer-order-toast.is-warning {
  color: #2e1b12;
  background: linear-gradient(135deg, #f0c96f, var(--gold));
}

.customer-order-toast.is-error {
  background: linear-gradient(135deg, #9f2f24, var(--order-danger));
}

/* ===============================
   ORDER CTA
================================ */

.order-start-section {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto 30px;
}

.order-start-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 56px);
  border-radius: 34px;
  color: #fff8ef;
  background:
    linear-gradient(135deg, var(--coffee-dark), var(--coffee-roast), var(--coffee));
  box-shadow: var(--shadow-lg);
}

.order-start-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 36%),
    radial-gradient(circle at 92% 10%, rgba(217,174,124,0.35), transparent 34%);
}

.order-start-card > * {
  position: relative;
  z-index: 1;
}

.order-start-card h2 {
  max-width: 850px;
  margin: 0;
  color: #fff8ef;
  font-family: var(--heading);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.order-start-card p {
  max-width: 820px;
  margin: 17px 0 24px;
  color: rgba(255,248,239,0.78);
  line-height: 1.75;
}

.order-start-btn {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--coffee-roast);
  background: linear-gradient(135deg, #fff1df, var(--gold));
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

/* ===============================
   SCROLLBARS
================================ */

.customer-cart-body::-webkit-scrollbar,
.customer-order-modal-card::-webkit-scrollbar {
  width: 7px;
}

.customer-cart-body::-webkit-scrollbar-thumb,
.customer-order-modal-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--caramel);
}

.customer-cart-body::-webkit-scrollbar-track,
.customer-order-modal-card::-webkit-scrollbar-track {
  background: rgba(181, 139, 96, 0.1);
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 760px) {
  .customer-cart-toggle {
    right: 14px;
    bottom: 94px;
    min-height: 48px;
    padding: 0 14px;
  }

  .customer-order-modal {
    padding: 12px;
    align-items: center;
  }

  .customer-order-modal-card,
  .customer-order-modal-large {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 22px;
    border-radius: 22px;
  }

  .customer-qr-result {
    grid-template-columns: 1fr;
  }

  .customer-qr-code {
    min-height: 250px;
  }

  .customer-qr-meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .customer-qr-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .customer-qr-action-btn {
    width: 100%;
  }

  .order-start-section {
    width: calc(100% - 20px);
  }

  .order-start-card {
    border-radius: 26px;
  }
}

@media (max-width: 520px) {
  .customer-order-cart {
    width: 100%;
  }

  .customer-cart-header {
    padding: 22px 66px 20px 18px;
  }

  .customer-cart-header h2 {
    font-size: 31px;
  }

  .customer-cart-body,
  .customer-cart-footer {
    padding: 14px;
  }

  .customer-cart-item {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }

  .customer-cart-item-image-wrap {
    width: 62px;
    height: 62px;
  }

  .customer-cart-item-name {
    font-size: 17px;
  }

  .customer-cart-item-bottom {
    align-items: flex-end;
    flex-direction: column;
  }

  .customer-cart-quantity {
    align-self: stretch;
    grid-template-columns: 38px 1fr 38px;
  }

  .customer-cart-qty-btn {
    width: 38px;
  }

  .customer-cart-qty-input {
    width: 100%;
  }

  .customer-cart-actions {
    grid-template-columns: 1fr;
  }

  .customer-cart-clear-btn,
  .customer-cart-checkout-btn {
    width: 100%;
  }

  .customer-order-modal-card {
    padding: 20px 16px;
  }

  .customer-order-modal-card h2 {
    font-size: 30px;
  }

  .customer-qr-code {
    min-height: 220px;
    padding: 10px;
  }

  .customer-order-toast {
    bottom: 14px;
  }

  .customer-cart-toggle {
    right: 14px;
    bottom: 94px;
  }
}

@media (max-width: 380px) {
  .customer-cart-toggle-label {
    display: none;
  }

  .customer-cart-toggle {
    width: 52px;
    padding: 0;
    border-radius: 50%;
  }

  .customer-cart-count {
    position: absolute;
    top: -6px;
    right: -5px;
  }

  .customer-cart-item {
    grid-template-columns: 1fr;
  }

  .customer-cart-item-image-wrap {
    width: 100%;
    height: 150px;
  }

  .customer-cart-item-bottom {
    align-items: stretch;
  }

  .customer-cart-line-total {
    text-align: right;
  }
}

/* ===============================
   REDUCED MOTION
================================ */

@media (prefers-reduced-motion: reduce) {
  .customer-cart-toggle.is-updated {
    animation: none !important;
  }

  .customer-order-cart,
  .customer-cart-backdrop,
  .customer-order-modal,
  .customer-order-modal-card,
  .customer-order-toast,
  .customer-cart-toggle,
  .add-to-cart-btn {
    transition: none !important;
  }

  .customer-qr-spinner {
    animation-duration: 1.6s;
  }
}
/* =========================================================
   QR RESULT DISPLAY FIX
   File: cafe/style.css
   APPEND THIS TO THE VERY BOTTOM OF style.css
========================================================= */

.customer-qr-result-card {
  width: min(780px, 100%);
}

.customer-qr-result {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  grid-template-areas:
    "qr expiry"
    "qr details"
    "items items"
    "fallback fallback"
    "status status"
    "action action";
  gap: 18px 22px;
  align-items: start;
}

.customer-qr-code {
  grid-area: qr;
  width: 100%;
  min-height: 310px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(181, 139, 96, 0.28);
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(45, 26, 17, 0.12);
}

.customer-qr-code img,
.customer-qr-code canvas {
  display: block;
  width: min(260px, 100%) !important;
  height: auto !important;
  max-width: 100%;
}

.customer-qr-unavailable {
  width: 100%;
  min-height: 240px;
  padding: 24px;
  border: 1px dashed rgba(181, 139, 96, 0.38);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  background: #fffaf6;
  text-align: center;
}

.customer-qr-unavailable strong {
  color: var(--coffee-roast);
  font-family: var(--heading);
  font-size: 23px;
}

.customer-qr-expiry {
  grid-area: expiry;
  margin: 0;
  padding: 15px 17px;
  border-radius: 16px;
  color: var(--muted);
  background: #f6e4d2;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.customer-qr-expiry strong {
  display: block;
  margin-top: 5px;
  color: var(--order-danger, #c0392b);
  font-family: var(--heading);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.customer-qr-details {
  grid-area: details;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.customer-qr-details > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(181, 139, 96, 0.24);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
}

.customer-qr-details dt {
  color: var(--muted);
  font-family: var(--ui);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.customer-qr-details dd {
  margin: 5px 0 0;
  color: var(--coffee-roast);
  font-family: var(--heading);
  font-size: 19px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.customer-qr-order-items {
  grid-area: items;
  display: grid;
  gap: 9px;
  padding: 16px;
  border-radius: 18px;
  color: #fff8ef;
  background: linear-gradient(
    135deg,
    var(--coffee-dark),
    var(--coffee)
  );
}

.customer-qr-order-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.customer-qr-order-line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.customer-qr-order-line span {
  color: rgba(255, 248, 239, 0.84);
}

.customer-qr-order-line strong {
  color: var(--gold);
  white-space: nowrap;
}

.customer-qr-fallback {
  grid-area: fallback;
  padding: 13px 15px;
  border: 1px dashed rgba(181, 139, 96, 0.38);
  border-radius: 15px;
  color: var(--muted);
  background: #fffaf6;
}

.customer-qr-fallback summary {
  color: var(--coffee-roast);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.customer-qr-fallback p {
  margin: 10px 0 7px;
  line-height: 1.55;
}

.customer-qr-fallback code {
  display: block;
  padding: 10px;
  border-radius: 10px;
  color: var(--coffee-roast);
  background: #efe2d6;
  font-size: 11px;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.customer-qr-status-message {
  grid-area: status;
  margin: 0;
}

#startNewCustomerOrderBtn {
  grid-area: action;
  justify-self: end;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
}

@media (max-width: 720px) {
  .customer-qr-result {
    grid-template-columns: 1fr;
    grid-template-areas:
      "qr"
      "expiry"
      "details"
      "items"
      "fallback"
      "status"
      "action";
  }

  .customer-qr-details {
    grid-template-columns: 1fr;
  }

  .customer-qr-code {
    min-height: 270px;
  }

  #startNewCustomerOrderBtn {
    width: 100%;
    justify-self: stretch;
  }
}
/* =========================================================
   ORDER CART BUTTON FIX
   File: cafe/style.css
   APPEND THIS TO THE VERY BOTTOM OF style.css

   Matches the actual HTML used in cafe/index.php:
   - .customer-cart-item-controls
   - data-cart-action="decrease" / "increase"
   - data-cart-quantity
   - .customer-clear-cart-btn
========================================================= */

/* ===============================
   ITEM QUANTITY ROW
================================ */

.customer-cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.customer-cart-quantity {
  display: inline-grid;
  grid-template-columns: 38px 52px 38px;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid rgba(181, 139, 96, 0.25);
  border-radius: 15px;
  background: #f8eee5;
}

/* Minus and plus buttons */
.customer-cart-quantity > button,
.customer-cart-quantity button[data-cart-action="decrease"],
.customer-cart-quantity button[data-cart-action="increase"] {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--coffee-roast, #4b2d1f),
      var(--coffee, #6f422b)
    );
  box-shadow: 0 6px 14px rgba(45, 26, 17, 0.16);
  font-family: var(--ui);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.customer-cart-quantity > button:hover:not(:disabled),
.customer-cart-quantity button[data-cart-action="decrease"]:hover:not(:disabled),
.customer-cart-quantity button[data-cart-action="increase"]:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 9px 18px rgba(45, 26, 17, 0.2);
}

.customer-cart-quantity > button:active:not(:disabled) {
  transform: translateY(0);
}

.customer-cart-quantity > button:focus-visible {
  outline: 3px solid var(--gold, #d9ae7c);
  outline-offset: 2px;
}

.customer-cart-quantity > button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

/* Quantity input */
.customer-cart-quantity > input,
.customer-cart-quantity input[data-cart-quantity] {
  width: 52px;
  height: 38px;
  min-width: 0;
  padding: 0 5px;
  border: 1px solid rgba(181, 139, 96, 0.32);
  border-radius: 11px;
  color: var(--coffee-roast, #4b2d1f);
  background: #fff;
  text-align: center;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 900;
  line-height: 38px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.customer-cart-quantity > input:focus,
.customer-cart-quantity input[data-cart-quantity]:focus {
  outline: none;
  border-color: var(--caramel, #b58b60);
  box-shadow: 0 0 0 4px rgba(181, 139, 96, 0.15);
}

/* Hide browser number arrows */
.customer-cart-quantity input[type="number"]::-webkit-inner-spin-button,
.customer-cart-quantity input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

/* Line total beside the controls */
.customer-cart-item-controls > strong,
.customer-cart-item-controls [data-cart-line-total] {
  color: var(--coffee, #6f422b);
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

/* ===============================
   CART FOOTER BUTTONS
================================ */

.customer-cart-footer #openQrCheckoutBtn {
  width: 100%;
  min-height: 50px;
  margin: 0;
  border: 0;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #087347,
      #11a663
    );
  box-shadow: 0 11px 24px rgba(8, 115, 71, 0.2);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.customer-cart-footer #openQrCheckoutBtn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 15px 30px rgba(8, 115, 71, 0.24);
}

/* Actual Clear Order class used by index.php */
.customer-clear-cart-btn,
#clearCustomerCartBtn {
  width: 100%;
  min-height: 47px;
  margin-top: 10px;
  padding: 0 16px;
  border: 2px solid #9f2f24;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #c0392b, #9f2f24);
  box-shadow: 0 8px 18px rgba(159, 47, 36, 0.24);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.customer-clear-cart-btn:hover,
#clearCustomerCartBtn:hover {
  transform: translateY(-2px);
  color: #ffffff;
  background: linear-gradient(135deg, #9f2f24, #742018);
  border-color: #742018;
  box-shadow: 0 12px 24px rgba(116, 32, 24, 0.3);
}

.customer-clear-cart-btn:focus-visible,
#clearCustomerCartBtn:focus-visible,
.customer-cart-footer #openQrCheckoutBtn:focus-visible {
  outline: 3px solid var(--gold, #d9ae7c);
  outline-offset: 3px;
}

/* ===============================
   SMALL SCREENS
================================ */

@media (max-width: 520px) {
  .customer-cart-item-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-cart-quantity {
    width: 100%;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .customer-cart-quantity > button {
    width: 42px;
    height: 40px;
  }

  .customer-cart-quantity > input,
  .customer-cart-quantity input[data-cart-quantity] {
    width: 100%;
    height: 40px;
  }

  .customer-cart-item-controls > strong,
  .customer-cart-item-controls [data-cart-line-total] {
    text-align: right;
  }
}

/* ===============================
   REDUCED MOTION
================================ */

@media (prefers-reduced-motion: reduce) {
  .customer-cart-quantity > button,
  .customer-clear-cart-btn,
  #clearCustomerCartBtn,
  .customer-cart-footer #openQrCheckoutBtn {
    transition: none !important;
  }
}
/* =========================================================
   COMPLETED ORDER MODAL — PROFESSIONAL CLAIMING STATE
   File: cafe/style.css
========================================================= */

#startNewCustomerOrderBtn[hidden] {
  display: none !important;
}

.customer-qr-result-modal.is-order-completed
  .customer-qr-result-card {
  position: relative;
  width: min(540px, 100%);
  padding: clamp(26px, 5vw, 38px);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(
      circle at 50% -12%,
      rgba(10, 135, 84, 0.13),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      #fffdf9 0%,
      #f7fbf8 100%
    );
  border: 1px solid rgba(10, 135, 84, 0.22);
  box-shadow:
    0 28px 70px rgba(31, 18, 12, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.customer-qr-result-modal.is-order-completed
  .customer-qr-result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #0a8754 22%,
      #18a66b 78%,
      transparent
    );
}

.customer-qr-result-modal.is-order-completed
  .customer-order-modal-close {
  color: #4a3022;
  background: #f1e7dc;
  border: 1px solid rgba(181, 139, 96, 0.18);
}

.customer-qr-result-modal.is-order-completed
  .customer-checkout-progress {
  display: none !important;
}

.customer-qr-result-modal.is-order-completed
  .customer-order-modal-heading {
  position: relative;
  padding-top: 86px;
}

.customer-qr-result-modal.is-order-completed
  .customer-order-modal-heading::before {
  content: "✓";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 66px;
  height: 66px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #087347,
      #18a66b
    );
  box-shadow:
    0 16px 32px rgba(10, 135, 84, 0.24);
  font-family: var(--ui);
  font-size: 33px;
  font-weight: 900;
  transform: translateX(-50%);
}

.customer-qr-result-modal.is-order-completed
  .customer-order-modal-heading
  .section-kicker {
  width: fit-content;
  margin: 0 auto 13px;
  padding: 8px 13px;
  border: 1px solid rgba(10, 135, 84, 0.20);
  border-radius: 999px;
  color: #087347;
  background: rgba(231, 247, 239, 0.76);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.customer-qr-result-modal.is-order-completed
  #qrResultHeading {
  max-width: 440px;
  margin: 0 auto;
  color: var(--coffee-roast, #4b2d1f);
  font-size: clamp(34px, 6vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.customer-qr-result-modal.is-order-completed
  .customer-order-modal-heading
  > p:not(.section-kicker) {
  max-width: 410px;
  margin: 14px auto 0;
  color: #6f5a4c;
  font-size: 15px;
  line-height: 1.65;
}

.customer-qr-result-modal.is-order-completed
  .customer-qr-result {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "status"
    "action";
  gap: 14px;
  margin-top: 22px;
}

.customer-qr-result-modal.is-order-completed
  .customer-qr-status-message {
  grid-area: status;
  position: relative;
  margin: 0;
  padding: 18px 18px 18px 54px;
  color: #235c43;
  background: #edf9f3;
  border: 1px solid rgba(10, 135, 84, 0.20);
  border-radius: 18px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  text-align: left;
}

.customer-qr-result-modal.is-order-completed
  .customer-qr-status-message::before {
  content: "⌛";
  position: absolute;
  top: 50%;
  left: 18px;
  width: 25px;
  height: 25px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #087347;
  background: rgba(10, 135, 84, 0.10);
  font-size: 14px;
  transform: translateY(-50%);
}

.customer-qr-result-modal.is-order-completed
  #startNewCustomerOrderBtn {
  grid-area: action;
  justify-self: stretch;
  width: 100%;
  min-height: 50px;
  margin: 0;
  border: 1px solid rgba(90, 56, 37, 0.10);
  border-radius: 15px;
  color: #fff8ef;
  background:
    linear-gradient(
      135deg,
      var(--coffee-roast, #4b2d1f),
      var(--coffee, #5a3825)
    );
  box-shadow:
    0 12px 24px rgba(45, 26, 17, 0.18);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.customer-qr-result-modal.is-order-completed
  #startNewCustomerOrderBtn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 16px 30px rgba(45, 26, 17, 0.22);
}

@media (max-width: 520px) {
  .customer-qr-result-modal.is-order-completed
    .customer-qr-result-card {
    padding: 24px 16px 18px;
    border-radius: 24px;
  }

  .customer-qr-result-modal.is-order-completed
    .customer-order-modal-heading {
    padding-top: 78px;
  }

  .customer-qr-result-modal.is-order-completed
    .customer-order-modal-heading::before {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    font-size: 30px;
  }

  .customer-qr-result-modal.is-order-completed
    #qrResultHeading {
    font-size: 36px;
  }

  .customer-qr-result-modal.is-order-completed
    .customer-qr-status-message {
    padding: 16px 15px 16px 50px;
    font-size: 12.5px;
  }

  .customer-qr-result-modal.is-order-completed
    .customer-qr-status-message::before {
    left: 15px;
  }
}

/* =========================================================
   START ORDER BUTTON
========================================================= */

#startOrderBtn {
  margin-top: 22px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid #fff3df;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3a2117 !important;
  background:
    linear-gradient(
      135deg,
      #fff4df 0%,
      #e8bb78 55%,
      #d69a4e 100%
    ) !important;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  font-weight: 900;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

#startOrderBtn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

#startOrderBtn:active {
  transform: translateY(0);
}

#startOrderBtn:focus-visible {
  outline: 4px solid rgba(255, 244, 223, 0.85);
  outline-offset: 4px;
}

@media (max-width: 520px) {
  #startOrderBtn {
    width: 100%;
  }
}

/* =========================================================
   CUSTOMER QR ORDER CANCELLATION
   This file is complete: replace the whole existing style.css.
========================================================= */

.customer-qr-result > .customer-qr-actions {
  grid-area: action;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
}

.customer-qr-cancel-btn {
  min-height: 46px;
  padding: 0 20px;
  border: 2px solid #a83228;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #c53a2d, #8f271f);
  box-shadow: 0 10px 22px rgba(143, 39, 31, 0.24);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.customer-qr-cancel-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(143, 39, 31, 0.3);
}

.customer-qr-cancel-btn:focus-visible {
  outline: 3px solid var(--gold, #d9ae7c);
  outline-offset: 3px;
}

.customer-qr-cancel-btn:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.customer-qr-cancel-btn[hidden],
#startNewCustomerOrderBtn[hidden] {
  display: none !important;
}

.customer-qr-result > .customer-qr-actions
  #startNewCustomerOrderBtn {
  grid-area: auto;
  justify-self: auto;
  margin: 0;
}

.customer-qr-status-message.is-loaded {
  color: #72500c;
  background: #fff3cf;
  border-color: rgba(171, 119, 18, 0.25);
}

.customer-qr-status-message.is-cancelled {
  color: #8f271f;
  background: #fde9e6;
  border-color: rgba(168, 50, 40, 0.24);
}

.customer-qr-result-modal.is-order-cancelled
  .customer-qr-result-card,
.customer-qr-result-modal.is-order-expired
  .customer-qr-result-card {
  width: min(560px, 100%);
  text-align: center;
}

.customer-qr-result-modal.is-order-cancelled
  .customer-qr-result,
.customer-qr-result-modal.is-order-expired
  .customer-qr-result {
  grid-template-columns: 1fr;
  grid-template-areas:
    "status"
    "action";
  gap: 16px;
}

.customer-qr-result-modal.is-order-cancelled
  .customer-qr-status-message,
.customer-qr-result-modal.is-order-expired
  .customer-qr-status-message {
  margin: 0;
  padding: 16px;
  text-align: center;
}

.customer-qr-result-modal.is-order-completed
  .customer-qr-result > .customer-qr-actions,
.customer-qr-result-modal.is-order-cancelled
  .customer-qr-result > .customer-qr-actions,
.customer-qr-result-modal.is-order-expired
  .customer-qr-result > .customer-qr-actions {
  justify-content: stretch;
}

.customer-qr-result-modal.is-order-completed
  #startNewCustomerOrderBtn,
.customer-qr-result-modal.is-order-cancelled
  #startNewCustomerOrderBtn,
.customer-qr-result-modal.is-order-expired
  #startNewCustomerOrderBtn {
  width: 100%;
  min-height: 50px;
  justify-self: stretch;
}

@media (max-width: 720px) {
  .customer-qr-result > .customer-qr-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .customer-qr-cancel-btn,
  .customer-qr-result > .customer-qr-actions
    #startNewCustomerOrderBtn {
    width: 100%;
  }
}

/* =========================================================
   CUSTOM CANCEL CONFIRMATION MODAL
========================================================= */

.customer-cancel-confirm-modal {
  z-index: 10040;
  background: rgba(31, 18, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.customer-cancel-confirm-card {
  width: min(470px, 100%);
  padding: 32px;
  overflow: visible;
  text-align: center;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(197, 58, 45, 0.11), transparent 38%),
    linear-gradient(180deg, #fffdf9 0%, #f7eadf 100%);
  border: 1px solid rgba(168, 50, 40, 0.24);
  box-shadow: 0 28px 80px rgba(31, 18, 12, 0.42);
}

.customer-cancel-confirm-icon {
  width: 64px;
  height: 64px;
  margin: 2px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #d94c3d, #8f271f);
  box-shadow: 0 14px 30px rgba(143, 39, 31, 0.28);
  font-family: var(--ui);
  font-size: 30px;
  font-weight: 900;
}

.customer-cancel-confirm-copy .section-kicker {
  margin: 0 auto 10px;
  color: #8f271f;
  background: #fde9e6;
  border-color: rgba(168, 50, 40, 0.18);
}

.customer-cancel-confirm-copy h2 {
  margin: 0 42px 12px;
  color: var(--coffee-roast, #2d1a11);
  font-size: clamp(30px, 6vw, 40px);
}

.customer-cancel-confirm-copy > p:not(.section-kicker) {
  max-width: 380px;
  margin: 0 auto;
  color: var(--muted, #7b6655);
  font-size: 15px;
  line-height: 1.65;
}

.customer-cancel-confirm-message {
  min-height: 0;
  margin-top: 16px;
  border-radius: 13px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.customer-cancel-confirm-message:not(:empty) {
  padding: 11px 13px;
}

.customer-cancel-confirm-message.is-error {
  color: #8f271f;
  background: #fde9e6;
  border: 1px solid rgba(168, 50, 40, 0.22);
}

.customer-cancel-confirm-message.is-warning {
  color: #72500c;
  background: #fff3cf;
  border: 1px solid rgba(171, 119, 18, 0.24);
}

.customer-cancel-confirm-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

.customer-cancel-keep-btn,
.customer-cancel-confirm-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.customer-cancel-keep-btn {
  border: 1px solid rgba(181, 139, 96, 0.38);
  color: var(--coffee-roast, #2d1a11);
  background: #ffffff;
}

.customer-cancel-confirm-btn {
  border: 2px solid #9f2d24;
  color: #ffffff;
  background: linear-gradient(135deg, #ce4033, #8f271f);
  box-shadow: 0 10px 22px rgba(143, 39, 31, 0.24);
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.customer-cancel-confirm-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(143, 39, 31, 0.31);
}

.customer-cancel-confirm-btn:focus-visible,
.customer-cancel-keep-btn:focus-visible {
  outline: 3px solid var(--gold, #d9ae7c);
  outline-offset: 3px;
}

.customer-cancel-confirm-btn:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

@media (max-width: 520px) {
  .customer-cancel-confirm-card {
    padding: 28px 20px 22px;
    border-radius: 22px;
  }

  .customer-cancel-confirm-copy h2 {
    margin-right: 34px;
    margin-left: 34px;
  }

  .customer-cancel-confirm-actions {
    grid-template-columns: 1fr;
  }

  .customer-cancel-confirm-btn {
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-qr-cancel-btn,
  .customer-cancel-confirm-btn {
    transition: none !important;
  }
}

/* =========================================================
   PROFESSIONAL MENU SEARCH, AVAILABILITY FILTER & IMAGE FALLBACK
========================================================= */

.menu-page-header {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
}

.menu-heading-copy {
  min-width: 0;
}

.menu-filter-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(181, 139, 96, 0.24);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.menu-search-control {
  display: grid;
  gap: 7px;
}

.menu-control-label {
  color: var(--coffee);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.menu-search-input-wrap {
  position: relative;
  display: block;
}

.menu-search-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--caramel);
  font-family: var(--ui);
  font-size: 21px;
  font-weight: 800;
  pointer-events: none;
}

.menu-search-input-wrap input {
  width: 100%;
  min-height: 50px;
  padding: 0 44px 0 45px;
  border: 1px solid rgba(181, 139, 96, 0.3);
  border-radius: 16px;
  outline: 0;
  color: var(--text);
  background: #fff;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-search-input-wrap input::placeholder {
  color: #9a8676;
}

.menu-search-input-wrap input:focus {
  border-color: var(--caramel);
  box-shadow: 0 0 0 4px rgba(181, 139, 96, 0.14);
}

.menu-search-input-wrap input::-webkit-search-cancel-button {
  cursor: pointer;
}

.available-only-control {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(181, 139, 96, 0.23);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--coffee);
  background: rgba(246, 228, 210, 0.5);
  cursor: pointer;
  user-select: none;
}

.available-only-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.available-only-switch {
  position: relative;
  width: 44px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #cdb9aa;
  box-shadow: inset 0 1px 3px rgba(45, 26, 17, 0.2);
  transition: background 0.2s ease;
}

.available-only-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(45, 26, 17, 0.24);
  transition: transform 0.2s ease;
}

.available-only-control input:checked + .available-only-switch {
  background: var(--order-success);
}

.available-only-control input:checked + .available-only-switch::after {
  transform: translateX(19px);
}

.available-only-control input:focus-visible + .available-only-switch {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.available-only-control strong,
.available-only-control small {
  display: block;
  font-family: var(--ui);
}

.available-only-control strong {
  font-size: 12px;
  font-weight: 900;
}

.available-only-control small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.menu-filter-status-row {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-filter-status {
  margin: 0;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
}

.menu-clear-filters {
  padding: 5px 0;
  border: 0;
  color: var(--coffee);
  background: transparent;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.product-copy {
  --product-copy-lines: 3;
  min-height: 66px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--product-copy-lines);
  line-clamp: var(--product-copy-lines);
}

.product-menu-image.is-fallback-image,
.customer-cart-item-image.is-fallback-image,
#modalImage.is-fallback-image {
  object-fit: contain;
  background: #fff8ef;
}

.menu-card.not-matching,
.menu-card.unavailable-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .menu-page-header {
    grid-template-columns: 1fr;
  }

  .menu-filter-panel {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .menu-filter-panel {
    padding: 14px;
    border-radius: 19px;
  }

  .menu-search-input-wrap input {
    min-height: 48px;
    font-size: 12px;
  }

  .available-only-control {
    min-height: 54px;
  }

  .product-copy {
    --product-copy-lines: 2;
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .available-only-switch,
  .available-only-switch::after,
  .menu-search-input-wrap input {
    transition: none !important;
  }
}


/* =========================================================
   CUSTOMER CHECKOUT — THREE-STEP PROGRESS
   Cart → Customer Details → QR Confirmation
========================================================= */

.customer-checkout-progress {
  --checkout-step-muted: #b8a99d;
  --checkout-step-line: #ded0c4;
  --checkout-step-active: #5a3825;
  --checkout-step-complete: #0b8a59;
  flex: 0 0 auto;
  padding: 18px 22px 16px;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(181, 139, 96, 0.24);
}

.customer-checkout-progress ol {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.customer-checkout-step {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--checkout-step-muted);
  text-align: center;
}

.customer-checkout-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 3px;
  border-radius: 999px;
  background: var(--checkout-step-line);
}

.customer-checkout-step.is-complete:not(:last-child)::after {
  background: var(--checkout-step-complete);
}

.customer-checkout-step-number {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border: 2px solid var(--checkout-step-line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c6b5f;
  background: #fffdf8;
  box-shadow: 0 5px 12px rgba(45, 26, 17, 0.08);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.customer-checkout-step-label {
  max-width: 110px;
  color: inherit;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.customer-checkout-step.is-active {
  color: var(--checkout-step-active);
}

.customer-checkout-step.is-active .customer-checkout-step-number {
  color: #fff;
  border-color: var(--checkout-step-active);
  background: linear-gradient(135deg, var(--coffee-roast), var(--coffee));
  box-shadow: 0 7px 16px rgba(90, 56, 37, 0.24);
}

.customer-checkout-step.is-complete {
  color: var(--checkout-step-complete);
}

.customer-checkout-step.is-complete .customer-checkout-step-number {
  color: transparent;
  border-color: var(--checkout-step-complete);
  background: var(--checkout-step-complete);
}

.customer-checkout-step.is-complete .customer-checkout-step-number::before {
  content: "✓";
  position: absolute;
  color: #fff;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 900;
}

.customer-checkout-progress-modal {
  margin: 0 46px 22px 0;
  padding: 0 0 18px;
  background: transparent;
  border-bottom: 1px solid rgba(181, 139, 96, 0.24);
}

.customer-qr-result-modal.is-order-completed
  .customer-checkout-progress-modal {
  display: none;
}

@media (max-width: 520px) {
  .customer-checkout-progress {
    padding: 15px 12px 13px;
  }

  .customer-checkout-progress-modal {
    margin-right: 42px;
    padding-left: 0;
    padding-right: 0;
  }

  .customer-checkout-step {
    gap: 6px;
  }

  .customer-checkout-step:not(:last-child)::after {
    top: 13px;
    left: calc(50% + 17px);
    width: calc(100% - 34px);
    height: 2px;
  }

  .customer-checkout-step-number {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .customer-checkout-step.is-complete .customer-checkout-step-number::before {
    font-size: 13px;
  }

  .customer-checkout-step-label {
    max-width: 86px;
    font-size: 8px;
    letter-spacing: 0.015em;
  }
}


/* =========================================================
   MOBILE CATEGORY SELECTOR + SHORT MENU MODE
========================================================= */

.menu-category-mobile-control {
  display: none;
}

@media (max-width: 720px) {
  .menu-category-shell {
    top: 68px;
    width: calc(100% - 18px);
    margin-bottom: 20px;
    padding: 9px;
    border-radius: 18px;
  }

  .menu-category-track {
    display: none;
  }

  .menu-category-mobile-control {
    display: block;
  }

  .menu-category-mobile-control label {
    display: grid;
    gap: 7px;
  }

  .menu-category-mobile-label {
    padding-left: 4px;
    color: var(--muted);
    font-family: var(--ui);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .menu-category-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid rgba(181, 139, 96, 0.34);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--coffee-roast), var(--coffee));
    box-shadow: 0 8px 18px rgba(45, 26, 17, 0.18);
  }

  .menu-category-select-icon {
    position: absolute;
    left: 14px;
    z-index: 1;
    color: var(--gold);
    font-size: 14px;
    pointer-events: none;
  }

  #mobileMenuCategorySelect {
    width: 100%;
    min-height: 48px;
    padding: 0 42px 0 42px;
    border: 0;
    outline: 0;
    border-radius: 14px;
    color: #fffaf4;
    background: transparent;
    font-family: var(--ui);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    appearance: auto;
  }

  #mobileMenuCategorySelect:focus-visible {
    box-shadow: 0 0 0 3px rgba(217, 174, 124, 0.45);
  }

  #mobileMenuCategorySelect option {
    color: var(--coffee-roast);
    background: #fffaf4;
    font-weight: 700;
  }

  body.customer-mobile-category-mode .menu-section.mobile-category-hidden {
    display: none !important;
  }

  body.customer-mobile-category-mode .menu-section:not(.mobile-category-hidden) {
    margin-top: 0;
  }

  .menu-section {
    scroll-margin-top: 152px;
  }
}

@media (max-width: 390px) {
  #mobileMenuCategorySelect {
    font-size: 12px;
  }
}


/* =========================================================
   CUSTOMER PRODUCT ADD-ONS
   Integrated with POS add-on groups and QR ordering.
========================================================= */

.customer-addon-modal {
  z-index: 10035;
}

.customer-addon-modal-card {
  width: min(650px, 100%);
}

.customer-addon-options {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.customer-addon-group {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(181, 139, 96, 0.28);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.82);
}

.customer-addon-group legend {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-addon-group legend span {
  color: var(--coffee-roast);
  font-family: var(--heading);
  font-size: 21px;
  font-weight: 800;
}

.customer-addon-group legend small {
  color: var(--muted);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-addon-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.customer-addon-choice {
  position: relative;
  min-width: 0;
  min-height: 68px;
  padding: 11px;
  border: 1px solid rgba(181, 139, 96, 0.25);
  border-radius: 15px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: #fffaf6;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.customer-addon-choice:hover {
  transform: translateY(-1px);
  border-color: var(--caramel);
}

.customer-addon-choice:has(input:checked) {
  border-color: var(--order-success);
  background: var(--order-success-soft);
}

.customer-addon-choice:has(input:disabled:not(:checked)) {
  opacity: 0.48;
  cursor: not-allowed;
}

.customer-addon-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.customer-addon-choice-mark {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(181, 139, 96, 0.42);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: #fff;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 900;
}

.customer-addon-choice input[type="radio"] + .customer-addon-choice-mark {
  border-radius: 50%;
}

.customer-addon-choice input:checked + .customer-addon-choice-mark {
  color: #fff;
  border-color: var(--order-success);
  background: var(--order-success);
}

.customer-addon-choice input:focus-visible + .customer-addon-choice-mark {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.customer-addon-choice-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.customer-addon-choice-copy strong {
  color: var(--coffee-roast);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.customer-addon-choice-copy small {
  color: var(--muted);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 700;
}

.customer-addon-total-row {
  margin-top: 17px;
  padding: 15px 17px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #fff8ef;
  background: linear-gradient(135deg, var(--coffee-dark), var(--coffee));
}

.customer-addon-total-row span {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-addon-total-row strong {
  color: var(--gold);
  font-family: var(--heading);
  font-size: 25px;
}

.customer-addon-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 16px;
}

.customer-addon-actions .primary-btn,
.customer-addon-actions .secondary-btn {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.customer-cart-item-addons {
  display: grid;
  gap: 3px;
  margin-top: 7px;
}

.customer-cart-item-addons span {
  color: var(--order-success);
  font-family: var(--ui);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.4;
}

.customer-cart-customize {
  width: fit-content;
  margin-top: 10px;
  padding: 5px 0;
  border: 0;
  color: var(--coffee);
  background: transparent;
  font-family: var(--ui);
  font-size: 10.5px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.customer-checkout-line > span,
.customer-qr-order-line > span {
  display: grid;
  gap: 3px;
}

.customer-checkout-line > span b,
.customer-qr-order-line > span b {
  font-weight: 800;
}

.customer-checkout-line > span small,
.customer-qr-order-line > span small {
  color: rgba(255, 248, 239, 0.68);
  font-size: 10.5px;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .customer-addon-choice-list {
    grid-template-columns: 1fr;
  }

  .customer-addon-actions {
    grid-template-columns: 1fr;
  }

  .customer-addon-actions .primary-btn {
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-addon-choice {
    transition: none !important;
  }
}


/* =========================================================
   CUSTOMER ADD-ON VISUAL CUE — V2
========================================================= */

.product-addon-availability {
  width: fit-content;
  max-width: 100%;
  margin: -4px auto 15px;
  padding: 7px 11px;
  border: 1px solid rgba(10, 135, 84, 0.24);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #087347;
  background: #e7f7ef;
  font-family: var(--ui);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.product-addon-availability span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--order-success);
  font-size: 12px;
  line-height: 1;
}

.menu-card:hover .product-addon-availability {
  color: #fff8ef;
  border-color: rgba(255, 248, 239, 0.24);
  background: rgba(255, 255, 255, 0.10);
}

.customer-addon-actions {
  grid-template-columns: 1fr 1fr 1.35fr;
}

.customer-addon-clear-btn {
  color: var(--coffee);
  background: #f6e4d2;
  border: 1px solid rgba(181, 139, 96, 0.30) !important;
}

@media (max-width: 620px) {
  .customer-addon-actions {
    grid-template-columns: 1fr;
  }

  .customer-addon-actions .primary-btn {
    grid-row: 1;
  }
}


/* =========================================================
   CUSTOMER ADD-ON FLOW V3
   - Product cards add directly to cart.
   - Add-ons are edited only inside the order cart.
   - Add-on choices use accessible minus / plus controls.
========================================================= */

.product-addon-availability {
  display: none !important;
}

.customer-addon-actions {
  grid-template-columns: 1fr 1.35fr !important;
}

.customer-addon-choice-list {
  grid-template-columns: 1fr !important;
}

.customer-addon-choice {
  min-height: 82px;
  padding: 14px;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 16px;
  cursor: default !important;
}

.customer-addon-choice:hover {
  transform: none !important;
}

.customer-addon-choice.is-selected {
  border-color: var(--order-success);
  background: var(--order-success-soft);
  box-shadow: 0 8px 18px rgba(10, 135, 84, 0.08);
}

.customer-addon-choice.is-limit-blocked:not(.is-selected) {
  opacity: 0.56;
}

.customer-addon-choice > input[data-customer-addon-id] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.customer-addon-stepper {
  display: grid;
  grid-template-columns: 40px 42px 40px;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid rgba(181, 139, 96, 0.25);
  border-radius: 15px;
  background: #f8eee5;
}

.customer-addon-step-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--coffee-roast), var(--coffee));
  box-shadow: 0 6px 14px rgba(45, 26, 17, 0.16);
  font-family: var(--ui);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.customer-addon-step-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.customer-addon-step-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.customer-addon-step-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  box-shadow: none;
}

.customer-addon-count {
  width: 42px;
  height: 40px;
  border: 1px solid rgba(181, 139, 96, 0.30);
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--coffee-roast);
  background: #fff;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 900;
}

.customer-addon-choice.is-selected .customer-addon-count {
  color: #087347;
  border-color: rgba(10, 135, 84, 0.30);
  background: #fff;
}

@media (max-width: 520px) {
  .customer-addon-choice {
    grid-template-columns: 1fr !important;
  }

  .customer-addon-stepper {
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .customer-addon-step-btn {
    width: 44px;
  }

  .customer-addon-count {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-addon-step-btn {
    transition: none !important;
  }
}

/* =========================================================
   PRODUCT CARD VIEW SWITCH
   Card View | Compact View
========================================================= */

.menu-view-control {
  display: grid;
  gap: 7px;
}

.menu-view-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(181, 139, 96, 0.28);
  border-radius: 16px;
  background: rgba(246, 228, 210, 0.68);
}

.menu-view-btn {
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--coffee);
  background: transparent;
  font-family: var(--ui);
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.menu-view-btn:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.menu-view-btn.active,
.menu-view-btn[aria-pressed="true"] {
  color: #fffaf4;
  background: linear-gradient(135deg, var(--coffee-roast), var(--coffee));
  box-shadow: 0 7px 16px rgba(45, 26, 17, 0.2);
}

.menu-view-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.menu-view-icon {
  font-size: 15px;
  line-height: 1;
}

/* Compact layout: shorter horizontal product cards. */
.menu-compact-view .menu-section {
  margin-bottom: 48px;
}

.menu-compact-view .menu-section-header {
  margin-bottom: 18px;
}

.menu-compact-view .menu-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.menu-compact-view .menu-card {
  min-height: 174px;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: stretch;
  border-radius: 22px;
}

.menu-compact-view .menu-card:hover {
  transform: translateY(-4px);
}

.menu-compact-view .menu-image-btn {
  min-width: 0;
  height: 100%;
  min-height: 174px;
  aspect-ratio: auto;
  padding: 12px;
}

.menu-compact-view .menu-image-btn img {
  min-height: 100%;
  padding: 8px;
  border-radius: 16px;
}

.menu-compact-view .menu-card-body {
  min-width: 0;
  padding: 15px 15px 15px 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.menu-compact-view .product-status {
  margin-bottom: 7px;
  padding: 5px 8px;
  font-size: 8px;
}

.menu-compact-view .menu-card h3 {
  width: 100%;
  margin: 0 0 7px;
  font-size: 20px;
  line-height: 1.08;
}

.menu-compact-view .product-copy {
  --product-copy-lines: 2;
  width: 100%;
  min-height: 0;
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.42;
}

.menu-compact-view .product-buy-row {
  width: 100%;
  margin-top: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.menu-compact-view .product-buy-row strong {
  padding: 7px 9px;
  font-size: 10px;
  white-space: nowrap;
}

.menu-compact-view .buy-menu-btn,
.menu-compact-view .add-to-cart-btn {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  font-size: 9px;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .menu-compact-view .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .menu-view-switch {
    border-radius: 14px;
  }

  .menu-view-btn {
    min-height: 40px;
    padding: 7px 8px;
    border-radius: 10px;
    font-size: 9.5px;
  }

  .menu-compact-view .menu-section {
    margin-bottom: 36px;
  }

  .menu-compact-view .menu-section-header {
    margin-bottom: 14px;
  }

  .menu-compact-view .menu-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .menu-compact-view .menu-card {
    min-height: 154px;
    grid-template-columns: 108px minmax(0, 1fr);
    border-radius: 19px;
  }

  .menu-compact-view .menu-image-btn {
    min-height: 154px;
    padding: 9px;
  }

  .menu-compact-view .menu-image-btn img {
    padding: 6px;
    border-radius: 14px;
  }

  .menu-compact-view .menu-card-body {
    padding: 12px 11px 12px 0;
  }

  .menu-compact-view .product-status {
    margin-bottom: 6px;
    padding: 4px 7px;
    font-size: 7.5px;
  }

  .menu-compact-view .menu-card h3 {
    margin-bottom: 5px;
    font-size: 18px;
  }

  .menu-compact-view .product-copy {
    --product-copy-lines: 1;
    margin-bottom: 8px;
    font-size: 11px;
  }

  .menu-compact-view .product-buy-row {
    gap: 6px;
  }

  .menu-compact-view .product-buy-row strong {
    padding: 6px 8px;
    font-size: 9px;
  }

  .menu-compact-view .buy-menu-btn,
  .menu-compact-view .add-to-cart-btn {
    min-height: 32px;
    padding: 0 8px;
    font-size: 8.5px;
  }
}

@media (max-width: 390px) {
  .menu-compact-view .menu-card {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .menu-compact-view .menu-card h3 {
    font-size: 17px;
  }

  .menu-compact-view .product-copy {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-view-btn {
    transition: none !important;
  }
}


/* =========================================================
   CRAVINGS × AKOPI CAFE PROFESSIONAL DESIGN UPGRADE
   Safe CSS-only enhancement for htdocs/cafe/style.css
   Keeps all PHP and JavaScript behavior unchanged.
========================================================= */

:root {
  --cafe-page: #fff7ed;
  --cafe-page-soft: #f3e3d2;
  --cafe-surface: rgba(255, 253, 248, 0.94);
  --cafe-surface-solid: #fffdf8;
  --cafe-surface-warm: #fff4e7;
  --cafe-line: rgba(106, 63, 38, 0.16);
  --cafe-line-strong: rgba(181, 139, 96, 0.34);
  --cafe-ink: #24140d;
  --cafe-ink-soft: #604838;
  --cafe-muted: #7b6655;
  --cafe-accent: #d9ae7c;
  --cafe-accent-strong: #b98149;
  --cafe-success: #0a8754;
  --cafe-danger: #c0392b;
  --cafe-radius-xl: 34px;
  --cafe-radius-lg: 26px;
  --cafe-radius-md: 18px;
  --cafe-shadow-card: 0 18px 42px rgba(45, 26, 17, 0.12);
  --cafe-shadow-hover: 0 28px 70px rgba(31, 18, 12, 0.20);
  --cafe-shadow-soft: 0 10px 24px rgba(45, 26, 17, 0.09);
  --cafe-gradient-dark: linear-gradient(135deg, #1f120c 0%, #332016 46%, #5a3825 100%);
  --cafe-gradient-gold: linear-gradient(135deg, #fff6ea 0%, #e8c99d 48%, #d9ae7c 100%);
}

html {
  background: var(--cafe-page);
}

body {
  min-height: 100vh;
  color: var(--cafe-ink);
  background:
    radial-gradient(circle at 12% 3%, rgba(217, 174, 124, 0.34), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(90, 56, 37, 0.13), transparent 28%),
    radial-gradient(circle at 62% 96%, rgba(181, 139, 96, 0.17), transparent 34%),
    linear-gradient(135deg, #fffaf2 0%, #f4e6d7 44%, #fff8ef 100%);
}

body::before {
  opacity: 0.17;
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black 0%, black 74%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 74%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto -12% -38% -12%;
  z-index: -1;
  height: 56vh;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(217, 174, 124, 0.22), transparent 65%);
}

::selection {
  color: #fffaf4;
  background: rgba(90, 56, 37, 0.86);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
select {
  transition-property: background, border-color, box-shadow, color, opacity, transform, filter;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(217, 174, 124, 0.72);
  outline-offset: 3px;
}

/* ---------- Customer top navigation / legacy nav compatibility ---------- */
.cafe-nav {
  top: 16px;
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  padding: 10px 14px 10px 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% -50%, rgba(217, 174, 124, 0.25), transparent 36%),
    linear-gradient(105deg, rgba(31, 18, 12, 0.985), rgba(70, 42, 29, 0.965));
  border: 1px solid rgba(217, 174, 124, 0.24);
  box-shadow: 0 16px 42px rgba(31, 18, 12, 0.26), inset 0 1px 0 rgba(255,255,255,0.05);
}

.cafe-partnership-name {
  letter-spacing: -0.035em;
}

.nav-links a {
  border: 1px solid transparent;
  color: rgba(255, 248, 239, 0.76);
}

.nav-links a:hover {
  color: #fffaf4;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: #24140d;
  background: var(--cafe-gradient-gold);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,0.7);
}

/* ---------- Layout rhythm ---------- */
main,
.menu-first-main {
  padding-bottom: clamp(72px, 8vw, 116px);
}

.menu-first-main {
  padding-top: 116px;
}

.menu-scroll-anchor {
  scroll-margin-top: 140px;
}

/* ---------- Section labels and buttons ---------- */
.section-kicker,
.hero-kicker {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  border-color: rgba(181, 139, 96, 0.26);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.64);
  color: var(--cafe-accent-strong);
  letter-spacing: 0.11em;
}

.primary-btn,
.secondary-btn,
.buy-menu-btn,
.add-to-cart-btn,
.customer-generate-qr-btn,
.customer-submit-qr-btn,
.customer-qr-cancel-btn,
.customer-cancel-confirm-btn,
.customer-clear-cart-btn,
.menu-clear-filters,
.menu-view-btn {
  will-change: transform;
}

.primary-btn,
.customer-generate-qr-btn,
.customer-submit-qr-btn,
.customer-cart-checkout-btn,
.buy-menu-btn,
.add-to-cart-btn,
.customer-cancel-confirm-btn {
  border: 0;
  color: #fffaf4;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.10), transparent 34%),
    var(--cafe-gradient-dark);
  box-shadow: 0 14px 30px rgba(45, 26, 17, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

.primary-btn:hover,
.customer-generate-qr-btn:hover,
.customer-submit-qr-btn:hover,
.customer-cart-checkout-btn:hover,
.buy-menu-btn:hover,
.add-to-cart-btn:hover,
.customer-cancel-confirm-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 38px rgba(45, 26, 17, 0.23), inset 0 1px 0 rgba(255,255,255,0.10);
}

.secondary-btn,
.customer-clear-cart-btn,
.customer-cart-clear-btn,
.menu-clear-filters {
  border: 1px solid rgba(181, 139, 96, 0.28);
  color: var(--cafe-ink-soft);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.secondary-btn:hover,
.customer-clear-cart-btn:hover,
.customer-cart-clear-btn:hover,
.menu-clear-filters:hover {
  transform: translateY(-1px);
  color: var(--cafe-ink);
  background: #fffaf4;
  border-color: rgba(181, 139, 96, 0.42);
}

/* ---------- Start order hero card ---------- */
.order-start-section {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto 24px;
}

.order-start-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 310px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: 36px;
  border: 1px solid rgba(217, 174, 124, 0.26);
  color: #fff8ef;
  background:
    radial-gradient(circle at 14% 2%, rgba(217, 174, 124, 0.26), transparent 36%),
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.10), transparent 30%),
    var(--cafe-gradient-dark);
  box-shadow: var(--cafe-shadow-hover);
}

.order-start-card::before {
  opacity: 0.25;
  background-size: 44px 44px;
}

.order-start-card::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -130px;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(217, 174, 124, 0.22);
  background: radial-gradient(circle, rgba(217,174,124,0.17), transparent 62%);
}

.order-start-card .section-kicker,
.visit-card .section-kicker,
.customer-cart-header .section-kicker,
.customer-order-modal-heading .section-kicker,
.customer-cancel-confirm-copy .section-kicker {
  color: var(--cafe-accent);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(217, 174, 124, 0.22);
  box-shadow: none;
}

.order-start-card h2 {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 78px);
  letter-spacing: -0.065em;
}

.order-start-card p:not(.section-kicker) {
  max-width: 760px;
  color: rgba(255, 248, 239, 0.78);
}

.order-start-steps {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  counter-reset: none;
}

.order-start-steps li {
  min-width: 0;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(217, 174, 124, 0.26);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.order-start-steps span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3a2117;
  background: linear-gradient(135deg, #fff4df, #e8bb78);
  font-weight: 950;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.order-start-steps strong {
  min-width: 0;
  color: #fff8ef;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.order-start-steps small {
  min-width: 0;
  color: rgba(255, 248, 239, 0.72);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 880px) {
  .order-start-steps {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
}

@media (max-width: 520px) {
  .order-start-steps {
    margin-top: 22px;
    gap: 10px;
  }

  .order-start-steps li {
    padding: 14px;
    border-radius: 18px;
  }

  .order-start-steps span {
    width: 34px;
    height: 34px;
  }
}

/* ---------- Menu header and filter panel ---------- */
.menu-toolbar,
.menu-page-header {
  position: relative;
  overflow: hidden;
  width: min(1220px, calc(100% - 36px));
  margin-bottom: 20px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--cafe-radius-xl);
  border: 1px solid var(--cafe-line);
  background:
    radial-gradient(circle at 96% 0%, rgba(217, 174, 124, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,248,239,0.86));
  box-shadow: var(--cafe-shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.menu-toolbar::before,
.menu-category-shell::before,
.visit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.46), transparent 34%);
}

.menu-heading-copy,
.menu-filter-panel,
.menu-page-header > * {
  position: relative;
  z-index: 1;
}

.menu-page-header h1,
.menu-toolbar h2,
.menu-section-header h2,
.visit-card h2 {
  letter-spacing: -0.055em;
}

.menu-intro,
.menu-page-header .menu-intro {
  color: var(--cafe-muted);
}

.menu-filter-panel {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(181, 139, 96, 0.20);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.70);
}

.menu-control-label {
  color: var(--cafe-muted);
  letter-spacing: 0.08em;
}

.menu-search-input-wrap input,
.available-only-control,
.menu-view-switch {
  border: 1px solid rgba(181, 139, 96, 0.24);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

.menu-search-input-wrap input:focus {
  border-color: rgba(181, 139, 96, 0.52);
  box-shadow: 0 0 0 4px rgba(181, 139, 96, 0.13), inset 0 1px 0 rgba(255,255,255,0.92);
}

.available-only-control:hover,
.menu-view-switch:hover {
  border-color: rgba(181, 139, 96, 0.38);
}

.available-only-switch {
  background: #eadccc;
  box-shadow: inset 0 1px 4px rgba(45,26,17,0.15);
}

.available-only-control input:checked + .available-only-switch {
  background: var(--cafe-gradient-dark);
}

.menu-view-btn.active,
.menu-view-btn[aria-pressed="true"] {
  color: #24140d;
  background: var(--cafe-gradient-gold);
  box-shadow: 0 8px 16px rgba(45, 26, 17, 0.14), inset 0 1px 0 rgba(255,255,255,0.72);
}

.menu-filter-status-row {
  align-items: center;
}

.menu-filter-status {
  color: var(--cafe-muted);
}

/* ---------- Sticky category navigation ---------- */
.menu-category-shell {
  position: sticky;
  overflow: hidden;
  top: 78px;
  padding: 11px;
  border-radius: 24px;
  border: 1px solid rgba(181, 139, 96, 0.24);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 16px 34px rgba(45, 26, 17, 0.13);
}

.menu-category-track,
.menu-category-mobile-control {
  position: relative;
  z-index: 1;
}

.menu-category-link {
  min-height: 46px;
  border-radius: 16px;
  color: var(--cafe-ink-soft);
  border-color: transparent;
  background: rgba(255, 255, 255, 0.58);
}

.menu-category-link:hover {
  color: var(--cafe-ink);
  border-color: rgba(181, 139, 96, 0.20);
  background: rgba(255, 255, 255, 0.86);
}

.menu-category-link.active,
.menu-category-link[aria-current="page"] {
  color: #fffaf4;
  border-color: rgba(255,255,255,0.18);
  background: var(--cafe-gradient-dark);
  box-shadow: 0 10px 20px rgba(45, 26, 17, 0.18);
}

.menu-category-icon {
  background: rgba(181, 139, 96, 0.13);
}

.menu-category-link.active .menu-category-icon,
.menu-category-link[aria-current="page"] .menu-category-icon {
  color: #24140d;
  background: var(--cafe-accent);
}

.menu-category-select-wrap select {
  border-radius: 16px;
  border: 1px solid rgba(181, 139, 96, 0.30);
  background-color: rgba(255,255,255,0.92);
}

/* ---------- Menu sections and product cards ---------- */
.menu-section {
  margin-bottom: clamp(54px, 7vw, 84px);
}

.menu-section-header {
  margin-bottom: 26px;
}

.menu-section-header h2 {
  color: var(--cafe-ink);
}

.menu-grid {
  align-items: stretch;
  gap: 22px;
}

.menu-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 28px;
  border: 1px solid rgba(181, 139, 96, 0.20);
  background:
    radial-gradient(circle at top right, rgba(217, 174, 124, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,248,239,0.92));
  box-shadow: var(--cafe-shadow-soft);
}

.menu-card::before {
  background:
    radial-gradient(circle at 88% 3%, rgba(217, 174, 124, 0.24), transparent 35%),
    linear-gradient(135deg, rgba(31,18,12,0.985), rgba(90,56,37,0.96));
}

.menu-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, rgba(217,174,124,0.72), transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.menu-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--cafe-shadow-hover);
  border-color: rgba(217,174,124,0.50);
}

.menu-card:hover::after {
  opacity: 1;
}

.menu-image-btn {
  padding: 16px 16px 10px;
}

.menu-image-btn img,
.product-menu-image {
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 36%, rgba(217,174,124,0.20), transparent 44%),
    rgba(255,255,255,0.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86), 0 10px 22px rgba(45, 26, 17, 0.07);
}

.menu-card:hover .menu-image-btn img,
.menu-card:hover .product-menu-image {
  transform: translateY(-3px) scale(1.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 14px 28px rgba(31, 18, 12, 0.15);
}

.menu-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 4px 20px 20px;
}

.product-status {
  align-self: center;
  border: 1px solid rgba(181, 139, 96, 0.17);
  background: rgba(255, 244, 231, 0.92);
}

.product-status.unavailable-status {
  color: #8f251c;
  background: #fff0ee;
  border-color: rgba(192, 57, 43, 0.18);
}

.menu-card h3 {
  color: var(--cafe-ink);
  font-size: clamp(22px, 2.2vw, 27px);
  letter-spacing: -0.035em;
}

.product-copy {
  flex: 1 1 auto;
  color: var(--cafe-muted);
}

.product-buy-row {
  margin-top: auto;
  padding-top: 4px;
}

.product-buy-row strong,
.menu-card strong {
  border: 1px solid rgba(181, 139, 96, 0.18);
  background: #fff2e3;
}

.buy-menu-btn,
.add-to-cart-btn {
  min-height: 42px;
  padding: 0 16px;
}

.menu-card:hover .product-buy-row strong,
.menu-card:hover strong {
  color: var(--cafe-ink);
  background: #fffaf4;
}

.menu-card:hover .buy-menu-btn,
.menu-card:hover .add-to-cart-btn:not(:disabled) {
  color: var(--cafe-ink);
  background: var(--cafe-gradient-gold);
}

.menu-card.not-available {
  opacity: 0.78;
}

.menu-card.not-available:hover {
  transform: translateY(-2px);
}

/* Compact view polish */
.menu-compact-view .menu-card {
  border-radius: 22px;
}

.menu-compact-view .menu-card-body {
  text-align: left;
}

.menu-compact-view .product-status {
  align-self: flex-start;
}

/* ---------- Visit / update card ---------- */
.visit-card {
  isolation: isolate;
  border: 1px solid rgba(217, 174, 124, 0.24);
  background:
    radial-gradient(circle at 90% 8%, rgba(217,174,124,0.26), transparent 35%),
    var(--cafe-gradient-dark);
  box-shadow: var(--cafe-shadow-hover);
}

.visit-card::before {
  opacity: 0.8;
}

.visit-info span {
  border-color: rgba(217,174,124,0.20);
  background: rgba(255,255,255,0.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ---------- Image modal and utility buttons ---------- */
.image-modal {
  background: rgba(31,18,12,0.78);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
}

.image-modal img {
  border: 1px solid rgba(217,174,124,0.28);
  background: #fffdf8;
  box-shadow: 0 30px 90px rgba(0,0,0,0.34);
}

.image-modal-close,
.scroll-top-btn,
.customer-cart-toggle {
  box-shadow: 0 16px 34px rgba(45,26,17,0.22), inset 0 1px 0 rgba(255,255,255,0.10);
}

.scroll-top-btn {
  background: var(--cafe-gradient-dark);
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
}

.no-results {
  border: 1px dashed rgba(181, 139, 96, 0.42);
  background: rgba(255,255,255,0.80);
  box-shadow: var(--cafe-shadow-soft);
}

/* ---------- Cart drawer ---------- */
.customer-cart-toggle {
  border: 1px solid rgba(217,174,124,0.22);
  background:
    radial-gradient(circle at 20% 0%, rgba(217,174,124,0.22), transparent 38%),
    var(--cafe-gradient-dark);
}

.customer-cart-toggle:hover {
  transform: translateY(-3px);
}

.customer-cart-toggle-icon {
  color: var(--cafe-ink);
  background: var(--cafe-gradient-gold);
}

.customer-cart-count {
  border: 2px solid #fffaf4;
}

.customer-cart-backdrop,
.customer-order-modal {
  background: rgba(31, 18, 12, 0.66);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.customer-order-cart {
  width: min(490px, 100%);
  background:
    radial-gradient(circle at 100% 0%, rgba(217,174,124,0.23), transparent 34%),
    linear-gradient(180deg, #fffdf8 0%, #f7eadc 100%);
  border-left: 1px solid rgba(181, 139, 96, 0.28);
  box-shadow: -28px 0 80px rgba(31, 18, 12, 0.31);
}

.customer-cart-header {
  background:
    radial-gradient(circle at 88% 4%, rgba(217,174,124,0.32), transparent 35%),
    var(--cafe-gradient-dark);
}

.customer-cart-header h2 {
  letter-spacing: -0.05em;
}

.customer-checkout-progress {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(181, 139, 96, 0.20);
  background: rgba(255, 253, 248, 0.86);
}

.customer-checkout-step-number {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.customer-checkout-step.is-active .customer-checkout-step-number,
.customer-checkout-step.is-complete .customer-checkout-step-number {
  color: #fffaf4;
  background: var(--cafe-gradient-dark);
}

.customer-cart-body {
  padding: 20px;
}

.customer-cart-empty,
.customer-cart-item,
.customer-checkout-summary,
.customer-qr-items-card,
.customer-qr-details,
.customer-qr-fallback,
.customer-service-type-card span,
.customer-addon-choice {
  border-color: rgba(181, 139, 96, 0.22);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--cafe-shadow-soft);
}

.customer-cart-item {
  border-radius: 22px;
}

.customer-cart-item-image-wrap {
  background: #fff8ef;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86);
}

.customer-cart-item-name {
  letter-spacing: -0.03em;
}

.customer-cart-customize {
  color: var(--cafe-accent-strong);
}

.customer-cart-qty-btn,
.customer-addon-step-btn {
  background: var(--cafe-gradient-dark);
}

.customer-cart-qty-btn:hover,
.customer-addon-step-btn:hover {
  transform: translateY(-1px);
}

.customer-cart-footer {
  padding: 18px 20px 20px;
  background: rgba(255, 253, 248, 0.96);
}

.customer-cart-total-row strong,
.customer-checkout-total-row strong,
.customer-qr-order-line strong {
  color: var(--cafe-ink);
  letter-spacing: -0.035em;
}

.customer-cart-note,
.customer-payment-reminder {
  color: var(--cafe-muted);
}

/* ---------- Checkout / QR / cancel modals ---------- */
.customer-order-modal-card {
  border: 1px solid rgba(181, 139, 96, 0.26);
  background:
    radial-gradient(circle at 98% 0%, rgba(217,174,124,0.18), transparent 36%),
    linear-gradient(180deg, rgba(255,253,248,0.98), rgba(250,239,226,0.98));
  box-shadow: 0 30px 90px rgba(31, 18, 12, 0.34);
}

.customer-order-modal-card h2,
.customer-addon-modal-card h2,
.customer-qr-result-card h2 {
  color: var(--cafe-ink);
  letter-spacing: -0.052em;
}

.customer-order-modal-copy,
.customer-order-form-note,
.customer-qr-status-message,
.customer-qr-fallback p {
  color: var(--cafe-muted);
}

.customer-order-modal-close,
.customer-cart-close {
  border-color: rgba(217,174,124,0.24);
}

.customer-order-modal-close:hover,
.customer-cart-close:hover {
  transform: rotate(4deg) scale(1.04);
}

.customer-order-field input,
.customer-order-field select,
.customer-order-field textarea {
  border: 1px solid rgba(181, 139, 96, 0.28);
  background: rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}

.customer-order-field input:focus,
.customer-order-field select:focus,
.customer-order-field textarea:focus {
  border-color: rgba(181, 139, 96, 0.56);
  box-shadow: 0 0 0 4px rgba(181, 139, 96, 0.13), inset 0 1px 0 rgba(255,255,255,0.92);
}

.customer-order-form-message:not(:empty) {
  border-radius: 16px;
}

.customer-addon-group {
  border-color: rgba(181, 139, 96, 0.20);
  background: rgba(255, 253, 248, 0.66);
}

.customer-addon-choice:hover {
  border-color: rgba(181,139,96,0.34);
  background: #fffdf8;
}

.customer-addon-total-row {
  border-top-color: rgba(181, 139, 96, 0.22);
}

.customer-qr-result-card {
  max-width: min(1020px, calc(100vw - 28px));
}

.customer-qr-code {
  border: 1px solid rgba(181, 139, 96, 0.24);
  background:
    radial-gradient(circle at 50% 30%, rgba(217,174,124,0.16), transparent 46%),
    #fffdf8;
  box-shadow: var(--cafe-shadow-card);
}

.customer-qr-code img,
.customer-qr-code canvas {
  border-radius: 18px;
}

.customer-qr-expiry {
  border: 1px solid rgba(181, 139, 96, 0.22);
  background: rgba(255, 246, 234, 0.92);
}

.customer-qr-status-message {
  border: 1px solid rgba(181,139,96,0.20);
  background: rgba(255,255,255,0.72);
}

.customer-qr-status-message.is-expired,
.customer-order-form-message.is-error,
.customer-cancel-confirm-message.is-error {
  color: #9f2f24;
  background: #fff0ee;
  border-color: rgba(192, 57, 43, 0.22);
}

.customer-qr-action-btn,
.customer-qr-cancel-btn {
  border-radius: 16px;
}

.customer-cancel-confirm-icon {
  color: #fffaf4;
  background: linear-gradient(135deg, #a93226, #c0392b);
  box-shadow: 0 18px 32px rgba(192,57,43,0.24);
}

.customer-order-toast {
  border: 1px solid rgba(217,174,124,0.22);
  background: rgba(36,20,13,0.96);
  box-shadow: 0 18px 42px rgba(31,18,12,0.28);
}

.customer-order-toast.is-success {
  border-color: rgba(10,135,84,0.28);
}

.customer-order-toast.is-warning {
  border-color: rgba(179,123,0,0.32);
}

.customer-order-toast.is-error {
  border-color: rgba(192,57,43,0.34);
}

/* ---------- Better mobile spacing ---------- */
@media (max-width: 1180px) {
  .menu-grid {
    gap: 18px;
  }

  .menu-filter-panel {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .menu-first-main {
    padding-top: 104px;
  }

  .cafe-nav {
    top: 10px;
    border-radius: 20px;
  }

  .nav-links {
    top: 88px;
    border-radius: 22px;
  }

  .order-start-section,
  .menu-toolbar,
  .menu-page-header,
  .menu-category-shell,
  .menu-section,
  .visit-section {
    width: min(100% - 24px, 1220px);
  }

  .order-start-card,
  .menu-toolbar,
  .menu-page-header,
  .visit-card {
    border-radius: 28px;
  }

  .menu-category-shell {
    top: 70px;
  }
}

@media (max-width: 720px) {
  .menu-first-main {
    padding-top: 92px;
  }

  .order-start-card {
    min-height: auto;
    padding: 28px 22px;
  }

  .order-start-card h2,
  .menu-page-header h1 {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 0.98;
  }

  .menu-filter-panel {
    padding: 14px;
    border-radius: 20px;
  }

  .menu-category-shell {
    top: 68px;
    padding: 9px;
  }

  .menu-grid {
    gap: 14px;
  }

  .menu-card {
    border-radius: 24px;
  }

  .menu-image-btn {
    padding: 12px 12px 6px;
  }

  .menu-card-body {
    padding: 4px 15px 16px;
  }

  .product-buy-row {
    gap: 9px;
  }

  .customer-order-cart {
    width: min(430px, 100%);
  }

  .customer-cart-body {
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .order-start-section,
  .menu-toolbar,
  .menu-page-header,
  .menu-category-shell,
  .menu-section,
  .visit-section {
    width: calc(100% - 18px);
  }

  .menu-toolbar,
  .menu-page-header {
    padding: 20px;
  }

  .section-kicker,
  .hero-kicker {
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
  }

  .menu-card h3 {
    font-size: 21px;
  }

  .product-copy {
    font-size: 13.5px;
  }

  .product-buy-row strong,
  .buy-menu-btn,
  .add-to-cart-btn {
    width: 100%;
    justify-content: center;
  }

  .customer-cart-toggle {
    right: 14px;
    bottom: 14px;
  }

  .customer-order-modal {
    padding: 12px;
  }

  .customer-order-modal-card {
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .menu-card,
  .menu-image-btn img,
  .product-menu-image,
  .primary-btn,
  .secondary-btn,
  .buy-menu-btn,
  .add-to-cart-btn,
  .customer-cart-toggle,
  .scroll-top-btn {
    transition: none !important;
  }
}

/* =========================================================
   CAFE TOP GAP FIX
   Reduces the empty space between the fixed customer navbar
   and the first QR ordering card.
========================================================= */
.menu-first-main {
  padding-top: clamp(22px, 2.4vw, 34px) !important;
}

.order-start-section {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  .menu-first-main {
    padding-top: 20px !important;
  }
}

@media (max-width: 620px) {
  .menu-first-main {
    padding-top: 16px !important;
  }
}

/* =========================================================
   Checkout summary readability
   The summary card is light in the refreshed cafe theme, so its
   product names and prices need dark, high-contrast colors.
========================================================= */
.customer-checkout-summary {
  color: var(--cafe-ink, var(--coffee-roast));
}

.customer-checkout-line {
  border-bottom-color: rgba(90, 56, 37, 0.16);
}

.customer-checkout-fee-row {
  border-top-color: rgba(90, 56, 37, 0.16);
  color: var(--cafe-muted, var(--muted));
}

.customer-checkout-line > span,
.customer-checkout-line span {
  color: var(--cafe-ink, var(--coffee-roast));
}

.customer-checkout-line > span b {
  color: var(--cafe-ink, var(--coffee-roast));
  font-weight: 900;
}

.customer-checkout-line > span small {
  color: var(--cafe-muted, var(--muted));
}

.customer-checkout-line strong {
  color: var(--coffee, #5a3825);
  font-weight: 900;
}

.customer-checkout-fee-row strong {
  color: var(--coffee, #5a3825);
  font-weight: 900;
}

.customer-checkout-total-row {
  border-top: 1px solid rgba(90, 56, 37, 0.16);
}

.customer-checkout-total-row span {
  color: var(--cafe-muted, var(--muted));
  font-weight: 900;
}

.customer-checkout-total-row strong,
#customerCheckoutTotal {
  color: var(--coffee-roast, #2d1a11);
  font-weight: 900;
}

/* =========================================================
   Mobile ordering polish
   Keeps the cafe frontend feeling like a phone-first order app.
========================================================= */
@media (max-width: 720px) {
  body {
    padding-bottom: 92px;
  }

  body.customer-cart-open,
  body.customer-modal-open {
    padding-bottom: 0;
  }

  .menu-category-shell {
    top: 78px !important;
    width: calc(100% - 18px) !important;
    margin-bottom: 18px;
    padding: 8px;
    border-radius: 20px;
  }

  .menu-category-mobile-control {
    display: none !important;
  }

  .menu-category-track {
    display: flex !important;
    gap: 8px;
    padding: 2px;
    scroll-snap-type: x proximity;
  }

  .menu-category-link {
    min-height: 48px;
    padding: 9px 13px;
    scroll-snap-align: center;
    touch-action: manipulation;
  }

  .menu-category-icon {
    width: 26px;
    height: 26px;
  }

  .customer-cart-toggle {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    min-height: 64px;
    padding: 0 18px;
    justify-content: space-between;
    border-radius: 22px;
    font-size: 13px;
  }

  .customer-cart-toggle-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .customer-cart-count {
    min-width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .customer-order-cart {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(88dvh, 760px);
    border-radius: 28px 28px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(181, 139, 96, 0.28);
    box-shadow: 0 -24px 60px rgba(31, 18, 12, 0.32);
    transform: translateY(104%);
  }

  .customer-order-cart.show {
    transform: translateY(0);
  }

  .customer-cart-header {
    padding: 22px 68px 18px 20px;
  }

  .customer-cart-header h2 {
    font-size: 31px;
  }

  .customer-cart-body {
    padding: 16px;
  }

  .customer-cart-footer {
    padding: 16px 16px max(18px, env(safe-area-inset-bottom));
  }

  .customer-cart-footer #openQrCheckoutBtn,
  .customer-generate-qr-btn,
  .customer-submit-qr-btn,
  .customer-clear-cart-btn,
  #clearCustomerCartBtn,
  .customer-qr-action-btn,
  .customer-qr-cancel-btn,
  .customer-qr-result > .customer-qr-actions #startNewCustomerOrderBtn {
    min-height: 56px;
    border-radius: 18px;
    font-size: 13px;
  }

  .customer-cart-quantity {
    grid-template-columns: 42px 54px 42px;
  }

  .customer-cart-qty-btn,
  .customer-cart-qty-input {
    height: 42px;
    border-radius: 14px;
  }

  .customer-cart-qty-btn {
    width: 42px;
    font-size: 20px;
  }

  .customer-cart-qty-input {
    width: 54px;
    font-size: 15px;
  }

  .customer-order-modal {
    align-items: flex-end;
    padding: 0;
  }

  .customer-order-modal-card {
    width: 100%;
    max-height: 92dvh;
    padding: 24px 18px max(22px, env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0 !important;
  }

  .customer-order-modal-card h2,
  .customer-addon-modal-card h2,
  .customer-qr-result-card h2 {
    font-size: clamp(27px, 8.5vw, 36px);
  }

  .customer-order-field input,
  .customer-order-field select,
  .customer-order-field textarea {
    min-height: 54px;
    font-size: 16px;
  }

  .customer-service-type-options {
    grid-template-columns: 1fr;
  }

  .customer-qr-result-card {
    max-width: 100%;
  }

  .customer-qr-result > .customer-qr-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .customer-qr-download-btn {
    order: -1;
  }
}

@media (max-width: 420px) {
  .customer-cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 12px;
  }

  .customer-cart-item-image-wrap {
    width: 64px;
    height: 64px;
  }

  .customer-cart-item-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-cart-line-total {
    text-align: right;
  }
}

/* =========================================================
   CART DRAWER SCROLL FIX
   The cart markup has no .customer-cart-body wrapper, so make
   the real item list the scrollable area and keep actions visible.
========================================================= */
.customer-order-cart {
  overflow: hidden;
}

.customer-order-cart > [hidden] {
  display: none !important;
}

.customer-order-cart > .customer-cart-header,
.customer-order-cart > .customer-checkout-progress,
.customer-order-cart > .customer-cart-footer {
  flex: 0 0 auto;
}

.customer-order-cart > .customer-cart-items {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.customer-order-cart > .customer-cart-empty {
  flex: 1 1 auto;
  min-height: 0;
  margin: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.customer-order-cart > .customer-cart-items:empty {
  display: none;
  padding: 0;
}

.customer-order-cart > .customer-cart-items::-webkit-scrollbar,
.customer-order-cart > .customer-cart-empty::-webkit-scrollbar {
  width: 8px;
}

.customer-order-cart > .customer-cart-items::-webkit-scrollbar-thumb,
.customer-order-cart > .customer-cart-empty::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(181, 139, 96, 0.4);
}

@media (max-width: 720px) {
  .customer-order-cart > .customer-cart-items {
    padding: 16px;
  }

  .customer-order-cart > .customer-cart-empty {
    margin: 16px;
  }
}

/* Keep mobile notices above the fixed cart button and phone safe area. */
@media (max-width: 720px) {
  .customer-order-toast {
    bottom: 104px;
    bottom: calc(86px + max(14px, env(safe-area-inset-bottom)));
    width: min(420px, calc(100% - 28px));
  }

  body.customer-cart-open .customer-order-toast,
  body.customer-modal-open .customer-order-toast {
    bottom: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
  }
}

/* =========================================================
   CAFE RESPONSIVE POLISH
   Final layer for a cleaner desktop menu and phone-ready order UI.
========================================================= */
:root {
  --cafe-content-max: 1180px;
  --cafe-gutter: 24px;
  --cafe-card-radius: 20px;
  --cafe-control-radius: 14px;
  --cafe-border-clean: rgba(98, 69, 49, 0.14);
  --cafe-shadow-clean: 0 16px 38px rgba(35, 23, 16, 0.10);
  --cafe-shadow-lift: 0 22px 54px rgba(35, 23, 16, 0.16);
}

#menu,
#menu *,
.customer-cart-toggle,
.customer-cart-toggle *,
.customer-order-cart,
.customer-order-cart *,
.customer-order-modal,
.customer-order-modal *,
.customer-order-toast {
  letter-spacing: 0 !important;
}

body::after,
.order-start-card::after {
  display: none !important;
}

.menu-first-main {
  padding-top: 28px !important;
}

.order-start-section,
.menu-toolbar,
.menu-page-header,
.menu-category-shell,
.menu-section,
.visit-section {
  width: min(var(--cafe-content-max), calc(100% - 48px)) !important;
}

.order-start-card {
  min-height: 0;
  padding: 36px;
  border-radius: 24px;
  box-shadow: var(--cafe-shadow-clean);
}

.order-start-card h1,
.order-start-card h2 {
  max-width: 780px;
  margin: 0;
  font-size: 48px;
  line-height: 1.05;
}

.order-start-card p:not(.section-kicker) {
  font-size: 16px;
  line-height: 1.65;
}

.order-start-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  gap: 12px;
}

.order-start-steps li {
  min-height: 96px;
  border-radius: 16px;
}

.menu-toolbar,
.menu-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 24px;
  align-items: center;
  margin: 0 auto 18px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.menu-toolbar::before,
.menu-page-header::before {
  display: none;
}

.menu-heading-copy {
  padding: 8px 0;
}

.menu-toolbar h2,
.menu-page-header h1,
.menu-section-header h2,
.visit-card h2 {
  color: var(--cafe-ink, #24140d);
  font-size: 38px;
  line-height: 1.08;
}

.menu-intro,
.menu-page-header .menu-intro {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.65;
}

.menu-filter-panel {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--cafe-border-clean);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--cafe-shadow-clean);
}

.menu-search-input-wrap input,
.available-only-control,
.menu-view-switch {
  border-radius: var(--cafe-control-radius);
}

.menu-search-input-wrap input {
  min-height: 48px;
  font-size: 14px;
}

.menu-view-btn {
  min-height: 40px;
  font-size: 12px;
}

.menu-category-shell {
  top: 88px;
  z-index: 9300;
  margin: 0 auto 26px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--cafe-border-clean);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 26px rgba(35, 23, 16, 0.10);
}

.menu-category-shell::before {
  display: none;
}

.menu-category-track {
  gap: 8px;
  padding: 0;
}

.menu-category-link {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 13px;
  font-size: 12px;
}

.menu-section {
  margin-bottom: 54px;
  scroll-margin-top: 154px;
}

.menu-section-header {
  margin-bottom: 18px;
  text-align: left;
}

.menu-section-header .section-kicker {
  margin-left: 0;
  margin-right: 0;
}

.menu-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.menu-card {
  min-width: 0;
  border-radius: var(--cafe-card-radius);
  border: 1px solid var(--cafe-border-clean);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 24px rgba(35, 23, 16, 0.08);
}

.menu-card::before,
.menu-card::after {
  display: none;
}

.menu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(181, 139, 96, 0.32);
  background: #fffdf8;
  box-shadow: var(--cafe-shadow-lift);
}

.menu-image-btn {
  aspect-ratio: 1 / 0.76;
  padding: 14px 14px 8px;
}

.menu-image-btn img,
.product-menu-image {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  padding: 9px;
  object-fit: contain;
  object-position: center;
}

.menu-card:hover .menu-image-btn img,
.menu-card:hover .product-menu-image {
  transform: translateY(-2px) scale(1.02);
}

.menu-card-body {
  padding: 4px 16px 16px;
  text-align: left;
}

.product-status {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 5px 9px;
  font-size: 10px;
}

.menu-card h3 {
  margin-bottom: 8px;
  color: var(--cafe-ink, #24140d) !important;
  font-size: 22px;
  line-height: 1.14;
}

.product-copy {
  --product-copy-lines: 2;
  min-height: 42px;
  margin-bottom: 14px;
  color: var(--cafe-muted, #7b6655) !important;
  font-size: 13px;
  line-height: 1.45;
}

.product-buy-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 0;
}

.product-buy-row strong,
.menu-card strong {
  width: auto;
  min-height: 36px;
  padding: 8px 11px;
  align-items: center;
  justify-content: center;
  color: var(--cafe-ink, #24140d) !important;
  background: #fff2e3;
  font-size: 12px;
  white-space: nowrap;
}

.buy-menu-btn,
.add-to-cart-btn,
.unavailable-btn {
  min-width: 0;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.menu-card:hover .buy-menu-btn,
.menu-card:hover .add-to-cart-btn:not(:disabled) {
  color: #fffaf4;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.10), transparent 34%),
    var(--cafe-gradient-dark);
}

.menu-compact-view .menu-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.menu-compact-view .menu-card {
  min-height: 156px;
  grid-template-columns: 118px minmax(0, 1fr);
}

.menu-compact-view .menu-image-btn {
  height: 156px;
  min-height: 0;
  align-self: start;
  aspect-ratio: auto;
}

.customer-cart-toggle {
  right: 22px;
  bottom: 24px;
  min-height: 56px;
  border-radius: 18px;
}

.customer-order-cart {
  width: min(460px, 100%);
}

.customer-cart-item {
  border-radius: 16px;
}

.customer-order-modal {
  padding: 24px;
  overflow-y: auto;
}

.customer-order-modal-card {
  width: min(560px, 100%);
  max-height: calc(100dvh - 48px);
  border-radius: 22px;
}

.customer-addon-modal-card {
  width: min(680px, 100%);
}

.customer-qr-result-card {
  width: min(820px, 100%);
}

.customer-order-modal-card h2,
.customer-addon-modal-card h2,
.customer-qr-result-card h2 {
  font-size: 34px;
  line-height: 1.08;
}

@media (max-width: 1100px) {
  .menu-toolbar,
  .menu-page-header {
    grid-template-columns: 1fr;
  }

  .menu-filter-panel {
    max-width: 720px;
  }

  .order-start-steps {
    grid-template-columns: 1fr;
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  :root {
    --cafe-gutter: 10px;
  }

  body {
    padding-bottom: 88px;
  }

  .menu-first-main {
    padding-top: 14px !important;
  }

  .order-start-section,
  .menu-toolbar,
  .menu-page-header,
  .menu-category-shell,
  .menu-section,
  .visit-section {
    width: calc(100% - 18px) !important;
  }

  .order-start-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .order-start-card h1,
  .order-start-card h2 {
    font-size: 30px;
    line-height: 1.12;
  }

  .order-start-card p:not(.section-kicker) {
    font-size: 14px;
  }

  .order-start-steps {
    margin-top: 18px;
  }

  .order-start-steps li {
    min-height: 0;
    padding: 12px;
    border-radius: 14px;
  }

  .menu-toolbar,
  .menu-page-header {
    gap: 14px;
    margin-bottom: 14px;
  }

  .menu-toolbar h2,
  .menu-page-header h1,
  .menu-section-header h2,
  .visit-card h2 {
    font-size: 28px;
    line-height: 1.12;
  }

  .menu-filter-panel {
    padding: 12px;
    border-radius: 16px;
  }

  .menu-view-switch {
    grid-template-columns: 1fr 1fr;
  }

  .menu-view-btn {
    min-height: 42px;
    font-size: 11px;
  }

  .menu-category-shell {
    top: 74px !important;
    margin-bottom: 14px;
    border-radius: 16px;
  }

  .menu-category-track {
    gap: 7px;
  }

  .menu-category-link {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .menu-section {
    margin-bottom: 34px;
    scroll-margin-top: 138px;
  }

  .menu-section-header {
    margin-bottom: 12px;
  }

  .menu-grid,
  .menu-compact-view .menu-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .menu-card,
  .menu-compact-view .menu-card {
    min-height: 136px;
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    align-items: stretch;
    border-radius: 16px;
  }

  .menu-image-btn,
  .menu-compact-view .menu-image-btn {
    height: 136px;
    min-height: 0;
    align-self: start;
    aspect-ratio: auto;
    padding: 9px;
    overflow: hidden;
  }

  .menu-image-btn img,
  .product-menu-image,
  .menu-compact-view .menu-image-btn img {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 5px;
    border-radius: 12px;
  }

  .menu-card-body,
  .menu-compact-view .menu-card-body {
    min-width: 0;
    padding: 12px 11px 11px 0;
    text-align: left;
  }

  .product-status,
  .menu-compact-view .product-status {
    margin-bottom: 5px;
    padding: 4px 7px;
    font-size: 8px;
  }

  .menu-card h3,
  .menu-compact-view .menu-card h3 {
    margin-bottom: 4px;
    font-size: 19px;
    line-height: 1.15;
  }

  .product-copy,
  .menu-compact-view .product-copy {
    --product-copy-lines: 2;
    min-height: 36px;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.45;
  }

  .product-buy-row,
  .menu-compact-view .product-buy-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
  }

  .product-buy-row strong,
  .menu-card strong,
  .menu-compact-view .product-buy-row strong {
    width: auto !important;
    min-height: 32px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .buy-menu-btn,
  .add-to-cart-btn,
  .unavailable-btn,
  .menu-compact-view .buy-menu-btn,
  .menu-compact-view .add-to-cart-btn {
    width: 100%;
    min-height: 36px;
    padding: 0 9px;
    font-size: 10px;
  }

  .customer-cart-toggle {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 62px;
    border-radius: 18px;
  }

  .customer-order-cart {
    width: 100%;
    height: min(90dvh, 780px);
    border-radius: 22px 22px 0 0;
  }

  .customer-cart-header {
    padding: 18px 62px 14px 16px;
  }

  .customer-cart-header h2 {
    font-size: 26px;
  }

  .customer-checkout-progress {
    padding: 12px 10px 10px;
  }

  .customer-cart-footer {
    padding: 14px 14px max(16px, env(safe-area-inset-bottom));
  }

  .customer-order-modal {
    align-items: flex-end;
    padding: 0;
  }

  .customer-order-modal-card,
  .customer-addon-modal-card,
  .customer-qr-result-card {
    width: 100%;
    max-height: 92dvh;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0 !important;
  }

  .customer-order-modal-card h2,
  .customer-addon-modal-card h2,
  .customer-qr-result-card h2 {
    font-size: 28px;
  }

  .customer-addon-choice-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .menu-card,
  .menu-compact-view .menu-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .menu-image-btn,
  .menu-compact-view .menu-image-btn {
    height: 126px;
    min-height: 0;
  }

  .menu-card h3,
  .menu-compact-view .menu-card h3 {
    font-size: 17px;
  }

  .product-copy,
  .menu-compact-view .product-copy {
    --product-copy-lines: 1;
    min-height: 18px;
  }

  .product-buy-row,
  .menu-compact-view .product-buy-row {
    gap: 6px;
  }

  .buy-menu-btn,
  .add-to-cart-btn,
  .unavailable-btn {
    font-size: 9px;
  }
}

@media (hover: none) {
  .menu-card:hover,
  .menu-card.not-available:hover {
    transform: none;
    box-shadow: 0 10px 24px rgba(35, 23, 16, 0.08);
  }

  .menu-card:hover .menu-image-btn img,
  .menu-card:hover .product-menu-image {
    transform: none;
  }
}

.customer-qr-result-card .customer-order-modal-heading a {
  color: var(--coffee);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.customer-qr-result-card .customer-order-modal-heading a:hover,
.customer-qr-result-card .customer-order-modal-heading a:focus-visible {
  color: var(--coffee-roast);
}

/* QR confirmation desktop layout polish */
.customer-qr-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-qr-details dd {
  overflow-wrap: break-word;
  word-break: normal;
}

#customerQrDeliveryDetailRow {
  grid-column: span 2;
}

#customerQrDeliveryDetails {
  display: grid;
  gap: 5px;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}

#customerQrDeliveryDetails strong {
  color: var(--coffee-roast);
  font-family: var(--heading);
  font-size: 20px;
  line-height: 1.15;
}

#customerQrDeliveryDetails span {
  color: var(--muted);
}

#customerQrDeliveryDetails .customer-qr-delivery-fee {
  color: var(--coffee-roast);
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 900;
}

.customer-qr-order-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
}

.customer-qr-order-line strong {
  color: #ffe1a8;
  font-family: var(--ui);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  min-width: 76px;
  text-align: right;
}

.customer-qr-order-items .customer-qr-order-line > span b {
  color: #fff8ef;
}

.customer-qr-order-items .customer-qr-order-line > span small {
  color: rgba(255, 248, 239, 0.72);
}

@media (max-width: 720px) {
  .customer-qr-details {
    grid-template-columns: 1fr;
  }

  #customerQrDeliveryDetailRow {
    grid-column: auto;
  }
}

/* =========================================================
   UI/UX Pro Max cafe polish: faster scanning, larger taps.
========================================================= */
:root {
  --cafe-fresh: #1f7a5a;
  --cafe-fresh-soft: #edf8f2;
  --cafe-berry: #94324f;
  --cafe-berry-soft: #fff0f4;
  --cafe-focus-ring: rgba(31, 122, 90, 0.34);
  --cafe-touch-size: 44px;
}

.order-start-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.order-start-card > div {
  min-width: 0;
}

.order-start-card .primary-btn {
  min-height: 50px;
  white-space: nowrap;
}

.menu-filter-panel {
  gap: 13px;
}

.menu-search-input-wrap {
  position: relative;
}

.menu-view-icon,
.menu-category-select-icon,
.customer-cart-toggle-icon,
.customer-cart-empty > span {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  font-size: 0 !important;
  line-height: 0;
}

.menu-search-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  display: block;
  width: 18px;
  height: 18px;
  color: var(--cafe-fresh);
  font-size: 0 !important;
  line-height: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.menu-search-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.menu-search-icon::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.menu-view-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.menu-view-btn[data-menu-view="card"] .menu-view-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
  box-shadow:
    8px 0 0 currentColor,
    0 8px 0 currentColor,
    8px 8px 0 currentColor;
}

.menu-view-btn[data-menu-view="compact"] .menu-view-icon::before,
.menu-view-btn[data-menu-view="compact"] .menu-view-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.menu-view-btn[data-menu-view="compact"] .menu-view-icon::before {
  top: 3px;
  box-shadow: 0 6px 0 currentColor;
}

.menu-view-btn[data-menu-view="compact"] .menu-view-icon::after {
  bottom: 3px;
}

.menu-category-select-icon {
  width: 18px;
  height: 18px;
  color: var(--cafe-fresh);
}

.menu-category-select-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    0 5px 0 currentColor,
    0 10px 0 currentColor;
}

.available-only-control,
.menu-view-btn,
.menu-category-link,
.buy-menu-btn,
.add-to-cart-btn,
.unavailable-btn,
.customer-cart-close,
.customer-cart-remove,
.customer-order-modal-close,
.customer-clear-cart-btn,
.customer-generate-qr-btn,
.customer-submit-qr-btn {
  min-height: var(--cafe-touch-size);
}

.customer-cart-close,
.customer-cart-remove,
.customer-order-modal-close {
  width: var(--cafe-touch-size);
  min-width: var(--cafe-touch-size);
  height: var(--cafe-touch-size);
}

.menu-view-btn:focus-visible,
.menu-category-link:focus-visible,
.available-only-control:focus-within,
.menu-image-btn:focus-visible,
.add-to-cart-btn:focus-visible,
.customer-clear-cart-btn:focus-visible,
.customer-generate-qr-btn:focus-visible,
.customer-submit-qr-btn:focus-visible {
  outline: 3px solid var(--cafe-focus-ring);
  outline-offset: 3px;
}

.menu-card:focus-within {
  border-color: rgba(31, 122, 90, 0.32);
  box-shadow:
    0 0 0 4px rgba(31, 122, 90, 0.08),
    var(--cafe-shadow-clean);
}

.product-addon-note {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  max-width: 100%;
  margin: -3px 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #4f6d60;
  background: transparent;
  font-family: var(--ui);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.product-addon-note::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid rgba(31, 122, 90, 0.24);
  border-radius: 50%;
  background:
    linear-gradient(var(--cafe-fresh), var(--cafe-fresh)) center / 7px 1.5px no-repeat,
    linear-gradient(var(--cafe-fresh), var(--cafe-fresh)) center / 1.5px 7px no-repeat,
    rgba(31, 122, 90, 0.07);
}

.customer-cart-toggle-icon::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  width: 16px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

.customer-cart-toggle-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 7px;
  width: 10px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.customer-cart-empty > span {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border: 1px solid rgba(148, 50, 79, 0.18);
  border-radius: 16px;
  display: inline-block;
  color: var(--cafe-berry);
  background: linear-gradient(135deg, #fffdf8, var(--cafe-berry-soft));
}

.customer-cart-empty > span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 16px;
  height: 15px;
  border: 3px solid currentColor;
  border-radius: 0 0 7px 7px;
}

.customer-cart-empty > span::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 18px;
  width: 9px;
  height: 9px;
  border: 3px solid currentColor;
  border-left: 0;
  border-radius: 0 9px 9px 0;
}

.customer-cart-quantity {
  grid-template-columns: 44px minmax(54px, 64px) 44px;
  gap: 6px;
}

.customer-cart-quantity > button,
.customer-cart-quantity button[data-cart-action="decrease"],
.customer-cart-quantity button[data-cart-action="increase"] {
  width: 44px;
  height: 44px;
}

.customer-cart-quantity > input,
.customer-cart-quantity input[data-cart-quantity] {
  width: 100%;
  height: 44px;
  line-height: 44px;
}

.menu-filter-status:not(:empty) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-filter-status:not(:empty)::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cafe-fresh);
  box-shadow: 0 0 0 5px rgba(31, 122, 90, 0.12);
}

@media (max-width: 720px) {
  .order-start-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 18px;
  }

  .order-start-card .primary-btn {
    width: 100%;
    white-space: normal;
  }

  .menu-card,
  .menu-compact-view .menu-card {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 152px;
  }

  .menu-image-btn,
  .menu-compact-view .menu-image-btn {
    height: 152px;
  }

  .product-status,
  .menu-compact-view .product-status {
    font-size: 9px;
    overflow-wrap: anywhere;
  }

  .product-addon-note {
    margin-bottom: 8px;
    font-size: 9.5px;
  }

  .product-addon-note::before {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .buy-menu-btn,
  .add-to-cart-btn,
  .unavailable-btn,
  .menu-compact-view .buy-menu-btn,
  .menu-compact-view .add-to-cart-btn {
    min-height: var(--cafe-touch-size);
    padding: 4px 10px;
    font-size: 11px;
    line-height: 1.1;
    white-space: normal;
  }

  .product-buy-row strong,
  .menu-card strong,
  .menu-compact-view .product-buy-row strong {
    min-height: 36px;
    font-size: 10.5px;
  }

  .customer-cart-quantity {
    grid-template-columns: 44px minmax(52px, 1fr) 44px;
  }
}

@media (max-width: 430px) {
  .product-buy-row,
  .menu-compact-view .product-buy-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .product-buy-row strong,
  .menu-card strong,
  .menu-compact-view .product-buy-row strong {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .menu-card,
  .menu-compact-view .menu-card {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 168px;
  }

  .menu-image-btn,
  .menu-compact-view .menu-image-btn {
    height: 168px;
  }

  .buy-menu-btn,
  .add-to-cart-btn,
  .unavailable-btn {
    min-height: var(--cafe-touch-size);
    font-size: 10.5px;
  }
}

@media (max-width: 720px) {
  #menu:not(.menu-compact-view) .menu-grid {
    gap: 14px;
  }

  #menu:not(.menu-compact-view) .menu-card {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    min-height: 0;
  }

  #menu:not(.menu-compact-view) .menu-image-btn {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    padding: 12px 12px 0;
  }

  #menu:not(.menu-compact-view) .menu-card-body {
    padding: 12px 14px 14px;
  }

  #menu:not(.menu-compact-view) .product-copy {
    --product-copy-lines: 2;
    min-height: auto;
    margin-bottom: 10px;
  }

  #menu:not(.menu-compact-view) .product-buy-row {
    grid-template-columns: auto minmax(132px, 1fr);
    gap: 10px;
  }

  #menu.menu-compact-view .menu-grid {
    gap: 9px;
  }

  #menu.menu-compact-view .menu-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 126px;
  }

  #menu.menu-compact-view .menu-image-btn {
    height: 126px;
    padding: 8px;
  }

  #menu.menu-compact-view .menu-card-body {
    padding: 10px 10px 10px 0;
  }

  #menu.menu-compact-view .product-status {
    margin-bottom: 4px;
    padding: 4px 6px;
    font-size: 8.5px;
  }

  #menu.menu-compact-view .menu-card h3 {
    margin-bottom: 3px;
    font-size: 16px;
    line-height: 1.12;
  }

  #menu.menu-compact-view .product-copy {
    --product-copy-lines: 1;
    min-height: 17px;
    margin-bottom: 6px;
    font-size: 11px;
  }

  #menu.menu-compact-view .product-addon-note {
    display: none;
  }

  #menu.menu-compact-view .product-buy-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
  }

  #menu.menu-compact-view .product-buy-row strong {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 10px;
  }

  #menu.menu-compact-view .buy-menu-btn,
  #menu.menu-compact-view .add-to-cart-btn,
  #menu.menu-compact-view .unavailable-btn {
    min-height: var(--cafe-touch-size);
    padding: 4px 8px;
    font-size: 10px;
    line-height: 1.05;
  }
}

@media (max-width: 390px) {
  #menu.menu-compact-view .menu-card {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 132px;
  }

  #menu.menu-compact-view .menu-image-btn {
    height: 132px;
    padding: 7px;
  }

  #menu.menu-compact-view .menu-card h3 {
    font-size: 15px;
  }

  #menu.menu-compact-view .product-buy-row strong {
    min-height: 32px;
    font-size: 9.5px;
  }

  #menu.menu-compact-view .buy-menu-btn,
  #menu.menu-compact-view .add-to-cart-btn,
  #menu.menu-compact-view .unavailable-btn {
    min-height: var(--cafe-touch-size);
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-card:focus-within,
  .customer-cart-toggle-icon::before,
  .customer-cart-toggle-icon::after {
    transition: none !important;
    animation: none !important;
  }
}

