/*
Theme Name: Maidan Menu Magic
Author: 24web
Description: Mobile-first WooCommerce menu theme for Maidan.
Version: 1.1.0
Text Domain: menu-magic-wp
*/

:root {
  color-scheme: light;
  --background: oklch(0.972 0.012 82);
  --foreground: oklch(0.22 0.015 60);
  --card: oklch(0.995 0.006 82);
  --primary-foreground: oklch(0.98 0.008 82);
  --gold: oklch(0.62 0.13 70);
  --gold-soft: oklch(0.92 0.05 82);
  --muted: oklch(0.94 0.012 80);
  --muted-foreground: oklch(0.48 0.018 65);
  --border: oklch(0.82 0.012 70 / 70%);
  --bg-gradient-1: oklch(0.95 0.04 82 / 0.7);
  --bg-gradient-2: oklch(0.93 0.05 60 / 0.5);
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dark {
  color-scheme: dark;
  --background: oklch(0.16 0.012 60);
  --foreground: oklch(0.95 0.015 80);
  --card: oklch(0.20 0.014 60);
  --primary-foreground: oklch(0.16 0.012 60);
  --gold: oklch(0.78 0.13 75);
  --gold-soft: oklch(0.86 0.09 82);
  --muted: oklch(0.24 0.012 60);
  --muted-foreground: oklch(0.70 0.018 75);
  --border: oklch(0.30 0.014 65 / 60%);
  --bg-gradient-1: oklch(0.22 0.03 65 / 0.6);
  --bg-gradient-2: oklch(0.20 0.04 40 / 0.5);
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--background);
  background-image:
    radial-gradient(circle at 20% 0%, var(--bg-gradient-1), transparent 50%),
    radial-gradient(circle at 80% 100%, var(--bg-gradient-2), transparent 50%);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

html,
body {
  overflow-x: hidden;
}

body::before,
#sl-preloader,
#safelayout-cute-preloader-visible,
.sl-preloader,
.safelayout-cute-preloader {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0; }

.mm-page { min-height: 100vh; color: var(--foreground); padding-bottom: 160px; }
.mm-shell { width: 100%; max-width: 672px; margin: 0 auto; padding: 0 16px; }

.mm-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(24px);
}

.mm-topbar-inner {
  position: relative;
  width: 100%;
  max-width: 672px;
  margin: 0 auto;
  padding: 12px 16px 8px;
}

.mm-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mm-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 6px;
  background: var(--gold-soft);
  overflow: hidden;
}

.mm-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mm-title { min-width: 0; flex: 1 1 auto; }
.mm-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
}

.mm-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-foreground);
  font-size: 10px;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
}

.mm-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #34d399;
  animation: mm-pulse 2s cubic-bezier(.4,0,.6,1) infinite;
}

@keyframes mm-pulse {
  50% { opacity: .5; }
}

.mm-icon-btn,
.mm-pill,
.mm-phone,
.mm-booking {
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}

.mm-icon-btn {
  position: relative;
  width: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--border);
  background: transparent;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

.mm-cart-button {
  color: var(--gold);
  border-color: color-mix(in oklab, var(--gold) 40%, transparent);
}

.mm-favorites-header {
  color: var(--gold);
  border-color: color-mix(in oklab, var(--gold) 30%, transparent);
}

.mm-icon-btn:active,
.mm-pill:active,
.mm-add:active,
.mm-checkout:active,
.mm-phone:active,
.mm-booking:active { transform: scale(.95); }

.mm-pill {
  flex: 0 0 auto;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--primary-foreground);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mm-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--primary-foreground);
  font-size: 10px;
  font-weight: 600;
}

.mm-search {
  margin-top: 12px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  transition: border-color .15s ease;
}

.mm-search:focus-within { border-color: var(--gold); }
.mm-search svg { color: var(--muted-foreground); flex: 0 0 auto; }
.mm-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 14px;
}
.mm-search input::placeholder { color: var(--muted-foreground); }
.mm-search-clear {
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  padding: 0 4px;
  font-size: 12px;
}

.mm-search-results {
  position: absolute;
  top: calc(100% - 2px);
  left: 16px;
  right: 16px;
  z-index: 45;
  max-height: min(360px, calc(100vh - 170px));
  overflow-y: auto;
  border: 1px solid color-mix(in oklab, var(--gold) 42%, var(--border));
  border-radius: 18px;
  background: color-mix(in oklab, var(--card) 96%, transparent);
  box-shadow: 0 20px 55px rgba(0,0,0,.32);
  backdrop-filter: blur(18px);
  padding: 6px;
}

