/* UI/UX pelanggan: lapisan komponen di atas gaya asas sedia ada. */
:root {
  --bg: #fff8f1;
  --paper: #fff;
  --ink: #24272b;
  --muted: #59616b;
  --accent: #a84a25;
  --line: #e5e3e0;
  color-scheme: light;
  background: #f4f3f1;
}
body {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
}
body h1,
body h2,
body h3 {
  letter-spacing: -0.5px;
}
body .header-inner {
  height: 80px;
  padding: 16px 20px;
}
body .brand {
  font-size: 23px;
  gap: 10px;
}
body .brand-cake {
  width: 36px;
  height: 36px;
}
body .basket-button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
body .basket-button svg {
  width: 24px;
  height: 24px;
}
body .count {
  font-size: 12px;
  top: -6px;
  right: -6px;
}
body .menu-main,
body .page-main {
  padding: 24px 20px 112px;
}
body .menu-main > h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 20px;
  max-width: 340px;
}
body .search-field {
  height: 50px;
  border-radius: 12px;
  box-shadow: none;
  background: #fff;
}
body .search-field input {
  font-size: 16px;
}
body .category-tabs {
  gap: 8px;
  margin: 16px 0 20px;
  padding-bottom: 4px;
}
body .category-tabs button {
  min-height: 44px;
  min-width: auto;
  padding: 10px 18px;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
body .category-tabs button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
body .product-grid {
  gap: 14px;
}
body .product-card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
  border-radius: 14px;
}
body .product-card .food-photo {
  aspect-ratio: 1.12;
  height: auto;
}
body .product-body {
  padding: 12px 12px 62px;
  min-height: 150px;
}
body .product-title {
  font-size: 16px;
  line-height: 1.35;
  white-space: normal;
  max-width: none;
  overflow-wrap: anywhere;
  letter-spacing: -0.2px;
}
body .product-price {
  font-size: 17px;
  margin-top: 8px;
}
body .stock-note {
  font-size: 13px;
  color: #326641;
  margin-top: 8px;
}
body .stock-note.sold-out {
  color: #a03737;
}
body .add-button {
  width: 44px;
  height: 44px;
  right: 10px;
  bottom: 10px;
  font-size: 27px;
}
body .add-button:disabled {
  background: #d7d9dc;
  color: #59616b;
  opacity: 1;
}
body .quantity-badge {
  top: -10px;
  font-size: 12px;
  background: #fff;
}
body .menu-disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}
body .mobile-nav {
  max-width: 520px;
  background: #fff;
  backdrop-filter: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
body .mobile-nav a {
  font-size: 13px;
  min-height: 48px;
  gap: 6px;
}
body .mobile-nav a.active {
  color: var(--accent);
  font-weight: 600;
}
body .primary,
body .secondary {
  min-height: 48px;
  font-size: 15px;
  border-radius: 12px;
  padding: 12px 16px;
  line-height: 1.4;
  text-align: center;
}
body .primary {
  background: var(--accent);
  color: #fff;
}
body .primary:hover {
  background: #8f3d1e;
}
body .secondary {
  background: #fff;
  border: 1px solid var(--line);
}
body .icon-button {
  width: 44px;
  height: 44px;
  color: var(--muted);
}
body .surface {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
}
body .page-heading {
  margin: 0 0 24px;
}
body .page-heading h1 {
  font-size: 28px;
  margin: 0 0 8px;
}
body .page-heading p,
body .muted,
body .fine-print {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
body .eyebrow {
  font-size: 12px;
  letter-spacing: 0.5px;
}
body .field {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 20px;
}
body .field input,
body .field textarea {
  background: #fff;
  font-size: 16px;
  min-height: 48px;
  padding: 12px;
  border-color: var(--line);
  border-radius: 10px;
}
body .field textarea {
  min-height: 96px;
}
body .form-error {
  font-size: 14px;
}
body[data-view='cart'] .site-header {
  display: block;
}
body[data-view='cart'] .mobile-nav {
  display: flex;
}
body .cart-heading {
  margin: 0 0 20px;
  gap: 8px;
}
body .cart-heading h1 {
  font-size: 27px;
}
body .cart-heading > .icon-button {
  width: 44px;
  height: 44px;
}
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
}
.checkout-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkout-steps b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}
.checkout-steps [aria-current='step'] {
  color: var(--accent);
  font-weight: 600;
}
.checkout-steps [aria-current='step'] b {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.checkout-steps::after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}
body .cart-items {
  gap: 12px;
}
body .cart-line {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 40px;
  gap: 8px 12px;
  padding: 12px;
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}
body .cart-line > .food-photo {
  width: 66px;
  height: 66px;
  grid-row: span 2;
  border-radius: 10px;
}
body .cart-line h3 {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 16px;
  margin: 0 0 4px;
  line-height: 1.4;
}
body .cart-line-info > strong {
  font-size: 14px;
  color: var(--muted);
}
body .cart-line > .remove {
  grid-column: 3;
  grid-row: 1;
  width: 40px;
  height: 40px;
}
body .cart-line > .stepper {
  grid-column: 2 / -1;
  grid-row: 2;
  justify-self: start;
}
body .stepper {
  border-color: var(--line);
  background: #fff;
  border-radius: 10px;
}
body .stepper button {
  width: 44px;
  height: 44px;
  font-size: 22px;
}
body .stepper span {
  min-width: 32px;
  font-size: 16px;
}
body .field-section {
  margin-top: 24px;
}
body .field-section h2,
body .delivery-location-section h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
body .method-options {
  gap: 10px;
}
body .method-option {
  min-height: 60px;
  padding: 12px 10px;
  align-items: center;
  background: #fff;
}
body .method-option > span {
  flex-direction: row;
  justify-content: center;
  gap: 6px;
}
body .method-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}
body .method-option svg {
  width: 22px;
  height: 22px;
}
body .method-option strong {
  font-size: 14px;
  white-space: normal;
  letter-spacing: 0;
}
body .method-option.selected {
  background: #fff8f1;
  border-color: var(--accent);
}
body .note-field {
  margin-top: 24px;
}
body .order-summary {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 24px;
}
body .summary-row {
  font-size: 15px;
  margin: 12px 0;
}
body .total {
  font-size: 19px;
  margin: 16px 0 20px;
  padding-top: 16px;
}
body .total strong:last-child {
  color: var(--ink);
}
body #checkout-submit:focus-visible {
  box-shadow: inset 0 -2px 0 #64748b;
}
body .continue-button,
body #checkout-submit {
  min-height: 52px;
  font-size: 16px;
  box-shadow: none;
  border-radius: 12px;
}
.checkout-review {
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  margin: 0 0 20px;
}
.checkout-review h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.checkout-review ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checkout-review li {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}
.checkout-review li span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.checkout-review p {
  font-size: 14px;
  margin: 12px 0 0;
  color: var(--muted);
}
.payment-advice {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  background: #edf4ff;
  color: #234d78;
  font-size: 14px;
  margin: 16px 0;
}
.payment-advice svg {
  margin-top: 2px;
  flex-shrink: 0;
}
body .delivery-rate {
  font-size: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #fff1dc;
  color: #6e461c;
}
body .delivery-location-section {
  border-top: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
body .pin-selection,
body .delivery-pin-review {
  font-size: 14px;
}
body .delivery-quote-result {
  background: #fff8f1;
  border-color: #e5cbbd;
}
body .delivery-quote-result strong {
  color: var(--accent);
  font-size: 26px;
}
body .delivery-quote-result span,
body .delivery-quote-result small {
  font-size: 14px;
}
body .delivery-help,
body .delivery-help summary {
  font-size: 14px;
}
body .profile-panel h2 {
  font-size: 20px;
}
body .profile-panel p,
body .profile-panel .field {
  font-size: 14px;
}
body .profile-panel .primary {
  font-size: 15px;
}
.auth-card {
  text-align: center;
}
.auth-symbol {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 8px auto 20px;
  border-radius: 50%;
  background: #fff1e2;
  color: var(--accent);
}
.auth-symbol svg {
  width: 34px;
  height: 34px;
}
body .auth-card h2 {
  font-size: 24px;
  line-height: 1.3;
}
body .auth-card .google-button {
  margin-top: 12px;
  min-height: 52px;
  font-size: 16px;
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-bottom: 20px;
}
.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  height: 52px;
  border-radius: 50%;
  background: #f1e9df;
  color: #6c584b;
  font-size: 22px;
  font-weight: 600;
}
.account-identity > div {
  min-width: 0;
}
.account-identity h2 {
  font-size: 20px;
  margin: 0 0 4px;
}
.account-identity p {
  margin: 0;
  overflow-wrap: anywhere;
}
body .order-list {
  gap: 20px;
}
.order-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.order-tabs button {
  flex: 1;
  min-height: 44px;
  font-size: 15px;
  border-radius: 8px;
  color: var(--muted);
}
.order-tabs button[aria-pressed='true'] {
  background: #fff0e4;
  color: var(--accent);
  font-weight: 600;
}
body .section-heading {
  align-items: start;
  flex-wrap: wrap;
}
body .section-heading h2 {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
body .order-status {
  font-size: 13px;
  line-height: 1.5;
  padding: 5px 10px;
  border-radius: 8px;
  color: #80511c;
  background: #fff1d6;
  white-space: normal;
}
body .order-status[data-status='delivering'] {
  background: #edf4ff;
  color: #2c6083;
}
body .order-status[data-status='completed'],
body .order-status[data-status='ready'],
body .order-status[data-status='accepted'] {
  background: #eaf5ed;
  color: #326641;
}
body .order-status[data-status='cancelled'] {
  background: #fff0f0;
  color: #a03737;
}
body .order-card .eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}
body .order-items strong {
  font-size: 14px;
}
body .order-items span {
  min-width: 0;
  overflow-wrap: anywhere;
}
body .order-items small {
  font-size: 13px;
  line-height: 1.5;
}
body .order-card > .summary-row {
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
body .order-amount {
  font-size: 20px;
  color: var(--ink);
}
body details {
  font-size: 14px;
}
body details summary {
  min-height: 36px;
  padding-block: 4px;
}
body .order-card > .secondary {
  width: 100%;
}
.order-progress {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.order-progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--muted);
  font-size: 14px;
}
.order-progress li::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  z-index: 1;
}
.order-progress li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 24px;
  width: 2px;
  height: 28px;
  background: var(--line);
}
.order-progress .is-complete::before {
  border-color: var(--accent);
  background: var(--accent);
}
.order-progress [aria-current='step'] {
  font-weight: 700;
  color: var(--ink);
}
.order-progress [aria-current='step']::before {
  border-color: var(--accent);
}
body .payment-qr {
  padding: 20px;
  background: #fff;
  border-color: var(--line);
  border-radius: 12px;
}
body .payment-qr p {
  color: var(--muted);
  font-size: 14px;
}
body .payment-qr h2 {
  font-size: 22px;
}
body .payment-qr-image {
  max-width: 260px;
}
body .empty-state {
  padding: 48px 20px;
}
body .empty-state h2,
body .empty-state h3 {
  font-size: 24px;
}
body .empty-state p {
  font-size: 15px;
}
body .empty-state .primary {
  font-size: 15px;
}
body .empty-symbol {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: #fff0e0;
  color: var(--accent);
  border-radius: 50%;
}
body .empty-symbol svg {
  width: 36px;
  height: 36px;
}
body .demo-strip {
  padding: 12px 20px;
  font-size: 14px;
  background: #edf4ff;
  color: #234d78;
  display: flex;
  align-items: center;
  gap: 8px;
}
body .toast {
  font-size: 14px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  max-width: min(90vw, 440px);
}
body dialog {
  width: min(520px, calc(100% - 32px));
  max-width: 520px;
  max-height: calc(100dvh - 32px);
  padding: 24px;
  overflow-y: auto;
  border-radius: 18px;
  background: #fff;
}
body dialog h2 {
  font-size: 27px;
}
body dialog p {
  font-size: 15px;
}
body .dialog-close {
  width: 44px;
  height: 44px;
  top: 10px;
  right: 10px;
  background: #fff;
  box-shadow: 0 1px 4px #0001;
}
body .detail-photo {
  aspect-ratio: 1.25;
  height: auto;
  margin-bottom: 20px;
}
body .product-bottom {
  display: grid;
  gap: 16px;
}
body .product-bottom > strong {
  font-size: 26px;
}
body .product-bottom .primary {
  font-size: 16px;
  width: 100%;
}
.detail-quantity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.detail-quantity > span {
  font-weight: 600;
}
body .delivery-map-dialog {
  width: min(640px, calc(100% - 24px));
  max-width: 640px;
  padding: 20px;
  background: #fff;
}
body .map-dialog-heading h2 {
  font-size: 21px;
}
body .delivery-map {
  height: min(400px, 43dvh);
  border-radius: 12px;
}
body .pin-tools button,
body .delivery-map-dialog summary {
  font-size: 14px;
}
body .pin-coordinate-fields {
  min-width: 0;
}
body .pin-coordinate-fields input {
  font-size: 16px;
  min-height: 44px;
}
@media (min-width: 900px) {
  body {
    max-width: 100%;
    border: 0;
  }
  body .header-inner {
    max-width: 1120px;
    margin: auto;
    padding-inline: 32px;
  }
  body .menu-main {
    max-width: 1120px;
    margin: auto;
    padding: 32px 32px 120px;
  }
  body .menu-main > h1 {
    max-width: none;
    font-size: 34px;
  }
  body .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  body .product-body {
    min-height: 164px;
  }
  body .page-main {
    max-width: 760px;
    margin: auto;
    padding: 32px 28px 120px;
  }
  body .mobile-nav {
    max-width: 520px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
  }
}
@media (max-width: 380px) {
  body .menu-main,
  body .page-main {
    padding-inline: 16px;
  }
  body .header-inner {
    padding-inline: 16px;
  }
  body .brand {
    font-size: 21px;
  }
  body .product-grid {
    gap: 10px;
  }
  body .product-body {
    padding: 10px 10px 60px;
  }
  body .product-title {
    font-size: 15px;
  }
  body .product-price {
    font-size: 16px;
  }
  body .method-option > span {
    flex-direction: column;
  }
  body .method-option {
    gap: 5px;
  }
  body .cart-line {
    grid-template-columns: 52px minmax(0, 1fr) 32px;
    gap: 8px;
    padding: 10px;
  }
  body .cart-line > .food-photo {
    width: 52px;
    height: 60px;
  }
  body .cart-line > .remove {
    width: 32px;
  }
  body .order-summary {
    padding: 16px;
  }
  body .order-card {
    padding: 16px;
  }
  body .summary-row {
    gap: 8px;
  }
}
@media (max-width: 600px) {
  body .delivery-map-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: 0;
    padding: max(16px, env(safe-area-inset-top)) 16px
      max(20px, env(safe-area-inset-bottom));
  }
}

