/* Kitchen design system. Shared by the storefront, admin and visual editor. */
:root {
  --color-ink: #29262b;
  --color-muted: #69636d;
  --color-accent: #76258d;
  --color-accent-hover: #59196c;
  --color-accent-soft: #f3edf5;
  --color-surface: #fff;
  --color-canvas: #faf9f6;
  --color-line: #e5e1dc;
  --color-danger: #a32b40;
  --color-success: #256443;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --page-width: 1320px;
  --page-gutter: 64px;
  --font-body: Inter, Arial, sans-serif;
  --shadow-dialog: 0 24px 80px #231c2933;
  --k56-purple: var(--color-accent);
  --k56-purple-dark: var(--color-accent-hover);
  --k56-container: var(--page-width);
  --k56-page-gutter: var(--page-gutter);
  --k56-header-height: 88px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--k56-header-height) + 24px);
}
body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  font: 400 15px/1.6 var(--font-body);
}
/* hidden must win against component layout declarations, including dialog states. */
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
  accent-color: var(--color-accent);
}
:where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  select,
  textarea
) {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 11px 13px;
  min-height: 46px;
  font-size: 16px;
}
textarea {
  resize: vertical;
}
:focus-visible {
  outline: 3px solid #ad72bd;
  outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 1px;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
svg {
  flex-shrink: 0;
}
.ui-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ui-icon-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
}
h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(34px, 4.5vw, 62px);
}
h2 {
  font-size: clamp(27px, 3vw, 40px);
}
h3 {
  font-size: 20px;
}
dialog {
  color: var(--color-ink);
  background: #fff;
  border: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dialog);
  max-width: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #21192780;
  backdrop-filter: blur(4px);
}
html.dialog-open,
html.k56-feedback-open {
  overflow: hidden;
}
.ui-button,
.k56-home-btn,
.btn,
.ka-primary,
.ka-ghost,
.kcat-request,
.kcat-checkout,
.kcat-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  transition:
    background 0.16s,
    border-color 0.16s;
}
.ui-button:hover,
.k56-home-btn:hover,
.btn:hover,
.ka-ghost:hover {
  background: var(--color-canvas);
  border-color: #c7b9cc;
}
.ui-button--primary,
.k56-home-btn--primary,
.btn.primary,
.ka-primary,
.kcat-request,
.kcat-checkout,
.kcat-form button[type="submit"] {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.ui-button--primary:hover,
.k56-home-btn--primary:hover,
.btn.primary:hover,
.ka-primary:hover,
.kcat-request:hover,
.kcat-checkout:hover,
.kcat-form button[type="submit"]:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}
.ui-inline-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.ui-status,
[role="status"] {
  font-size: 14px;
  line-height: 1.5;
}
.ui-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 500;
  background: #fff;
  padding: 12px;
  transform: translateY(-150%);
}
.ui-skip:focus {
  transform: none;
}
.ui-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  z-index: 250;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 8px 30px #231c2920;
  pointer-events: none;
}
@media (max-width: 900px) {
  :root {
    --page-gutter: 40px;
  }
}
@media (max-width: 600px) {
  :root {
    --page-gutter: 32px;
  }
  body {
    font-size: 14px;
  }
  dialog {
    border-radius: 14px;
  }
}
/* iOS zooms focused text controls when their computed font is below 16px.
   Keep native pinch zoom available; only normalize mobile control fonts. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
