/*
 * ============================================================
 *  KopiKenangan POS — Customer Page Styles
 *  Halaman: katalog menu, carousel banner, checkout, invoice
 * ============================================================
 */

/* ── Customer App Wrapper ───────────────────────────────── */
.customer-app {
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-bg);
}

/* ── Navbar Customer ────────────────────────────────────── */
.navbar {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0 2rem;
  /* Tambah safe-area untuk status bar APK/PWA di iOS */
  padding-left: max(2rem, env(safe-area-inset-left));
  padding-right: max(2rem, env(safe-area-inset-right));
  height: 60px;
  /* Tambah tinggi untuk status bar yang transparan */
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(60px + env(safe-area-inset-top, 0px));
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  gap: 1rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-icon {
  font-size: 1.4rem;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Table Badge in Navbar */
.navbar__table-badge {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color var(--transition), transform var(--transition);
}

.navbar__table-badge:hover {
  background-color: rgba(255, 255, 255, 0.28);
}

.navbar__table-badge:active {
  transform: scale(0.96);
}

/* Login Button in Navbar — HIGH VISIBILITY */
.navbar__login-btn {
  background-color: #ffffff;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.navbar__login-btn:hover {
  background-color: #fdf5f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar__login-btn:active {
  transform: scale(0.96);
}

.navbar__login-icon {
  font-size: 0.9rem;
}

/* Logged-in User Chip */
.navbar__user-chip {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar__logout-btn {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  text-decoration: underline;
  padding: 4px 6px;
  transition: color var(--transition);
}

.navbar__logout-btn:hover {
  color: #ffffff;
}

/* ── Hero Promo Carousel Banner ────────────────────────── */
.hero-carousel-section {
  padding: 1.25rem 1.5rem 0;
  max-width: 1320px;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero-carousel-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(132, 22, 34, 0.15);
}

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-carousel__slide {
  min-width: 100%;
  box-sizing: border-box;
  color: white;
  position: relative;
}

.hero-slide-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.75rem 3.5rem;
  gap: 3rem;
  min-height: 300px;
}

@media (max-width: 900px) {
  .hero-slide-inner {
    flex-direction: column;
    padding: 2rem 1.5rem;
    text-align: left;
    gap: 1.5rem;
  }
}

.hero-carousel__slide--1 {
  background: linear-gradient(135deg, #7a121d 0%, #520911 60%, #300408 100%);
}

.hero-carousel__slide--2 {
  background: linear-gradient(135deg, #6c101a 0%, #46070e 60%, #280306 100%);
}

.hero-carousel__slide--3 {
  background: linear-gradient(135deg, #590c15 0%, #38050a 60%, #1e0204 100%);
}

.banner-content {
  flex: 1.1;
  z-index: 2;
}

.banner-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.banner-badge--gold {
  background-color: rgba(254, 211, 48, 0.25);
  color: #fff9d2;
  border-color: rgba(254, 211, 48, 0.4);
}

.banner-badge--purple {
  background-color: rgba(255, 255, 255, 0.2);
}

.banner-title {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  letter-spacing: -0.4px;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
  .banner-title {
    font-size: 1.5rem;
  }
}

.banner-desc {
  font-size: 0.975rem;
  color: #fbeae8;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  max-width: 540px;
}

.banner-footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.banner-tag {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  padding: 5px 12px;
  border-radius: 6px;
}

.banner-cta {
  background-color: #ffffff;
  color: #841622;
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.banner-cta:hover {
  background-color: #fdf5f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* ── Large Visual Right Column ──────────────────────────── */
.banner-visual-large {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 900px) {
  .banner-visual-large {
    width: 100%;
  }
}

.banner-photo-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

@media (max-width: 900px) {
  .banner-photo-card {
    height: 190px;
    max-width: 100%;
  }
}

.banner-photo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
  transition: transform 0.5s ease;
}

.hero-carousel__slide:hover .banner-photo-img {
  transform: scale(1.08) translateY(-4px);
}

.banner-photo-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Carousel Arrows */
.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
  transition: background-color var(--transition), transform var(--transition);
}

.hero-carousel__arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.08);
}

.hero-carousel__arrow--prev { left: 16px; }
.hero-carousel__arrow--next { right: 16px; }

/* Carousel Dots */
.hero-carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-carousel__dot.active {
  width: 28px;
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* ── Outlet Greeting Section ────────────────────────────── */
.outlet-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 2rem 1rem;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.outlet-info__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1E1E1E;
  margin-bottom: 0.25rem;
  letter-spacing: -0.3px;
}

.outlet-info__desc {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: 0;
}

.outlet-info__table-btn {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all var(--transition);
}

.outlet-info__table-btn:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

/* ── Category Filter Tabs ───────────────────────────────── */
.category-section {
  padding: 0.5rem 2rem 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Wrapper: flex row so arrows sit next to the scrollable strip */
.category-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.category-tabs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  flex: 1;           /* fill remaining space between the two arrow buttons */
  min-width: 0;      /* allow shrinking below content size */
  scroll-behavior: smooth;
}

.category-tabs::-webkit-scrollbar { display: none; }

/* ── Arrow Scroll Buttons ────────────────────────────────── */
.category-scroll-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
  color: #555;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  user-select: none;
  padding: 0;
}

.category-scroll-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(132, 22, 34, 0.2);
}

/* Hide arrow when scrolling is not possible */
.category-scroll-btn[hidden],
.category-scroll-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Search Bar Section ───────────────────────────────────── */
.menu-search-section {
  padding: 0 2rem 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.menu-search-wrap {
  width: 100%;
}

.menu-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(62, 39, 35, 0.12);
  border-radius: 9999px;
  padding: 4px 18px;
  box-shadow: 0 4px 14px rgba(62, 39, 35, 0.04);
  transition: all 0.22s ease;
}

.menu-search-box:focus-within {
  border-color: #841622;
  box-shadow: 0 0 0 4px rgba(132, 22, 34, 0.1), 0 6px 18px rgba(62, 39, 35, 0.08);
}

.menu-search-icon {
  color: #8c7b70;
  flex-shrink: 0;
  margin-right: 12px;
}

.menu-search-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #2D2424;
  outline: none;
}

