/* Order Resto — PELNIGO tablet kiosk */

body.page-order-resto {
  --order-resto-sidebar: minmax(200px, 220px);
  --order-resto-cart-col: minmax(280px, 320px);
  --order-resto-layout-gap: 14px;
}

/* Frosted overlay di atas background — hanya halaman order-resto */
body.page-order-resto.theme-light.has-bg-parallax .bg-parallax::after,
body.page-order-resto.theme-dark.has-bg-parallax .bg-parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

body.page-order-resto.theme-light.has-bg-parallax .bg-parallax::after {
  background: rgba(255, 255, 255, 0.48);
}

body.page-order-resto.theme-dark.has-bg-parallax .bg-parallax::after {
  background: rgba(0, 0, 0, 0.52);
}

/* Background image saja (tanpa video) — lebih ringan */
body.page-order-resto.theme-light .bg-parallax.bg-parallax--static-image {
  background-image: url("images/image-pelni-light.jpg");
  background-color: #f4f5f7;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
}

body.page-order-resto.theme-dark .bg-parallax.bg-parallax--static-image {
  background-image: url("images/bg-pelnigo-dark.jpg");
  background-color: #0c0c0c;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
}

body.page-order-resto .bg-parallax.order-resto-page-blur-host {
  background-image: none !important;
}

body.page-order-resto .order-resto-page-blur-layer {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(52px);
  transform: scale(1.18);
  opacity: 0;
  transition: opacity 0.7s ease;
  will-change: opacity;
}

body.page-order-resto .order-resto-page-blur-layer.is-active {
  opacity: 1;
}

body.page-order-resto .dash-wrapper {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

html.pwa-standalone body.page-order-resto .dash-wrapper {
  padding-bottom: 0;
}

html.pwa-standalone body.page-order-resto .order-resto-layout {
  flex: 1;
  min-height: 0;
}

html.pwa-standalone body.page-order-resto .order-resto-grid {
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
}

body.page-order-resto .order-resto-layout {
  flex: 1;
  min-height: 0;
  height: 100%;
}

body.page-order-resto .order-resto-grid {
  flex: 1;
  min-height: 0;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
}

/* Top bar: satu baris — logo | kembali + judul (sejajar search) | ikon */
.order-resto-top-bar {
  display: grid;
  grid-template-columns: var(--order-resto-sidebar) minmax(0, 1fr) var(--order-resto-cart-col);
  gap: var(--order-resto-layout-gap);
  align-items: center;
}

.order-resto-top-bar .top-left {
  min-width: 0;
}

.order-resto-top-bar .top-right {
  justify-self: end;
}

.order-resto-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.order-resto-layout {
  display: grid;
  grid-template-columns: var(--order-resto-sidebar) minmax(0, 1fr) var(--order-resto-cart-col);
  gap: var(--order-resto-layout-gap);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

.order-resto-categories,
.order-resto-cart {
  min-width: 0;
}

/* ── Left: categories ── */
.order-resto-categories {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.order-resto-back {
  width: 32px;
  height: 32px;
  border-radius: 32px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.order-resto-back:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.order-resto-cat-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.order-resto-cat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
  min-height: 0;
}

.order-resto-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 12px 14px 12px 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.order-resto-cat-body {
  flex: 1;
  min-width: 0;
}

.order-resto-cat-thumb {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  border-radius: 45px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.06);
}

.order-resto-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.order-resto-cat-item.is-active .order-resto-cat-thumb {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.order-resto-cat-item:hover {
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(255, 255, 255, 0.55);
}

.order-resto-cat-item.is-active {
  background: rgba(57, 90, 255, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-color: rgba(57, 90, 255, 0.95);
  box-shadow: 0 8px 20px rgba(57, 90, 255, 0.28);
}

.order-resto-cat-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
  font-family: 'Poppins';
}

.order-resto-cat-item.is-active .order-resto-cat-name,
.order-resto-cat-item.is-active .order-resto-cat-count {
  color: #fff;
}

.order-resto-cat-count {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Center: menu grid ── */
.order-resto-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  flex: 1;
}

.order-resto-toolbar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-shrink: 0;
}

.order-resto-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.order-resto-sort {
  position: relative;
  flex-shrink: 0;
  width: min(180px, 34%);
  min-width: 180px;
}

.order-resto-sort-trigger {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: var(--radius-md);
  background: transparent;
  padding: 10px 50px 10px 42px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  text-align: left;
  position: relative;
  display: flex;
  align-items: center;
}

.order-resto-sort-trigger.is-open,
.order-resto-sort-trigger:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.order-resto-sort-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.order-resto-sort-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.order-resto-sort-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  pointer-events: none;
  transition: transform 0.15s ease;
}

.order-resto-sort-trigger.is-open .order-resto-sort-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.order-resto-sort-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
}