.mm-search-result {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 14px;
  color: var(--foreground);
}

.mm-search-result:active {
  background: color-mix(in oklab, var(--gold) 16%, transparent);
}

.mm-search-result img,
.mm-search-result-img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 10px;
  background: var(--muted);
  object-fit: cover;
}

.mm-search-result-body {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.mm-search-result-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}

.mm-search-result-body em {
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
}

.mm-search-no-results {
  padding: 18px 12px;
  color: var(--muted-foreground);
  text-align: center;
  font-size: 13px;
}

.mm-hero {
  margin: 16px 0 8px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 10;
  background: #100d0a;
}

.mm-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.40), rgba(0,0,0,.20));
}

.mm-hero-copy {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: 20px;
  color: #fff;
}

.mm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .28em;
  line-height: 1.35;
  text-transform: uppercase;
}

.mm-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
}

.mm-hero h1 span { color: var(--gold); }
.mm-hero p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.70);
  font-size: 14px;
  line-height: 1.43;
}

.mm-section {
  padding-top: 28px;
  scroll-margin-top: 128px;
}

.mm-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.mm-section-icon,
.mm-info-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
}

.mm-section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}

.mm-section-line { flex: 1 1 auto; height: 1px; background: var(--border); }
.mm-section-count {
  color: var(--muted-foreground);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

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

.mm-card {
  min-width: 0;
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.mm-fav-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in oklab, var(--border) 75%, transparent);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--card) 78%, transparent);
  color: var(--foreground);
  backdrop-filter: blur(10px);
  transition: transform .15s ease, color .15s ease, background-color .15s ease;
}

.mm-fav-button:active { transform: scale(.95); }
.mm-fav-button.active,
.mm-favorites-header.active,
.mm-favorites-filter.active {
  color: var(--primary-foreground);
  background: var(--gold);
  border-color: var(--gold);
}
.mm-fav-button.active svg,
.mm-favorites-header.active svg,
.mm-product-fav.active svg {
  fill: currentColor;
}

.mm-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--muted);
}

.mm-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-card-body { padding: 12px; }
.mm-card-title {
  display: -webkit-box;
  min-height: 36px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.mm-card-desc { display: none; }
.mm-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.mm-price {
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
}
.mm-price .woocommerce-Price-currencySymbol { margin-left: 2px; }

.mm-add {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--primary-foreground);
  line-height: 1;
  transition: transform .15s ease;
}

.mm-empty {
  display: none;
  padding: 64px 0;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 14px;
}

.mm-info {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  padding: 20px;
}

.mm-info h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 400;
}

.mm-info-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.mm-info-list > li { min-width: 0; }
.mm-info-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--foreground);
  font-size: 14px;
}
.mm-info-text { min-width: 0; flex: 1 1 0%; }
.mm-info-label {
  display: block;
  color: var(--muted-foreground);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.mm-info-value {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mm-footer {
  margin-top: 32px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 11px;
}

.mm-footer span,
.mm-footer a {
  display: block;
}

.mm-footer-credit {
  margin-top: 6px;
  color: var(--gold);
}

.mm-bottom {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}

.mm-bottom-inner {
  width: 100%;
  max-width: 672px;
  margin: 0 auto;
  padding: 12px 16px max(env(safe-area-inset-bottom), .75rem);
  background: linear-gradient(to top, var(--background), var(--background), transparent);
  pointer-events: auto;
}

.mm-cat-nav-wrap {
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mm-cat-nav-wrap::-webkit-scrollbar { display: none; }
.mm-cat-nav { display: flex; gap: 8px; width: max-content; }
.mm-cat-link {
  height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in oklab, var(--card) 90%, transparent);
  color: var(--foreground);
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.5;
}
.mm-cat-link.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--primary-foreground);
}

.mm-bottom-actions {
  display: flex;
  gap: 8px;
}

.mm-phone,
.mm-booking {
  min-width: 0;
  flex: 1 1 0;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mm-phone {
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--foreground);
}

.mm-booking {
  display: grid;
  place-items: center;
  border-color: var(--gold);
  background: var(--gold);
  color: var(--primary-foreground);
}

