:root {
  color-scheme: light;
  --accent: #ff6a54;
  --accent-dark: #e5503c;
  --accent-soft: #ff8a72;
  --accent-glow: rgba(255, 106, 84, .32);
  --sunny: #ffc53d;
  --mint: #2ec4b6;
  --mint-dark: #1c9c8f;
  --berry: #f2578d;
  --grape: #8b6bff;
  --ink: #2b2118;
  --muted: #8a7a68;
  --line: #f1e4cd;
  --surface: #ffffff;
  --page: #fff8ef;
  --rot: 0deg;
  --shadow-sm: 0 4px 12px rgba(60, 40, 20, .1);
  --shadow-md: 0 16px 30px rgba(60, 40, 20, .16);
  --shadow-lg: 0 26px 64px rgba(40, 24, 16, .32);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-bounce: cubic-bezier(.68, -.55, .27, 1.55);
  --motion-fast: .18s;
  --motion-base: .32s;
  --motion-slow: .5s;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --menu-doodle-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%23ff6a54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='.16'%3E%3Cpath d='M30 42h44v28a18 18 0 0 1-18 18h-8a18 18 0 0 1-18-18z'/%3E%3Cpath d='M74 52h8a11 11 0 0 1 0 22h-8'/%3E%3Cpath d='M38 32c-6-8 5-11 0-19M54 32c-6-8 5-11 0-19M70 32c-6-8 5-11 0-19'/%3E%3Cpath d='M132 36l45 17-35 30-10-47z'/%3E%3Cpath d='M142 51l20 7M137 65l15 6'/%3E%3Ccircle cx='213' cy='53' r='18'/%3E%3Ccircle cx='213' cy='53' r='7'/%3E%3Cpath d='M26 148c13-22 44-22 57 0-7 8-17 13-29 13s-22-5-28-13z'/%3E%3Cpath d='M35 146c5 5 12 8 20 8s15-3 20-8'/%3E%3Cpath d='M114 132h48v48h-48zM130 132v48M146 132v48M114 148h48M114 164h48'/%3E%3Cpath d='M204 126h30l-5 42h-20z'/%3E%3Cpath d='M203 126c2-15 30-15 32 0M210 116c2-10 16-10 18 0'/%3E%3Cpath d='M43 219c-10-12 5-29 18-18 14-11 28 6 18 18-8 9-20 16-18 16s-10-7-18-16z'/%3E%3Cpath d='M123 215c12-18 32-18 44 0M132 214c5 5 21 5 26 0'/%3E%3Cpath d='M204 211c10-13 28-2 22 13-5 13-24 11-28-2M211 215c4 3 8 3 12 0'/%3E%3Cpath d='M101 62c7-7 18-7 25 0M107 73c5-5 12-5 17 0'/%3E%3Cpath d='M224 96c8-7 19-7 27 0M231 108c4-4 10-4 14 0'/%3E%3C/g%3E%3Cg fill='%232ec4b6' opacity='.14'%3E%3Ccircle cx='101' cy='27' r='3'/%3E%3Ccircle cx='97' cy='95' r='2.5'/%3E%3Ccircle cx='187' cy='111' r='3'/%3E%3Ccircle cx='23' cy='111' r='2.5'/%3E%3Ccircle cx='92' cy='191' r='3'/%3E%3Ccircle cx='184' cy='221' r='2.5'/%3E%3Cpath d='M18 102l4 8-8-3z'/%3E%3Cpath d='M185 22l5 8-9-2z'/%3E%3Cpath d='M245 183l5 8-9-2z'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--page);
  background-image: var(--menu-doodle-pattern);
  background-repeat: repeat;
  background-size: 230px 230px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
select,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-out), opacity var(--motion-fast) var(--ease-out);
}