.order-resto-sort-menu[hidden] {
  display: none;
}

.order-resto-sort-option {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: transparent;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.order-resto-sort-option:hover,
.order-resto-sort-option:focus-visible {
  background: var(--primary-soft);
  color: var(--primary);
  outline: none;
}

.order-resto-sort-option.is-active {
  background: var(--primary);
  color: #fff;
}

.order-resto-search {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: var(--radius-md);
  background: transparent;
  padding: 10px 52px 10px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.order-resto-search::placeholder {
  color: #000;
  opacity: 1;
}

.order-resto-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.order-resto-search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  pointer-events: none;
}

/* Banner slider */
.order-resto-banner {
  position: relative;
  width: 100%;
  height: 250px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 5px;
}

.order-resto-banner-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  touch-action: pan-y;
}

.order-resto-banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.order-resto-banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.order-resto-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.order-resto-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
}

.order-resto-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.order-resto-banner-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.order-resto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 5px 5px 5px 0px;
  align-content: start;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.order-resto-card {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 18px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 240px;
  isolation: isolate;
}

.order-resto-card-img-wrap {
  position: relative;
  width: 100%;
  height: 126px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: rgba(15, 23, 42, 0.06);
}

.order-resto-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.order-resto-badge {
  position: absolute;
  top: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.order-resto-badge--popular {
  left: 10px;
  background: var(--primary);
}

.order-resto-badge--disc {
  right: 10px;
  background: #ff5c5c;
}

.order-resto-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  min-height: 0;
}

.order-resto-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-resto-card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
}

.order-resto-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.order-resto-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  flex-shrink: 0;
}

.order-resto-card-category {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.order-resto-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.order-resto-qty-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.order-resto-qty-btn:active {
  transform: scale(0.94);
}

.order-resto-qty-btn--minus {
  background: #b3b3b3;
  color: var(--text-muted);
}

.order-resto-qty-btn--minus:disabled {
  opacity: 0.35;
  cursor: default;
}

.order-resto-qty-btn--plus {
  background: var(--primary);
  color: #fff;
}

.order-resto-qty-btn--plus:hover {
  background: #2f4ae0;
}

.order-resto-qty--active .order-resto-qty-btn--minus:not(:disabled) {
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
}

.order-resto-qty--active .order-resto-qty-val {
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
}

.order-resto-qty-val {
  min-width: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.order-resto-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Right: cart ── */
.order-resto-cart {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  min-height: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.order-resto-cart-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}

.order-resto-cart-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.order-resto-cart-user {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.order-resto-cart-seat {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 15px;
  border-radius: 50px;
  line-height: 1;
}

.order-resto-cart-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.order-resto-cart-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

.order-resto-cart-meta--type {
  text-align: right;
}

.order-resto-cart-order-no {
  color: var(--primary);
  font-weight: 600;
}

.order-resto-cart-time {
  font-size: 12px;
  color: var(--text-muted);
}

.order-resto-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
  min-height: 0;
}

.order-resto-cart-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.order-resto-cart-item:last-child {
  border-bottom: none;
}

.order-resto-cart-item-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 4px;
}

.order-resto-cart-item-qty {
  color: var(--primary);
  font-weight: 600;
}

.order-resto-cart-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.order-resto-cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}

.order-resto-cart-item-extra,
.order-resto-cart-item-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 2px;
}

