:root {
  --ink: #1d1710;
  --muted: #756a5b;
  --cream: #fff8ea;
  --paper: #ffffff;
  --charcoal: #15110a;
  --charcoal-soft: #22190f;
  --gold: #d7a83f;
  --gold-light: #ffe29a;
  --gold-deep: #a66f17;
  --royal-red: #8e1f17;
  --royal-red-dark: #3c120e;
  --wine: #9d241a;
  --wine-dark: #4b120d;
  --lime: #e6d37c;
  --tomato: #c74932;
  --saffron: #e49c25;
  --line: rgba(61, 45, 21, 0.12);
  --shadow: 0 20px 48px rgba(42, 31, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(142, 31, 23, 0.16);
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(142, 31, 23, 0.08);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--royal-red));
  border: 1px solid rgba(255, 248, 234, 0.72);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fff4bd, var(--gold-deep), var(--royal-red-dark));
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(215, 168, 63, 0.2), transparent 0 32%),
    linear-gradient(135deg, rgba(142, 31, 23, 0.13), transparent 34%),
    linear-gradient(225deg, rgba(215, 168, 63, 0.12), transparent 36%),
    linear-gradient(180deg, #fff7e8 0%, #f4ead8 48%, #efe2cd 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(142, 31, 23, 0.12), transparent 0 18rem),
    radial-gradient(circle at 84% 8%, rgba(215, 168, 63, 0.2), transparent 0 16rem),
    repeating-linear-gradient(135deg, rgba(78, 38, 18, 0.028) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

.app-frame {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--cream);
  box-shadow: 0 0 90px rgba(45, 34, 18, 0.18);
  position: relative;
  overflow-x: hidden;
  padding-bottom: 6.2rem;
  isolation: isolate;
}

.store-header {
  padding: 0.9rem 1rem 0.85rem;
  background:
    linear-gradient(180deg, rgba(255, 247, 229, 0.98) 0%, var(--cream) 100%);
}

.brand-row,
.section-title,
.cart-head,
.admin-heading,
.customer-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-row {
  position: sticky;
  top: 0.75rem;
  z-index: 35;
  padding: 0.58rem 0.62rem;
  border-radius: 1.25rem;
  background: rgba(255, 248, 234, 0.88);
  border: 1px solid rgba(215, 168, 63, 0.2);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(65, 35, 15, 0.1);
}

.brand-logo {
  display: block;
  width: min(58vw, 15.5rem);
  height: 3.15rem;
  object-fit: contain;
  object-position: left center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.greeting-pill {
  min-width: 0;
  max-width: 8.4rem;
  padding: 0.48rem 0.65rem;
  border-radius: 1rem;
  color: #4b120d;
  background: linear-gradient(135deg, rgba(255, 241, 180, 0.72), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(215, 168, 63, 0.28);
}

.greeting-pill span,
.greeting-pill strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.greeting-pill span {
  color: #8b5d16;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.greeting-pill strong {
  color: var(--royal-red-dark);
  font-size: 0.92rem;
  line-height: 1.1;
  font-weight: 900;
}

.brand-row h1,
.hero-banner h2,
.section-title h2,
.cart-head h2,
.confirm-card h2,
.admin-heading h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-row h1 {
  color: var(--charcoal);
  font-size: 1.44rem;
}

.brand-subtitle {
  display: block;
  margin-top: 0.08rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow,
.section-kicker {
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title h2 {
  color: var(--royal-red-dark);
}

.cart-top-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 2.85rem;
  border: 0;
  border-radius: 999px;
  padding: 0.62rem 0.72rem 0.62rem 0.9rem;
  color: #fff2c9;
  background:
    linear-gradient(135deg, var(--royal-red), var(--royal-red-dark));
  border: 1px solid rgba(255, 226, 154, 0.28);
  box-shadow: 0 12px 26px rgba(75, 20, 14, 0.24);
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cart-top-btn:hover,
.cart-top-btn:focus-visible {
  color: #fff8df;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(75, 20, 14, 0.3);
}

.cart-top-btn strong {
  min-width: 1.85rem;
  min-height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #3a1508;
  background: linear-gradient(135deg, #fff1b4, var(--gold));
}

.hero-banner {
  position: relative;
  margin-top: 1.1rem;
  min-height: 12rem;
  border-radius: 1.65rem;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 8.5rem;
  gap: 1rem;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 226, 154, 0.46), transparent 0 24%),
    radial-gradient(circle at 100% 100%, rgba(199, 73, 50, 0.34), transparent 0 30%),
    linear-gradient(135deg, var(--royal-red-dark) 0%, #15110a 45%, #8c5613 100%);
  border: 1px solid rgba(255, 226, 154, 0.28);
  box-shadow: 0 24px 54px rgba(41, 29, 12, 0.28);
  animation: heroFloat 0.72s ease both;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 36px);
  pointer-events: none;
}

.hero-banner > * {
  position: relative;
  z-index: 1;
}

.hero-banner p {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.live-chip {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.62rem;
  border-radius: 999px;
  color: #2a1b08;
  background: linear-gradient(135deg, #fff2bb, var(--gold));
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(215, 168, 63, 0.22);
}

.hero-bowl {
  width: 8.2rem;
  height: 8.2rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #fff2d3 0 18%, transparent 19%),
    radial-gradient(circle at 35% 55%, var(--tomato) 0 12%, transparent 13%),
    radial-gradient(circle at 65% 56%, var(--saffron) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 50%, #f2bc57 0 40%, #fff4df 41% 58%, #15110a 59% 100%);
  border: 0.6rem solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 26px 45px rgba(0, 0, 0, 0.2);
}

.offer-slider {
  position: relative;
  margin-top: 0.82rem;
  min-height: 11.1rem;
  overflow: hidden;
  border-radius: 1.45rem;
  color: #fff8df;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 226, 154, 0.44), transparent 0 22%),
    radial-gradient(circle at 100% 100%, rgba(215, 168, 63, 0.44), transparent 0 34%),
    linear-gradient(135deg, #b3251a 0%, #5b150f 56%, #d7a83f 150%);
  border: 1px solid rgba(255, 226, 154, 0.24);
  box-shadow: 0 20px 44px rgba(68, 24, 14, 0.2);
}

.offer-track {
  position: relative;
  min-height: 11.1rem;
}

.offer-slide {
  position: absolute;
  inset: 0;
  min-height: 11.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem 1.2rem 2.2rem;
  opacity: 0;
  transform: translateX(26px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.34s ease, transform 0.34s ease;
}

.offer-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  animation: offerGlow 4s ease-in-out infinite;
}

.offer-slide::after {
  content: "";
  position: absolute;
  right: -1.55rem;
  top: 1.05rem;
  width: 8.4rem;
  height: 8.4rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #fff6d6 0 17%, transparent 18%),
    radial-gradient(circle at 34% 56%, #b9281e 0 12%, transparent 13%),
    radial-gradient(circle at 65% 56%, #e5a33b 0 12%, transparent 13%),
    radial-gradient(circle at 50% 50%, #f0bd5e 0 41%, #fff1c9 42% 58%, #3c120e 59% 100%);
  opacity: 0.92;
  box-shadow: 0 18px 34px rgba(35, 10, 5, 0.22);
}

.offer-label {
  width: max-content;
  margin-bottom: 0.48rem;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  color: #3a1508;
  background: linear-gradient(135deg, #fff1b4, var(--gold));
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.offer-slide h2 {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  margin: 0;
  font-family: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  font-size: 1.7rem;
  line-height: 1.04;
  font-weight: 900;
}

.offer-slide p {
  position: relative;
  z-index: 1;
  max-width: 21ch;
  margin: 0.45rem 0 0;
  color: rgba(255, 248, 223, 0.78);
  line-height: 1.4;
  font-size: 0.92rem;
  font-weight: 700;
}

.offer-dots {
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 0.7rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.36rem;
  min-height: 1rem;
  padding-top: 0.28rem;
  border-top: 1px solid rgba(255, 248, 223, 0.16);
}

.offer-dots button {
  width: 0.48rem;
  height: 0.48rem;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 248, 223, 0.42);
  transition: width 0.22s ease, background 0.22s ease;
}

.offer-dots button.is-active {
  width: 1.35rem;
  background: linear-gradient(135deg, #fff1b4, var(--gold));
}

.promo-strip {
  margin-top: 0.8rem;
  padding: 0.76rem 0.9rem;
  border: 1px solid rgba(215, 168, 63, 0.35);
  border-radius: 1rem;
  color: #57370d;
  background:
    linear-gradient(135deg, rgba(255, 226, 154, 0.52), rgba(255, 255, 255, 0.72));
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(112, 74, 18, 0.08);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.72rem;
}

.quick-stats span {
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0.55rem;
  border-radius: 0.95rem;
  color: #51340f;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(215, 168, 63, 0.22);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.content-area {
  padding: 0 1rem 1rem;
}

.customer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.86rem;
  padding: 0.85rem 0.92rem;
  border-radius: 1.2rem;
  color: #fff5d7;
  background:
    radial-gradient(circle at top right, rgba(255, 226, 154, 0.2), transparent 0 34%),
    linear-gradient(135deg, var(--royal-red-dark), var(--charcoal));
  border: 1px solid rgba(255, 226, 154, 0.22);
  box-shadow: 0 16px 34px rgba(65, 24, 15, 0.13);
  animation: rowIn 0.32s ease both;
}

.customer-summary strong {
  display: block;
  color: #fff9e6;
  font-family: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 900;
}

.customer-summary small {
  display: block;
  color: rgba(255, 245, 215, 0.72);
  font-weight: 800;
}

.edit-customer-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 0.62rem 0.86rem;
  color: #3a1508;
  background: linear-gradient(135deg, #fff1b4, var(--gold));
  font-weight: 900;
}

.customer-card {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 1.25rem;
  color: #fff4d4;
  background:
    radial-gradient(circle at top right, rgba(255, 226, 154, 0.24), transparent 0 32%),
    linear-gradient(135deg, var(--royal-red), var(--royal-red-dark));
  border: 1px solid rgba(255, 226, 154, 0.28);
  box-shadow: 0 18px 36px rgba(67, 20, 13, 0.17);
}

.customer-card .section-kicker,
.customer-card .form-label {
  color: #ffe4a3;
}

.customer-card strong {
  display: block;
  color: #fff8df;
  font-family: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 900;
}

.step-pill {
  flex: 0 0 auto;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  color: #3a1508;
  background: linear-gradient(135deg, #fff1b4, var(--gold));
  font-size: 0.72rem;
  font-weight: 900;
}

.location-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.05rem;
  padding: 0.9rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 234, 0.92));
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(23, 35, 31, 0.07);
}

.location-card p {
  margin: 0.32rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.location-card.is-ok {
  border-color: rgba(215, 168, 63, 0.42);
  background: #fff8e8;
}

.location-card.is-blocked {
  border-color: rgba(233, 75, 53, 0.35);
  background: #fff1ee;
}

.btn-location,
.add-btn,
.order-btn {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--royal-red), var(--royal-red-dark));
  font-weight: 900;
}

.order-btn.customer-save-btn {
    color:#fff;
}

.btn-location {
  border-radius: 999px;
  padding: 0.72rem 1rem;
  box-shadow: 0 10px 22px rgba(142, 31, 23, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-location:hover,
.btn-location:focus-visible {
  color: #fff7df;
  background: linear-gradient(135deg, #b93123, var(--royal-red-dark));
  box-shadow: 0 14px 28px rgba(142, 31, 23, 0.25);
  transform: translateY(-1px);
}

.section-title {
  margin: 0.2rem 0 0.78rem;
}

.item-count {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

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

.food-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 19.4rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), #fff3df),
    var(--paper);
  border: 1px solid rgba(215, 168, 63, 0.22);
  box-shadow: 0 16px 36px rgba(68, 31, 15, 0.1);
  transform: translateY(0) scale(1);
  animation: cardEnter 0.58s ease both;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.food-card:nth-child(2) {
  animation-delay: 0.06s;
}

.food-card:nth-child(3) {
  animation-delay: 0.12s;
}

.food-card:nth-child(4) {
  animation-delay: 0.18s;
}

.food-card:hover,
.food-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(215, 168, 63, 0.42);
  box-shadow: 0 22px 46px rgba(69, 47, 16, 0.17);
}

.food-card.is-added {
  animation: addPulse 0.52s ease;
}

.food-media {
  position: relative;
  aspect-ratio: 1 / 0.96;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(215, 168, 63, 0.2), transparent 30%),
    #f1eadc;
}

.food-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

.food-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.food-card:hover .food-media img,
.food-card:focus-within .food-media img {
  transform: scale(1.08);
}

.food-tag {
  position: absolute;
  left: 0.65rem;
  top: 0.65rem;
  z-index: 2;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  color: #332005;
  background: linear-gradient(135deg, #fff5c8, #e0b149);
  font-size: 0.68rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.food-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  margin: -1.25rem 0.65rem 0.65rem;
  padding: 0.82rem;
  border-radius: 1.05rem;
  background: rgba(255, 252, 245, 0.94);
  border: 1px solid rgba(215, 168, 63, 0.18);
  box-shadow: 0 14px 28px rgba(68, 31, 15, 0.1);
  backdrop-filter: blur(12px);
  z-index: 2;
}

.food-mini-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--gold-deep);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.food-info h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.18;
  font-weight: 900;
}

.food-info p {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.food-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(61, 45, 21, 0.08);
}

.food-bottom strong {
  color: #9d5f12;
  font-size: 1.02rem;
  white-space: nowrap;
}

.add-btn {
  min-width: 3.35rem;
  border-radius: 0.9rem;
  padding: 0.58rem 0.78rem;
  box-shadow: 0 10px 22px rgba(142, 31, 23, 0.2);
  transition: transform 0.18s ease, background 0.18s ease;
}

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

.add-btn:hover,
.add-btn:focus-visible {
  color: #fff7df;
  background: linear-gradient(135deg, #b93123, var(--royal-red-dark));
}

.cart-fab {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 488px);
  z-index: 36;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 226, 154, 0.24);
  border-radius: 1.35rem;
  padding: 0.82rem 0.95rem;
  color: #fff7df;
  background:
    radial-gradient(circle at top right, rgba(255, 226, 154, 0.18), transparent 0 34%),
    linear-gradient(135deg, #3c120e, #8e1f17);
  box-shadow: 0 18px 42px rgba(60, 18, 14, 0.32);
  font-weight: 900;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cart-fab:hover,
.cart-fab:focus-visible {
  color: #fff7df;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 22px 46px rgba(60, 18, 14, 0.38);
}

.cart-fab span {
  display: grid;
  gap: 0.08rem;
}

.cart-fab small {
  color: rgba(255, 247, 223, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
}

.cart-fab b {
  font-size: 1rem;
}

.cart-fab strong {
  min-width: 2rem;
  min-height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #2a1b08;
  background: linear-gradient(135deg, #fff2bb, var(--gold));
}

.cart-panel,
.confirm-order,
.customer-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.cart-panel.is-open,
.confirm-order:not([hidden]),
.customer-modal.is-open {
  pointer-events: auto;
}

.cart-backdrop,
.confirm-order,
.customer-modal {
  background: rgba(9, 17, 14, 0.55);
  backdrop-filter: blur(8px);
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.cart-panel.is-open .cart-backdrop {
  opacity: 1;
}

.cart-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 105%);
  width: min(100%, 520px);
  max-height: 88vh;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(142, 31, 23, 0.12);
  padding: 0.85rem 1rem 1.2rem;
  border-radius: 1.6rem 1.6rem 0 0;
  background: linear-gradient(180deg, #fffaf0, var(--cream));
  transition: transform 0.28s ease;
}

.customer-modal {
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.customer-modal.is-open {
  opacity: 1;
}

.customer-modal-card {
  width: min(100%, 440px);
  transform: translateY(22px) scale(0.97);
  padding: 1.2rem;
  border-radius: 1.45rem;
  color: #fff7df;
  background:
    radial-gradient(circle at top right, rgba(255, 226, 154, 0.22), transparent 0 30%),
    radial-gradient(circle at bottom left, rgba(199, 73, 50, 0.2), transparent 0 34%),
    linear-gradient(145deg, var(--royal-red), var(--royal-red-dark) 58%, var(--charcoal));
  border: 1px solid rgba(255, 226, 154, 0.3);
  box-shadow: 0 28px 70px rgba(16, 10, 5, 0.42);
  transition: transform 0.28s ease;
}

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

.modal-logo-wrap {
  width: 12rem;
  max-width: 76%;
  margin-bottom: 1rem;
  padding: 0.35rem;
  border-radius: 1rem;
  background: rgba(255, 248, 234, 0.08);
  border: 1px solid rgba(255, 226, 154, 0.24);
}

.modal-logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.customer-modal-card h2 {
  margin: 0.4rem 0 0.55rem;
  font-family: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  font-size: clamp(1.65rem, 8vw, 2.35rem);
  line-height: 1.05;
  font-weight: 900;
}

.customer-modal-card p {
  margin: 0;
  color: rgba(255, 247, 223, 0.78);
  line-height: 1.55;
}

.modal-grid {
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

.customer-modal .form-label {
  color: #ffe4a3;
  font-weight: 900;
}

.customer-save-btn {
  margin-top: 1rem;
  background: linear-gradient(135deg, #fff1b4, var(--gold), var(--gold-deep));
  color: #371605;
  box-shadow: 0 16px 32px rgba(215, 168, 63, 0.24);
}

.cart-panel.is-open .cart-sheet {
  transform: translate(-50%, 0);
}

.sheet-handle {
  width: 3.5rem;
  height: 0.32rem;
  margin: 0 auto 0.9rem;
  border-radius: 999px;
  background: rgba(23, 35, 31, 0.22);
}

.icon-btn {
  width: 2.45rem;
  height: 2.45rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--charcoal);
  font-size: 1.5rem;
}

.cart-items {
  display: grid;
  gap: 0.7rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  animation: rowIn 0.24s ease both;
}

.cart-row span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.qty-control button {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f5eedb;
  color: var(--royal-red-dark);
  font-weight: 900;
  transition: transform 0.16s ease, background 0.16s ease;
}

.qty-control button:hover,
.qty-control button:focus-visible {
  background: #f3dca4;
  transform: translateY(-1px);
}

.customer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.app-input,
.address-input {
  border-radius: 1rem;
  border-color: var(--line);
  min-height: 3rem;
  background: #fff;
  box-shadow: none;
}

.app-input:focus,
.address-input:focus {
  border-color: rgba(215, 168, 63, 0.68);
  box-shadow: 0 0 0 0.24rem rgba(215, 168, 63, 0.18);
}

.bill-box {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fff, #fff7df);
  border: 1px solid rgba(215, 168, 63, 0.16);
}

.bill-box div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.bill-box .bill-total {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.order-btn {
  width: 100%;
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--royal-red), var(--royal-red-dark));
  box-shadow: 0 16px 30px rgba(142, 31, 23, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.order-btn:hover,
.order-btn:focus-visible {
  color: #fff7df;
  background: linear-gradient(135deg, #b93123, var(--royal-red-dark));
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(142, 31, 23, 0.32);
}

.cart-note,
.empty-cart {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.confirm-order {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.confirm-card {
  width: min(100%, 440px);
  padding: 1.25rem;
  border-radius: 1.3rem;
  background: #fff;
  box-shadow: var(--shadow);
}

.confirm-card p {
  color: var(--muted);
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 5.8rem;
  z-index: 90;
  width: min(calc(100% - 2rem), 440px);
  transform: translateX(-50%);
  display: grid;
  gap: 0.5rem;
  pointer-events: none;
}

.mini-toast {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(63, 18, 13, 0.96);
  text-align: center;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  animation: toastIn 0.22s ease both;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes addPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1);
  }
}

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

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

@keyframes offerGlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes heroFloat {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.admin-body {
  background: #f4f0e7;
}

.admin-shell {
  width: min(100% - 2rem, 940px);
  margin: 2rem auto;
}

.admin-card {
  padding: 1.2rem;
  border-radius: 1.4rem;
  background: #fffaf1;
  box-shadow: var(--shadow);
}

.admin-heading {
  align-items: flex-start;
  margin-bottom: 1rem;
}

.admin-heading p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.product-form {
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--line);
}

.admin-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.admin-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.admin-product {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--line);
}

.admin-product img {
  width: 5rem;
  height: 5rem;
  border-radius: 0.85rem;
  object-fit: cover;
  background: #f1eadc;
}

.admin-product p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.admin-row-actions {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 520px) {
  .hero-banner {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: min(45vw, 12.25rem);
  }

  .hero-bowl {
    width: 7.2rem;
    height: 7.2rem;
    justify-self: end;
    margin-top: -2.5rem;
  }

  .admin-product {
    grid-template-columns: 4.2rem 1fr;
  }

  .admin-product img {
    width: 4.2rem;
    height: 4.2rem;
  }

  .admin-row-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .brand-row {
    gap: 0.55rem;
  }

  .cart-top-btn span {
    display: none;
  }

  .greeting-pill {
    max-width: 6.5rem;
    padding-inline: 0.55rem;
  }

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

  .menu-grid,
  .customer-grid {
    grid-template-columns: 1fr;
  }

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

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


.menu-toolbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin: 18px 0 26px;
}

.menu-search,
.category-filter {
  -webkit-appearance: none;
  appearance: none;
  height: 52px;
  border: 1px solid #d7cfbf;
  background: #ffffff;
  border-radius: 10px;
  padding: 0 16px;
  line-height: 52px;
  box-sizing: border-box;
  font-size: 16px;
  min-height: 52px;
  font-weight: 500;
  color: #2a1a12;
  outline: none;
  transition: 0.2s ease;
}

.menu-search {
  flex: 1;
  min-width: 220px;
}

.category-filter {
  min-width: 220px;
  cursor: pointer;
}

.menu-search:focus,
.category-filter:focus {
  border-color: #8f1d11;
  box-shadow: 0 0 0 3px rgba(143, 29, 17, 0.08);
}

/* CATEGORY TITLE */
.menu-category-block {
  margin-bottom: 28px;
}

.category-heading {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: #23150f;
  margin: 8px 0 20px;
  letter-spacing: -0.3px;
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-search,
  .category-filter {
    width: 100%;
    min-width: unset;
  }

  .category-heading {
    font-size: 24px;
  }
}