.menu-search-input::placeholder {
  color: #a89f91;
  font-size: 0.875rem;
}

.menu-search-clear {
  background: #f1f5f9;
  color: #64748b;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 8px;
  transition: background 0.2s, color 0.2s;
}

.menu-search-clear:hover {
  background: #841622;
  color: #ffffff;
}

.size-badge-large {
  display: inline-block;
  font-size: 0.675rem;
  font-weight: 800;
  color: #841622;
  background: #ffe4e6;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: 6px;
  vertical-align: middle;
}

.category-tab {
  flex-shrink: 0;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--color-gray-200);
  color: #555;
  background-color: var(--color-white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-tab.active,
.category-tab:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(132, 22, 34, 0.2);
}

/* ── Menu Grid ──────────────────────────────────────────── */
.menu-section {
  padding: 0 2rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

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

@media (min-width: 640px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px) {
  .menu-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

/* ── Menu Card (Clean, Modern, Uniform White with 12px Radius) ──── */
.menu-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.06);
  animation: cardFadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardFadeInUp {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(132, 22, 34, 0.15);
}

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

.menu-card__visual {
  height: 155px;
  background-color: #fbf9f8;
  margin: 10px 10px 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.menu-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: transform 0.35s ease;
  display: block;
}

.menu-card:hover .menu-card__image {
  transform: scale(1.08);
}

.menu-card__icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  transition: transform 0.25s ease;
}

.menu-card:hover .menu-card__icon-circle {
  transform: scale(1.08);
}

.menu-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(132, 22, 34, 0.2);
  letter-spacing: 0.2px;
}

.menu-card__tag {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background-color: #ffffff;
  color: #666666;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.menu-card__body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.menu-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E1E1E;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.menu-card__desc {
  font-size: 0.75rem;
  color: #888888;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #f2ede9;
}

.menu-card__price-wrap {
  display: flex;
  flex-direction: column;
}

.menu-card__price-label {
  font-size: 0.625rem;
  color: #a0a0a0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.menu-card__price {
  font-size: 0.975rem;
  font-weight: 800;
  color: var(--color-primary);
}

.menu-card__add-btn {
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(132, 22, 34, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.menu-card__add-btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(132, 22, 34, 0.3);
}

/* ── Cart Bottom Bar ────────────────────────────────────── */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 2rem;
  /* Safe area agar tidak tertutup home bar di iPhone/Android (APK) */
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(2rem, env(safe-area-inset-left));
  padding-right: max(2rem, env(safe-area-inset-right));
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.12);
  z-index: 100;
  display: none;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-bar.visible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.cart-bar__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-bar__badge-wrap {
  position: relative;
}

.cart-bar__count {
  background-color: var(--color-accent);
  color: var(--color-white);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
}

.cart-bar__text {
  display: flex;
  flex-direction: column;
}

.cart-bar__label {
  font-size: 0.6875rem;
  color: #7f8c8d;
}

