:root {
  --bg: #fcf9f3;
  --paper: #fffdfa;
  --ink: #201710;
  --muted: #807b75;
  --accent: #af4c1b;
  --line: #e9e2d9;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #eeeae4;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(95px + env(safe-area-inset-top, 0px));
}
body {
  margin: 0 auto;
  max-width: 430px;
  min-height: 100dvh;
  background: var(--bg);
  box-shadow: 0 0 60px #3d2b1610;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
button svg,
a svg {
  pointer-events: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #b57544;
  outline-offset: 3px;
}
input,
textarea {
  accent-color: var(--accent);
  font-size: 16px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.6px;
}
p {
  line-height: 1.6;
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 16px;
}
.hidden,
[hidden] {
  display: none !important;
}
.muted,
.fine-print {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
/* Header kekal di atas, dengan ruang status bar iPhone. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  height: 83px;
  padding: 18px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-cake {
  font-size: 36px;
  line-height: 1;
}
.basket-button {
  position: relative;
  padding: 9px 4px;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
}
.basket-button svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.7;
}
.count {
  position: absolute;
  right: -2px;
  top: 0;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 11px;
  display: grid;
  place-content: center;
}
.count:empty {
  display: none;
}
.menu-main {
  padding: 4px 20px 87px;
}
.menu-main > h1 {
  font-size: 28px;
  line-height: 1.18;
  margin: 8px 0 14px;
  letter-spacing: -0.8px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #fffdfa;
  color: #6e6b67;
  box-shadow: 0 1px 2px #3b2b1710;
}
.search-field svg {
  width: 20px;
  height: 20px;
}
.search-field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font-size: 16px;
  min-width: 0;
}
.search-field input::placeholder {
  color: #85817d;
}
.category-tabs {
  display: flex;
  gap: 12px;
  margin: 13px 0 15px;
}
.category-tabs button {
  background: #f0ebe3;
  color: #2c241e;
  border-radius: 24px;
  min-height: 38px;
  min-width: 78px;
  padding: 9px 21px;
  font-size: 14px;
}
.category-tabs button.active {
  background: var(--accent);
  color: white;
  font-weight: 600;
}
.featured-banner {
  height: 122px;
  position: relative;
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  background: #51280d;
}
.featured-banner:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #311500ba, transparent 80%);
}
.featured-banner > span {
  position: absolute;
  left: 20px;
  top: 23px;
  color: #fff;
  font-size: 24px;
  line-height: 1.13;
  font-weight: 700;
  z-index: 1;
  letter-spacing: -0.5px;
}
.featured-banner i {
  display: block;
  width: 32px;
  height: 2px;
  background: white;
  margin-top: 11px;
}
.banner-photo {
  position: absolute !important;
  inset: 0;
}
.food-photo {
  position: relative;
  overflow: hidden;
  background: #ecdecc;
}
.food-photo:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background-image: url('./assets/desserts.png');
  background-size: 200% 200%;
  background-repeat: no-repeat;
}
.cake:before {
  background-position: 0 0;
}
.pudding:before {
  background-position: 100% 0;
}
.brownie:before {
  background-position: 0 100%;
}
.cheesecake:before {
  background-position: 100% 100%;
}
.banner-photo:before {
  width: 100%;
  transform: translate(-32%, -51%);
}
.banner-photo {
  background: #51280d;
}
.catalogue h2 {
  margin: 18px 0 12px;
  font-size: 24px;
  line-height: 1.15;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 10px;
}
.product-card {
  border: 1px solid #eee7de;
  background: #fffdfa;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 4px #44291104;
}
.photo-button {
  display: block;
  width: 100%;
  padding: 0;
}
.product-card .food-photo {
  aspect-ratio: 1.76;
}
.product-body {
  padding: 9px 10px 10px;
  position: relative;
  min-height: 57px;
}
.product-title {
  padding: 0;
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
  text-align: left;
  max-width: calc(100% - 24px);
  white-space: nowrap;
}
.product-price {
  display: block;
  color: #9e3e16;
  font-size: 14px;
  line-height: 1.2;
  margin-top: 6px;
  letter-spacing: -0.3px;
}
.add-button {
  position: absolute;
  right: 9px;
  bottom: 13px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: grid;
  place-content: center;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}
.quantity-badge {
  position: absolute;
  top: -11px;
  right: 8px;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2px 6px;
  color: var(--accent);
  font-size: 10px;
}
.menu-disclaimer {
  font-size: 10px;
  color: #9a8e80;
  text-align: center;
  margin: 16px 0 0;
}
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  display: flex;
  justify-content: space-around;
  background: #fcfaf5f5;
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 9px 18px calc(10px + env(safe-area-inset-bottom));
  z-index: 20;
}
.mobile-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 65px;
  min-height: 44px;
  font-size: 12px;
  color: #626268;
}
.mobile-nav svg {
  width: 23px;
  height: 23px;
}
.mobile-nav a.active {
  color: #a44018;
}
.mobile-nav a.active:after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 17px;
  right: 17px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.mobile-nav a.active svg {
  stroke-width: 2;
}
.page-main {
  padding: 20px 20px 100px;
}
.page-heading {
  margin: 12px 0 26px;
}
.page-heading h1 {
  font-size: 30px;
  margin: 10px 0 13px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
}
.surface {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffdfa;
}
.primary,
.secondary {
  min-height: 48px;
  border-radius: 12px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.primary {
  background: var(--accent);
  color: #fff;
}
.primary:hover {
  background: #963e15;
}
.secondary {
  border: 1px solid var(--line);
  background: #fffdfa;
  font-size: 13px;
}
.full {
  width: 100%;
}
.icon-button {
  display: grid;
  place-content: center;
  width: 32px;
  height: 38px;
  padding: 0;
  color: #777;
}
.icon-button svg {
  width: 20px;
  height: 20px;
}
.cart-main {
  padding-top: 22px;
  padding-bottom: 30px;
}
.cart-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 24px;
}
.cart-heading h1 {
  font-size: 25px;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0;
}
.cart-heading > .icon-button {
  color: #1f1913;
  width: 26px;
  height: 32px;
}
.cart-heading > .icon-button svg {
  width: 26px;
  height: 26px;
}
body[data-view='cart'] .site-header,
body[data-view='cart'] .mobile-nav {
  display: none;
}
.cart-items {
  display: grid;
  gap: 12px;
}
.cart-line {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 10px 10px 8px;
  background: #fffdfa;
  border: 1px solid #f3ede4;
  border-radius: 13px;
  box-shadow: 0 2px 7px #5f3c1203;
  min-height: 108px;
}
.cart-line > .food-photo {
  width: 82px;
  height: 86px;
  border-radius: 9px;
  flex-shrink: 0;
}
.cart-line > .food-photo:before {
  width: 90px;
}
.cart-line-info {
  flex: 1;
  min-width: 0;
}
.cart-line h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 0 0 10px;
  line-height: 1.15;
  white-space: nowrap;
}
.cart-line-info > strong {
  font-size: 16px;
  color: #9c3d12;
}
.stepper {
  display: flex;
  align-items: center;
  border: 1px solid #e5ded5;
  border-radius: 13px;
  overflow: hidden;
  flex-shrink: 0;
  background: #faf6f0;
}
.stepper button {
  width: 27px;
  height: 38px;
  font-size: 22px;
  font-weight: 400;
  padding: 0;
}
.stepper span {
  font-size: 15px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}
.cart-line > .remove {
  width: 19px;
  flex-shrink: 0;
}
.cart-line > .remove svg {
  width: 18px;
  height: 18px;
}
.field-section {
  margin-top: 23px;
}
.field-section h2 {
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 9px;
}
.method-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.method-option {
  position: relative;
  min-height: 87px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  background: #fffdfa;
}
.method-option.selected {
  border-color: var(--accent);
  background: #fff1df;
}
.method-option input {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid #aaa19a;
  border-radius: 50%;
  margin: 5px 0 0;
  position: relative;
  flex-shrink: 0;
}
.method-option input:checked {
  border: 2px solid #9f431a;
}
.method-option input:checked:after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #af4c1b;
}
.method-option > span {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.method-option svg {
  width: 31px;
  height: 31px;
  color: #1d1813;
}
.method-option strong {
  font-size: 14px;
  letter-spacing: -0.4px;
  font-weight: 500;
  white-space: nowrap;
}
.method-option.selected strong {
  font-weight: 600;
}
.delivery-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
}
.field {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #e7dfd4;
  background: #fffdfa;
  color: var(--ink);
  border-radius: 10px;
  padding: 13px 14px;
  margin-top: 9px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}
.field textarea {
  min-height: 107px;
  resize: vertical;
}
.note-field {
  margin-top: 23px;
  margin-bottom: 0;
}
.note-field textarea {
  margin-top: 9px;
}
.order-summary {
  margin-top: 29px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 16px;
  margin: 18px 0;
}
.total {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 14px;
  font-size: 21px;
}
.total strong:last-child {
  color: #9f431a;
}
.continue-button {
  margin-top: 6px;
  min-height: 56px;
  font-size: 19px;
  font-weight: 600;
  gap: 5px;
  border-radius: 14px;
  box-shadow: 0 2px 4px #af4c1b15;
}
.customer-fields {
  padding-top: 6px;
}
.customer-fields > .field {
  font-size: 15px;
  letter-spacing: 0;
}
.demo-callout {
  padding: 14px;
  border-radius: 10px;
  background: #f4ede2;
  font-size: 12px;
}
.demo-callout p {
  font-size: 11px;
  color: #7b6755;
  margin: 7px 0 0;
}
.form-error {
  font-size: 12px;
  color: #a02e17;
  line-height: 1.5;
}
.profile-panel {
  margin-bottom: 22px;
}
.profile-panel h2 {
  font-size: 20px;
}
.profile-panel p {
  font-size: 12px;
  color: var(--muted);
}
.profile-panel .field {
  font-size: 14px;
  letter-spacing: 0;
  margin-top: 20px;
}
.profile-panel .primary {
  font-size: 13px;
}
.order-list {
  display: grid;
  gap: 20px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.section-heading h2 {
  font-size: 14px;
  margin: 8px 0 0;
  letter-spacing: 0;
}
.order-status {
  font-size: 10px;
  color: #63734d;
  background: #eef0e6;
  border-radius: 6px;
  padding: 5px 7px;
  white-space: nowrap;
}
.order-status svg {
  width: 13px;
  height: 13px;
}
.order-items > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
}
.order-items .food-photo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  flex-shrink: 0;
}
.order-items span {
  flex: 1;
}
.order-items strong {
  font-size: 12px;
}
.order-items small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.order-card > .summary-row {
  font-size: 12px;
}
.order-amount {
  font-size: 18px;
  color: var(--accent);
}
details {
  border-top: 1px solid var(--line);
  padding: 13px 0;
  font-size: 12px;
  margin-bottom: 6px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.empty-state {
  text-align: center;
  padding: 40px 20px;
}
.empty-state > svg {
  width: 40px;
  height: 40px;
  color: #a58f78;
  margin-bottom: 18px;
}
.empty-state h2,
.empty-state h3 {
  font-size: 20px;
  line-height: 1.4;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
}
.empty-state .primary {
  font-size: 13px;
}
.search-empty {
  grid-column: 1/-1;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  padding: 12px 16px;
  border-radius: 12px;
  background: #302117;
  color: white;
  font-size: 12px;
  max-width: min(90vw, 390px);
  width: max-content;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  max-width: 400px;
  width: calc(100% - 30px);
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop {
  background: #2a1e1459;
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: absolute;
  top: 7px;
  right: 8px;
  font-size: 24px;
  z-index: 1;
  background: #fffaf5;
  border-radius: 50%;
}
.detail-photo {
  aspect-ratio: 1.3;
  border-radius: 10px;
  margin-bottom: 22px;
}
dialog h2 {
  font-size: 26px;
  margin: 10px 0;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-bottom > strong {
  color: var(--accent);
}
.product-bottom .primary {
  font-size: 12px;
  padding: 12px;
}
.loading {
  min-height: 60vh;
  display: grid;
  place-content: center;
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 600px) {
  body {
    border-left: 1px solid #e7dfd4;
    border-right: 1px solid #e7dfd4;
  }
  .mobile-nav {
    border-left: 1px solid #e7dfd4;
    border-right: 1px solid #e7dfd4;
  }
}
@media (max-width: 380px) {
  .header-inner {
    padding-left: 17px;
    padding-right: 17px;
    height: 73px;
  }
  .brand {
    font-size: 22px;
    gap: 9px;
  }
  .brand-cake {
    font-size: 32px;
  }
  .menu-main {
    padding-left: 17px;
    padding-right: 17px;
  }
  .menu-main > h1 {
    font-size: 25px;
  }
  .search-field input {
    font-size: 14px;
  }
  .category-tabs button {
    font-size: 13px;
    min-width: 72px;
    padding: 9px 17px;
  }
  .featured-banner {
    height: 112px;
  }
  .featured-banner > span {
    font-size: 23px;
    top: 21px;
    left: 18px;
  }
  .catalogue h2 {
    font-size: 23px;
    margin-top: 17px;
  }
  .product-body {
    padding: 8px;
    min-height: 56px;
  }
  .product-title {
    font-size: 12px;
    max-width: calc(100% - 22px);
  }
  .product-price {
    font-size: 13px;
  }
  .add-button {
    width: 28px;
    height: 28px;
    right: 7px;
    bottom: 12px;
    font-size: 24px;
  }
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .cart-line {
    gap: 8px;
    padding: 9px 7px;
    min-height: 100px;
  }
  .cart-line > .food-photo {
    width: 67px;
    height: 79px;
  }
  .cart-line h3 {
    font-size: 12px;
    letter-spacing: -0.4px;
  }
  .cart-line-info > strong {
    font-size: 14px;
  }
  .stepper button {
    width: 24px;
    height: 35px;
    font-size: 20px;
  }
  .stepper span {
    font-size: 13px;
    min-width: 15px;
  }
  .cart-line > .remove {
    width: 16px;
  }
  .cart-line > .remove svg {
    width: 16px;
  }
  .method-option {
    gap: 6px;
    padding: 11px 8px;
    min-height: 83px;
  }
  .method-option strong {
    font-size: 12px;
  }
  .method-option input {
    width: 20px;
    height: 20px;
  }
  .note-field {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.banner-photo {
  background: #57331f;
}
.food-photo.uploaded-photo {
  aspect-ratio: 1;
}
.featured-banner .banner-photo {
  height: 100%;
  object-fit: cover;
}
.banner-photo:before {
  display: none;
}

/* Ikon kek Put Desert */
.brand-cake {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 380px) {
  .brand-cake {
    width: 38px;
    height: 38px;
  }
}

/* Sokongan katalog admin */
.category-tabs {
  overflow-x: auto;
}
.category-tabs button {
  flex-shrink: 0;
}
.product-title {
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-entry {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--accent);
  margin-top: 28px;
}

/* Log masuk Google: sasaran sentuhan yang jelas pada Android dan iPhone. */
.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #d9d2ca;
  border-radius: 12px;
  background: #fff;
  color: #35271e;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.google-button:hover {
  background: #faf7f2;
  border-color: #bbaa98;
}
.google-button:focus-visible {
  outline: 3px solid #b65a25;
  outline-offset: 3px;
}
.google-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.google-button svg {
  flex: 0 0 auto;
}
.auth-card {
  margin-bottom: 18px;
}
.auth-card .secondary {
  margin-top: 12px;
}
.auth-card p {
  overflow-wrap: anywhere;
}

/* Gambar menu yang dimuat naik ke Firebase Storage. */
.uploaded-photo {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
  background: #f1e9df;
}
.uploaded-photo:before,
.photo-placeholder:before {
  display: none;
}
.photo-placeholder {
  display: grid;
  place-items: center;
  background: #f1e9df;
  color: #86786b;
  font-size: 12px;
}