.order-resto-cart-note-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
}

.order-resto-cart-note-btn i {
  font-size: 13px;
}

.order-resto-cart-summary {
  padding: 12px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}

.order-resto-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.order-resto-cart-row strong {
  color: var(--text-main);
  font-weight: 600;
}

#orderRestoSubtotal {
  font-size: 15px;
  font-weight: 700;
}

.order-resto-checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px 16px;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(57, 90, 255, 0.35);
  transition: background 0.15s ease, transform 0.1s ease;
}

.order-resto-checkout:hover {
  background: #2f4ae0;
}

.order-resto-checkout:active {
  transform: scale(0.98);
}

.order-resto-checkout-total {
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.order-resto-checkout-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.order-resto-checkout-label i {
  font-size: 18px;
}

/* Light theme — top bar buttons selaras kategori (seperti Entertainment) */
body.page-order-resto.theme-light .order-resto-back {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

body.page-order-resto.theme-light .order-resto-back:hover {
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--primary);
}

body.page-order-resto.theme-light .order-resto-top-bar .icon-small:not(.active) {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

/* ── Dark theme ── */
body.page-order-resto.theme-dark .order-resto-top-bar .icon-small:not(.active) {
  background: rgba(19, 19, 24, 0.3);
  border-color: rgba(255, 255, 255, 0.14);
}

body.page-order-resto.theme-dark .order-resto-back {
  background: rgba(19, 19, 24, 0.3);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-main);
}

body.page-order-resto.theme-dark .order-resto-back:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: #fff;
}

body.theme-dark .order-resto-card-category {
  color: var(--text-muted);
}

body.page-order-resto.theme-dark .order-resto-search,
body.page-order-resto.theme-dark .order-resto-sort-trigger {
  background: rgba(19, 19, 24, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

body.page-order-resto.theme-dark .order-resto-search::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

body.page-order-resto.theme-dark .order-resto-sort-menu {
  background: rgba(19, 19, 24, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

body.page-order-resto.theme-dark .order-resto-sort-option:hover,
body.page-order-resto.theme-dark .order-resto-sort-option:focus-visible {
  background: var(--primary-soft);
  color: #fff;
}

body.page-order-resto.theme-dark .order-resto-sort-option.is-active {
  background: var(--primary);
  color: #fff;
}

body.page-order-resto.theme-dark .order-resto-cat-item {
  background: rgba(19, 19, 24, 0.3);
  border-color: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.22);
}

body.page-order-resto.theme-dark .order-resto-cat-item:hover {
  background: rgba(19, 19, 24, 0.42);
  border-color: rgba(255, 255, 255, 0.28);
}

body.page-order-resto.theme-dark .order-resto-cat-item.is-active {
  background: rgba(57, 90, 255, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(57, 90, 255, 0.32);
}

body.page-order-resto.theme-dark .order-resto-cat-item.is-active .order-resto-cat-name,
body.page-order-resto.theme-dark .order-resto-cat-item.is-active .order-resto-cat-count {
  color: #fff;
}

body.theme-dark .order-resto-cart {
  background: rgba(19, 19, 24, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 8px 22px rgba(0, 0, 0, 0.28);
}

body.theme-dark .order-resto-card {
  background: rgba(19, 19, 24, 0.92);
  border: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 8px 22px rgba(0, 0, 0, 0.28);
}

body.theme-dark .order-resto-qty-btn--minus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

body.theme-dark .order-resto-cart-note-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .order-resto-cart-header,
body.theme-dark .order-resto-cart-summary {
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .order-resto-cart-item {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  body.page-order-resto {
    --order-resto-sidebar: 180px;
    --order-resto-cart-col: 260px;
  }

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

@media (max-width: 860px) {
  .order-resto-top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
  }

  .order-resto-cat-header {
    order: 3;
    width: 100%;
  }

  .order-resto-toolbar {
    flex-direction: column;
  }

  .order-resto-sort {
    width: 100%;
    min-width: 0;
  }

  .order-resto-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(320px, 1fr) auto;
    overflow-y: auto;
  }

  .order-resto-cat-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    flex: initial;
  }

  .order-resto-cat-item {
    min-width: 140px;
    flex-shrink: 0;
  }

  .order-resto-menu {
    min-height: 320px;
  }

  .order-resto-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 240px;
  }

  .order-resto-cart {
    max-height: 360px;
  }
}

/* ── Payment modal ── */
.order-resto-pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(32, 37, 46, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.order-resto-pay-overlay[hidden] {
  display: none;
}

.order-resto-pay-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(92vh, 860px);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  padding: 22px 22px 20px;
}

.order-resto-pay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.order-resto-pay-close:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.order-resto-pay-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 36px 16px 0;
  line-height: 1.3;
}

.order-resto-pay-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-resto-pay-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-resto-pay-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.order-resto-pay-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.order-resto-pay-required {
  color: var(--primary);
  font-size: 9px;
  line-height: 1;
  flex-shrink: 0;
}

.order-resto-pay-input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.order-resto-pay-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.order-resto-pay-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 10px;
}

.order-resto-pay-summary {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(57, 90, 255, 0.06);
  border: 1px solid rgba(57, 90, 255, 0.12);
}

.order-resto-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.order-resto-pay-row:last-child {
  margin-bottom: 0;
}

.order-resto-pay-row strong {
  color: var(--text-main);
  font-weight: 600;
}

.order-resto-pay-row--total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(57, 90, 255, 0.25);
  font-size: 14px;
  color: var(--text-main);
}