.cart-bar__total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}

.cart-bar__btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.cart-bar__arrow {
  margin-left: 4px;
}

/* ── Modals Overlay ─────────────────────────────────────── */
.modal-overlay,
.size-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  /* Safe area untuk notch */
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.modal-overlay.visible {
  display: flex;
}

.size-modal-overlay.visible {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 560px) {
  .size-modal-overlay.visible {
    align-items: center;
    padding: 1rem;
  }
}

.modal {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  width: 100%;
  max-width: 360px;
  /* Max height agar tidak overflow di HP kecil */
  max-height: 90vh;
  max-height: 90dvh; /* dynamic viewport height - lebih akurat di mobile */
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: fadeInUp 0.25s ease;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-gray-100);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f8c8d;
}

.modal__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.modal__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.modal__desc {
  font-size: 0.8125rem;
  color: #7f8c8d;
  margin-bottom: 1.25rem;
}

.form-input--center {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.size-modal {
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 560px;
  animation: slideUpBottom 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpBottom {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (min-width: 560px) {
  .size-modal {
    border-radius: var(--radius-xl);
    max-width: 380px;
    padding: 1.75rem 1.5rem;
    animation: fadeInUp 0.25s ease;
  }
}

.size-modal__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.size-modal__desc {
  font-size: 0.775rem;
  color: #7f8c8d;
  margin: 0;
}

.size-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.size-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 48px;
  transition: all var(--transition);
}

.size-option:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.size-option__label {
  font-weight: 600;
  font-size: 0.875rem;
}

.size-option__price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9375rem;
}

/* ============================================================
 *  Mobile Smartphone Responsive Tweaks (Max-Width: 640px)
 * ============================================================ */
@media (max-width: 640px) {
  /* Navbar */
  .navbar {
    padding: 0 1rem;
    height: 56px;
  }

  .navbar__brand {
    font-size: 1.15rem;
  }

  .navbar__actions {
    gap: 0.4rem;
  }

  .navbar__table-badge {
    padding: 5px 10px;
    font-size: 0.725rem;
  }

  .navbar__login-btn {
    padding: 5px 10px;
    font-size: 0.725rem;
  }

  .navbar__user-chip {
    padding: 4px 8px;
    font-size: 0.725rem;
    max-width: 95px;
  }

  /* Hero Carousel */
  .hero-carousel-section {
    padding: 0.65rem 0.65rem 0;
  }

  .hero-carousel-wrapper {
    border-radius: 16px;
  }

  .hero-slide-inner {
    padding: 1.15rem 1rem 1.5rem;
    gap: 0.85rem;
    min-height: auto;
  }

  .banner-badge {
    font-size: 0.65rem;
    padding: 3px 9px;
    margin-bottom: 0.35rem;
  }

  .banner-title {
    font-size: 1.3rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
  }

  .banner-desc {
    font-size: 0.775rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }

  .banner-footer {
    gap: 0.4rem;
  }

  .banner-tag, .banner-price {
    font-size: 0.725rem;
    padding: 4px 8px;
  }

  .banner-cta {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .banner-photo-card {
    height: 155px;
    border-radius: 12px;
  }

  .banner-photo-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    bottom: 8px;
    right: 8px;
  }

  .hero-carousel__arrow {
    display: none; /* Swipe & dots only on mobile */
  }

  .hero-carousel__dots {
    bottom: 8px;
    gap: 5px;
  }

  .hero-carousel__dot {
    width: 6px;
    height: 6px;
  }

  .hero-carousel__dot.active {
    width: 18px;
  }

  /* Outlet Info & Table Switcher */
  .outlet-info {
    padding: 0.85rem 0.65rem 0.35rem;
    gap: 0.5rem;
  }

  .outlet-info__title {
    font-size: 1.05rem;
  }

  .outlet-info__desc {
    font-size: 0.75rem;
  }

  .outlet-info__table-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  /* Categories */
  .category-section {
    padding: 0.35rem 0.65rem 0.65rem;
  }

  .category-tabs {
    gap: 0.45rem;
  }

  .category-tab {
    padding: 6px 12px;
    font-size: 0.775rem;
  }

  .category-scroll-btn {
    width: 26px;
    height: 26px;
    font-size: 0.95rem;
  }

  /* Menu Section & 2-Col Grid */
  .menu-section {
    padding: 0 0.65rem 5.5rem;

  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .menu-card {
    border-radius: 10px;
  }

  .menu-card__visual {
    height: 118px;
    margin: 5px 5px 0;
    border-radius: 8px;
  }

  .menu-card__body {
    padding: 0.55rem 0.55rem 0.65rem;
  }

  .menu-card__name {
    font-size: 0.8125rem;
    margin-bottom: 0.15rem;
    line-height: 1.25;
  }

  .menu-card__desc {
    font-size: 0.6875rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    -webkit-line-clamp: 2;
  }

  .menu-card__footer {
    padding-top: 0.35rem;
  }

  .menu-card__price-label {
    font-size: 0.55rem;
  }

  .menu-card__price {
    font-size: 0.85rem;
  }

  .menu-card__add-btn {
    padding: 5px 9px;
    font-size: 0.675rem;
    gap: 3px;
  }

  .menu-card__badge {
    font-size: 0.525rem;
    padding: 2px 5px;
    top: 4px;
    left: 4px;
  }

  .menu-card__tag {
    font-size: 0.525rem;
    padding: 2px 4px;
    bottom: 4px;
    right: 4px;
  }

  /* Cart Bottom Floating Bar */
  .cart-bar {
    padding: 0.65rem 0.85rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
    gap: 0.5rem;
  }

  .cart-bar__info {
    gap: 0.5rem;
  }

  .cart-bar__count {
    width: 22px;
    height: 22px;
    font-size: 0.725rem;
  }

  .cart-bar__label {
    font-size: 0.625rem;
  }

  .cart-bar__total {
    font-size: 0.9rem;
  }

  .cart-bar__btn {
    padding: 0.55rem 1rem;
    font-size: 0.775rem;
  }
}

/* ── Inline Menu Management for Admin (Mode Preview) ────── */
.menu-card--add-new {
  border: 2px dashed #841622 !important;
  background: #fffdfb !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 280px;
  cursor: pointer;
  padding: 1.5rem 1rem;
  transition: all 0.22s ease;
  box-shadow: none !important;
}

.menu-card--add-new:hover {
  background: #fff5f5 !important;
  border-color: #6a1019 !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(132, 22, 34, 0.12) !important;
}

.menu-card--add-new__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.menu-card--add-new__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fdf2f2;
  color: #841622;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  border: 1.5px solid #fbd5d5;
  margin-bottom: 0.25rem;
  transition: transform 0.2s ease;
}

.menu-card--add-new:hover .menu-card--add-new__icon {
  transform: scale(1.1);
  background: #841622;
  color: #ffffff;
}

.menu-card--add-new__title {
  font-size: 1rem;
  font-weight: 800;
  color: #841622;
  margin: 0;
}

.menu-card--add-new__desc {
  font-size: 0.775rem;
  color: #64748b;
  margin: 0;
  max-width: 180px;
  line-height: 1.3;
}

/* Floating Action Buttons for Admin on Menu Cards */
.menu-card__admin-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 15;
  display: flex;
  gap: 5px;
}