button:active {
  transform: scale(.96);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .ambient-blobs {
    display: none;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.ambient-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .32;
  will-change: transform;
}

.blob-a {
  top: -14%;
  left: -10%;
  width: 44vmax;
  height: 44vmax;
  background: radial-gradient(circle, var(--sunny), transparent 68%);
  animation: blobDriftA 22s ease-in-out infinite;
}

.blob-b {
  right: -16%;
  bottom: -12%;
  width: 48vmax;
  height: 48vmax;
  background: radial-gradient(circle, var(--mint), transparent 70%);
  opacity: .26;
  animation: blobDriftB 26s ease-in-out infinite;
}

.blob-c {
  top: 34%;
  left: 48%;
  width: 32vmax;
  height: 32vmax;
  background: radial-gradient(circle, var(--berry), transparent 70%);
  opacity: .2;
  animation: blobDriftC 19s ease-in-out infinite;
}

@keyframes blobDriftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(7%, 9%) scale(1.14); }
}

@keyframes blobDriftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, -7%) scale(1.1); }
}

@keyframes blobDriftC {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-44%, -56%) scale(1.18); }
}

@keyframes shellBoot {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.phone-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 16px 132px;
  background: transparent;
  animation: shellBoot var(--motion-slow) var(--ease-out);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr 52px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  background: rgba(255, 248, 239, .9);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid transparent;
  box-shadow: 0 1px 0 rgba(43, 33, 24, 0);
  transition: box-shadow var(--motion-base) var(--ease-out), min-height var(--motion-base) var(--ease-out), background-color var(--motion-base) var(--ease-out), border-color var(--motion-base) var(--ease-out);
}

.app-header.scrolled {
  min-height: 50px;
  background: rgba(255, 248, 239, .98);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 24px rgba(43, 33, 24, .1);
}

.header-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wifi-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--mint);
  border-radius: 999px;
  background: #e5f8f6;
  color: var(--mint-dark);
  padding: 0;
  transition: transform var(--motion-fast) var(--ease-spring), box-shadow var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-out);
}

.wifi-button:hover {
  transform: translateY(-2px) rotate(-8deg) scale(1.08);
  box-shadow: 0 8px 18px rgba(46, 196, 182, .3);
}

.wifi-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
  transition: transform var(--motion-base) var(--ease-spring);
}

.wifi-button:hover svg {
  transform: scale(1.1);
}

.app-header h1 {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .2px;
  text-shadow: 2px 2px 0 var(--sunny);
}

.app-header h1::before {
  content: "☕";
  margin-right: 6px;
  display: inline-block;
  animation: iconWiggle 2.6s ease-in-out infinite;
}

.icon-btn,
.back-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.language-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 88px;
  padding: 3px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: white;
  isolation: isolate;
}

.language-switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  z-index: -1;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 4px 10px var(--accent-glow);
  transition: transform var(--motion-base) var(--ease-spring);
}

.language-switch:has([data-lang="en"].active)::before {
  transform: translateX(100%);
}

.language-switch button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  transition: color var(--motion-fast) var(--ease-out);
}

.language-switch button.active {
  color: white;
}

.header-spacer {
  justify-self: end;
  width: 42px;
  height: 42px;
}

.status {
  min-height: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: color var(--motion-base) var(--ease-out);
}

.status.ok {
  color: var(--mint-dark);
}

.status.error {
  color: var(--accent-dark);
}

.status.pulse {
  animation: statusPop var(--motion-base) var(--ease-spring);
}

@keyframes statusPop {
  0% {
    opacity: .4;
    transform: translateY(-3px);
  }

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

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px 22px;
  align-items: start;
  padding-top: 6px;
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.94) rotate(var(--rot));
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--rot));
  }
}

@keyframes iconWiggle {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}

.category-card {
  --rot: -1.4deg;
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 6px solid white;
  border-radius: var(--radius-lg);
  background: #ddd center / cover no-repeat;
  background-size: 114% auto;
  text-align: left;
  isolation: isolate;
  box-shadow: var(--shadow-md), 0 0 0 2px color-mix(in srgb, var(--category-tone, var(--accent)) 55%, transparent);
  opacity: 0;
  transform: translateY(18px) scale(.94) rotate(var(--rot));
  animation: cardRise var(--motion-slow) var(--ease-bounce) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: transform var(--motion-base) var(--ease-spring), box-shadow var(--motion-base) var(--ease-out), background-size var(--motion-slow) var(--ease-out);
}

