/* =====================================================================
   The Health Nook storefront styles (Organic Health Theme)
   ---------------------------------------------------------------------
   1. Tokens            5. Toolbar: category filter + search
   2. Base & utilities  6. Dialogs (category menu, combo picker)
   3. Buttons & qty     7. Product list & cards
   4. Announcement &    8. Order panel, dock, confirmation
      shop header       9. Desktop layout, reduced motion
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --panel: #f3ece2;
  --line: #e5ddcf;
  --border: #dfd5c2;
  --ink: #203b29;
  --ink-muted: #617267;

  --green: #82b440;
  --green-hover: #6c9932;
  --green-wash: #f0f7e6;
  --on-green: #ffffff;

  --accent: #e57e38;

  --warning-bg: #fdf3eb;
  --warning-ink: #cc6a27;
  --error-bg: #fce8e6;
  --error-ink: #c53030;
  --success-bg: #edf7ed;

  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --shadow-popover: 0 20px 40px rgba(32, 59, 41, 0.12);
  --backdrop: rgba(32, 59, 41, 0.5);
}

/* ---------- 2. Base & utilities ---------- */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 400 15px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-muted {
  font-size: 13px;
  color: var(--ink-muted);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.page {
  max-width: 1400px;
  margin: 0 auto;
}

.catalog {
  padding-bottom: 110px;
}

/* ---------- 3. Buttons & quantity stepper ---------- */
.btn {
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-square {
  width: 44px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
}

.btn-add {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
  white-space: nowrap;
  border-radius: 9999px;
  padding: 8px 18px;
  box-shadow: 0 4px 12px rgba(130, 180, 64, 0.25);
}

.btn-primary {
  width: 100%;
  min-height: 50px;
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
  font-size: 16px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(130, 180, 64, 0.3);
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  padding: 2px 6px;
  gap: 6px;
}

.qty-stepper button {
  border: none;
  background: var(--panel);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.link-button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- 4. Announcement & shop header ---------- */
.announcement {
  padding: 10px 16px;
  background: var(--ink);
  color: #ffffff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.shop-header {
  padding: 32px 20px 20px;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.shop-tagline {
  display: block;
  margin-bottom: -4px;
  font-family: var(--font-hand);
  font-size: 28px;
  line-height: 1.1;
  color: var(--accent);
}

.shop-name {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.shop-name span {
  color: var(--green);
}

.shop-subtitle {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 15px;
}

.shop-hours {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(229, 126, 56, 0.1);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
}

.shop-hours:empty {
  display: none;
}

/* Hero banner */
.hero-banner {
  position: relative;
  margin: 0 16px 20px;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green), #6c9932);
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(130, 180, 64, 0.25);
}

.hero-banner::after {
  content: '🌱';
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 130px;
  line-height: 1;
  opacity: 0.2;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 480px;
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-text {
  max-width: 440px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- 5. Toolbar: category filter + search ---------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(251, 248, 243, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.category-filter {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-width: 0;
}

.category-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  max-width: 180px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.category-button-icon,
.category-button-chevron {
  flex: none;
  color: var(--green);
}

.category-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-button[data-active='true'] {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
  box-shadow: 0 4px 12px rgba(130, 180, 64, 0.3);
}

.category-button[data-active='true'] .category-button-icon,
.category-button[data-active='true'] .category-button-chevron {
  color: var(--on-green);
}

.category-clear {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  background: var(--green-wash);
  color: var(--green);
  cursor: pointer;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 44px 0 42px;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: var(--surface);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.search-input::-webkit-search-cancel-button {
  display: none;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}

.result-summary {
  padding: 14px 20px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

.result-summary:empty {
  display: none;
}

/* ---------- 6. Dialogs ---------- */
.sheet-dialog {
  position: fixed;
  inset: auto 0 0 0;
  margin: 0;
  width: 100%;
  max-width: none;
  max-height: 88vh;
  max-height: 88dvh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

.sheet-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: sheet-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-dialog::backdrop {
  background: var(--backdrop);
  backdrop-filter: blur(4px);
}

@keyframes sheet-up {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.sheet-title {
  font-size: 22px;
  font-weight: 800;
}

.sheet-footer {
  padding: 16px 24px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.category-options {
  margin: 0;
  padding: 12px 16px 28px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.category-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.category-count {
  font-size: 13px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  background: var(--panel);
  padding: 2px 10px;
  border-radius: 9999px;
}

.category-option[aria-pressed='true'] {
  background: var(--green);
  color: var(--on-green);
  font-weight: 600;
}

.category-option[aria-pressed='true'] .category-count {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

/* Combo picker */
.combo-help {
  margin-top: 4px;
}

.combo-progress {
  padding: 16px 24px 4px;
}

.combo-progress-text {
  font-weight: 600;
}

.progress-track {
  height: 8px;
  margin-top: 8px;
  border-radius: 4px;
  background: var(--panel);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.combo-options {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0 24px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.combo-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.combo-option-name {
  font-weight: 600;
}

/* ---------- 7. Product list & cards ---------- */
.product-list {
  display: grid;
  margin: 0;
  padding: 12px 16px;
  list-style: none;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'info action' 'price action';
  column-gap: 16px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(32, 59, 41, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(32, 59, 41, 0.08);
}

.product-card--variants {
  grid-template-areas: 'info info' 'variants variants' 'price action';
  row-gap: 12px;
}

.product-info {
  grid-area: info;
  align-self: start;
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.product-desc {
  margin: 4px 0 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

.product-price {
  grid-area: price;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  align-self: end;
}

.product-action {
  grid-area: action;
  align-self: center;
}

.product-note {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--warning-bg);
  color: var(--warning-ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.catalog-message {
  grid-column: 1 / -1;
  padding: 50px 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 16px;
}

.catalog-message .btn {
  margin-top: 16px;
}

/* Variation picker */
.variant-picker {
  grid-area: variants;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.variant-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.variant-option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.variant-option:has(input:checked) {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
  box-shadow: 0 2px 8px rgba(130, 180, 64, 0.3);
}

.variant-option:has(:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (min-width: 600px) {
  .product-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 16px 24px 60px;
  }

  .product-card {
    grid-template-areas: 'info info' 'price action';
    grid-template-rows: 1fr auto;
    align-items: end;
    min-height: 180px;
    padding: 24px;
    border-radius: var(--radius-lg);
  }

  .product-card--variants {
    grid-template-areas: 'info info' 'variants variants' 'price action';
    grid-template-rows: 1fr auto auto;
  }

  .product-action {
    align-self: end;
  }

  .combo-dialog {
    inset: 0;
    width: min(520px, calc(100% - 32px));
    max-height: 85vh;
    max-height: 85dvh;
    margin: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-popover);
  }
}

/* ---------- 8. Order panel, dock, confirmation ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--backdrop);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.scrim.is-open {
  opacity: 1;
  visibility: visible;
}

.order-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  max-height: 92dvh;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.order-panel.is-open {
  transform: none;
  visibility: visible;
}

.order-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.order-panel-title {
  font-size: 22px;
  font-weight: 800;
}

.order-view,
.order-confirmation {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.order-confirmation {
  overflow-y: auto;
  padding: 24px;
}

.order-form {
  flex: 1;
  min-height: 0;
  padding: 12px 24px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.order-footer {
  padding: 16px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.order-footer-note {
  margin-top: 10px;
  text-align: center;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.order-total {
  font: 700 26px var(--font-heading);
  color: var(--green);
}

.order-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-line {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.order-line-name {
  font-weight: 700;
}

.order-line-details {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-muted);
}

.order-line-controls {
  margin-top: 8px;
}

.stock-warning {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--warning-bg);
  color: var(--warning-ink);
  font-size: 13px;
  font-weight: 500;
}

.form-section {
  min-width: 0;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.section-title {
  padding: 0;
  font: 700 18px var(--font-heading);
  color: var(--ink);
}

.fulfilment-options {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.fulfilment-option {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: var(--bg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.fulfilment-option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.fulfilment-option:has(input:checked) {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
  box-shadow: 0 4px 12px rgba(130, 180, 64, 0.3);
}

.fulfilment-option:has(:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.fulfilment-detail {
  margin-top: 10px;
}

.form-hint {
  margin-top: 14px;
}

.field-label {
  display: block;
  margin: 16px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.field-input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: var(--bg);
  font-size: 16px;
  transition: border-color 0.2s;
}

textarea.field-input {
  min-height: 90px;
  padding: 14px 16px;
  resize: none;
  border-radius: var(--radius-sm);
}

.field-input:focus {
  border-color: var(--green);
  background: var(--surface);
}

.field-input[aria-invalid='true'] {
  border-color: var(--error-ink);
}

.form-error {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--error-bg);
  color: var(--error-ink);
  font-size: 13px;
  font-weight: 500;
}

.order-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(251, 248, 243, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}

.order-dock-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 0 20px;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--ink-muted);
  font-weight: 500;
}

.order-dock .btn-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

/* Confirmation */
.confirmation {
  padding: 32px 24px;
  text-align: center;
}

.confirmation-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--green);
  font-size: 28px;
}

.confirmation-title {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 800;
}

.receipt {
  margin: 24px 0;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--panel);
  text-align: left;
  border: 1px solid var(--line);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}

.receipt-details {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.receipt-total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  font-size: 16px;
}

/* Hover states */
@media (hover: hover) {

  .btn:not(.btn-primary):not(:disabled):hover,
  .category-button[data-active='false']:hover,
  .variant-option:hover,
  .fulfilment-option:hover,
  .category-option[aria-pressed='false']:hover {
    background: var(--green-wash);
    border-color: var(--green);
    color: var(--green);
  }

  .btn-primary:not(:disabled):hover,
  .category-button[data-active='true']:hover {
    background: var(--green-hover);
    border-color: var(--green-hover);
  }
}

/* ---------- 9. Desktop layout, reduced motion ---------- */
@media (min-width: 600px) and (max-width: 899px) {
  .order-panel {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (min-width: 900px) {
  .page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
  }

  .catalog {
    padding-bottom: 0;
  }

  .shop-header {
    padding: 48px 40px 24px;
  }

  .shop-name {
    font-size: 48px;
  }

  .hero-banner {
    margin: 0 40px 24px;
    padding: 40px;
  }

  .hero-banner::after {
    right: -10px;
    bottom: -24px;
    font-size: 150px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-text {
    font-size: 16px;
  }

  .toolbar {
    padding: 14px 40px;
  }

  .category-button {
    max-width: none;
  }

  .search-field {
    max-width: 480px;
  }

  .result-summary {
    padding: 14px 40px 0;
  }

  .product-list {
    padding: 12px 40px 60px;
  }

  .category-menu {
    position: absolute;
    inset: calc(100% + 8px) auto auto 0;
    width: 320px;
    max-height: min(60vh, 460px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-popover);
    animation: none;
  }

  .category-menu .sheet-header {
    display: none;
  }

  .category-options {
    padding: 8px;
  }

  .category-option {
    min-height: 44px;
  }

  .order-dock,
  .scrim,
  [data-action='close-order'] {
    display: none !important;
  }

  .order-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border-left: 1px solid var(--line);
    background: var(--surface);
    transform: none;
    visibility: visible;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}