.btn-menu-action {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

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

.btn-menu-edit {
  background: #ffffff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.btn-menu-edit:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.btn-menu-delete {
  background: #ffffff;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.btn-menu-delete:hover {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
}

.modal--menu-manage {
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Customer Dark Mode Specifics ────────────────────────── */
[data-theme="dark"] .customer-app {
  background-color: #161311;
  color: #f4eee9;
}

[data-theme="dark"] .navbar {
  background-color: #1f0b0e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .outlet-info__title {
  color: #f4eee9;
}

[data-theme="dark"] .outlet-info__desc {
  color: #baa89e;
}

[data-theme="dark"] .outlet-info__table-btn {
  background-color: #241d1a;
  border-color: #423530;
  color: #f4eee9;
}

[data-theme="dark"] .menu-search-box {
  background-color: #241d1a;
  border-color: #3d322d;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .menu-search-input {
  color: #f4eee9;
}

[data-theme="dark"] .menu-search-input::placeholder {
  color: #82736b;
}

[data-theme="dark"] .menu-search-icon {
  color: #a89b93;
}

[data-theme="dark"] .category-tab {
  background-color: #241d1a;
  border-color: #3d322d;
  color: #cfbfb5;
}

[data-theme="dark"] .category-tab:hover,
[data-theme="dark"] .category-tab.active {
  background-color: #a82433;
  border-color: #a82433;
  color: #ffffff;
}

[data-theme="dark"] .category-scroll-btn {
  background-color: #241d1a;
  border-color: #3d322d;
  color: #cfbfb5;
}

[data-theme="dark"] .menu-card {
  background-color: #241d1a;
  border-color: #3d322d;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .menu-card__visual {
  background-color: #1a1513;
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .menu-card__name {
  color: #f4eee9;
}

[data-theme="dark"] .menu-card__desc {
  color: #a89b93;
}

[data-theme="dark"] .menu-card__price-label {
  color: #8c7d75;
}

[data-theme="dark"] .menu-card__price {
  color: #f38ba8;
}

[data-theme="dark"] .size-modal {
  background-color: #241d1a;
  color: #f4eee9;
}

[data-theme="dark"] .modal__title {
  color: #f4eee9;
}

[data-theme="dark"] .size-option {
  background-color: #1c1715;
  border-color: #3d322d;
}

[data-theme="dark"] .size-option:hover {
  background-color: #33191d;
  border-color: #a82433;
}

[data-theme="dark"] .size-option__label {
  color: #f4eee9;
}

[data-theme="dark"] .size-option__price {
  color: #f38ba8;
}

[data-theme="dark"] .cart-bar {
  background: linear-gradient(135deg, #240a0e 0%, #150406 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .modal--table {
  background-color: #241d1a;
}

/* ── Member Price Display ────────────────────────────────── */
.menu-card__price-original {
  text-decoration: line-through;
  color: #a0a0a0;
  font-size: 0.775rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.menu-card__price-member {
  font-size: 0.975rem;
  font-weight: 800;
  color: #27ae60;
}

.menu-card__member-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 2px 8px;
  background: #eafaf1;
  color: #27ae60;
  font-size: 0.675rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.size-option__price-original {
  text-decoration: line-through;
  color: #a0a0a0;
  font-size: 0.775rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

[data-theme="dark"] .menu-card__price-original,
[data-theme="dark"] .size-option__price-original {
  color: #7a6d67;
}

[data-theme="dark"] .menu-card__price-member {
  color: #6ee7b7;
}

[data-theme="dark"] .menu-card__member-badge {
  background: #1e3a2e;
  color: #6ee7b7;
}


[data-theme="dark"] .size-option__price-original {
  color: #7a6d67;
}

/* ─────────────────────────────────────────────────────────
 *  TAMBAHAN RESPONSIVE BREAKPOINTS
 *  Small Phone < 380px (iPhone SE, Galaxy A series kecil)
 * ───────────────────────────────────────────────────────── */
@media (max-width: 380px) {
  .navbar {
    padding: 0 0.75rem;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .banner-title {
    font-size: 1.15rem;
  }

  .banner-desc {
    display: none; /* Sembunyikan deskripsi di HP sangat kecil */
  }

  .menu-grid {
    gap: 0.45rem;
  }

  .menu-card__visual {
    height: 100px;
  }

  .menu-card__name {
    font-size: 0.75rem;
  }

  .menu-card__price {
    font-size: 0.775rem;
  }

  .menu-card__add-btn {
    padding: 4px 7px;
    font-size: 0.625rem;
  }

  .outlet-info__title {
    font-size: 0.95rem;
  }

  .category-tab {
    padding: 5px 9px;
    font-size: 0.7rem;
  }

  .cart-bar__btn {
    font-size: 0.725rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ─────────────────────────────────────────────────────────
 *  Tablet Breakpoint (768px - 1023px)
 * ───────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-carousel-section {
    padding: 1rem 1.25rem 0;
  }

  .hero-slide-inner {
    padding: 2rem 2rem;
    min-height: 260px;
  }

  .banner-title {
    font-size: 1.75rem;
  }

  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .outlet-info {
    padding: 1.25rem 1.5rem 0.75rem;
  }

  .category-section {
    padding: 0.5rem 1.5rem 1rem;
  }

  .menu-section {
    padding: 0 1.5rem 3rem;
  }

  .cart-bar {
    padding: 0.75rem 1.5rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
}

/* ─────────────────────────────────────────────────────────
 *  Desktop Wide (> 1200px) — 5 kolom grid
 * ───────────────────────────────────────────────────────── */
@media (min-width: 1400px) {
  .hero-slide-inner {
    padding: 3rem 4.5rem;
    min-height: 320px;
  }

  .banner-title {
    font-size: 2.5rem;
  }

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

/* ─────────────────────────────────────────────────────────
 *  Landscape Mobile (max-height: 500px)
 * ───────────────────────────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-carousel-section {
    display: none;
  }

  .navbar {
    height: 48px;
    height: calc(48px + env(safe-area-inset-top, 0px));
  }

  .outlet-info {
    padding: 0.5rem 1rem 0.25rem;
  }

  .category-section {
    padding: 0.25rem 1rem 0.5rem;
  }

  .menu-section {
    padding: 0 1rem 4rem;
  }

  .modal {
    max-height: 80vh;
    max-height: 80dvh;
  }
}