.mm-phone span,
.mm-booking span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mm-toast {
  position: fixed;
  left: 50%;
  bottom: calc(128px + max(env(safe-area-inset-bottom), 0px));
  z-index: 80;
  width: calc(100% - 32px);
  max-width: 360px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid color-mix(in oklab, var(--gold) 55%, var(--border));
  border-radius: 999px;
  background: color-mix(in oklab, var(--card) 94%, transparent);
  color: var(--foreground);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px) scale(.96);
  transition: opacity .2s ease, transform .2s ease;
}

.mm-toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.mm-toast span {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--primary-foreground);
  font-size: 13px;
  line-height: 1;
}

.mm-menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.mm-menu-drawer.open {
  pointer-events: auto;
}

.mm-menu-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.62);
  opacity: 0;
  transition: opacity .24s ease;
}

.mm-menu-drawer.open .mm-menu-backdrop {
  opacity: 1;
}

.mm-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(430px, calc(100vw - 48px));
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  box-shadow: -20px 0 60px rgba(0,0,0,.36);
  transform: translateX(100%);
  transition: transform .24s ease;
}

.mm-menu-drawer.open .mm-menu-panel {
  transform: translateX(0);
}

.mm-menu-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.mm-menu-head strong {
  font-size: 18px;
  font-weight: 500;
}

.mm-menu-content {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px max(env(safe-area-inset-bottom), 16px);
}

.mm-menu-login,
.mm-menu-action {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--foreground);
  font-weight: 500;
}

.mm-menu-section {
  margin-top: 24px;
}

.mm-menu-section h2 {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
}

.mm-menu-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
}

.mm-menu-row span {
  width: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  color: var(--foreground);
}

.mm-menu-row strong {
  min-width: 0;
  flex: 1;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.mm-menu-row > svg {
  flex: 0 0 auto;
  color: var(--foreground);
}

.mm-menu-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.mm-menu-action.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--primary-foreground);
}

.mm-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.mm-drawer.open { pointer-events: auto; }
.mm-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.60);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity .3s ease;
}
.mm-drawer.open .mm-drawer-backdrop { opacity: 1; }
.mm-drawer-panel {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  max-width: 672px;
  max-height: 85vh;
  margin: 0 auto;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-radius: 24px 24px 0 0;
  background: var(--card);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.mm-drawer.open .mm-drawer-panel { transform: translateY(0); }
.mm-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.mm-drawer-title { display: flex; align-items: center; gap: 8px; }
.mm-drawer-title svg { color: var(--gold); }
.mm-drawer-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}
.mm-drawer-title span { color: var(--muted-foreground); font-size: 12px; }
.mm-drawer-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--foreground);
}
.mm-cart-items {
  max-height: calc(85vh - 180px);
  overflow-y: auto;
  padding: 12px 16px;
}
.mm-cart-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 14px;
}
.mm-cart-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.mm-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 16px;
  background: color-mix(in oklab, var(--background) 50%, transparent);
  padding: 8px;
}
.mm-cart-item img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 12px;
  object-fit: cover;
}
.mm-cart-item-body { min-width: 0; flex: 1; }
.mm-cart-item-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.25;
}
.mm-cart-item-price {
  margin-top: 2px;
  color: var(--gold);
  font-size: 12px;
}
.mm-cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.mm-cart-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--foreground);
}
.mm-cart-controls .mm-cart-remove {
  margin-left: auto;
  border-color: transparent;
  color: var(--muted-foreground);
}
.mm-cart-controls span { width: 24px; text-align: center; font-size: 14px; }
.mm-cart-foot {
  padding: 12px 20px max(env(safe-area-inset-bottom), 16px);
  border-top: 1px solid var(--border);
  background: var(--card);
}
.mm-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mm-cart-total-label {
  color: var(--muted-foreground);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.mm-cart-total-value {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.33;
}
.mm-checkout {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: transform .15s ease, opacity .15s ease;
}
.mm-checkout.disabled {
  background: var(--muted);
  color: var(--muted-foreground);
  pointer-events: none;
}

.mm-product-page { min-height: 100vh; padding-bottom: 128px; color: var(--foreground); }
.mm-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--muted);
}
.mm-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mm-product-image::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 96px;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
  pointer-events: none;
}
.mm-back {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  border-color: transparent;
  background: rgba(0,0,0,.45);
  color: #fff;
  backdrop-filter: blur(8px);
}
.mm-product-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  border-color: transparent;
  background: rgba(0,0,0,.45);
  color: #fff;
  backdrop-filter: blur(8px);
}
.mm-product-fav.active {
  background: var(--gold);
  color: var(--primary-foreground);
}
.mm-product-wrap { width: 100%; max-width: 672px; margin: 0 auto; padding: 0 16px; }
.mm-product-panel {
  position: relative;
  z-index: 1;
  margin-top: -24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}
