:root {
  --primary-maroon: #8f1f1b;
  --dark-maroon: #5e1411;
  --deep-maroon: #4a0d0a;
  --cream: #fff7ea;
  --soft-cream: #fff1d9;
  --gold: #d9a441;
  --light-gold: #f0c866;
  --text-brown: #261612;
  --muted-text: #6e5d55;
  --border-cream: #ead9c2;
  --whatsapp: #1fa855;
  --white: #ffffff;
  --font-heading: "Merriweather", Georgia, serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;
  --font-body: "Lato", Arial, sans-serif;
  --shadow-soft: 0 16px 42px rgba(74, 13, 10, 0.12);
  --shadow-card: 0 12px 28px rgba(74, 13, 10, 0.1);
  --radius-card: 8px;
  --container: 1160px;
  --header-height: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-brown);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  background: var(--cream);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--deep-maroon);
  background: var(--light-gold);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* Hero text animation: Animate.css compatible pulse */
.animate__animated {
  animation-duration: 1.35s;
  animation-fill-mode: both;
}

.animate__pulse {
  animation-name: animatePulse;
  animation-timing-function: ease-in-out;
}

.hero-title-main.animate__pulse {
  animation-delay: 120ms;
}

.hero-description.animate__pulse {
  animation-delay: 240ms;
}

@keyframes animatePulse {
  0% {
    transform: scale3d(1, 1, 1);
  }

  50% {
    transform: scale3d(1.035, 1.035, 1.035);
  }

  100% {
    transform: scale3d(1, 1, 1);
  }
}

/* Hero buttons pulse once on first load */
.quick-actions a.pulse-once {
  animation-iteration-count: 1;
}

.quick-actions a.pulse-once:nth-child(1) { animation-delay: 320ms; }
.quick-actions a.pulse-once:nth-child(2) { animation-delay: 420ms; }
.quick-actions a.pulse-once:nth-child(3) { animation-delay: 520ms; }
.quick-actions a.pulse-once:nth-child(4) { animation-delay: 620ms; }
.quick-actions a.pulse-once:nth-child(5) { animation-delay: 720ms; }
.quick-actions a.pulse-once:nth-child(6) { animation-delay: 820ms; }



.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  color: var(--white);
  background: rgba(74, 13, 10, 0.98);
  box-shadow: 0 10px 28px rgba(38, 22, 18, 0.18);
}

.nav-shell {
  width: min(100% - 40px, var(--container));
  min-height: var(--header-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-logo {
  width: 54px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: var(--font-heading);
  font-size: 1.04rem;
  color: var(--white);
}

.brand-copy small {
  margin-top: 3px;
  color: rgba(255, 247, 234, 0.82);
  font-size: 0.78rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: rgba(255, 247, 234, 0.9);
  font-size: 0.94rem;
  font-weight: 700;
}

.desktop-nav a,
.site-footer a {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--light-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-small {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 0.9rem;
}

.btn-gold {
  color: var(--deep-maroon);
  background: var(--gold);
  box-shadow: 0 10px 22px rgba(217, 164, 65, 0.24);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--light-gold);
}

.btn-outline {
  color: var(--soft-cream);
  border-color: rgba(240, 200, 102, 0.85);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--deep-maroon);
  background: var(--light-gold);
  border-color: var(--light-gold);
}

.btn-cream {
  color: var(--deep-maroon);
  background: linear-gradient(135deg, var(--cream), var(--light-gold));
  box-shadow: 0 14px 28px rgba(217, 164, 65, 0.24);
}

.btn-ghost {
  color: var(--cream);
  border-color: rgba(255, 247, 234, 0.55);
  background: rgba(255, 247, 234, 0.05);
}

.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 247, 234, 0.26);
  border-radius: 10px;
  color: var(--cream);
  background: rgba(255, 247, 234, 0.06);
  box-shadow: 0 8px 18px rgba(38, 22, 18, 0.12);
  cursor: pointer;
  place-items: center;
}

.mobile-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 2.5px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: calc(var(--header-height) - 2px);
  right: 16px;
  z-index: 101;
  width: min(228px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid rgba(240, 200, 102, 0.26);
  border-radius: 14px;
  color: var(--cream);
  background: rgba(74, 13, 10, 0.985);
  box-shadow: 0 18px 34px rgba(38, 22, 18, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s;
}

.mobile-menu nav {
  display: grid;
  gap: 2px;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 800;
}

.mobile-menu nav a:hover,
.mobile-menu nav a:focus-visible {
  color: var(--deep-maroon);
  background: var(--light-gold);
}

.mobile-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.mobile-menu-actions .btn {
  min-height: 40px;
  padding: 9px 10px;
  font-size: 0.84rem;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(74, 13, 10, 0.52), rgba(74, 13, 10, 0.60)),
    linear-gradient(90deg, rgba(74, 13, 10, 0.78), rgba(94, 20, 17, 0.58) 48%, rgba(143, 31, 27, 0.68)),
    image-set(
      url("../img/rumah-gadang-hero.webp") type("image/webp"),
      url("../img/rumah-gadang-hero.jpg") type("image/jpeg")
    ) center 58% / cover no-repeat,
    var(--deep-maroon);
}

.hero-pattern {
  display: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 35%, rgba(217, 164, 65, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(74, 13, 10, 0.04), rgba(74, 13, 10, 0.24));
  pointer-events: none;
}

.hero-silhouette {
  display: none;
}

.hero-inner {
  min-height: 600px;
  padding: 92px 0 96px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: 8px 12px;
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 999px;
  color: var(--deep-maroon);
  background: rgba(217, 164, 65, 0.18);
  font-size: 0.88rem;
  font-weight: 900;
}

.hero-badge {
  margin-top: 20px;
  color: var(--light-gold);
  background: rgba(255, 247, 234, 0.08);
}

.section-kicker.light {
  color: var(--light-gold);
  border-color: rgba(240, 200, 102, 0.42);
  background: rgba(255, 247, 234, 0.08);
}

.hero h1 {
  max-width: 820px;
  margin: 22px auto 0;
  font-family: var(--font-heading);
  line-height: 1.08;
}

.hero-script,
.hero-title-main {
  display: block;
}

.hero-script {
  color: var(--light-gold);
  font-family: var(--font-script);
  font-size: 4.2rem;
  font-weight: 400;
  line-height: 0.95;
  text-shadow: 0 8px 24px rgba(38, 22, 18, 0.28);
}

.hero-title-main {
  margin-top: 4px;
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 7.2vw, 4.35rem);
  font-weight: 900;
  line-height: 1.06;
  white-space: nowrap;
  text-shadow: 0 8px 26px rgba(38, 22, 18, 0.32);
}

.hero-description {
  max-width: 720px;
  margin: 22px auto 0;
  color: rgba(255, 247, 234, 0.9);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.signature-section {
  position: relative;
  padding: 0 0 2px;
  background: var(--cream);
}

.signature-visual {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto 22px;
  padding: 18px;
}

.signature-blur {
  position: absolute;
  inset: 2px 0 auto;
  width: 100%;
  height: calc(100% - 44px);
  object-fit: cover;
  border-radius: 34px;
  filter: blur(22px);
  opacity: 0.34;
  transform: scale(0.985);
}

.signature-main {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 28px 68px rgba(74, 13, 10, 0.18);
}

.signature-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 247, 234, 0.08), rgba(255, 247, 234, 0.22));
  pointer-events: none;
}

.signature-visual figcaption {
  position: relative;
  z-index: 3;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: -34px auto 0;
  padding: 12px 18px;
  border: 1px solid rgba(234, 217, 194, 0.88);
  border-radius: 999px;
  color: var(--deep-maroon);
  background: rgba(255, 247, 234, 0.92);
  box-shadow: var(--shadow-card);
  font-weight: 900;
  text-align: center;
}

.quick-actions {
  width: min(100%, 920px);
  margin: 30px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  transform: none;
}