.category-card:nth-child(even) {
  --rot: 1.4deg;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .03), rgba(0, 0, 0, .14) 45%, rgba(0, 0, 0, .74)), linear-gradient(135deg, transparent, color-mix(in srgb, var(--category-tone, var(--accent)) 42%, transparent));
  z-index: -1;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.045) rotate(0deg);
  box-shadow: var(--shadow-lg), 0 0 0 2px color-mix(in srgb, var(--category-tone, var(--accent)) 70%, transparent);
  background-size: 122% auto;
}

.category-card:active {
  transform: translateY(-3px) scale(1.01) rotate(0deg);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .4), transparent 60%);
  mix-blend-mode: soft-light;
  transition: opacity var(--motion-base) var(--ease-out);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card .card-shine {
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -30%;
  width: 26%;
  z-index: 1;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: translateX(-40%) skewX(-14deg);
  pointer-events: none;
  opacity: 0;
}

.category-card:hover .card-shine {
  opacity: 1;
  animation: shineSweep 1.1s var(--ease-out);
}

@keyframes shineSweep {
  from { transform: translateX(-40%) skewX(-14deg); }
  to { transform: translateX(420%) skewX(-14deg); }
}

.category-card .card-kicker {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 46px;
  display: block;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform var(--motion-base) var(--ease-out);
}

.category-card strong {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: white;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
  transition: transform var(--motion-base) var(--ease-out);
}

.category-card:hover .card-kicker,
.category-card:hover strong {
  transform: translateY(-3px);
}

.category-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: white;
  border: 3px solid color-mix(in srgb, var(--category-tone, var(--accent)) 80%, white);
  font-size: 20px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
  animation: iconWiggle 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 140ms);
}

.category-card:hover .category-icon {
  animation-play-state: paused;
  transform: rotate(-12deg) scale(1.15);
}

.product-view[hidden],
.category-grid[hidden] {
  display: none;
}

@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes viewEnterBack {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.product-view {
  animation: viewEnter var(--motion-base) var(--ease-out);
}

.category-grid {
  animation: viewEnterBack var(--motion-base) var(--ease-out);
}

.product-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  min-height: 52px;
}

.product-head h2 {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.back-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: white;
  border: 2px solid var(--line);
  font-size: 18px;
  transition: transform var(--motion-fast) var(--ease-spring), background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}

.back-btn:hover {
  background: var(--sunny);
  border-color: var(--sunny);
  transform: translateX(-3px) scale(1.06);
}

.product-list {
  display: grid;
  gap: 22px;
}

.subcategory-block {
  display: grid;
  gap: 12px;
}

.subcategory-title {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 900;
}

.subcategory-title::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.product-row {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 3px solid white;
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(.94) rotate(var(--rot));
  animation: cardRise var(--motion-base) var(--ease-bounce) forwards;
  animation-delay: calc(var(--i, 0) * 45ms);
  box-shadow: var(--shadow-sm), 0 0 0 2px color-mix(in srgb, var(--tone, var(--accent)) 40%, transparent);
  transition: transform var(--motion-fast) var(--ease-spring), box-shadow var(--motion-fast) var(--ease-out);
}

.product-row:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
  box-shadow: var(--shadow-md), 0 0 0 2px color-mix(in srgb, var(--tone, var(--accent)) 65%, transparent);
}

.product-row:active {
  transform: scale(.97);
}

.product-row.sold-out {
  opacity: .68;
}

.product-row.sold-out .product-photo {
  filter: grayscale(.6);
}

.product-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ddd center / cover no-repeat;
  transition: transform var(--motion-fast) var(--ease-out);
  overflow: hidden;
}

.product-row:hover .product-photo {
  transform: scale(1.04);
}

.product-body {
  display: grid;
  gap: 3px;
  padding: 12px 12px 16px;
}