.pin-review {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.pin-review p {
  margin: 6px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (max-width: 899px) {
  /* Kekalkan ruang butang tetap walaupun gaya .page-main ditakrif kemudian. */
  body .page-main.cart-main {
    padding-bottom: calc(188px + env(safe-area-inset-bottom, 0px));
  }
  body .continue-button,
  body #checkout-submit {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: min(480px, calc(100% - 40px));
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    z-index: 25;
    margin: 0;
    box-shadow: 0 0 0 10px var(--bg);
  }
  body .continue-button:focus-visible,
  body #checkout-submit:focus-visible {
    box-shadow:
      inset 0 -2px 0 #64748b,
      0 0 0 10px var(--bg);
  }
}
body[data-view='cart'] .toast {
  bottom: calc(160px + env(safe-area-inset-bottom, 0px));
}
/* Padanan rujukan: saiz sebenar telefon, kad padat dan butiran sebagai halaman. */
:root {
  --bg: #fcf8f3;
  --ink: #101b2b;
  --muted: #697386;
  --accent: #b43f18;
  --line: #e5e5e7;
}
body {
  font-family: Arial, Helvetica, sans-serif;
}
body .header-inner {
  height: 76px;
  padding: 14px 20px;
}
body .site-header {
  border-bottom: 0;
  background: var(--bg);
}
body .brand {
  font-size: 20px;
  font-weight: 700;
  gap: 8px;
}
body .brand-cake {
  width: 31px;
  height: 34px;
  object-fit: contain;
}
body .basket-button {
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
}
body .basket-button svg {
  width: 28px;
  height: 28px;
  color: var(--ink);
}
body .count {
  top: -2px;
  right: -2px;
  background: var(--accent);
}
body .menu-main,
body .page-main {
  padding: 16px 18px 100px;
}
body .menu-main > h1 {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 20px;
}
body .search-field {
  height: 44px;
  border-radius: 8px;
}
body .search-field input {
  font-weight: 400;
}
body .category-tabs {
  margin: 18px 0;
  gap: 10px;
}
body .category-tabs button {
  min-height: 40px;
  padding: 8px 16px;
  font-weight: 400;
}
body .category-tabs button.active {
  font-weight: 600;
}
body .product-grid {
  gap: 16px;
}
body .product-card {
  border-radius: 10px;
}
body .product-card .food-photo {
  aspect-ratio: 1.15;
  border-radius: 9px 9px 0 0;
}
body .product-body {
  padding: 10px 11px 16px;
  min-height: 104px;
}
body .product-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
body .product-price {
  font-size: 16px;
  margin-top: 7px;
}
body .stock-note {
  font-size: 13px;
  margin-top: 6px;
  color: #485364;
  padding-right: 38px;
}
body .stock-note.sold-out {
  color: #c62828;
}
body .add-button {
  width: 38px;
  height: 38px;
  right: 8px;
  bottom: 10px;
  font-size: 24px;
  font-weight: 400;
}
body .add-button::before {
  content: '';
  position: absolute;
  inset: -4px;
}
body .mobile-nav {
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
}
body .mobile-nav a {
  font-size: 12px;
  min-height: 51px;
  gap: 5px;
  color: #465062;
}
body .mobile-nav a svg {
  width: 24px;
  height: 24px;
}
body .mobile-nav a.active::after {
  width: 64px;
  height: 2px;
  bottom: -4px;
}
body .primary,
body .secondary {
  border-radius: 8px;
  font-size: 15px;
  min-height: 44px;
  padding: 11px 14px;
}
body .primary {
  background: linear-gradient(110deg, #b83e19, #b54c20);
}
body .primary:hover {
  background: #9f3415;
}
body .surface {
  border-radius: 12px;
  padding: 16px;
}
body .page-heading {
  margin-bottom: 18px;
}
body .page-heading h1 {
  font-size: 27px;
}
body .cart-heading {
  margin-bottom: 4px;
}
body .cart-heading h1 {
  font-size: 29px;
}
body[data-checkout='false'] .cart-heading > .icon-button {
  display: none;
}
.cart-count-label {
  margin: 0 0 16px;
  font-size: 14px;
}
body .cart-line {
  grid-template-columns: 78px minmax(0, 1fr) 30px;
  gap: 4px 12px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  position: relative;
}
body .cart-line > .food-photo {
  width: 78px;
  height: 88px;
  border-radius: 8px;
}
body .cart-line h3 {
  font-size: 16px;
}
body .cart-line-info > strong {
  font-weight: 400;
  font-size: 13px;
}
body .cart-line > .remove {
  width: 30px;
  height: 32px;
}
body .cart-line > .remove svg {
  width: 17px;
}
body .cart-line > .stepper {
  grid-column: 2;
}
.cart-line-total {
  grid-row: 2;
  grid-column: 3;
  justify-self: end;
  align-self: center;
  white-space: nowrap;
  font-size: 14px;
}
body .stepper {
  border: 0;
  gap: 5px;
  background: transparent;
  overflow: visible;
}
body .stepper button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f2f2f3;
  font-size: 21px;
  position: relative;
}
body .stepper button::before {
  content: '';
  position: absolute;
  inset: -6px -2px;
}
body .stepper button:last-child {
  color: #fff;
  background: var(--accent);
}
body .stepper span {
  min-width: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 32px;
  display: grid;
  place-items: center;
}
body .field-section h2 {
  font-size: 16px;
}
body .method-option {
  min-height: 52px;
  border-radius: 8px;
  position: relative;
  padding: 10px 8px;
}
body .method-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  cursor: pointer;
}
body .method-option:focus-within {
  outline: none;
  box-shadow: inset 0 -2px 0 #64748b;
}
body .method-option > span {
  gap: 8px;
}
body .method-option strong {
  font-weight: 400;
  font-size: 14px;
}
body .method-option.selected strong {
  font-weight: 600;
}
body .field {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 18px;
}
body .field input,
body .field textarea {
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 46px;
}
body .field textarea {
  min-height: 78px;
}
body .order-summary {
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: 24px;
  border-radius: 0;
}
body .summary-row {
  margin: 12px 0;
  font-size: 14px;
}
body .total {
  font-size: 17px;
  margin: 16px 0 22px;
  padding-top: 16px;
}
body .continue-button,
body #checkout-submit {
  font-size: 16px;
  border-radius: 8px;
  min-height: 52px;
}
body .checkout-steps {
  justify-content: center;
  gap: 96px;
  position: relative;
  margin: 14px 0 28px;
}
.checkout-steps span {
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  z-index: 1;
}
.checkout-steps b {
  background: var(--accent);
  color: #fff;
  width: 32px;
  height: 32px;
  border: 0;
}
.checkout-steps::after {
  position: absolute;
  width: 92px;
  height: 1px;
  background: var(--accent);
  top: 16px;
  left: calc(50% - 46px);
}
body[data-checkout='true'] .cart-heading h1 {
  font-size: 22px;
}
body .customer-fields h2,
body .checkout-review-title {
  font-size: 21px;
  margin: 0 0 16px;
}
body .checkout-review-title {
  margin-top: 24px;
}
body .checkout-review {
  padding: 16px;
  border-radius: 10px;
  margin: 0;
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.checkout-method {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 8px;
  font-size: 14px;
}
.checkout-method > svg {
  color: var(--accent);
  width: 26px;
  height: 26px;
}
.checkout-method > div {
  flex: 1;
}
.checkout-method small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.checkout-method .text-link {
  padding: 0;
  min-width: 0;
  font-size: 14px;
  text-decoration: underline;
}
body .checkout-review li {
  align-items: center;
  font-size: 14px;
  gap: 10px;
}
.checkout-review li .food-photo {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  flex-shrink: 0;
}
.checkout-review li > span {
  flex: 1;
}
body[data-checkout='true'] .order-summary {
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: white;
}
body[data-checkout='true'] .order-summary > .summary-row:not(.total) {
  display: none;
}
body[data-checkout='true'] .order-summary .total {
  margin-top: 0;
  padding-top: 16px;
}
body[data-checkout='true'] .payment-advice {
  margin: 20px -16px 0;
  border: 1px solid #b8d3fc;
  background: #eaf2ff;
}
body .order-tabs {
  border: 0;
  background: transparent;
  border-bottom: 3px solid #e7e4e1;
  border-radius: 0;
  padding: 0;
  gap: 0;
  margin-bottom: 18px;
}
.order-tabs button {
  position: relative;
  border-radius: 0;
  font-size: 14px;
}
.order-tabs button[aria-pressed='true'] {
  background: transparent;
}
.order-tabs button[aria-pressed='true']::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}
body .order-list {
  gap: 14px;
}
.order-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
  font-size: 14px;
}
.order-card-heading time {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.order-card-state {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
}
.order-card-state > span:last-child {
  font-size: 12px;
  color: var(--muted);
}
body .order-status {
  display: inline-flex;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.order-status svg {
  width: 15px;
  height: 15px;
}
body .order-status[data-status='preparing'],
body .order-status[data-status='delivering'] {
  color: #0065bd;
  background: #e6f0ff;
}
body .order-status[data-status='accepted'],
body .order-status[data-status='completed'],
body .order-status[data-status='ready'] {
  background: #e0f6e9;
  color: #086b31;
}
body .order-items > div {
  gap: 10px;
  margin-bottom: 12px;
}
body .order-items .food-photo {
  width: 54px;
  height: 54px;
  border-radius: 6px;
}
body .order-items strong {
  font-size: 13px;
  font-weight: 600;
}
body .order-items small {
  font-size: 12px;
}
body .order-card > .summary-row {
  padding-top: 12px;
  margin: 8px 0 14px;
}
body .order-amount {
  font-size: 19px;
}
body .order-card .primary,
body .order-card .secondary {
  min-height: 42px;
  font-size: 14px;
  display: flex;
  justify-content: center;
}
body .order-card .secondary {
  margin-top: 8px;
}
body .order-card .order-chat-button {
  border: 0;
  color: var(--muted);
  margin: 4px 0 -4px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 400;
  padding: 8px;
}
body .tracking-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #c9ced6;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 8px;
  padding: 10px;
}
.back-to-orders {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--muted);
}
.order-detail-page > h1 {
  font-size: 26px;
  margin: 0 0 12px;
}
.order-detail-id {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.order-detail-id > strong {
  font-size: 19px;
}
.order-detail-date {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 14px;
}
.order-detail-page > .surface,
.order-detail-page > [data-order-payment],
.order-detail-page > .primary {
  margin-bottom: 14px;
}
.order-detail-page .surface h2,
body .order-detail-page .payment-qr h2 {
  font-size: 16px;
  letter-spacing: 0;
  margin-bottom: 14px;
}
body .order-detail-page .total {
  margin-bottom: 0;
}
.order-progress {
  margin: 6px 0 0;
}
.order-progress li {
  min-height: 38px;
  font-size: 13px;
}
.order-progress li::before {
  width: 20px;
  height: 20px;
  background: #ddd;
  border: 0;
}
.order-progress li:not(:last-child)::after {
  left: 9px;
  top: 22px;
  height: 30px;
}
.order-progress .is-complete::before,
.order-progress [aria-current='step']::before {
  content: '✓';
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
}
body .payment-qr {
  display: flex;
  flex-direction: column;
  padding: 16px;
}
body .payment-qr .payment-qr-heading {
  order: -3;
}
body .payment-qr .payment-qr-amount {
  order: -2;
  text-align: center;
  margin: 0 0 8px;
}
body .payment-qr .payment-qr-amount strong {
  font-size: 25px;
  color: var(--ink);
}
body .payment-qr-image {
  width: 176px;
  margin: 0 auto 10px;
}
body .payment-qr > .text-link {
  order: 1;
  border: 1px solid #c9ced6;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
body .payment-qr p {
  font-size: 12px;
  text-align: center;
}
.order-customer-panel p {
  font-size: 14px;
  margin-bottom: 8px;
}
body .account-identity {
  margin-bottom: 14px;
  gap: 16px;
}
body .account-avatar {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
  font-size: 28px;
  color: #72685f;
  background: #f0e7dd;
}
body .account-identity h2 {
  font-size: 17px;
  margin-bottom: 3px;
}
body .account-identity p {
  font-size: 13px;
}
.account-identity small {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  gap: 6px;
}
.google-mark {
  font-size: 23px;
  font-weight: 700;
  color: #4285f4;
}
body .profile-panel {
  margin-bottom: 14px;
}
body .profile-panel h2 {
  font-size: 18px;
  margin-bottom: 4px;
}
body .profile-panel p {
  font-size: 13px;
  margin-bottom: 14px;
}
body .profile-panel .field {
  margin-bottom: 14px;
  font-weight: 400;
}
body .profile-panel .form-error:empty {
  display: none;
}
body .account-links {
  padding: 0 16px;
  margin: 16px 0;
}
.account-links button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  text-align: left;
  font-size: 14px;
}
.account-links button + button {
  border-top: 1px solid var(--line);
}
.account-links button > span {
  flex: 1;
}
.account-links button svg:last-child {
  width: 16px;
  color: var(--muted);
}
.account-logout {
  color: #d32314;
}
.auth-card {
  padding: 70px 0 20px;
  min-height: 650px;
}
.auth-symbol {
  width: 140px;
  height: 120px;
  margin-bottom: 24px;
  background: #fff0df;
  border-radius: 50%;
}
.auth-symbol img {
  width: 90px;
  height: 90px;
}
body .auth-card h2 {
  max-width: 290px;
  margin: auto;
  font-size: 26px;
}
.auth-card .muted {
  margin: 10px 0 28px;
}
body .auth-card .google-button {
  width: 100%;
  background: white;
  border: 1px solid #bfc3ca;
  border-radius: 8px;
  min-height: 56px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 14px;
  margin: 28px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}
.auth-footnote {
  margin-top: 90px;
  color: var(--muted);
  font-size: 12px;
}
body[data-login='true'] .order-summary,
body[data-login='true'] .cart-heading,
body[data-login='true'] .checkout-steps {
  display: none;
}
body .empty-state.surface {
  background: transparent;
  border: 0;
  padding: 100px 20px 40px;
}
body .empty-symbol {
  width: 150px;
  height: 150px;
  margin-bottom: 28px;
}
body .empty-symbol svg {
  width: 78px;
  height: 78px;
  stroke-width: 1;
  color: var(--ink);
}
body .empty-state h2 {
  font-size: 28px;
}
body .empty-state .primary {
  display: inline-flex;
  padding-inline: 40px;
  margin-top: 20px;
}
body .demo-strip {
  margin: 12px 18px;
  border-radius: 8px;
}
body #info-dialog[data-view='product'] {
  max-width: 520px;
  width: 100%;
  max-height: 100dvh;
  height: 100dvh;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: var(--bg);
  margin: 0 auto;
}
body #info-dialog[data-view='product'] > .dialog-close {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
body #info-dialog[data-view='product'] > .dialog-close:focus-visible {
  width: 44px;
  height: 44px;
  opacity: 1;
  pointer-events: auto;
}
.detail-header .header-inner {
  gap: 8px;
}
.detail-header .brand,
.detail-header .basket-button {
  flex-shrink: 0;
}
.detail-back {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 13px;
  min-height: 44px;
  padding: 0;
}
.detail-back svg {
  width: 18px;
}
.product-detail-content {
  padding: 14px 18px 28px;
}
body .detail-photo {
  aspect-ratio: 1;
  margin-bottom: 18px;
  border-radius: 12px;
}
body #info-dialog h2 {
  font-size: 31px;
  margin: 0 0 8px;
}
.detail-price-stock {
  display: flex;
  align-items: center;
  gap: 14px;
}
.detail-price-stock > strong {
  color: var(--accent);
  font-size: 29px;
}
body .detail-price-stock .stock-note {
  margin: 0;
  padding: 5px 12px;
  background: #dff2e5;
  border-radius: 20px;
  color: #17673b;
  font-size: 14px;
}
body .detail-price-stock .sold-out {
  background: #ffe9e9;
  color: #bb2424;
}
body .detail-portion {
  color: var(--muted);
  margin: 4px 0 20px;
}
body .detail-allergens {
  display: flex;
  align-items: start;
  gap: 10px;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 24px;
}
.detail-quantity {
  flex-direction: column;
  align-items: start;
  gap: 12px;
  margin: 20px 0 24px;
}
.detail-quantity .stepper button,
.detail-quantity .stepper span {
  width: 52px;
  height: 46px;
  font-size: 22px;
}
body .product-bottom .primary {
  min-height: 56px;
  font-size: 16px;
}
body .delivery-quote-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border: 1px solid var(--line);
  padding: 18px;
  gap: 16px;
}
.delivery-quote-result > div {
  display: flex;
  flex-direction: column;
}
.delivery-quote-result > div + div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
body .delivery-quote-result strong {
  font-size: 23px;
}
body .delivery-quote-result span,
body .delivery-quote-result small {
  font-size: 13px;
}
@media (min-width: 900px) {
  body .menu-main {
    padding: 30px 32px 110px;
  }
  body .page-main {
    padding: 24px 28px 110px;
  }
  body .product-body {
    min-height: 110px;
  }
}
@media (max-width: 380px) {
  body .menu-main,
  body .page-main {
    padding-inline: 14px;
  }
  body .product-grid {
    gap: 12px;
  }
  body .product-body {
    padding-inline: 9px;
  }
  body .product-title {
    font-size: 14px;
  }
  body .cart-line {
    grid-template-columns: 54px minmax(0, 1fr) 30px;
    gap: 6px;
  }
  body .cart-line > .food-photo {
    width: 54px;
    height: 72px;
  }
  body .cart-line-total {
    grid-column: 3;
    grid-row: 3;
  }
  body .cart-line > .stepper {
    grid-column: 2/-1;
  }
  body .method-option strong {
    font-size: 12px;
  }
  body .account-avatar {
    flex-basis: 56px;
    height: 56px;
    font-size: 23px;
  }
  .detail-back > span {
    display: none;
  }
}
@media (max-width: 899px) {
  body .continue-button,
  body #checkout-submit {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    width: min(484px, calc(100% - 36px));
  }
}
body .delivery-map-dialog {
  padding: 0;
  overflow-y: auto;
  background: white;
}
body .map-dialog-heading {
  height: 64px;
  padding: 12px 18px;
  margin: 0;
  display: flex;
  flex-direction: row-reverse;
  justify-content: end;
  gap: 16px;
}
body .map-dialog-heading h2 {
  flex: 1;
  font-size: 20px;
  margin: 0;
  text-align: center;
  padding-right: 38px;
}
body .map-dialog-heading .icon-button {
  font-size: 24px;
  color: var(--ink);
}
body .delivery-map-dialog > .muted {
  margin: 0;
  padding: 0 18px 10px;
  font-size: 12px;
  text-align: center;
}
body .delivery-map {
  height: 52dvh;
  min-height: 260px;
  border: 0;
  border-radius: 0;
}
body .pin-tools {
  display: flex;
  justify-content: start;
  padding: 0 16px;
  gap: 8px;
  position: relative;
  z-index: 500;
  margin: -60px 0 16px;
}
body .pin-tools .secondary {
  background: white;
  font-size: 12px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px #0002;
}
.map-bottom-sheet {
  position: relative;
  z-index: 500;
  background: white;
  border-radius: 22px 22px 0 0;
  padding: 20px 18px max(14px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px #0001;
}
.map-bottom-sheet::before {
  content: '';
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: #d4d4d4;
  position: absolute;
  top: 6px;
  left: calc(50% - 22px);
}
body .pin-review {
  padding: 6px 4px 16px;
  margin: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
body .pin-review strong {
  font-size: 16px;
}
body .pin-review p {
  margin: 3px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.map-bottom-sheet > details {
  padding: 8px 4px;
}
body .map-bottom-sheet > details summary {
  min-height: 42px;
}
body .map-bottom-sheet > .form-error:empty {
  display: none;
}
body .map-attribution {
  font-size: 10px;
  text-align: center;
  margin: 12px 0 0;
}
@media (max-width: 600px) {
  body .delivery-map-dialog {
    padding: 0;
  }
}
body .order-items .food-photo {
  flex: 0 0 54px;
}
body .checkout-review li .food-photo {
  flex: 0 0 46px;
}
body .product-bottom {
  display: block;
}
body .product-bottom .primary {
  width: 100%;
}
body .product-detail-content > p:not(.detail-portion) {
  color: var(--ink);
}
body .site-header {
  box-shadow: none;
}
body[data-order-detail='true'] .mobile-nav {
  display: none;
}
body[data-order-detail='true'] .page-main {
  padding-bottom: 32px;
}
body .delivery-map-dialog {
  color: var(--ink);
}
body #info-dialog[data-view='product'] > .dialog-close {
  display: none;
}
body .order-items > div {
  padding: 6px 0;
  margin-bottom: 2px;
}
.order-detail-page .order-progress li {
  min-height: 32px;
}
.order-detail-page .order-progress li:not(:last-child)::after {
  height: 25px;
}
body .product-detail-content {
  padding-top: 10px;
}
body .product-detail-content .detail-photo {
  aspect-ratio: 1.06;
  margin-bottom: 16px;
}
body .product-detail-content > p {
  margin-top: 12px;
  margin-bottom: 16px;
}
body .product-detail-content .detail-allergens {
  padding-block: 16px;
  margin-top: 18px;
}
body .product-detail-content .detail-quantity {
  margin: 18px 0 20px;
}
.account-identity small svg {
  width: 22px;
  height: 22px;
}
body[data-checkout='true']
  #checkout-form[data-method='delivery']
  .order-summary
  > .delivery-row {
  display: flex;
  padding-top: 10px;
  margin-top: 0;
}

body .pickup-location-panel {
  padding: 16px;
  margin: 20px 0;
}
body .pickup-location-panel h2 {
  font-size: 16px;
  margin: 0 0 6px;
}
.pickup-location-panel p {
  font-size: 14px;
  margin: 0 0 12px;
}
body .pickup-location-panel .secondary {
  font-size: 14px;
  gap: 8px;
}

/* ==========================================================================
   Fasa 1: Asas Visual Moden (Oat-Alabaster & Terracotta, Tipografi Tabular,
   Header Separa Lutsinar & Dok Navigasi Kaca Terapung)
   ========================================================================== */
:root {
  --bg: #faf6f0;
  --paper: #ffffff;
  --ink: #1c1410;
  --muted: #6e655f;
  --accent: #c84b24;
  --accent-strong: #a93815;
  --accent-soft: #fff0e8;
  --line: #eae3da;
  --shadow-sm: 0 4px 16px rgba(28, 20, 16, 0.05);
  --shadow-md: 0 12px 32px rgba(28, 20, 16, 0.09);
  --shadow-dock: 0 14px 34px rgba(28, 20, 16, 0.12);
  background: #f2ece3;
}
body {
  font-family:
    'Plus Jakarta Sans',
    'DM Sans',
    -apple-system,
    BlinkMacSystemFont,
    'SF Pro Display',
    'SF Pro Text',
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body .product-price,
body .cart-line-total,
body .cart-line-info > strong,
body .summary-row,
body .total,
body .order-amount,
body .payment-qr-amount strong,
body .delivery-quote-result strong,
body .count,
body .quantity-badge,
body .stepper span {
  font-variant-numeric: tabular-nums;
}
body .site-header {
  background: rgba(250, 246, 240, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(234, 227, 218, 0.75);
}
body .header-inner {
  height: 74px;
  padding: 12px 20px;
}
body .brand {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--ink);
  gap: 10px;
}
body . basket-button,
body .basket-button {
  width: auto;
  min-width: 46px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
body .basket-button:active {
  transform: scale(0.96);
}
body .basket-button svg {
  width: 22px;
  height: 22px;
  color: var(--ink);
}
body .count {
  position: static;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}
body .mobile-nav {
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(460px, calc(100% - 28px));
  max-width: 460px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(234, 227, 218, 0.95);
  box-shadow: var(--shadow-dock);
}
body .mobile-nav a {
  flex: 1;
  min-height: 48px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  gap: 3px;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}
body .mobile-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
body .mobile-nav a.active::after {
  display: none;
}

/* ==========================================================================
   Fasa 2: Katalog & Hero Editorial Pelanggan (Kad Hero 24px, Bar Carian Pil,
   Cip Kategori Terapung, Kad Produk 20px, Lencana Stok Terapung & Butang +)
   ========================================================================== */
body .menu-main {
  padding: 16px 18px 116px;
}
body .menu-main > h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.9px;
  margin: 4px 0 16px;
  color: var(--ink);
}
body .menu-main > h1::before {
  content: none;
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.hero-feature-card {
  position: relative;
  display: block;
  width: 100%;
  height: 176px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  text-align: left;
  background: #2b1d16;
  box-shadow: var(--shadow-md);
}
.hero-feature-card .hero-feature-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.hero-feature-card:hover .hero-feature-photo {
  transform: scale(1.03);
}
.hero-feature-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
  background: linear-gradient(
    180deg,
    rgba(28, 20, 16, 0.08) 0%,
    rgba(28, 20, 16, 0.78) 100%
  );
  color: #fff;
}
.hero-feature-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(28, 20, 16, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.hero-feature-overlay strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.hero-feature-overlay small {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  font-variant-numeric: tabular-nums;
}
body .search-field {
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
body .search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 75, 36, 0.14);
}
body .category-tabs {
  margin: 16px 0 20px;
  gap: 8px;
  padding-bottom: 4px;
}
body .category-tabs button {
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(28, 20, 16, 0.03);
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
body .category-tabs button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(200, 75, 36, 0.26);
}
body .product-grid {
  gap: 16px;
}
body .product-card {
  position: relative;
  border: 1px solid rgba(234, 227, 218, 0.85);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
body .product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
body .product-card .food-photo {
  aspect-ratio: 1.08;
  border-radius: 19px 19px 0 0;
}
body .product-card .product-body {
  position: static;
  padding: 12px 54px 14px 14px;
  min-height: 82px;
}
body .product-card .product-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
body .product-card .product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 6px;
}
body .product-card .stock-note {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(28, 20, 16, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
}
body .product-card .stock-note.sold-out {
  background: rgba(180, 35, 24, 0.88);
  color: #fff;
}
body .product-card .quantity-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  border: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(200, 75, 36, 0.3);
}
body .product-card .add-button {
  width: 38px;
  height: 38px;
  right: 12px;
  bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d1532b 0%, #b83e19 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(200, 75, 36, 0.28);
  font-size: 22px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
body .product-card .add-button:active:not(:disabled) {
  transform: scale(0.92);
}
body .product-card .add-button:disabled {
  background: #e5e0d8;
  color: #8c827a;
  box-shadow: none;
}

/* ==========================================================================
   Fasa 3: Bakul Pintar, Penukar Segmen, Kad Peta Interaktif, Bar Checkout
   Terapung, Status Melintang (#orders/<id>) & Kad QR Berfokus
   ========================================================================== */
body .surface {
  background: var(--paper);
  border: 1px solid rgba(234, 227, 218, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
body .cart-line {
  background: var(--paper);
  border: 1px solid rgba(234, 227, 218, 0.9);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
body .cart-line > .food-photo {
  border-radius: 12px;
}
body .stepper button {
  border-radius: 999px;
}
body .stepper span {
  border-radius: 999px;
  background: #faf6f0;
}
body .method-options {
  background: #efe8de;
  padding: 5px;
  border-radius: 16px;
  gap: 6px;
  border: 1px solid var(--line);
}
body .method-option {
  min-height: 48px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}
body .method-option.selected {
  background: var(--paper);
  border: 0;
  box-shadow: 0 4px 12px rgba(28, 20, 16, 0.08);
}
body .method-option.selected svg {
  color: var(--accent);
}
body .delivery-location-section {
  border-radius: 20px;
  border: 1px solid rgba(234, 227, 218, 0.9);
  box-shadow: var(--shadow-sm);
}
body .delivery-quote-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(200, 75, 36, 0.24);
  border-radius: 16px;
  padding: 16px;
}
body .field input,
body .field textarea {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
body .field input:focus,
body .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 75, 36, 0.12);
}
body .primary,
body .secondary {
  border-radius: 999px;
  font-weight: 700;
}
body .primary {
  background: linear-gradient(135deg, #d1532b 0%, #b63d18 100%);
  box-shadow: 0 6px 16px rgba(200, 75, 36, 0.22);
}
body .continue-button,
body #checkout-submit {
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, #d1532b 0%, #b63d18 100%);
  box-shadow:
    0 10px 24px rgba(200, 75, 36, 0.28),
    0 0 0 8px var(--bg);
}
body .order-tabs {
  border-bottom: 0;
  background: #efe8de;
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}
body .order-tabs button {
  min-height: 40px;
  border-radius: 999px;
  font-weight: 600;
}
body .order-tabs button[aria-pressed='true'] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(28, 20, 16, 0.08);
}
body .order-tabs button[aria-pressed='true']::after {
  display: none;
}
@media (min-width: 360px) {
  .order-detail-page .order-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin: 12px 0 4px;
    align-items: start;
  }
  .order-detail-page .order-progress li {
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    min-height: 0;
    gap: 8px;
    font-size: 11px;
    line-height: 1.25;
  }
  .order-detail-page .order-progress li::before {
    width: 24px;
    height: 24px;
    font-size: 12px;
    box-shadow: 0 0 0 4px var(--paper);
  }
  .order-detail-page .order-progress li:not(:last-child)::after {
    top: 11px;
    left: calc(50% + 12px);
    width: calc(100% - 20px);
    height: 2px;
  }
  .order-detail-page .order-progress .is-complete::after {
    background: var(--accent);
  }
}
body .payment-qr {
  border-radius: 22px;
  border: 1px solid rgba(200, 75, 36, 0.22);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  padding: 20px;
}
body .payment-qr-image {
  position: relative;
  width: 196px;
  padding: 16px;
  border-radius: 18px;
  border: 2px solid var(--accent-soft);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
body .payment-qr > .text-link {
  border-radius: 999px;
  font-weight: 600;
}

/* ==========================================================================
   Gelombang 2 · Fasa 1: Bar Bakul Terapung (Floating Cart Pill), Stepper
   Kuantiti Terus Pada Kad Menu, Bottom Sheet Dialog & Skeleton Shimmer
   ========================================================================== */
body .menu-main:has(.floating-cart-bar) {
  padding-bottom: 176px;
}
.floating-cart-slot {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  width: min(460px, calc(100% - 28px));
  z-index: 26;
  pointer-events: none;
}
.floating-cart-bar {
  pointer-events: auto;
  width: 100%;
  min-height: 54px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #241914 0%, #38251c 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 14px 32px rgba(28, 20, 16, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-variant-numeric: tabular-nums;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}
.floating-cart-bar:active {
  transform: scale(0.98);
}
.floating-cart-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.floating-cart-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}
.floating-cart-info strong {
  font-size: 16px;
  font-weight: 800;
}
.floating-cart-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #ffd7c4;
}
.floating-cart-cta svg {
  width: 18px;
  height: 18px;
}
body .product-card.in-cart {
  border-color: rgba(200, 75, 36, 0.35);
}
body .product-card .card-stepper {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: #f5efe6;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(28, 20, 16, 0.08);
  z-index: 3;
}
body .product-card .card-stepper button,
body .product-card .card-stepper .card-step-minus,
body .product-card .card-stepper .card-step-plus {
  position: relative;
  inset: auto;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 18px;
  font-weight: 600;
  padding: 0;
}
body .product-card .card-stepper .card-step-minus {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(28, 20, 16, 0.08);
}
body .product-card .card-stepper .quantity-badge {
  position: static;
  min-width: 22px;
  padding: 0 4px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-shadow: none;
}
.skeleton-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.skeleton-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.skeleton-photo,
.skeleton-line {
  display: block;
  border-radius: 12px;
  background: linear-gradient(90deg, #f2ece3 25%, #faf6f0 50%, #f2ece3 75%);
  background-size: 200% 100%;
  animation: pd-shimmer 1.4s infinite linear;
}
.skeleton-photo {
  aspect-ratio: 1.08;
  border-radius: 14px;
}
.skeleton-line {
  height: 14px;
  width: 82%;
}
.skeleton-line.short {
  width: 48%;
  height: 16px;
}
@keyframes pd-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
body #info-dialog[data-view='product'] {
  max-height: min(88dvh, 760px);
  height: auto;
  margin: auto auto 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -16px 48px rgba(28, 20, 16, 0.2);
}
body #info-dialog[data-view='product']::backdrop {
  background: rgba(28, 20, 16, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sheet-handle {
  display: block;
  width: 44px;
  height: 5px;
  margin: 10px auto 2px;
  border-radius: 999px;
  background: #d8d0c5;
}
@media (min-width: 601px) {
  body #info-dialog[data-view='product'] {
    margin: auto;
    border-radius: 24px;
  }
}

/* ==========================================================================
   Gelombang 2 · Fasa 2: Tindakan Pantas Bayaran QR (Salin Jumlah & Simpan QR)
   ========================================================================== */
.payment-qr-actions {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 12px;
}
.payment-qr-actions > .text-link,
.payment-qr-actions > .qr-copy-button {
  flex: 1 1 140px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
.payment-qr-actions > .text-link {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  box-shadow: 0 4px 12px rgba(200, 75, 36, 0.22);
}
.payment-qr-actions > .qr-copy-button {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(200, 75, 36, 0.25);
}

/* Avoid repeated backdrop sampling while scrolling on touch devices. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  body .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body .mobile-nav {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body .product-card .stock-note,
  body .hero-feature-badge,
  body #info-dialog[data-view='product']::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-photo,
  .skeleton-line {
    animation: none;
  }
}

/* Four equal destinations: Menu, Pesanan, Mesej, Akaun. */
body .mobile-nav a {
  min-width: 0;
  padding-inline: 4px;
}
body .mobile-nav .chat-nav-count {
  position: absolute;
  top: 0;
  left: calc(50% + 6px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.shop-closed-notice {
  padding: 24px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  text-align: center;
}
.shop-closed-notice strong {
  font-size: 22px;
  color: var(--ink);
}
.shop-closed-notice p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Menu ratings and public comments from verified purchases. */
body .menu-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
body .menu-rating > span:first-child {
  color: #b8781c;
}
body .menu-rating .review-count {
  color: var(--muted);
}
.menu-reviews {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
body .menu-reviews > h2 {
  font-size: 21px;
  margin: 0 0 8px;
}
.menu-review-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.menu-review-form h3 {
  font-size: 17px;
  margin: 0;
}
.review-rating-picker {
  display: flex;
  gap: 6px;
  border: 0;
  padding: 0;
  margin: 0;
}
.review-rating-picker legend {
  font-size: 14px;
  margin-bottom: 8px;
}
.review-star-option {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  color: #a4a4a4;
  font-size: 32px;
  cursor: pointer;
}
.review-star-option.is-selected {
  color: #b8781c;
}
.review-star-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.review-star-option:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.review-star-option:has(input:disabled) {
  opacity: 0.6;
  cursor: wait;
}
.menu-review-form textarea {
  min-height: 100px;
  font: inherit;
  font-size: 16px;
}
.review-privacy,
.review-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.review-privacy {
  margin: 0;
}
.review-message {
  font-size: 14px;
  line-height: 1.5;
  margin-block: 14px;
}
.review-message:empty {
  display: none;
}
.menu-review {
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.menu-review:first-child {
  margin-top: 20px;
}
.review-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  justify-content: space-between;
}
.review-heading strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.review-stars {
  color: #b8781c;
  font-size: 18px;
  white-space: nowrap;
}
.menu-review small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.menu-review p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.combo-badge {
  display: inline-block;
  border-radius: 6px;
  padding: 3px 8px;
  background: var(--accent-soft, #fff0e9);
  color: var(--accent, #b74522);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: middle;
}
.combo-contents {
  display: block;
  margin: 6px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
  color: var(--muted, #666);
}

/* Credit and bank refund controls. */
body .wallet-panel,
body .delivery-settlement-note {
  margin-top: 20px;
  padding: 22px;
  border-radius: 18px;
  background: #fffaf4;
  border: 1px solid var(--line);
}
body .wallet-balance {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  margin: 10px 0;
  font-variant-numeric: tabular-nums;
}
body .wallet-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}
body .wallet-check input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 2px 0;
  accent-color: var(--accent);
}
body .checkout-credit {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
body .wallet-refund-details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
body .wallet-refund-details summary {
  padding: 8px 0;
  font-weight: 700;
  cursor: pointer;
}
body .wallet-refund-details form {
  display: grid;
  gap: 14px;
}
body .wallet-list {
  padding: 0;
  list-style: none;
}
body .wallet-list li {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
body .wallet-list li > div {
  flex: 1 1 160px;
}
body .wallet-list strong,
body .wallet-list small {
  display: block;
}
body .wallet-list time {
  color: var(--muted);
  font-size: 12px;
  flex-basis: 100%;
}
body .credit-positive {
  color: #17663a;
  font-weight: 650;
}