.quick-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid rgba(240, 200, 102, 0.9);
  border-radius: 999px;
  color: var(--deep-maroon);
  background: linear-gradient(135deg, #f1cb6f 0%, var(--gold) 55%, #cf9936 100%);
  box-shadow:
    0 10px 22px rgba(217, 164, 65, 0.24),
    0 0 0 1px rgba(255, 236, 188, 0.18) inset,
    0 0 18px rgba(240, 200, 102, 0.16);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.quick-actions .qa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.quick-actions .qa-icon svg,
.quick-actions .qa-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quick-actions .qa-gofood .qa-icon {
  width: 44px;
  height: 36px;
  flex-basis: 44px;
}

.quick-actions .qa-grabfood .qa-icon {
  width: 64px;
  height: 28px;
  flex-basis: 64px;
}

.quick-actions .qa-svg-stroke {
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.quick-actions .qa-svg-fill {
  color: currentColor;
  fill: currentColor;
  stroke: none;
}

.quick-actions .qa-svg-fill path {
  fill: currentColor;
}

.quick-actions .qa-icon-reverse {
  fill: var(--cream);
  paint-order: stroke fill;
  stroke: none;
}

.quick-actions .qa-text {
  display: inline;
  white-space: nowrap;
}

.quick-actions a:hover,
.quick-actions a:focus-visible {
  transform: translateY(-2px);
  color: var(--deep-maroon);
  background: linear-gradient(135deg, #f6d57f 0%, #e8b94f 55%, #d8a33e 100%);
  box-shadow:
    0 14px 28px rgba(217, 164, 65, 0.28),
    0 0 0 1px rgba(255, 244, 214, 0.22) inset,
    0 0 22px rgba(240, 200, 102, 0.2);
}


.menu-section {
  padding-top: 72px;
}

.section {
  padding: 72px 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.story-copy h2,
.group-copy h2,
.final-cta h2 {
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 2.35rem;
  line-height: 1.18;
  color: var(--deep-maroon);
}

.section-heading p:not(.section-kicker) {
  margin-top: 12px;
  color: var(--muted-text);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Home menu loading spinner */
.home-menu-loader {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 360px);
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.home-menu-loader p {
  margin: 0;
  color: var(--deep-maroon);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 900;
}

.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
}

.loader {
  color: var(--primary-maroon);
  font-size: 5px;
  text-indent: -99999em;
  margin: 0 auto;
  position: relative;
  width: 10em;
  height: 10em;
  box-shadow: inset 0 0 0 1em;
  transform: translateZ(0);
}

.loader:before,
.loader:after {
  position: absolute;
  content: "";
}

.loader:before {
  width: 5.2em;
  height: 10.2em;
  background: var(--cream);
  border-radius: 10.2em 0 0 10.2em;
  top: -0.1em;
  left: -0.1em;
  transform-origin: 5.1em 5.1em;
  animation: load2 2s infinite ease 1.5s;
}

.loader:after {
  width: 5.2em;
  height: 10.2em;
  background: var(--cream);
  border-radius: 0 10.2em 10.2em 0;
  top: -0.1em;
  left: 4.9em;
  transform-origin: 0.1em 5.1em;
  animation: load2 2s infinite ease;
}

@keyframes load2 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.home-favorite-card {
  animation: apjCardPulse 2.6s ease-in-out infinite;
}

.home-favorite-card:nth-child(2) { animation-delay: 160ms; }
.home-favorite-card:nth-child(3) { animation-delay: 320ms; }
.home-favorite-card:nth-child(4) { animation-delay: 480ms; }

@keyframes apjCardPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: var(--shadow-card);
  }

  50% {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 18px 38px rgba(74, 13, 10, 0.14);
  }
}

.menu-card.home-favorite-card:hover {
  animation-play-state: paused;
}

.menu-card,
.outlet-card,
.review-card,
.timeline-card,
.feature-card {
  border-radius: var(--radius-card);
  border: 1px solid rgba(234, 217, 194, 0.88);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.menu-card {
  overflow: hidden;
  min-width: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.menu-card:hover,
.outlet-card:hover,
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(74, 13, 10, 0.14);
}

.menu-photo {
  height: 152px;
  overflow: hidden;
  background: var(--soft-cream);
}

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

.menu-card:nth-child(2) .menu-photo img {
  object-position: 44% 50%;
}

.menu-card:nth-child(3) .menu-photo img {
  object-position: 62% 50%;
}

.menu-card:nth-child(4) .menu-photo img {
  object-position: 70% 46%;
}

.menu-card-body {
  display: grid;
  min-height: 236px;
  padding: 16px;
}

.badge {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--deep-maroon);
  background: rgba(217, 164, 65, 0.22);
  font-size: 0.78rem;
  font-weight: 900;
}

.menu-card h3,
.outlet-card h3,
.timeline-card h3 {
  margin-top: 11px;
  color: var(--primary-maroon);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.3;
}

.menu-card p,
.outlet-card p,
.timeline-card p,
.review-card p,
.feature-card p {
  margin-top: 8px;
  color: var(--muted-text);
  font-size: 0.96rem;
  line-height: 1.55;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.card-footer strong {
  color: var(--deep-maroon);
  font-size: 0.95rem;
}

.card-footer a,
.outlet-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--deep-maroon);
  background: rgba(217, 164, 65, 0.24);
  font-size: 0.88rem;
  font-weight: 900;
  transition: transform 180ms ease, background-color 180ms ease;
}

.card-footer a:hover,
.card-footer a:focus-visible,
.outlet-card a:hover,
.outlet-card a:focus-visible {
  transform: translateY(-2px);
  background: var(--light-gold);
}

.story-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 86px 0;
  color: var(--cream);
  background:
    linear-gradient(135deg, var(--deep-maroon), var(--dark-maroon) 52%, var(--primary-maroon)),
    var(--deep-maroon);
}

.story-pattern {
  display: none;
}

.story-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 38px;
  align-items: center;
}

.story-copy h2,
.group-copy h2,
.final-cta h2 {
  color: var(--cream);
}

.story-copy p {
  margin-top: 14px;
  color: rgba(255, 247, 234, 0.86);
}

blockquote {
  position: relative;
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: var(--light-gold);
  background: rgba(255, 247, 234, 0.07);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.6;
}

.timeline-grid {
  display: grid;
  gap: 14px;
}

.timeline-card {
  position: relative;
  padding: 20px;
  color: var(--cream);
  border-color: rgba(240, 200, 102, 0.25);
  background: rgba(255, 247, 234, 0.08);
  box-shadow: none;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.timeline-card span {
  display: inline-flex;
  color: var(--deep-maroon);
  background: var(--light-gold);
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 900;
}

.timeline-card h3 {
  color: var(--cream);
}

.timeline-card p {
  color: rgba(255, 247, 234, 0.78);
}

.group-section {
  padding: 78px 0;
  color: var(--cream);
  background:
    linear-gradient(120deg, rgba(74, 13, 10, 0.98), rgba(94, 20, 17, 0.95) 48%, rgba(143, 31, 27, 0.92)),
    var(--deep-maroon);
}

.group-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 38px;
  align-items: center;
}

.group-copy p:not(.section-kicker) {
  margin: 16px 0 24px;
  color: rgba(255, 247, 234, 0.86);
}

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

.feature-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 118px;
  padding: 18px;
  border-color: rgba(240, 200, 102, 0.28);
  color: var(--cream);
  background: rgba(255, 247, 234, 0.08);
  box-shadow: none;
}

.feature-card p {
  margin: 0;
  color: rgba(255, 247, 234, 0.9);
  font-weight: 800;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: var(--light-gold);
  background: rgba(217, 164, 65, 0.12);
}

.feature-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.outlet-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.outlet-card {
  min-height: 184px;
  padding: 18px;
  display: grid;
  align-content: start;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.outlet-card a {
  width: max-content;
  margin-top: 16px;
}

.testimonials {
  background:
    linear-gradient(180deg, rgba(255, 241, 217, 0.65), rgba(255, 247, 234, 0.1)),
    var(--cream);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  min-height: 208px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stars {
  color: var(--gold);
  font-size: 1.08rem;
  line-height: 1;
}

.review-card p {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text-brown);
}

.review-card strong {
  display: block;
  margin-top: 16px;
  color: var(--primary-maroon);
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  color: var(--cream);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(74, 13, 10, 0.98), rgba(94, 20, 17, 0.95)),
    var(--deep-maroon);
}

.final-cta::before {
  content: none;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.final-cta p:not(.section-kicker) {
  margin-top: 14px;
  color: rgba(255, 247, 234, 0.88);
}

.final-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.site-footer {
  padding: 58px 0 26px;
  color: rgba(255, 247, 234, 0.82);
  background: #2d100c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}

.site-footer h2,
.site-footer h3 {
  color: var(--cream);
  font-family: var(--font-heading);
  line-height: 1.25;
}

.site-footer h2 {
  font-size: 1.4rem;
}

.site-footer h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.site-footer p {
  margin-top: 10px;
}

.site-footer a {
  display: block;
  margin-top: 8px;
  color: rgba(255, 247, 234, 0.82);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 247, 234, 0.14);
  color: rgba(255, 247, 234, 0.62);
  font-size: 0.92rem;
}

.floating-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  color: var(--white);
  background-color: #00d757;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2), 0 16px 30px rgba(0, 215, 87, 0.24);
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  transition: width 0.3s ease, border-radius 0.3s ease, transform 0.18s ease, box-shadow 0.3s ease;
}

.floating-wa .wa-sign {
  width: 54px;
  min-width: 54px;
  transition: width 0.3s ease, padding-left 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-wa .wa-svg {
  width: 28px;
  height: 28px;
}

.floating-wa .wa-svg path {
  fill: var(--white);
}

.floating-wa .wa-text {
  position: absolute;
  right: 0;
  width: 0;
  opacity: 0;
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.3s ease, width 0.3s ease, padding-right 0.3s ease;
}

.floating-wa:hover,
.floating-wa:focus-visible {
  width: 154px;
  border-radius: 999px;
  transform: translateY(-2px);
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.22), 0 18px 36px rgba(0, 215, 87, 0.32);
}

.floating-wa:hover .wa-sign,
.floating-wa:focus-visible .wa-sign {
  width: 32%;
  padding-left: 10px;
}

.floating-wa:hover .wa-text,
.floating-wa:focus-visible .wa-text {
  opacity: 1;
  width: 68%;
  padding-right: 12px;
}

.floating-wa:active {
  transform: translate(2px, 2px);
}

