@font-face {
  font-family: Comfortaa;
  src: url("/assets/comfortaa.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 700;
}
:root {
  --cream: #f6f0e9;
  --paper: #fbf8f4;
  --ink: #4e423e;
  --muted: #6b5d58;
  --line: #e3d6ca;
  --accent: #4e423e;
  --accent-dark: #6b5d58;
  --green: #9c5764;
  --serif: "Comfortaa", ui-rounded, system-ui, sans-serif;
  --sans: "Comfortaa", ui-rounded, system-ui, sans-serif;
  --sakura: #c58f97;
  --sakura-strong: #9c5764;
  --blush: #e5c6ca;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
button {
  touch-action: manipulation;
}
a {
  color: inherit;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 116px;
  margin: 0 4.5%;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  flex: none;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: 180px;
  height: 75px;
  object-fit: contain;
}
.location {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6b5d58;
}
.open-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.mode-badge {
  font-size: 10px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 9px 14px;
}
.mode-badge.real {
  background: #f6ded9;
  color: #a14a4a;
  border-color: #e3c3bc;
}
.layout {
  max-width: 1560px;
  margin: 0 auto;
  padding: 43px 4.5% 35px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px 30px;
  min-height: 230px;
  background: var(--blush);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.brand-illustration {
  flex: none;
  width: 140px;
  align-self: center;
  transform: rotate(8deg);
}
.brand-illustration img {
  display: block;
  width: 100%;
  height: auto;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--sakura-strong);
  margin: 0 0 15px;
}
h1 {
  font: 600 clamp(32px, 3.2vw, 46px) / 1.22 var(--sans);
  letter-spacing: -1.8px;
  margin: 0;
}
h1 em {
  color: var(--sakura-strong);
  font-style: normal;
  font-weight: 600;
}
.intro-copy {
  font-size: 11px;
  color: var(--ink);
  line-height: 1.8;
  margin: 15px 0 0;
  max-width: 290px;
}
.categories {
  display: flex;
  gap: 8px;
  margin: 32px 0 28px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.category {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  min-height: 46px;
  padding: 0 18px;
  white-space: nowrap;
  font-size: 11px;
}
.category span {
  font-size: 9px;
  opacity: 0.65;
  margin-left: 6px;
}
.category.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.category:hover:not(.active) {
  background: #efe6dc;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
  gap: 8px;
}
.section-label h2 {
  font: 600 20px var(--sans);
  letter-spacing: -0.7px;
  margin: 0;
}
.section-label > span {
  font-size: 10px;
  color: var(--muted);
}
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px 18px;
}
.product {
  min-width: 0;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.product-photo {
  height: 175px;
  background: #efe6dc;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}
.product:hover .product-photo img {
  transform: scale(1.045);
}
.product-tag {
  position: absolute;
  top: 9px;
  left: 9px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 20px;
  padding: 5px 8px;
  font-size: 8px;
  font-weight: 600;
}
.product-info {
  padding: 13px 7px 5px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product h3 {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}
.product p {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 7px;
  min-height: 34px;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.product-price {
  font-size: 13px;
  font-weight: 600;
}
.add-button {
  background: var(--blush);
  color: var(--ink);
  border: 1px solid var(--blush);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  transition: background 0.15s;
}
.add-button:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.allergen-note {
  font-size: 10px;
  color: var(--muted);
  margin: 25px 0 0;
}
.order-panel {
  position: sticky;
  top: 24px;
  align-self: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 25px 20px;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px #4e423e06;
}
.order-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.7px;
  margin-bottom: 8px;
}
.order-heading h2 {
  font: 600 25px var(--sans);
  margin: 0 0 24px;
  letter-spacing: -1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-heading h2 span {
  background: #e5c6ca;
  border-radius: 50%;
  font: 12px var(--sans);
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}
.service-switch {
  display: flex;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 4px;
  gap: 4px;
}
.service-switch button {
  border: 0;
  background: transparent;
  font-size: 9px;
  min-height: 40px;
  border-radius: 20px;
  flex: 1;
}
.service-switch .selected {
  background: var(--blush);
  color: var(--ink);
  font-weight: 700;
}
.cart-items {
  padding: 19px 0;
  flex: 1;
}
.empty-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  min-height: 240px;
}
.empty-cart svg {
  width: 57px;
  height: 57px;
  stroke: #c58f97;
  stroke-width: 1.2;
  margin-bottom: 16px;
}
.empty-cart strong {
  font: 600 15px var(--sans);
}
.empty-mascot {
  width: 74px;
  height: 89px;
  object-fit: contain;
  margin: 5px 0 17px;
}
.empty-cart p {
  font-size: 11px;
  color: var(--muted);
  max-width: 180px;
  line-height: 1.7;
  margin: 9px 0;
}
.cart-line {
  display: grid;
  grid-template-columns: 43px 1fr;
  column-gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #e3d6ca;
}
.cart-thumb {
  width: 43px;
  height: 49px;
  object-fit: cover;
  border-radius: 5px;
}
.cart-line h3 {
  font-size: 11px;
  margin: 0 0 4px;
  font-weight: 600;
}
.cart-line-top {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.cart-line-top span {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-top: 5px;
}
.quantity button {
  border: 0;
  background: none;
  width: 32px;
  min-height: 32px;
  font-size: 16px;
}
.quantity span {
  min-width: 23px;
  text-align: center;
  font-size: 11px;
}
.order-bottom {
  margin-top: 6px;
}
.subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.tax-note {
  font-size: 9px;
  color: var(--muted);
  margin: 7px 0 16px;
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0 20px;
  border-top: 1px dashed #e3d6ca;
  font-size: 14px;
}
.total strong {
  font-size: 25px;
  letter-spacing: -0.7px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--cream);
  border-radius: 28px;
  min-height: 55px;
  padding: 13px 23px;
  font-weight: 700;
  font-size: 12px;
  transition: background 0.15s;
}
.primary:hover {
  background: var(--muted);
  border-color: var(--muted);
}
.primary:disabled {
  background: #efe6dc;
  border-color: #efe6dc;
  color: #6b5d58;
}
.checkout {
  width: 100%;
  justify-content: space-between;
}
.checkout > span:last-child {
  font-size: 21px;
}
.payment-note {
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  margin: 16px 0 0;
}
.payment-note svg {
  width: 14px;
  height: 14px;
}
.pey {
  font-size: 20px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-left: 11px;
  line-height: 1;
}
.pey span {
  font-size: 13px;
  margin-left: 1px;
}
.footer {
  margin: 0 4.5%;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 9px;
}
.footer > span:first-child {
  font: 500 11px var(--sans);
  color: var(--sakura-strong);
}
.footer > span:last-child {
  font-size: 7px;
  letter-spacing: 1.5px;
}
.payment-screen {
  min-height: calc(100vh - 180px);
  max-width: 1020px;
  margin: auto;
  padding: 42px 24px 60px;
}
.back-button {
  border: 0;
  background: transparent;
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
}
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-top: 25px;
  align-items: center;
}
.payment-screen h1 {
  font-size: 40px;
  margin: 12px 0 20px;
}
.payment-copy {
  color: var(--muted);
  font-size: 13px;
  max-width: 335px;
  line-height: 1.8;
}
.steps {
  padding: 12px 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 18px 0;
  font-size: 12px;
}
.steps li:before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 10px;
}
.qr-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 24px;
  padding: 27px;
  text-align: center;
  box-shadow: 0 10px 45px #4e423e0a;
}
.qr-card > .eyebrow {
  color: var(--muted);
  margin: 0 0 8px;
}
.charge-total {
  font-size: 37px;
  letter-spacing: -1.5px;
  font-weight: 500;
  margin: 0 0 12px;
}
.charge-total small {
  font-size: 11px;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 4px;
}
.qr-image {
  display: block;
  width: 250px;
  height: 250px;
  max-width: 100%;
  margin: 8px auto;
  background: white;
  border-radius: 8px;
}
.waiting {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--green);
  margin: 15px 0;
}
.waiting .open-dot {
  animation: pulse 2s infinite;
}
.qr-help {
  font-size: 10px;
  color: var(--muted);
}
.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 25px;
  min-height: 46px;
  padding: 10px 16px;
  font-size: 11px;
}
.qr-card .secondary {
  width: 100%;
  margin-top: 8px;
}
.qr-card .primary {
  width: 100%;
  margin-top: 14px;
}
.demo-explanation {
  background: #efe6dc;
  color: #9c5764;
  border-radius: 6px;
  padding: 12px;
  font-size: 10px;
  line-height: 1.7;
  margin-top: 20px;
}
.order-summary {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.order-summary > p {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 12px;
}
.success {
  text-align: center;
  padding-top: 45px;
}
.success-icon {
  border: 1px solid var(--sakura);
  background: var(--blush);
  color: var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 35px;
  width: 80px;
  height: 80px;
  margin: 0 auto 26px;
}
.success h1 {
  font-size: 42px;
}
.ticket {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--sakura);
  max-width: 350px;
  border-radius: 22px;
  padding: 24px;
  margin: 27px auto;
  text-align: center;
}
.ticket .number {
  font: 600 75px var(--sans);
  color: var(--sakura-strong);
  letter-spacing: -5px;
  line-height: 1.3;
}
.ticket p {
  font-size: 11px;
  color: var(--muted);
}
.success > .payment-copy {
  margin-left: auto;
  margin-right: auto;
}
.success > .primary {
  margin: 25px auto 0;
  min-width: 240px;
}
.status-message {
  background: #efe6dc;
  border-radius: 8px;
  padding: 14px;
  color: #6b5d58;
  font-size: 12px;
  line-height: 1.8;
}
.test-price {
  font-size: 11px;
  line-height: 1.6;
  color: var(--accent);
  background: #e5c6ca;
  padding: 10px;
  border-radius: 5px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 7px;
  padding: 14px 22px;
  max-width: 90%;
  font-size: 12px;
  z-index: 10;
  box-shadow: 0 5px 25px #0002;
}
.connection-error {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 7px;
  padding: 18px;
  text-align: center;
}
.connection-error button {
  background: none;
  border: 0;
  color: var(--accent);
  text-decoration: underline;
  padding: 12px;
}
.review-notice {
  font-size: 12px;
  color: var(--accent);
  max-width: 360px;
  margin: 15px auto;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 1500px) {
  .product-photo {
    height: 215px;
  }
  .product h3 {
    font-size: 14px;
  }
  .product p {
    font-size: 11px;
  }
  .layout {
    gap: 65px;
    grid-template-columns: minmax(0, 1fr) 370px;
  }
  .order-panel {
    min-height: 660px;
  }
  .intro {
    margin-bottom: 15px;
  }
}
@media (max-width: 1120px) {
  .intro {
    padding: 24px;
  }
  .brand-illustration {
    width: 100px;
  }
  .layout {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 310px;
    padding-top: 30px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category {
    padding: 0 12px;
  }
  .order-panel {
    padding: 22px;
  }
  .product-photo {
    height: 190px;
  }
  .section-label > span {
    display: none;
  }
}
@media (max-width: 760px) {
  .brand-logo {
    width: 145px;
    height: 61px;
  }
  .intro {
    padding: 24px 20px;
    gap: 12px;
    min-height: 215px;
    align-items: center;
  }
  .brand-illustration {
    width: 95px;
  }
  .topbar {
    height: 90px;
    margin: 0 5%;
  }

  .location {
    display: none;
  }
  .mode-badge {
    font-size: 9px;
    padding: 6px 10px;
  }
  .layout {
    display: block;
    padding: 28px 5%;
  }
  .intro {
    align-items: flex-start;
  }
  h1 {
    font-size: 31px;
  }
  .intro-copy {
    font-size: 12px;
    max-width: 215px;
  }
  .categories {
    margin: 25px 0 22px;
    gap: 7px;
    padding-bottom: 19px;
  }
  .category {
    font-size: 11px;
    padding: 0 14px;
    min-height: 44px;
  }
  .products {
    gap: 22px 15px;
  }
  .product-photo {
    height: 180px;
  }
  .product h3 {
    font-size: 12px;
  }
  .product p {
    font-size: 10px;
    min-height: 32px;
  }
  .order-panel {
    position: static;
    min-height: 0;
    margin-top: 32px;
    padding: 24px;
  }
  .empty-cart {
    min-height: 135px;
  }
  .order-heading h2 {
    margin-bottom: 18px;
  }
  .order-heading .eyebrow {
    font-size: 9px;
  }
  .service-switch button {
    font-size: 11px;
    min-height: 44px;
  }
  .cart-line h3,
  .cart-line-top span {
    font-size: 12px;
  }
  .cart-items {
    padding: 10px 0;
  }
  .footer {
    flex-wrap: wrap;
    margin: 0 5%;
    font-size: 8px;
  }
  .footer > span:last-child {
    display: none;
  }
  .payment-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 10px;
  }
  .payment-screen {
    padding: 20px 6% 40px;
    max-width: 500px;
  }
  .payment-screen h1 {
    font-size: 33px;
  }
  .payment-copy {
    max-width: none;
  }
  .steps {
    margin: 0;
  }
  .steps li {
    margin: 12px 0;
  }
  .order-summary {
    display: none;
  }
  .qr-card {
    padding: 24px;
  }
  .success h1 {
    font-size: 34px;
  }
  .success {
    padding-top: 30px;
  }
}
@media (max-width: 390px) {
  .brand-logo {
    width: 125px;
    height: 53px;
  }
  .intro {
    padding: 22px 17px;
  }
  .brand-illustration {
    width: 75px;
  }
  h1 {
    font-size: 29px;
  }
  .product-photo {
    height: 150px;
  }
  .product h3 {
    font-size: 11px;
  }
  .mode-badge {
    font-size: 8px;
  }
  .product p {
    font-size: 9px;
  }
}

.payments-paused {
  margin: 20px auto 0;
  max-width: 900px;
  padding: 15px 25px;
  text-align: center;
  background: var(--blush);
  border-radius: 16px;
  font-size: 12px;
}
#access-dialog {
  width: min(430px, 90vw);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
}
#access-dialog::backdrop {
  background: #4e423e88;
}
#access-dialog h2 {
  font-size: 23px;
  line-height: 1.4;
}
#access-dialog p {
  font-size: 12px;
  line-height: 1.8;
}
#access-dialog label {
  display: block;
  margin: 20px 0 8px;
  font-size: 12px;
}
#access-code {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
}
#access-error {
  color: #a14a4a;
  min-height: 20px;
}
#access-dialog .primary {
  width: 100%;
}