.mm-product-panel h1 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}
.mm-product-panel .mm-price { margin-top: 8px; font-size: 18px; }
.mm-product-panel p {
  margin: 12px 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.43;
}
.mm-qty-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.mm-qty {
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  padding: 0 8px;
}
.mm-qty button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--foreground);
}
.mm-qty span { width: 24px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.mm-qty-total { color: var(--muted-foreground); font-size: 14px; }
.mm-qty-total strong { color: var(--foreground); font-weight: 500; }
.mm-fixed-action {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 16px max(env(safe-area-inset-bottom), .75rem);
  background: linear-gradient(to top, var(--background), var(--background), transparent);
}
.mm-fixed-action-inner { max-width: 672px; margin: 0 auto; }
.mm-add-wide {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mm-checkout-page { min-height: 100vh; padding-bottom: 128px; color: var(--foreground); }
.mm-checkout-head {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(24px);
}
.mm-checkout-head-inner {
  width: 100%;
  max-width: 672px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mm-checkout-head h1 { margin: 0; font-size: 18px; font-weight: 400; }
.mm-checkout-main { width: 100%; max-width: 672px; margin: 0 auto; padding: 16px 16px 0; display: grid; gap: 20px; }
.mm-checkout-back { display: flex; }
.mm-checkout-section {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  padding: 16px;
}
.mm-checkout-label {
  margin-bottom: 12px;
  color: var(--muted-foreground);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.mm-order-list { margin: 0; padding: 0; list-style: none; }
.mm-order-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.mm-order-list li:first-child { border-top: 0; padding-top: 0; }
.mm-order-list img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.mm-order-line { flex: 1; min-width: 0; }
.mm-order-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.25; }
.mm-order-qty { color: var(--muted-foreground); font-size: 11px; }
.mm-order-price { color: var(--gold); font-size: 14px; }
.mm-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.mm-mode {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--foreground);
  font-size: 12px;
}
.mm-mode.active { border-color: var(--gold); background: var(--gold); color: var(--primary-foreground); }
.mm-form-grid { display: grid; gap: 12px; }
.mm-field { display: block; }
.mm-field span {
  display: block;
  margin: 0 0 6px;
  padding: 0 4px;
  color: var(--muted-foreground);
  font-size: 11px;
}
.mm-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  color: var(--foreground);
  outline: 0;
  padding: 0 14px;
  font-size: 14px;
  transition: border-color .15s ease;
}
textarea.mm-input { min-height: 66px; padding-block: 10px; resize: none; }
.mm-input:focus { border-color: var(--gold); }
.mm-checkout-fixed {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  pointer-events: none;
}
.mm-checkout-fixed-inner {
  width: 100%;
  max-width: 672px;
  margin: 0 auto;
  padding: 12px 16px max(env(safe-area-inset-bottom), .75rem);
  background: linear-gradient(to top, var(--background), var(--background), transparent);
  pointer-events: auto;
}
.mm-order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 8px;
}
.mm-order-total span:first-child { color: var(--muted-foreground); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.mm-order-total span:last-child { color: var(--gold); font-family: var(--font-display); font-size: 20px; }
.mm-done { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.mm-done-card {
  width: 100%;
  max-width: 448px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  padding: 32px;
  text-align: center;
}
.mm-done-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--gold) 15%, transparent);
  color: var(--gold);
}
.mm-done h1 { margin: 0; font-size: 24px; font-weight: 400; }
.mm-done p { margin: 8px 0 0; color: var(--muted-foreground); font-size: 14px; }
.mm-done .mm-checkout { margin-top: 24px; display: inline-flex; width: auto; padding: 0 20px; }

@media (max-width: 380px) {
  .mm-pill span { display: none; }
  .mm-grid { gap: 10px; }
}

@media (max-width: 420px) {
  .mm-pill {
    width: 44px;
    padding: 0;
  }
  .mm-pill span { display: none; }
  .mm-logo,
  .mm-icon-btn {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
  .mm-title strong { font-size: 17px; }
  .mm-status { font-size: 9px; letter-spacing: .14em; }
  .mm-phone,
  .mm-booking {
    font-size: 12px;
    letter-spacing: .14em;
  }
}