@media (max-width: 1080px) {
  .nav-shell {
    gap: 18px;
  }

  .brand {
    min-width: 236px;
  }

  .desktop-nav {
    gap: 14px;
    font-size: 0.9rem;
  }

  .header-actions .btn-outline {
    display: none;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-actions a {
    gap: 8px;
    padding: 11px 14px;
    font-size: 0.9rem;
  }

  .quick-actions .qa-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .quick-actions .qa-icon svg {
    width: 30px;
    height: 30px;
  }

  .outlet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  :root {
    --header-height: 70px;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-logo {
    width: 40px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: 0.98rem;
  }

  .brand-copy small {
    font-size: 0.72rem;
  }

  .mobile-toggle {
    display: grid;
  }

  .hero-inner {
    min-height: 640px;
    padding: 76px 0 82px;
  }

  .hero-script {
    font-size: 3.5rem;
  }

  .hero-title-main {
    font-size: clamp(2.05rem, 7vw, 3.25rem);
  }

  .hero-description {
    max-width: 660px;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .story-inner,
  .group-inner {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .container,
  .nav-shell {
    width: min(100% - 28px, var(--container));
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .brand-copy small {
    display: none;
  }

  .mobile-menu {
    right: 14px;
    width: min(214px, calc(100vw - 28px));
    padding: 7px;
  }

  .mobile-menu a {
    min-height: 32px;
    padding: 9px 10px;
    font-size: 0.94rem;
  }

  .mobile-menu-actions .btn {
    min-height: 38px;
    padding: 8px 8px;
    font-size: 0.8rem;
  }

  .hero-inner {
    min-height: 600px;
    padding: 58px 0 66px;
  }

  .hero-script {
    font-size: 2.9rem;
  }

  .hero-title-main {
    font-size: clamp(1.82rem, 8.7vw, 2.38rem);
  }

  .hero-description {
    max-width: 92%;
    font-size: 0.88rem;
    line-height: 1.56;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
    margin-top: 24px;
  }

  .hero-actions .btn {
    min-height: 44px;
    padding: 9px 7px;
    font-size: 0.82rem;
    white-space: normal;
  }

  .signature-section {
    padding: 0 0 4px;
  }

  .signature-visual {
    padding: 10px;
    margin-bottom: 16px;
  }

  .signature-main {
    aspect-ratio: 4 / 3;
    border-radius: 24px;
  }

  .signature-blur {
    border-radius: 24px;
  }

  .signature-visual::after {
    inset: 10px;
    border-radius: 24px;
  }

  .signature-visual figcaption {
    margin-top: -24px;
    padding: 10px 13px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .quick-actions {
    width: min(100%, 320px);
    margin-top: 36px;
    margin-inline: auto;
    padding: 0;
    gap: 14px 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    transform: none;
  }

  .quick-actions a {
    width: 100%;
    max-width: 72px;
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .quick-actions .qa-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .quick-actions .qa-gofood .qa-icon {
    width: 50px;
    height: 38px;
    flex-basis: 50px;
  }

  .quick-actions .qa-grabfood .qa-icon {
    width: 58px;
    height: 24px;
    flex-basis: 58px;
  }

  .quick-actions .qa-icon svg,
  .quick-actions .qa-icon-img {
    width: 100%;
    height: 100%;
  }

  .quick-actions .qa-text {
    display: none;
  }

  .menu-section {
    padding-top: 54px;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2,
  .story-copy h2,
  .group-copy h2,
  .final-cta h2 {
    font-size: 1.86rem;
  }

  .menu-grid,
  .outlet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .menu-photo {
    height: 112px;
  }

  .menu-card-body {
    min-height: 244px;
    padding: 12px;
  }

  .badge {
    font-size: 0.72rem;
  }

  .menu-card h3,
  .outlet-card h3,
  .timeline-card h3 {
    font-size: 0.98rem;
  }

  .menu-card p,
  .outlet-card p,
  .timeline-card p,
  .review-card p,
  .feature-card p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .card-footer {
    display: grid;
    align-items: start;
    gap: 8px;
  }

  .card-footer a {
    width: 100%;
  }

  .story-section,
  .group-section,
  .final-cta {
    padding: 58px 0;
  }

  .timeline-card,
  .feature-card,
  .review-card {
    padding: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 94px;
  }

  .review-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .review-card {
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .floating-wa {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }

  .floating-wa .wa-sign {
    width: 50px;
    min-width: 50px;
  }

  .floating-wa .wa-svg {
    width: 25px;
    height: 25px;
  }

  .floating-wa:hover,
  .floating-wa:focus-visible {
    width: 142px;
  }

  .floating-wa .wa-text {
    font-size: 0.92rem;
  }
}

@media (max-width: 420px) {
  .brand-copy small {
    display: none;
  }

  .hero-script {
    font-size: 2.55rem;
  }

  .hero-title-main {
    font-size: clamp(1.62rem, 8.2vw, 2.08rem);
  }

  .hero-actions .btn {
    font-size: 0.76rem;
    padding-inline: 5px;
  }

  .quick-actions {
    width: min(100%, 286px);
    gap: 12px 14px;
    margin-top: 32px;
  }

  .quick-actions a {
    max-width: 64px;
  }

  .quick-actions .qa-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .quick-actions .qa-icon svg {
    width: 32px;
    height: 32px;
  }

  .section-heading h2,
  .story-copy h2,
  .group-copy h2,
  .final-cta h2 {
    font-size: 1.68rem;
  }

  .menu-card-body {
    min-height: 262px;
  }

  .outlet-card {
    min-height: 178px;
    padding: 14px;
  }
}



/* Quick action PNG icon refinement */
.quick-actions .qa-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quick-actions .qa-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.quick-actions .qa-gofood .qa-icon {
  width: 48px;
  height: 38px;
  flex-basis: 48px;
}

.quick-actions .qa-grabfood .qa-icon {
  width: 70px;
  height: 30px;
  flex-basis: 70px;
}

@media (max-width: 1080px) {
  .quick-actions .qa-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .quick-actions .qa-gofood .qa-icon {
    width: 44px;
    height: 34px;
    flex-basis: 44px;
  }

  .quick-actions .qa-grabfood .qa-icon {
    width: 60px;
    height: 26px;
    flex-basis: 60px;
  }
}

@media (max-width: 700px) {
  .quick-actions .qa-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .quick-actions .qa-gofood .qa-icon {
    width: 50px;
    height: 38px;
    flex-basis: 50px;
  }

  .quick-actions .qa-grabfood .qa-icon {
    width: 58px;
    height: 24px;
    flex-basis: 58px;
  }
}

@media (max-width: 420px) {
  .quick-actions .qa-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .quick-actions .qa-gofood .qa-icon {
    width: 46px;
    height: 34px;
    flex-basis: 46px;
  }

  .quick-actions .qa-grabfood .qa-icon {
    width: 52px;
    height: 22px;
    flex-basis: 52px;
  }
}


/* Final micro-polish: hero actions comfort */
.quick-actions {
  margin-top: 26px;
}

.quick-actions a:active {
  transform: scale(0.96);
}

.quick-actions a:focus-visible,
.floating-wa:focus-visible {
  outline: 3px solid rgba(240, 200, 102, 0.42);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .hero-inner {
    padding-bottom: 84px;
  }

  .quick-actions {
    margin-top: 34px;
  }

  .floating-wa {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }

  .floating-wa .wa-sign {
    width: 46px;
    min-width: 46px;
  }

  .floating-wa .wa-svg {
    width: 23px;
    height: 23px;
  }
}

@media (max-width: 420px) {
  .hero-inner {
    padding-bottom: 88px;
  }

  .quick-actions {
    margin-top: 30px;
  }

  .floating-wa {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }

  .floating-wa .wa-sign {
    width: 44px;
    min-width: 44px;
  }

  .floating-wa .wa-svg {
    width: 22px;
    height: 22px;
  }
}



/* Performance polish: load smaller hero image on narrow screens and defer below-the-fold rendering */
@media (max-width: 700px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(74, 13, 10, 0.52), rgba(74, 13, 10, 0.60)),
      linear-gradient(90deg, rgba(74, 13, 10, 0.78), rgba(94, 20, 17, 0.58) 48%, rgba(143, 31, 27, 0.68)),
      image-set(
        url("../img/rumah-gadang-hero-mobile.webp") type("image/webp"),
        url("../img/rumah-gadang-hero-mobile.jpg") type("image/jpeg")
      ) center 56% / cover no-repeat,
      var(--deep-maroon);
  }
}

@supports (content-visibility: auto) {
  .menu-section,
  .story-section,
  .group-section,
  .outlet-section,
  .testimonials,
  .final-cta,
  .site-footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* APJ Menu Online + Admin Menu */
.order-page,
.admin-page {
  background: var(--cream);
}

.order-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 70px;
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(74, 13, 10, 0.98), rgba(94, 20, 17, 0.94) 54%, rgba(143, 31, 27, 0.9)),
    var(--deep-maroon);
}

.order-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -42% -10%;
  height: 210px;
  background: radial-gradient(circle at 50% 0%, rgba(240, 200, 102, 0.18), transparent 64%);
  pointer-events: none;
}

.order-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  text-align: center;
}

.order-hero h1,
.admin-topbar h1,
.admin-card h1 {
  margin-top: 14px;
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.12;
}

.order-hero p:not(.section-kicker) {
  max-width: 720px;
  margin: 16px auto 0;
  color: rgba(255, 247, 234, 0.86);
  font-size: 1.04rem;
}

.order-section {
  padding: 42px 0 82px;
}

.order-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.order-toolbar h2,
.cart-header h2 {
  color: var(--deep-maroon);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.2;
}

.menu-load-status {
  margin-top: 6px;
  color: var(--muted-text);
  font-size: 0.94rem;
  font-weight: 800;
}

.menu-load-status[data-type="success"] {
  color: #2d7a3f;
}

.menu-load-status[data-type="error"] {
  color: var(--primary-maroon);
}

.menu-search-label {
  display: block;
}

.menu-search-label input,
.checkout-fields input,
.checkout-fields select,
.checkout-fields textarea,
.admin-login-form input {
  width: 100%;
  border: 1px solid rgba(234, 217, 194, 0.96);
  border-radius: 999px;
  color: var(--text-brown);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(74, 13, 10, 0.07);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.menu-search-label input {
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 800;
}

.menu-search-label input:focus,
.checkout-fields input:focus,
.checkout-fields select:focus,
.checkout-fields textarea:focus,
.admin-login-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.18);
}

.menu-filter-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 2px 18px;
  scrollbar-width: thin;
}

.menu-filter-btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(217, 164, 65, 0.44);
  border-radius: 999px;
  color: var(--deep-maroon);
  background: rgba(217, 164, 65, 0.12);
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.menu-filter-btn:hover,
.menu-filter-btn:focus-visible,
.menu-filter-btn.is-active {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: var(--light-gold);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 22px;
  align-items: start;
}

.order-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.order-menu-card {
  overflow: hidden;
  border: 1px solid rgba(234, 217, 194, 0.9);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.order-menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(74, 13, 10, 0.14);
}

.order-menu-card.is-empty {
  opacity: 0.72;
}

.order-menu-photo {
  position: relative;
  height: 154px;
  overflow: hidden;
  background: var(--soft-cream);
}

.order-menu-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(38, 22, 18, 0.18);
}

.stock-available {
  background: #258b4b;
}

.stock-empty {
  background: var(--primary-maroon);
}

.order-menu-body {
  display: grid;
  min-height: 218px;
  padding: 15px;
}

.order-menu-category {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.order-menu-body h3 {
  margin-top: 8px;
  color: var(--primary-maroon);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.3;
}

.order-menu-desc {
  margin-top: 8px;
  color: var(--muted-text);
  font-size: 0.93rem;
  line-height: 1.5;
}

.order-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.order-menu-footer strong {
  color: var(--deep-maroon);
  font-size: 0.98rem;
}

.add-cart-btn,
.qty-btn,
.qty-control button,
.cart-line-actions button,
.cart-close,
.clear-cart-btn,
.availability-toggle {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.add-cart-btn,
.qty-btn {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--deep-maroon);
  background: var(--light-gold);
  font-size: 0.88rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.add-cart-btn:hover,
.add-cart-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(217, 164, 65, 0.22);
}

.qty-btn.disabled {
  color: rgba(255, 247, 234, 0.86);
  background: rgba(143, 31, 27, 0.82);
  cursor: not-allowed;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 34px 32px 34px;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(217, 164, 65, 0.46);
  background: rgba(217, 164, 65, 0.14);
}

.order-action-wrap {
  display: inline-flex;
  align-items: center;
}

.order-mobile-stepper {
  display: none;
}

.qty-control button,
.cart-line-actions button {
  min-height: 34px;
  color: var(--deep-maroon);
  background: transparent;
  font-weight: 900;
}

.qty-control span,
.cart-line-actions span {
  text-align: center;
  color: var(--deep-maroon);
  font-weight: 900;
}

.cart-panel {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  border: 1px solid rgba(234, 217, 194, 0.92);
  border-radius: 18px;
  background: rgba(255, 247, 234, 0.96);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.cart-header .section-kicker {
  margin: 0 0 8px;
}

.cart-close {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--deep-maroon);
  background: rgba(217, 164, 65, 0.2);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.cart-empty,
.menu-empty-state {
  padding: 18px;
  border: 1px dashed rgba(217, 164, 65, 0.6);
  border-radius: 14px;
  color: var(--muted-text);
  background: rgba(255, 241, 217, 0.66);
  font-weight: 800;
}

.menu-empty-state {
  grid-column: 1 / -1;
  text-align: center;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid rgba(234, 217, 194, 0.72);
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line strong {
  color: var(--deep-maroon);
  font-size: 0.94rem;
  line-height: 1.35;
}

.cart-line span {
  margin-top: 4px;
  color: var(--muted-text);
  font-size: 0.86rem;
  font-weight: 800;
}

.cart-line-actions {
  display: grid;
  grid-template-columns: 30px 28px 30px;
  align-items: center;
  border: 1px solid rgba(217, 164, 65, 0.42);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(217, 164, 65, 0.1);
}

.cart-line-actions button {
  min-height: 30px;
}

.checkout-fields {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.checkout-fields label,
.admin-login-form label {
  display: grid;
  gap: 6px;
  color: var(--deep-maroon);
  font-size: 0.88rem;
  font-weight: 900;
}

.checkout-fields input,
.checkout-fields select,
.checkout-fields textarea,
.admin-login-form input {
  border-radius: 12px;
  padding: 11px 12px;
  box-shadow: none;
}

.checkout-fields textarea {
  resize: vertical;
}

.checkout-fields input[readonly] {
  color: var(--deep-maroon);
  background: rgba(217, 164, 65, 0.12);
  cursor: default;
}

.shareloc-actions {
  display: grid;
  gap: 6px;
}

.shareloc-actions[hidden] {
  display: none;
}

.shareloc-btn {
  min-height: 40px;
  border: 1px solid rgba(217, 164, 65, 0.65);
  border-radius: 12px;
  color: var(--deep-maroon);
  background: var(--light-gold);
  font-weight: 900;
  cursor: pointer;
}

.shareloc-btn:hover,
.shareloc-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(217, 164, 65, 0.22);
}

.shareloc-btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.shareloc-status {
  min-height: 1.2em;
  color: var(--muted-text);
  font-size: 0.78rem;
  line-height: 1.35;
}

.shareloc-status[data-type="error"] {
  color: var(--primary-maroon);
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(234, 217, 194, 0.9);
  color: var(--deep-maroon);
  font-weight: 900;
}

.checkout-btn {
  width: 100%;
  margin-top: 14px;
}

.checkout-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.clear-cart-btn {
  width: 100%;
  margin-top: 8px;
  padding: 9px 12px;
  color: var(--primary-maroon);
  background: transparent;
  font-weight: 900;
}

.checkout-note {
  margin-top: 10px;
  color: var(--muted-text);
  font-size: 0.82rem;
  line-height: 1.45;
}

.cart-backdrop,
.cart-mobile-bar {
  display: none;
}

body.cart-open {
  overflow: hidden;
}

/* Admin */
.admin-page {
  min-height: 100vh;
  color: var(--text-brown);
  background:
    radial-gradient(circle at 15% 0%, rgba(240, 200, 102, 0.18), transparent 28%),
    linear-gradient(135deg, var(--deep-maroon), var(--dark-maroon) 44%, var(--primary-maroon));
}

.admin-shell {
  width: min(100% - 32px, 1080px);
  min-height: 100vh;
  margin-inline: auto;
  padding: 34px 0;
  display: grid;
  align-items: center;
}

.admin-card,
.admin-app {
  border: 1px solid rgba(240, 200, 102, 0.25);
  border-radius: 22px;
  background: rgba(255, 247, 234, 0.98);
  box-shadow: 0 24px 70px rgba(38, 22, 18, 0.28);
}

.admin-card {
  width: min(100%, 470px);
  margin: auto;
  padding: 28px;
  text-align: center;
}

.admin-logo {
  width: 74px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.admin-card .section-kicker,
.admin-card h1,
.admin-topbar h1 {
  color: var(--deep-maroon);
}

.admin-card h1,
.admin-topbar h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.admin-muted,
.admin-hint {
  margin-top: 12px;
  color: var(--muted-text);
}

.admin-login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  text-align: left;
}

.admin-login-form .btn {
  width: 100%;
}

.admin-app {
  padding: 24px;
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-topbar .section-kicker {
  margin: 0 0 8px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-stats article {
  padding: 16px;
  border: 1px solid rgba(234, 217, 194, 0.92);
  border-radius: 16px;
  background: var(--white);
}

.admin-stats span,
.admin-code {
  color: var(--muted-text);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--deep-maroon);
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
}

.admin-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-menu-list {
  display: grid;
  gap: 10px;
}

.admin-menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(234, 217, 194, 0.9);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(74, 13, 10, 0.06);
}

.admin-menu-row.is-empty {
  background: rgba(255, 241, 217, 0.76);
}

.admin-menu-main {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--deep-maroon);
  background: rgba(217, 164, 65, 0.18);
}

.admin-menu-main h3 {
  color: var(--primary-maroon);
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.32;
}

.admin-menu-main p {
  margin-top: 4px;
  color: var(--muted-text);
  font-weight: 800;
  font-size: 0.9rem;
}

.availability-toggle {
  min-width: 118px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--cream);
  background: var(--primary-maroon);
  font-weight: 900;
  transition: transform 180ms ease, background-color 180ms ease;
}

.availability-toggle.is-on {
  color: var(--white);
  background: #258b4b;
}

.availability-toggle:hover,
.availability-toggle:focus-visible {
  transform: translateY(-2px);
}

@media (max-width: 1080px) {
  .order-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .order-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .order-hero {
    padding: 64px 0 54px;
  }

  .order-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .order-layout {
    display: block;
  }

  .order-menu-grid {
    padding-bottom: 88px;
  }

  .cart-panel {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 220;
    max-height: 88vh;
    overflow: auto;
    border-radius: 22px 22px 0 0;
    transform: translateY(102%);
    transition: transform 220ms ease;
  }

  .cart-panel.is-open {
    transform: translateY(0);
  }

  .cart-close {
    display: inline-grid;
    place-items: center;
  }

  .cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 210;
    background: rgba(38, 22, 18, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease, visibility 0s linear 200ms;
  }

  .cart-backdrop.is-open {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 200ms ease, visibility 0s;
  }

  .cart-mobile-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 180;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(240, 200, 102, 0.32);
    border-radius: 18px;
    color: var(--cream);
    background: rgba(74, 13, 10, 0.98);
    box-shadow: 0 18px 36px rgba(38, 22, 18, 0.28);
  }

  .cart-mobile-bar span,
  .cart-mobile-bar strong {
    display: block;
    line-height: 1.25;
  }

  .cart-mobile-bar span {
    color: rgba(255, 247, 234, 0.78);
    font-size: 0.82rem;
    font-weight: 900;
  }

  .cart-mobile-bar strong {
    color: var(--light-gold);
    font-size: 1rem;
  }

  .admin-shell {
    width: min(100% - 24px, 1080px);
    padding: 18px 0;
    align-items: start;
  }

  .admin-app,
  .admin-card {
    padding: 18px;
    border-radius: 18px;
  }

  .admin-topbar {
    display: grid;
    align-items: start;
  }

  .admin-actions {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .order-hero,
  .order-toolbar {
    display: none;
  }

  .order-section {
    padding: 0 0 82px;
    background: #f7f7f7;
  }

  .order-section .container {
    width: 100%;
  }

  .menu-filter-scroll {
    position: sticky;
    top: var(--header-height);
    z-index: 80;
    gap: 10px;
    padding: 10px 16px 12px;
    border-bottom: 1px solid rgba(74, 13, 10, 0.08);
    background: #fff8ea;
    scrollbar-width: none;
  }

  .menu-filter-scroll::-webkit-scrollbar {
    display: none;
  }

  .menu-filter-btn {
    min-width: max-content;
    padding: 10px 16px;
    border-color: rgba(217, 164, 65, 0.5);
    background: #fff7e6;
    box-shadow: none;
  }

  .order-menu-grid {
    display: block;
    padding-bottom: 96px;
    background: #f7f7f7;
  }

  .order-menu-card {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    min-height: 104px;
    padding: 10px 12px 10px 4px;
    border: 0;
    border-bottom: 1px solid rgba(38, 22, 18, 0.13);
    border-radius: 0;
    background: #f7f7f7;
    box-shadow: none;
  }

  .order-menu-card:hover {
    transform: none;
    box-shadow: none;
  }

  .order-menu-photo {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    align-self: center;
  }

  .order-menu-body {
    display: block;
    min-height: 0;
    padding: 0 118px 0 12px;
  }

  .order-menu-body h3 {
    margin: 0;
    color: #273444;
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.25;
    font-weight: 900;
  }

  .order-menu-category,
  .order-menu-desc {
    display: none;
  }

  .order-menu-footer {
    display: block;
    margin-top: 8px;
  }

  .order-menu-footer strong {
    display: block;
    color: #b50000;
    font-size: 0.96rem;
    line-height: 1.2;
    font-weight: 900;
  }

  .order-menu-footer > .qty-control,
  .order-menu-footer > .qty-btn,
  .order-menu-footer .order-action-wrap {
    position: absolute;
    top: 50%;
    right: 22px;
    width: 100px;
    transform: translateY(-50%);
  }

  .order-add-btn {
    display: none;
  }

  .order-mobile-stepper {
    display: inline-grid;
  }

  .qty-btn {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
  }

  .qty-control {
    width: 100px;
    grid-template-columns: 34px 32px 34px;
    gap: 8px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .qty-control button {
    width: 34px;
    min-height: 34px;
    border-radius: 11px;
    color: #ffffff;
    background: #cf4141;
  }

  .qty-control button:disabled {
    opacity: 0.55;
  }

  .qty-control span {
    color: #2e3d4c;
    font-size: 1rem;
    line-height: 34px;
  }

  .order-menu-card.is-empty {
    opacity: 0.66;
  }

  .stock-badge {
    display: none;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-menu-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-menu-main {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .availability-toggle {
    width: 100%;
  }
}


/* Secret admin modal */
body.secret-admin-open {
  overflow: hidden;
}

.secret-admin-modal[hidden] {
  display: none;
}

.secret-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.secret-admin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 22, 18, 0.62);
  backdrop-filter: blur(8px);
}

.secret-admin-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 26px;
  border: 1px solid rgba(240, 200, 102, 0.34);
  border-radius: 18px;
  color: var(--text-brown);
  background: linear-gradient(180deg, var(--cream), var(--soft-cream));
  box-shadow: 0 28px 70px rgba(38, 22, 18, 0.35);
  text-align: center;
}

.secret-admin-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(94, 20, 17, 0.14);
  border-radius: 999px;
  color: var(--deep-maroon);
  background: rgba(255, 247, 234, 0.84);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.secret-admin-card h2 {
  margin-top: 14px;
  color: var(--deep-maroon);
  font-family: var(--font-heading);
  font-size: 1.7rem;
  line-height: 1.18;
}

.secret-admin-copy {
  margin-top: 10px;
  color: var(--muted-text);
}

.secret-admin-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.secret-admin-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(94, 20, 17, 0.18);
  border-radius: 12px;
  color: var(--text-brown);
  background: var(--white);
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.08em;
  outline: none;
}

.secret-admin-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.2);
}