.product-row h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.product-row p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--sunny);
  color: #4a3200;
  font-size: 12px;
  font-weight: 900;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-sm);
}

.price-tag del {
  color: #7a5b00;
  font-weight: 700;
  opacity: .7;
}

.campaign-pill,
.sold-ribbon,
.stock-note {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.campaign-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 3px 8px;
  background: var(--berry);
  color: white;
  animation: pillPulse 2.4s ease-in-out infinite;
}

@keyframes pillPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(242, 87, 141, .4);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(242, 87, 141, 0);
  }
}

.sold-ribbon {
  position: absolute;
  top: 14px;
  left: -30px;
  z-index: 1;
  width: 140px;
  padding: 4px 0;
  background: var(--ink);
  color: white;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-40deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}

.stock-note {
  margin-top: 2px;
  padding: 2px 8px;
  background: #eaf7f5;
  color: var(--mint-dark);
}

.waiter-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  display: grid;
  justify-content: center;
  padding: 0 14px calc(18px + env(safe-area-inset-bottom));
  background: transparent;
  pointer-events: none;
}

.waiter-bar .call-btn {
  pointer-events: auto;
}

@keyframes callBtnFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.call-btn {
  position: relative;
  width: min(430px, 100%);
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent) 55%, var(--accent-dark));
  background-size: 180% 180%;
  color: white;
  box-shadow: 0 16px 0 var(--accent-dark), 0 22px 34px var(--accent-glow);
  font-size: 16px;
  font-weight: 900;
  overflow: hidden;
  animation: callBtnFloat 3.4s ease-in-out infinite;
  transition: transform var(--motion-fast) var(--ease-spring), box-shadow var(--motion-fast) var(--ease-out), background-position var(--motion-slow) var(--ease-out), opacity var(--motion-fast) var(--ease-out);
}

.call-btn::before {
  content: "\1F514";
  margin-right: 8px;
  display: inline-block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3));
}

.call-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .3), transparent);
  transform: translateX(-120%) skewX(-14deg);
}

.call-btn:hover:not(:disabled)::after {
  animation: shineSweep 1s var(--ease-out);
}

.call-btn:hover:not(:disabled) {
  animation-play-state: paused;
  transform: translateY(-4px);
  box-shadow: 0 20px 0 var(--accent-dark), 0 28px 40px var(--accent-glow);
  background-position: 100% 100%;
}

.call-btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 8px 0 var(--accent-dark), 0 14px 24px var(--accent-glow);
}

.call-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  animation: none;
  box-shadow: none;
  transform: none;
}

.confetti-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 3px;
  background: var(--bg, var(--accent));
  pointer-events: none;
  z-index: 999;
  animation: confettiBurst .75s var(--ease-out) forwards;
}

@keyframes confettiBurst {
  from {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }

  to {
    opacity: 0;
    transform: translate(var(--dx, 0), var(--dy, 0)) rotate(220deg);
  }
}

.product-modal[hidden],
.wifi-modal[hidden] {
  display: none;
}

.product-modal,
.wifi-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(43, 33, 24, 0);
  opacity: 0;
  transition: background-color var(--motion-base) var(--ease-out), opacity var(--motion-base) var(--ease-out);
}

.product-modal.is-open,
.wifi-modal.is-open {
  background: rgba(43, 33, 24, .55);
  opacity: 1;
}

.product-modal.is-open .product-modal-card,
.wifi-modal.is-open .wifi-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.wifi-modal-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(360px, 100%);
  padding: 26px;
  border: 5px solid white;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--mint);
  transform: translateY(24px) scale(.94);
  opacity: 0;
  transition: transform var(--motion-base) var(--ease-spring), opacity var(--motion-base) var(--ease-out);
}

.wifi-modal-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.wifi-line {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  background: #fffaf1;
  transition: border-color var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out);
}

.wifi-line:hover {
  border-color: var(--mint);
  transform: translateX(2px);
}

.wifi-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.wifi-line strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 18px;
}

