/* FILE: marketplace/public/MCM-search.css */
/* VERSION: shop-mycarnivalmatch-search-css.v2.3.0 */
/* ROLLBACK-ID: shop-mycarnivalmatch-search-css.v2.2.0 */
/* CHANGE: Contains search-only filters and results styles; shared shell, cards, sheets, consent, footer, focus, and motion live in MCM-shop.css. */

.MCM-filter-toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 8px 0 12px;
  border-bottom: 1px solid rgba(60,60,67,0.10);
  background: rgba(248,248,248,0.88);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}
.MCM-chip-row { display: flex; gap: 9px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.MCM-chip-row::-webkit-scrollbar, .MCM-filter-pills::-webkit-scrollbar { display: none; }
.MCM-chip, .MCM-filter-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 800;
  line-height: 1.15;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease, border-color 160ms ease;
}
.MCM-chip { flex: 0 0 auto; border: 1px solid var(--MCM-line); background: #fff; color: var(--MCM-text); font-size: 14px; white-space: nowrap; }
.MCM-chip[aria-current="true"] { border-color: #1d1d1f; background: #1d1d1f; color: #fff; }
.MCM-chip:active, .MCM-filter-button:active { transform: scale(0.98); opacity: 0.82; }
.MCM-filter-summary { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.MCM-filter-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.MCM-filter-pill { display: inline-flex; min-height: 34px; flex: 0 0 auto; align-items: center; border: 1px solid var(--MCM-line); border-radius: 999px; background: rgba(255,255,255,0.86); padding: 7px 11px; color: var(--MCM-muted); font-size: 13px; font-weight: 750; }
.MCM-filter-button { background: var(--MCM-primary); color: #fff; }
.MCM-desktop-filters { display: none; grid-template-columns: repeat(4,minmax(0,1fr)) auto; gap: 10px; align-items: end; margin-top: 10px; }
.MCM-field { display: grid; gap: 6px; }
.MCM-field label { color: var(--MCM-muted); font-size: 12px; font-weight: 800; }
.MCM-select {
  width: 100%;
  min-height: 50px;
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  background-color: var(--MCM-surface-soft);
  background-image: linear-gradient(45deg,transparent 50%,var(--MCM-tertiary) 50%),linear-gradient(135deg,var(--MCM-tertiary) 50%,transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px;
  background-size: 5px 5px,5px 5px;
  background-repeat: no-repeat;
  padding: 12px 34px 12px 14px;
  color: var(--MCM-text);
  font-size: 17px;
  font-weight: 600;
  outline: none;
}
.MCM-select:focus { border-color: rgba(34,90,167,0.42); background-color: #fff; box-shadow: 0 0 0 4px rgba(34,90,167,0.12); }
.MCM-results-section { padding: 14px 0 42px; }
.MCM-results-header { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.MCM-results-title { margin: 0; font-family: var(--font-display); font-size: clamp(26px,6vw,42px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; }
.MCM-results-section .MCM-product-status { min-height: 22px; margin: 4px 0 0; font-size: 14px; font-weight: 700; }
.MCM-results-section .MCM-product-card { border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.MCM-results-section .MCM-product-image-wrap { position: relative; aspect-ratio: 1 / 1.12; padding: 0; }
.MCM-results-section .MCM-product-image { object-fit: cover; mix-blend-mode: normal; }
.MCM-results-section .MCM-product-badge { position: absolute; top: 10px; left: 10px; max-width: calc(100% - 20px); background: rgba(255,255,255,0.88); color: var(--MCM-primary); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.MCM-results-section .MCM-product-copy { padding: 12px; }
.MCM-results-section .MCM-product-actions { grid-template-columns: 1fr; padding: 0 10px 10px; }
.MCM-results-section .MCM-card-button { border-radius: 14px; background: var(--MCM-surface-soft); color: var(--MCM-text); }
.MCM-results-section .MCM-card-button.MCM-primary-action { background: #1d1d1f; color: #fff; }
.MCM-results-section .MCM-empty { border-color: var(--MCM-line-strong); background: #fff; font-size: 16px; font-weight: 700; }
.MCM-seller-card { display: grid; gap: 16px; align-items: center; margin-top: 26px; border-radius: 28px; padding: 24px; background: #1d1d1f; color: #fff; box-shadow: var(--MCM-shadow); }
.MCM-seller-card h2 { margin: 0; font-family: var(--font-display); font-size: clamp(30px,7vw,56px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.MCM-seller-card p { margin: 10px 0 0; color: rgba(255,255,255,0.72); font-size: 17px; line-height: 1.5; }
.MCM-filter-sheet .MCM-sheet-actions { margin-top: 6px; }

@media (min-width: 720px) {
  .MCM-results-section .MCM-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .MCM-results-section .MCM-product-actions { grid-template-columns: 1fr 1fr; }
  .MCM-seller-card { grid-template-columns: minmax(0,1fr) auto; padding: 34px; }
}
@media (min-width: 980px) {
  .MCM-desktop-filters { display: grid; }
  .MCM-filter-button { display: none; }
  .MCM-results-section .MCM-product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
}
@media (max-width: 719px) {
  .MCM-results-header { align-items: start; flex-direction: column; }
}
@media (hover: hover) and (pointer: fine) {
  .MCM-chip:hover, .MCM-results-section .MCM-card-button:hover { background: #fff; border-color: var(--MCM-line-strong); }
}