.secret-admin-form button:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.secret-admin-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--muted-text);
  font-weight: 800;
}

.secret-admin-status[data-type="success"] {
  color: #19733d;
}

.secret-admin-status[data-type="error"] {
  color: var(--primary-maroon);
}

@media (max-width: 420px) {
  .secret-admin-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .secret-admin-card h2 {
    font-size: 1.46rem;
  }
}

/* Admin Menu v2 polish */
.admin-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: 10px;
  justify-content: end;
  align-items: center;
}

.admin-actions .btn {
  min-width: 112px;
  white-space: nowrap;
}

.admin-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-stats article {
  min-height: 96px;
  display: grid;
  align-content: center;
}

.admin-controls .menu-filter-scroll {
  flex-wrap: wrap;
  overflow: visible;
  padding: 8px 0 10px;
  scrollbar-width: none;
}

.admin-controls .menu-filter-scroll::-webkit-scrollbar {
  display: none;
}

.admin-controls .menu-filter-btn {
  flex: 0 1 auto;
}

.admin-menu-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-menu-row {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 12px;
}

.admin-menu-row .availability-toggle {
  width: 100%;
  min-height: 46px;
}

.admin-menu-main {
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
}

.admin-menu-main h3 {
  font-size: 1.06rem;
}

.admin-item-open {
  overflow: hidden;
}

