/* ═══════════════════════════════════════════════════
   SALON MENU — search/filter toolbar and selection tray
   ═══════════════════════════════════════════════════ */

.salon-menu-tools {
  position: sticky;
  top: 0;
  z-index: 18;
  margin: 0;
  padding: 9px 16px 7px;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.salon-menu-tools[hidden] { display: none; }
.salon-menu-search {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.salon-menu-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
}
.salon-menu-search input::placeholder { color: var(--text-3); font-weight: 500; }
.salon-menu-search input::-webkit-search-cancel-button { display: none; }
.salon-menu-search__clear {
  width: 24px; height: 24px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); cursor: pointer;
}
.salon-menu-quick {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 0 1px;
}
.salon-menu-quick__scroll {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.salon-menu-quick__scroll::-webkit-scrollbar { display: none; }
.salon-menu-type,
.salon-menu-sort,
.salon-menu-filter-btn {
  flex-shrink: 0;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.salon-menu-type--on {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}
.salon-menu-gender {
  flex-shrink: 0;
  min-height: 29px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-3);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.salon-menu-gender--on {
  border-color: var(--primary-border);
  background: var(--primary-surface);
  color: var(--primary);
}
.salon-menu-sort {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 38vw;
  overflow: hidden;
}
.salon-menu-sort > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.salon-menu-sort--on {
  border-color: var(--primary-border);
  background: var(--primary-surface);
  color: var(--primary);
}
.salon-menu-filter-btn { display: inline-flex; align-items: center; gap: 4px; }
.salon-menu-filter-btn--on { border-color: var(--primary-border); background: var(--primary-surface); color: var(--primary); }
.salon-menu-filters {
  padding: 0 0 5px;
  max-height: 270px;
  overflow-y: auto;
}
.salon-menu-filters[hidden] { display: none; }
.salon-menu-filters__label {
  margin: 7px 0 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.salon-menu-chip-row {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1px;
}
.salon-menu-chip-row::-webkit-scrollbar { display: none; }
.salon-menu-chip {
  flex-shrink: 0;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-family: inherit;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}
.salon-menu-chip--on { border-color: var(--primary); background: var(--primary-surface); color: var(--primary); font-weight: 750; }
.salon-menu-chip--clear { color: var(--text-3); border-style: dashed; }

.salon-menu-results { padding: 10px 16px 18px; }
.salon-menu-results[hidden] { display: none; }
.salon-menu-results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 9px;
}
.salon-menu-results__head strong { font-size: 13px; color: var(--text); }
.salon-menu-results__head span { margin-left: 5px; font-size: 10px; color: var(--text-3); }
.salon-menu-results__clear {
  border: 0; background: none; padding: 4px;
  color: var(--primary); font-family: inherit; font-size: 10.5px; font-weight: 750; cursor: pointer;
}
.salon-menu-results__group {
  display: flex; align-items: center; gap: 6px;
  margin: 8px 2px 7px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
.salon-menu-results__group span { padding: 1px 5px; border-radius: 999px; background: var(--surface-2); color: var(--text-3); font-size: 9px; }
.salon-menu-result { margin-bottom: 8px; }
.salon-menu-results__empty { padding: 28px 12px; text-align: center; }
.salon-menu-results__empty-title { font-size: 14px; font-weight: 750; color: var(--text); }
.salon-menu-results__empty-body { margin: 4px auto 12px; max-width: 240px; font-size: 11px; line-height: 1.45; color: var(--text-3); }

/* Selection tray */
.salon-summary-bar.salon-tray {
  padding: 9px 14px 10px;
  gap: 9px;
}
.salon-tray__summary {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.salon-tray__count {
  grid-column: 1 / -1;
  font-size: 10.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.salon-tray__amount {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.salon-tray__amount .ssb-discount { font-size: 10px; color: var(--success); font-weight: 600; }
.salon-tray__view {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 750;
}
.salon-tray__book {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.salon-tray--bump { animation: salonTrayBump .3s cubic-bezier(.22,1,.36,1); }
@keyframes salonTrayBump {
  0% { transform: translateY(0); }
  38% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.salon-tray-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
}
.salon-tray-sheet[hidden] { display: none; }
.salon-tray-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(18,15,13,.42);
  cursor: pointer;
}
.salon-tray-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  padding: 7px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: var(--bg);
  box-shadow: 0 -18px 48px rgba(18,15,13,.24);
  animation: salonTrayIn .22s var(--ease-out);
}
@keyframes salonTrayIn { from { transform: translateY(18px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
.salon-tray-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  touch-action: none;
  cursor: grab;
}
/* A 36×4 grabber is too small to hit; the pseudo-element widens the target
   without changing the visible bar. */
.salon-tray-handle::before {
  content: '';
  position: absolute;
  inset: -12px -52px;
}
.salon-tray-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 2px 2px 9px; touch-action: none; cursor: grab; }
.salon-tray-title { font-family: var(--font-heading); font-size: 20px; font-weight: 750; color: var(--text); }
.salon-tray-sub { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.salon-tray-close {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); cursor: pointer;
}
.salon-tray-list { overflow-y: auto; padding: 2px 0 6px; }
.salon-tray-item {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.salon-tray-item:last-child { border-bottom: 0; }
.salon-tray-item__body {
  min-width: 0;
  flex: 1;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.salon-tray-item__body:active { opacity: .68; }
.salon-tray-item__body:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.salon-tray-item__type { display: block; font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.salon-tray-item__name { display: block; margin-top: 1px; font-size: 13px; font-weight: 700; color: var(--text); }
.salon-tray-item__meta { display: block; margin-top: 1px; font-size: 10px; color: var(--text-3); }
.salon-tray-item__included { display: block; margin-top: 3px; font-size: 9.5px; line-height: 1.4; color: var(--text-3); }
.salon-tray-item__end { text-align: right; flex-shrink: 0; }
.salon-tray-item__price { font-size: 13px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.salon-tray-item__remove { border: 0; background: none; padding: 3px 0; color: var(--text-3); font-family: inherit; font-size: 10px; font-weight: 650; cursor: pointer; }
.salon-tray-totals { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 10px 0 9px; border-top: 1px solid var(--border); }
.salon-tray-totals span { font-size: 12px; color: var(--text-2); }
.salon-tray-totals strong { display: block; margin-top: 2px; font-size: 22px; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.salon-tray-offer { align-self: center; font-size: 10px; color: var(--success); font-weight: 700; }
.salon-tray-actions { display: flex; gap: 8px; }
.salon-tray-add,
.salon-tray-book { flex: 1; min-height: 46px; border-radius: 999px; font-family: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.salon-tray-add { border: 1px solid var(--border); background: var(--surface); color: var(--primary); }
.salon-tray-book { border: 0; background: var(--primary); color: #fff; }
.phone-shell.salon-tray-open .phone-content { overflow: hidden; }

@media (max-width: 360px) {
  .salon-menu-tools { padding-left: 12px; padding-right: 12px; }
  .salon-tray__book { padding: 0 14px; }
  .salon-tray-panel { padding-left: 13px; padding-right: 13px; }
}