.order-resto-pay-row--total strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.order-resto-pay-method-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.order-resto-pay-method {
  cursor: pointer;
}

.order-resto-pay-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-resto-pay-method-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 10px 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.order-resto-pay-method-box i {
  font-size: 22px;
}

.order-resto-pay-method.is-active .order-resto-pay-method-box,
.order-resto-pay-method input:checked + .order-resto-pay-method-box {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: 0 0 0 2px rgba(57, 90, 255, 0.12);
}

.order-resto-pay-panel {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.85);
}

.order-resto-pay-panel[hidden] {
  display: none;
}

.order-resto-pay-qris {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.order-resto-pay-qrcode {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.order-resto-pay-qris-hint,
.order-resto-pay-panel-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.order-resto-pay-va-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-resto-pay-va-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(57, 90, 255, 0.05);
  border: 1px solid rgba(57, 90, 255, 0.1);
}

.order-resto-pay-va-bank {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.order-resto-pay-va-no {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.order-resto-pay-card-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-resto-pay-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-resto-pay-footnote {
  margin: 0;
  padding: 12px 12px 12px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.order-resto-pay-footnote-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-muted);
}

.order-resto-pay-footnote-list li {
  padding-left: 2px;
}

.order-resto-pay-submit {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(57, 90, 255, 0.3);
  transition: background 0.15s ease, transform 0.1s ease;
}

.order-resto-pay-submit:hover {
  background: #2f4ae0;
}

.order-resto-pay-submit:active {
  transform: scale(0.98);
}

body.theme-dark .order-resto-pay-modal {
  background: rgba(19, 19, 24, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

body.theme-dark .order-resto-pay-close {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .order-resto-pay-input,
body.theme-dark .order-resto-pay-method-box,
body.theme-dark .order-resto-pay-panel {
  background: rgba(19, 19, 24, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .order-resto-pay-summary {
  background: rgba(57, 90, 255, 0.12);
  border-color: rgba(57, 90, 255, 0.22);
}

body.theme-dark .order-resto-pay-footnote {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .order-resto-pay-va-item {
  background: rgba(57, 90, 255, 0.1);
  border-color: rgba(57, 90, 255, 0.18);
}

@media (max-width: 560px) {
  .order-resto-pay-fields,
  .order-resto-pay-card-row {
    grid-template-columns: 1fr;
  }

  .order-resto-pay-method-list {
    grid-template-columns: 1fr;
  }

  .order-resto-pay-method-box {
    flex-direction: row;
    justify-content: flex-start;
    min-height: auto;
    padding: 12px 14px;
  }
}