.admin-item-modal[hidden] {
  display: none;
}

.admin-item-modal {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: grid;
  place-items: center;
  padding: 18px;
}

.admin-item-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 22, 18, 0.62);
  backdrop-filter: blur(4px);
}

.admin-item-card {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(240, 200, 102, 0.3);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 0 26px 80px rgba(38, 22, 18, 0.34);
}

.admin-item-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-item-head .section-kicker {
  margin: 0 0 8px;
}

.admin-item-head h2 {
  color: var(--deep-maroon);
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.15;
}

.admin-item-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 999px;
  color: var(--deep-maroon);
  background: rgba(217, 164, 65, 0.14);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

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

.admin-item-grid label {
  display: grid;
  gap: 6px;
  color: var(--deep-maroon);
  font-size: 0.88rem;
  font-weight: 900;
}

.admin-item-grid input,
.admin-item-grid textarea {
  width: 100%;
  border: 1px solid rgba(234, 217, 194, 0.96);
  border-radius: 12px;
  color: var(--text-brown);
  background: var(--white);
  padding: 11px 12px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.admin-item-grid textarea {
  resize: vertical;
}

.admin-item-grid input:focus,
.admin-item-grid textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.18);
}

.admin-item-wide {
  grid-column: 1 / -1;
}

.admin-optional {
  color: var(--muted-text);
  font-weight: 700;
}

.admin-item-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.admin-item-actions .btn:disabled {
  opacity: 0.58;
  cursor: wait;
}

@media (max-width: 760px) {
  .admin-topbar {
    gap: 14px;
  }

  .admin-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .admin-actions .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }

  .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-stats article {
    min-height: 78px;
    padding: 12px 10px;
    border-radius: 14px;
  }

  .admin-stats span {
    font-size: 0.68rem;
    letter-spacing: 0.035em;
  }

  .admin-stats strong {
    font-size: 1.55rem;
  }

  .admin-controls .menu-filter-scroll {
    gap: 8px;
  }

  .admin-controls .menu-filter-btn {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  .admin-menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-menu-row {
    padding: 12px;
    border-radius: 15px;
  }

  .admin-menu-main {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-code {
    width: max-content;
    min-height: 30px;
    font-size: 0.78rem;
  }

  .admin-menu-main h3 {
    font-size: 0.94rem;
  }

  .admin-menu-main p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .admin-menu-row .availability-toggle {
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
  }

  .admin-item-card {
    padding: 18px;
    border-radius: 18px;
  }

  .admin-item-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .admin-shell {
    width: min(100% - 18px, 1080px);
  }

  .admin-app,
  .admin-card {
    padding: 14px;
  }

  .admin-actions {
    gap: 8px;
  }

  .admin-actions .btn {
    min-height: 36px;
    font-size: 0.8rem;
  }

  .admin-stats article {
    padding: 10px 7px;
  }

  .admin-stats span {
    font-size: 0.62rem;
  }

  .admin-stats strong {
    font-size: 1.35rem;
  }

  .admin-menu-list {
    gap: 8px;
  }

  .admin-menu-row {
    padding: 10px;
  }

  .admin-menu-main h3 {
    font-size: 0.88rem;
  }

  .admin-menu-main p {
    font-size: 0.76rem;
  }

  .availability-toggle {
    font-size: 0.88rem;
  }
}

/* Admin Menu v3: upload foto, tombol jelas, statistik center, kategori rapih */
.btn-danger {
  color: var(--cream);
  border-color: #9f211d;
  background: #9f211d;
  box-shadow: 0 10px 22px rgba(159, 33, 29, 0.16);
}

.btn-danger:hover,
.btn-danger:focus-visible {
  color: var(--white);
  border-color: var(--primary-maroon);
  background: var(--primary-maroon);
}

.admin-stats article {
  text-align: center;
  place-items: center;
  justify-items: center;
}

.admin-stats span,
.admin-stats strong {
  width: 100%;
  text-align: center;
}

.admin-controls .menu-filter-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
  overflow: visible;
  padding: 8px 0 12px;
}