.product-modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(260px, 420px);
  width: min(820px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: hidden;
  border: 6px solid white;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--sunny);
  transform: translateY(28px) scale(.93);
  opacity: 0;
  transition: transform var(--motion-base) var(--ease-spring), opacity var(--motion-base) var(--ease-out);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  transition: transform var(--motion-fast) var(--ease-spring), background-color var(--motion-fast) var(--ease-out);
}

.modal-close:hover {
  background: var(--accent);
  color: white;
  transform: rotate(90deg) scale(1.1);
}

.modal-product-photo {
  min-height: 420px;
  background: #ddd center / cover no-repeat;
  animation: photoZoomIn var(--motion-slow) var(--ease-out) forwards, kenBurns 9s var(--ease-out) 9s infinite alternate;
}

@keyframes photoZoomIn {
  from {
    transform: scale(1.1);
    filter: saturate(.85);
  }

  to {
    transform: scale(1);
    filter: saturate(1.05);
  }
}

@keyframes kenBurns {
  from {
    transform: scale(1) translate(0, 0);
  }

  to {
    transform: scale(1.06) translate(-1%, -1%);
  }
}

.modal-product-body {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
}

.modal-category {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e5f8f6;
  color: var(--mint-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-product-body h2,
.modal-product-body p {
  margin: 0;
}

.modal-product-body h2 {
  font-size: 27px;
  font-weight: 900;
}

.modal-product-body p {
  color: var(--muted);
  line-height: 1.45;
}

.modal-product-price {
  display: inline-block;
  width: fit-content;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--sunny);
  color: #4a3200;
  font-size: 20px;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-sm);
}

.waffle-options[hidden] {
  display: none;
}

.waffle-options {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  background: #fffaf1;
}

.waffle-options > strong {
  font-size: 14px;
}

.waffle-option-group {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.waffle-option-group legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.waffle-option-group div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.waffle-option-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 12px;
  transition: border-color var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out);
}

.waffle-option-item:not(.option-sold-out):hover {
  border-color: var(--mint);
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-sm);
}

.waffle-option-item.option-sold-out {
  opacity: .55;
}

.waffle-option-item.option-sold-out span,
.waffle-option-item.option-sold-out b {
  text-decoration: line-through;
}

.waffle-option-item b {
  color: var(--accent-dark);
  font-size: 11px;
}

@media (min-width: 900px) {
  .app-header {
    grid-template-columns: minmax(160px, auto) 1fr 70px;
    min-height: 68px;
  }

  .app-header h1 {
    font-size: 20px;
  }

}

@media (max-width: 560px) {
  body {
    background-size: 200px 200px;
  }

  .phone-shell {
    width: min(430px, 100%);
    padding: 12px 12px 132px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .category-card {
    min-height: 176px;
    border-width: 4px;
  }

  .category-card .card-kicker {
    bottom: 40px;
    font-size: 9px;
  }

  .category-card strong {
    bottom: 12px;
    font-size: 16px;
  }

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

  .app-header {
    grid-template-columns: minmax(132px, auto) 1fr 42px;
  }

  .language-switch {
    width: 76px;
  }

  .wifi-button {
    width: 36px;
    height: 36px;
  }

  .call-btn {
    min-height: 60px;
    font-size: 16px;
  }

  .product-modal {
    align-items: stretch;
    justify-items: stretch;
    overflow: hidden;
    padding: 10px;
  }

  .product-modal-card {
    grid-template-columns: 1fr;
    grid-template-rows: 130px minmax(0, 1fr);
    height: calc(100vh - 20px);
    height: calc(100dvh - 20px);
    max-height: none;
    border-width: 4px;
  }

  .modal-product-photo {
    min-height: 130px;
    height: 130px;
  }

  .modal-product-body {
    gap: 9px;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
  }

  .modal-product-body h2 {
    font-size: 21px;
  }

  .modal-product-body p {
    font-size: 13px;
    line-height: 1.35;
  }

  .waffle-options {
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
  }

  .waffle-option-group div {
    grid-template-columns: 1fr;
  }

  .waffle-option-item {
    min-height: 46px;
    font-size: 13px;
  }

}