.admin-controls .menu-filter-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  min-width: 0;
  white-space: normal;
}

.admin-photo-field input[type="file"] {
  width: 100%;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px dashed rgba(159, 33, 29, 0.34);
  border-radius: 12px;
  color: var(--muted-text);
  background: rgba(255, 241, 217, 0.68);
  cursor: pointer;
}

.admin-photo-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 13px;
  border: 0;
  border-radius: 999px;
  color: var(--deep-maroon);
  background: var(--light-gold);
  font-weight: 900;
  cursor: pointer;
}

.admin-upload-note {
  color: var(--muted-text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.admin-photo-preview {
  width: 100%;
  height: 132px;
  margin-top: 4px;
  border: 1px solid rgba(234, 217, 194, 0.95);
  border-radius: 14px;
  object-fit: cover;
  background: var(--soft-cream);
  box-shadow: 0 10px 24px rgba(74, 13, 10, 0.08);
}

.admin-item-actions .btn-danger {
  min-width: 92px;
}

@media (max-width: 760px) {
  .admin-controls .menu-filter-scroll {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-controls .menu-filter-btn {
    min-height: 40px;
    padding: 8px 9px;
    font-size: 0.84rem;
    line-height: 1.18;
  }

  .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .admin-controls .menu-filter-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-stats article {
    min-height: 82px;
    padding: 10px 7px;
  }

  .admin-stats span {
    font-size: 0.62rem;
  }

  .admin-stats strong {
    font-size: 1.42rem;
  }
}

@media (max-width: 360px) {
  .admin-controls .menu-filter-scroll {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .admin-controls .menu-filter-btn {
    font-size: 0.78rem;
    padding-inline: 7px;
  }
}

/* Admin Menu v4: form tambah item rapi, crop preview, harga format rupiah */
.admin-actions .btn-gold,
.admin-actions a.btn-gold,
.admin-item-actions .btn-gold {
  color: var(--deep-maroon) !important;
  border-color: var(--gold) !important;
  background: var(--gold) !important;
  opacity: 1 !important;
}

.admin-actions .btn-danger,
.admin-item-actions .btn-danger {
  color: var(--white) !important;
  border-color: #9f211d !important;
  background: #9f211d !important;
  opacity: 1 !important;
}

.admin-actions .btn-danger:hover,
.admin-actions .btn-danger:focus-visible,
.admin-item-actions .btn-danger:hover,
.admin-item-actions .btn-danger:focus-visible {
  background: var(--primary-maroon) !important;
  border-color: var(--primary-maroon) !important;
}

.admin-stats article {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.admin-stats span,
.admin-stats strong {
  text-align: center;
}

.admin-controls .menu-filter-scroll {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  overflow: visible !important;
  padding: 10px 0 12px;
}

.admin-controls .menu-filter-btn {
  flex: 0 1 auto;
  width: auto !important;
  min-width: 88px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  line-height: 1.15;
  white-space: nowrap;
}

.admin-item-card {
  width: min(100%, 760px);
  max-height: min(92vh, 760px);
}

.admin-item-grid {
  align-items: start;
  gap: 14px;
}

.admin-item-grid label {
  align-content: start;
  align-self: start;
}

.admin-item-grid input,
.admin-item-grid textarea {
  align-self: start;
  min-height: 52px;
}

#add-harga {
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 14px !important;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.admin-photo-field {
  gap: 7px;
}

.admin-photo-field input[type="file"] {
  min-height: 46px;
  padding: 8px 10px;
}

.admin-upload-note {
  max-width: 100%;
}

.admin-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 158px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(234, 217, 194, 0.95);
  border-radius: 14px;
  color: var(--muted-text);
  background:
    linear-gradient(135deg, rgba(255, 247, 234, 0.72), rgba(255, 241, 217, 0.92));
  box-shadow: 0 10px 24px rgba(74, 13, 10, 0.08);
}

.admin-photo-frame.is-empty {
  border-style: dashed;
}

.admin-photo-preview {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
  background: var(--soft-cream);
  box-shadow: none !important;
}

.admin-photo-preview[hidden],
.admin-photo-placeholder[hidden] {
  display: none !important;
}

.admin-photo-placeholder {
  padding: 12px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.35;
}

.admin-item-wide textarea {
  min-height: 96px;
}

@media (max-width: 760px) {
  .admin-item-card {
    width: min(100%, 520px);
  }

  .admin-item-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .admin-photo-frame {
    min-height: 190px;
  }

  .admin-controls .menu-filter-scroll {
    justify-content: center;
    gap: 7px;
  }

  .admin-controls .menu-filter-btn {
    min-width: 86px;
    padding-inline: 12px;
    font-size: 0.86rem;
  }
}

@media (max-width: 430px) {
  .admin-item-modal {
    padding: 10px;
    align-items: start;
  }

  .admin-item-card {
    padding: 16px;
    border-radius: 18px;
    max-height: calc(100vh - 20px);
  }

  .admin-item-head h2 {
    font-size: 1.85rem;
  }

  .admin-photo-frame {
    min-height: 176px;
  }

  .admin-item-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .admin-item-actions .btn {
    width: 100%;
  }

  .admin-controls .menu-filter-scroll {
    justify-content: flex-start;
  }

  .admin-controls .menu-filter-btn {
    min-width: auto;
    flex: 1 1 calc(33.333% - 8px);
    padding: 8px 9px;
    font-size: 0.8rem;
  }
}


/* Admin Menu v4: form tambah item lebih rapih + upload lebih ringan */
.admin-item-card {
  width: min(100%, 920px);
  max-height: min(92vh, 760px);
}

.admin-item-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  grid-template-areas:
    "name category"
    "price photo"
    "desc photo";
  gap: 14px 18px;
  align-items: start;
}

.admin-name-field { grid-area: name; }
.admin-category-field { grid-area: category; }
.admin-price-field { grid-area: price; }
.admin-photo-field { grid-area: photo; }
.admin-desc-field { grid-area: desc; }

.admin-item-grid label {
  align-content: start;
}

.admin-price-field input,
.admin-item-grid input[type="text"] {
  min-height: 52px;
  height: 52px;
}

.admin-price-field input {
  font-weight: 900;
}

.admin-desc-field textarea {
  min-height: 174px;
}

.admin-photo-field {
  align-self: stretch;
}

.admin-photo-frame {
  display: grid;
  place-items: center;
  width: 100%;
  height: 274px;
  margin-top: 6px;
  border: 1px solid rgba(234, 217, 194, 0.95);
  border-radius: 16px;
  background: var(--soft-cream);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(74, 13, 10, 0.08);
}

.admin-photo-frame.is-empty {
  border-style: dashed;
}

.admin-photo-preview {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  background: var(--soft-cream);
  box-shadow: none;
}

.admin-photo-placeholder {
  padding: 14px;
  color: var(--muted-text);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
}

.admin-crop-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.admin-crop-tools span {
  color: var(--muted-text);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-crop-tools button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(217, 164, 65, 0.5);
  border-radius: 999px;
  color: var(--deep-maroon);
  background: rgba(217, 164, 65, 0.12);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.admin-crop-tools button.is-active,
.admin-crop-tools button:hover,
.admin-crop-tools button:focus-visible {
  background: var(--light-gold);
  border-color: var(--gold);
}

.admin-item-actions {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .admin-item-card {
    width: min(100%, 520px);
    max-height: 92vh;
  }

  .admin-item-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "category"
      "price"
      "photo"
      "desc";
    gap: 12px;
  }

  .admin-photo-frame {
    height: 214px;
  }

  .admin-desc-field textarea {
    min-height: 128px;
  }
}

@media (max-width: 420px) {
  .admin-item-card {
    padding: 16px;
  }

  .admin-photo-field input[type="file"]::file-selector-button {
    display: block;
    width: 100%;
    margin: 0 0 8px;
  }

  .admin-photo-frame {
    height: 188px;
  }
}

/* Admin Menu v5: menu admin 4 kolom di layar besar */
@media (min-width: 1180px) {
  .admin-menu-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .admin-menu-row {
    min-height: 154px;
    padding: 14px;
    gap: 10px;
  }

  .admin-menu-main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 8px;
  }

  .admin-code {
    margin-inline: auto;
  }

  .admin-menu-main h3 {
    font-size: 0.98rem;
    line-height: 1.25;
    text-align: center;
  }

  .admin-menu-main p {
    font-size: 0.83rem;
    line-height: 1.35;
    text-align: center;
  }

  .admin-menu-row .availability-toggle {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 0.94rem;
  }
}

@media (min-width: 900px) and (max-width: 1179.98px) {
  .admin-menu-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-menu-main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .admin-code {
    margin-inline: auto;
  }
}

/* Admin Menu v6: tombol Edit di kartu menu */
.admin-menu-actions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.admin-menu-actions-row .availability-toggle {
  width: 100%;
  min-width: 0;
}

.admin-edit-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--deep-maroon);
  background: var(--gold);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(217, 164, 65, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.admin-edit-menu:hover,
.admin-edit-menu:focus-visible {
  transform: translateY(-2px);
  background: var(--light-gold);
  box-shadow: 0 14px 26px rgba(217, 164, 65, 0.22);
}

.admin-edit-menu:active {
  transform: scale(0.96);
}

@media (min-width: 1180px) {
  .admin-menu-row {
    min-height: 168px;
  }

  .admin-menu-actions-row {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 7px;
  }

  .admin-edit-menu {
    min-width: 0;
    width: 100%;
    padding-inline: 9px;
    font-size: 0.88rem;
  }
}

@media (max-width: 520px) {
  .admin-menu-actions-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .admin-edit-menu,
  .admin-menu-actions-row .availability-toggle {
    width: 100%;
    min-height: 40px;
    font-size: 0.86rem;
  }
}


/* Secret admin PIN modal */
body.secret-admin-open {
  overflow: hidden;
}

.secret-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.secret-admin-modal.is-open {
  display: flex;
}

.secret-admin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 16, 12, 0.72);
  backdrop-filter: blur(8px);
}

.secret-admin-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 26px;
  border: 1px solid rgba(217, 164, 65, 0.38);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 0 28px 80px rgba(38, 22, 18, 0.35);
  color: var(--deep-maroon);
}

.secret-admin-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(217, 164, 65, 0.55);
  border-radius: 999px;
  color: var(--deep-maroon);
  background: rgba(217, 164, 65, 0.1);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.secret-admin-kicker {
  display: inline-flex;
  width: max-content;
  padding: 7px 12px;
  border: 1px solid rgba(217, 164, 65, 0.55);
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.14);
  font-weight: 900;
  font-size: 0.9rem;
}

.secret-admin-card h2 {
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.15;
}

.secret-admin-copy {
  margin-top: 8px;
  color: var(--muted-text);
  font-weight: 700;
}

.secret-admin-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.secret-admin-form input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid rgba(217, 164, 65, 0.42);
  border-radius: 16px;
  color: var(--deep-maroon);
  background: var(--white);
  font-weight: 900;
  outline: none;
}

.secret-admin-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.18);
}

.secret-admin-status {
  min-height: 22px;
  margin-top: 12px;
  font-weight: 900;
}

.secret-admin-status.is-error {
  color: #a31b1b;
}

.secret-admin-status.is-success {
  color: #087a35;
}

@media (max-width: 520px) {
  .secret-admin-card {
    padding: 22px;
    border-radius: 18px;
  }

  .secret-admin-card h2 {
    font-size: 1.72rem;
  }
}

/* APJ Custom Order / Pesanan Acara */
.custom-order-hero .order-hero-inner {
  max-width: 900px;
}

.custom-order-hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.custom-order-section {
  padding: 48px 0 88px;
}

.custom-order-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.custom-order-heading .section-kicker {
  margin: 0 0 12px;
}

.custom-order-heading h2,
.custom-summary-panel h2,
.reservation-card h2 {
  color: var(--deep-maroon);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.18;
}

.custom-order-heading p {
  margin-top: 10px;
  color: var(--muted-text);
}

.custom-order-mini-note {
  padding: 16px;
  border: 1px solid rgba(217, 164, 65, 0.36);
  border-radius: 16px;
  background: rgba(217, 164, 65, 0.13);
  color: var(--deep-maroon);
  box-shadow: var(--shadow-card);
}

.custom-order-mini-note strong,
.custom-order-mini-note span {
  display: block;
}

.custom-order-mini-note span {
  margin-top: 5px;
  color: var(--muted-text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.custom-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.custom-order-main {
  display: grid;
  gap: 18px;
}

.custom-order-card,
.custom-summary-panel {
  border: 1px solid rgba(234, 217, 194, 0.92);
  border-radius: 18px;
  background: rgba(255, 247, 234, 0.96);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.custom-card-heading,
.custom-card-heading-left {
  display: flex;
  gap: 12px;
  align-items: start;
}

.custom-card-heading-split {
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.custom-card-heading span,
.custom-group-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  color: var(--deep-maroon);
  background: var(--light-gold);
  font-weight: 900;
}

.custom-card-heading h3,
.custom-group-head h3 {
  color: var(--deep-maroon);
  font-family: var(--font-heading);
  font-size: 1.28rem;
  line-height: 1.25;
}

.custom-card-heading p,
.custom-group-head p {
  margin-top: 4px;
  color: var(--muted-text);
  font-size: 0.94rem;
  line-height: 1.45;
}

.custom-field-grid,
.package-config-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.custom-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.package-config-grid {
  grid-template-columns: 150px 150px minmax(0, 1fr);
}

.custom-field-grid label,
.custom-full-field,
.package-config-grid label,
.variant-row label,
.lauk-row label {
  display: grid;
  gap: 7px;
  color: var(--deep-maroon);
  font-size: 0.88rem;
  font-weight: 900;
}

.custom-field-grid input,
.custom-field-grid select,
.custom-full-field textarea,
.package-config-grid input,
.variant-row input,
.lauk-row input,
.lauk-row select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(234, 217, 194, 0.96);
  border-radius: 12px;
  color: var(--text-brown);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(74, 13, 10, 0.06);
  padding: 10px 12px;
  outline: none;
}

.custom-full-field {
  margin-top: 14px;
}

.custom-full-field textarea {
  resize: vertical;
  border-radius: 14px;
}

.group-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.custom-groups {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.custom-empty-state {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed rgba(217, 164, 65, 0.56);
  border-radius: 16px;
  color: var(--muted-text);
  background: rgba(255, 241, 217, 0.66);
  font-weight: 800;
}

.custom-group-card {
  padding: 16px;
  border: 1px solid rgba(234, 217, 194, 0.92);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.custom-group-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.custom-group-head > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.custom-group-head h3,
.custom-group-head p {
  grid-column: 2;
}

.custom-group-number {
  grid-row: 1 / span 2;
}

.custom-remove-group,
.custom-row-remove,
.custom-add-row,
.custom-copy-btn {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.custom-remove-group,
.custom-row-remove {
  color: var(--white);
  background: var(--primary-maroon);
  font-weight: 900;
}

.custom-remove-group {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.custom-row-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.variant-row,
.lauk-row {
  display: grid;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(234, 217, 194, 0.82);
  border-radius: 14px;
  background: rgba(255, 247, 234, 0.72);
}

.variant-row {
  grid-template-columns: 96px minmax(0, 1fr) minmax(160px, 0.8fr) 38px;
}

.lauk-row {
  grid-template-columns: 86px minmax(0, 1fr) 110px minmax(150px, 0.8fr) 38px;
}

.custom-row-remove {
  width: 38px;
  min-height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
}

.custom-progress {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(217, 164, 65, 0.12);
}

.custom-progress strong {
  color: var(--deep-maroon);
  font-size: 1.2rem;
}

.custom-progress span,
.custom-progress em {
  color: var(--muted-text);
  font-style: normal;
  font-weight: 900;
}

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

.custom-add-row {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--deep-maroon);
  background: var(--light-gold);
  font-weight: 900;
}

.custom-validation,
.custom-progress em,
.custom-summary-group span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.is-ok {
  color: #246c39 !important;
  background: rgba(31, 168, 85, 0.12);
}

.is-warning {
  color: var(--primary-maroon) !important;
  background: rgba(143, 31, 27, 0.1);
}

.custom-summary-panel {
  position: sticky;
  top: calc(var(--header-height) + 18px);
}

.custom-summary-panel .section-kicker {
  margin: 0 0 10px;
}

.custom-summary-list {
  display: grid;
  gap: 12px;
  max-height: 48vh;
  overflow: auto;
  margin-top: 16px;
  padding-right: 4px;
}

.custom-summary-empty {
  color: var(--muted-text);
  font-weight: 800;
}

.custom-summary-group {
  padding: 13px;
  border: 1px solid rgba(234, 217, 194, 0.86);
  border-radius: 14px;
  background: var(--white);
}

.custom-summary-group strong {
  color: var(--deep-maroon);
}

.custom-summary-group p {
  margin-top: 6px;
  color: var(--muted-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.custom-summary-group ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text-brown);
  font-size: 0.92rem;
}

.custom-summary-group small {
  color: var(--muted-text);
}

.custom-summary-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.custom-summary-status[data-status="info"] {
  color: var(--deep-maroon);
  background: rgba(217, 164, 65, 0.16);
}

.custom-summary-status[data-status="warning"] {
  color: var(--primary-maroon);
  background: rgba(143, 31, 27, 0.1);
}

.custom-summary-status[data-status="success"] {
  color: #246c39;
  background: rgba(31, 168, 85, 0.12);
}

.custom-checkout-btn,
.custom-copy-btn {
  width: 100%;
  margin-top: 12px;
}

.custom-checkout-btn:disabled,
.custom-copy-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.custom-copy-btn {
  min-height: 42px;
  border-radius: 999px;
  color: var(--deep-maroon);
  background: rgba(217, 164, 65, 0.18);
  font-weight: 900;
}

.reservation-section {
  padding: 0 0 78px;
}

.reservation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-radius: 22px;
  color: var(--cream);
  background: linear-gradient(135deg, var(--deep-maroon), var(--primary-maroon));
  box-shadow: var(--shadow-soft);
}

.reservation-card .section-kicker {
  margin: 0 0 12px;
}

.reservation-card h2 {
  color: var(--cream);
}

.reservation-card p {
  margin-top: 10px;
  color: rgba(255, 247, 234, 0.86);
}

@media (max-width: 1120px) {
  .custom-order-layout {
    grid-template-columns: 1fr;
  }

  .custom-summary-panel {
    position: static;
  }

  .custom-summary-list {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .custom-order-heading {
    grid-template-columns: 1fr;
  }

  .custom-field-grid,
  .package-config-grid {
    grid-template-columns: 1fr;
  }

  .variant-row,
  .lauk-row {
    grid-template-columns: 1fr;
  }

  .custom-row-remove {
    width: 100%;
    border-radius: 999px;
  }

  .reservation-card {
    grid-template-columns: 1fr;
  }

  .reservation-card .btn {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .custom-order-section {
    padding: 38px 0 62px;
  }

  .custom-order-card,
  .custom-summary-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .custom-card-heading-split,
  .custom-group-head,
  .custom-group-bottom,
  .custom-progress {
    display: grid;
  }

  .group-add-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-add-actions .btn:last-child {
    grid-column: 1 / -1;
  }

  .custom-group-head > div {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .custom-card-heading span,
  .custom-group-number {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .custom-remove-group,
  .custom-add-row,
  .custom-validation {
    width: 100%;
    justify-content: center;
  }

  .custom-order-hero-actions .btn {
    width: 100%;
  }
}


/* Custom order UX polish: empty first state + responsive controls */
.custom-empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  margin-top: 18px;
  padding: 24px 18px;
  border: 1px dashed rgba(217, 164, 65, 0.65);
  border-radius: 18px;
  color: var(--muted-text);
  background: linear-gradient(180deg, rgba(255, 241, 217, 0.72), rgba(255, 247, 234, 0.92));
  font-weight: 800;
}

.custom-empty-state[hidden] {
  display: none !important;
}

.custom-empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--deep-maroon);
  background: var(--light-gold);
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(217, 164, 65, 0.22);
}

.custom-empty-state h3 {
  color: var(--deep-maroon);
  font-family: var(--font-heading);
  font-size: 1.26rem;
  line-height: 1.25;
}

.custom-empty-state p {
  max-width: 560px;
  color: var(--muted-text);
  line-height: 1.5;
}

.custom-empty-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 560px);
  margin-top: 6px;
}

.group-add-actions .btn,
.custom-empty-actions .btn,
.custom-add-row {
  border: 1px solid rgba(240, 200, 102, 0.9) !important;
  color: var(--deep-maroon) !important;
  background: linear-gradient(135deg, #f1cb6f 0%, var(--gold) 55%, #cf9936 100%) !important;
  box-shadow: 0 10px 22px rgba(217, 164, 65, 0.18);
}

.group-add-actions .btn:hover,
.group-add-actions .btn:focus-visible,
.custom-empty-actions .btn:hover,
.custom-empty-actions .btn:focus-visible,
.custom-add-row:hover,
.custom-add-row:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #f6d57f 0%, #e8b94f 55%, #d8a33e 100%) !important;
}

.custom-row-list .custom-add-row,
.custom-group-bottom .custom-add-row {
  justify-self: start;
}

@media (max-width: 980px) {
  .custom-order-section {
    padding-top: 34px;
  }

  .custom-order-layout {
    gap: 16px;
  }

  .custom-order-card,
  .custom-summary-panel {
    box-shadow: 0 10px 24px rgba(74, 13, 10, 0.09);
  }

  .custom-card-heading-split {
    align-items: stretch;
  }

  .group-add-actions {
    justify-content: stretch;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .group-add-actions .btn {
    width: 100%;
    min-height: 44px;
    padding-inline: 10px;
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .custom-order-hero .order-hero-inner {
    min-height: auto;
    padding-block: 48px;
  }

  .custom-order-heading {
    gap: 14px;
  }

  .custom-order-mini-note {
    padding: 14px;
  }

  .custom-card-heading,
  .custom-card-heading-left {
    align-items: flex-start;
  }

  .group-add-actions,
  .custom-empty-actions {
    grid-template-columns: 1fr;
  }

  .group-add-actions .btn:last-child {
    grid-column: auto;
  }

  .custom-field-grid input,
  .custom-field-grid select,
  .custom-full-field textarea,
  .package-config-grid input,
  .variant-row input,
  .lauk-row input,
  .lauk-row select {
    min-height: 48px;
    font-size: 1rem;
  }

  .custom-group-card {
    padding: 14px;
  }

  .custom-group-head,
  .custom-group-bottom,
  .custom-progress {
    gap: 10px;
  }

  .custom-add-row,
  .custom-validation,
  .custom-remove-group {
    min-height: 44px;
  }

  .custom-summary-panel {
    padding-bottom: 18px;
  }

  .reservation-card {
    padding: 20px;
  }
}

/* Cart confirmation modal */
body.modal-open {
  overflow: hidden;
}

.apj-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(38, 12, 8, 0.62);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.apj-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 180ms ease, visibility 0s;
}

.apj-modal {
  position: relative;
  width: min(100%, 520px);
  padding: 28px;
  border: 1px solid rgba(240, 200, 102, 0.45);
  border-radius: 24px;
  color: var(--text-brown);
  background: var(--cream);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  transform: translateY(10px) scale(0.98);
  transition: transform 180ms ease;
}

.apj-modal-backdrop.is-open .apj-modal {
  transform: translateY(0) scale(1);
}

.apj-modal .section-kicker {
  margin: 0 0 14px;
}

.apj-modal h2 {
  color: var(--deep-maroon);
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.16;
}

.apj-modal-message {
  margin-top: 12px;
  color: var(--muted-text);
  font-weight: 800;
  line-height: 1.65;
}

.apj-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(217, 164, 65, 0.42);
  border-radius: 50%;
  color: var(--deep-maroon);
  background: rgba(255, 247, 234, 0.9);
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
}

.apj-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn-outline-modal {
  color: var(--deep-maroon);
  border-color: rgba(217, 164, 65, 0.7);
  background: rgba(255, 247, 234, 0.56);
}

.btn-outline-modal:hover,
.btn-outline-modal:focus-visible {
  color: var(--deep-maroon);
  background: var(--light-gold);
  border-color: var(--light-gold);
}

.btn-danger-modal {
  color: var(--white);
  background: #a61e1b;
  border-color: #a61e1b;
  box-shadow: 0 12px 26px rgba(166, 30, 27, 0.24);
}

.btn-danger-modal:hover,
.btn-danger-modal:focus-visible {
  color: var(--white);
  background: #8f1f1b;
  border-color: #8f1f1b;
}

@media (max-width: 560px) {
  .apj-modal {
    padding: 24px 18px 18px;
    border-radius: 20px;
  }

  .apj-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .apj-modal-actions .btn {
    width: 100%;
  }
}

/* === APJ story + event order polish === */
.story-section {
  padding: 86px 0 66px;
}

.story-inner {
  display: block;
  text-align: center;
}

.story-copy {
  max-width: 900px;
  margin: 0 auto;
}

.story-copy h2 {
  max-width: 780px;
  margin-inline: auto;
}

.story-copy p {
  max-width: 820px;
  margin-inline: auto;
}

.story-copy blockquote,
blockquote {
  max-width: 720px;
  margin: 26px auto 0;
  border-left: 0;
  border-top: 3px solid var(--gold);
  text-align: center;
}

.story-section .timeline-grid {
  margin-top: 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-section .timeline-card {
  min-height: 172px;
  text-align: left;
}

.group-section {
  padding: 76px 0;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0.88), rgba(255, 241, 217, 0.92)),
    var(--cream);
}

.group-section .group-card-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 38px;
  align-items: center;
  padding: 44px;
  border: 1px solid rgba(240, 200, 102, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(217, 164, 65, 0.16), transparent 32%),
    linear-gradient(135deg, var(--deep-maroon), var(--dark-maroon) 55%, var(--primary-maroon));
  box-shadow: 0 22px 60px rgba(74, 13, 10, 0.18);
}

.group-section .group-copy h2 {
  color: var(--cream);
}

.group-section .group-copy p:not(.section-kicker) {
  color: rgba(255, 247, 234, 0.86);
}

.group-section .feature-card {
  border-color: rgba(240, 200, 102, 0.24);
  background: rgba(255, 247, 234, 0.075);
}

@media (max-width: 940px) {
  .story-section .timeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .group-section .group-card-panel {
    grid-template-columns: 1fr;
    padding: 34px;
  }
}

@media (max-width: 700px) {
  .story-section {
    padding: 58px 0 44px;
  }

  .story-copy blockquote,
  blockquote {
    max-width: 100%;
    padding: 16px;
    font-size: 1rem;
  }

  .story-section .timeline-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .story-section .timeline-card {
    min-height: auto;
    text-align: left;
  }

  .group-section {
    padding: 42px 0 58px;
  }

  .group-section .group-card-panel {
    padding: 24px 18px;
    border-radius: 18px;
  }
}
