/* Mobile & Mobile Accessories page: Brand → Model → Product → Product Type filter bar. Builds on school.css (.sch). */
.mc .sch-body { padding-top: 16px; }
.mc-head { display: flex; align-items: center; gap: 14px; margin: 14px 0 18px; }
.mc-head h1 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; margin: 0 0 4px; line-height: 1.2; }
.mc-head p { margin: 0; color: var(--sch-muted); }
.mc-head-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sch-green-tint); color: var(--sch-green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mc-head-icon [data-lucide], .mc-head-icon svg.lucide { width: 26px; height: 26px; }

/* Filter bar: four fields + actions. Desktop one row, tablet two columns, phone stacked. */
.mc-filters { background: #fff; border: 1px solid var(--sch-border); border-radius: var(--sch-radius); padding: 16px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.mc-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.mc-field { min-width: 0; }
.mc-field > label { display: block; font-size: .82rem; font-weight: 700; margin: 0 0 6px; color: var(--sch-text); }
.mc-actions { display: flex; gap: 8px; }
.mc-actions .sch-btn { padding-left: 16px; padding-right: 16px; }
.mc-hint { margin: 8px 0 0; font-size: .85rem; color: #b91c1c; min-height: 0; }
.mc-hint:empty { display: none; }

.mc-combo { position: relative; }
.mc-combo-input {
    width: 100%; min-height: 46px; padding: 10px 64px 10px 38px; border: 1px solid #cbd5e1; border-radius: 10px;
    background: #fff; color: var(--sch-text); font-size: .95rem; text-overflow: ellipsis;
}
.mc-combo-input:focus { border-color: var(--sch-green); outline: 3px solid rgba(8, 120, 62, .18); outline-offset: 0; }
.mc-combo-input:disabled { background: #f1f5f9; color: #64748b; cursor: not-allowed; }
.mc-combo-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--sch-green); pointer-events: none; }
.mc-combo.is-disabled .mc-combo-icon { color: #94a3b8; }
.mc-combo-chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; }
.mc-combo-clear {
    position: absolute; right: 34px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 50%;
    background: transparent; color: #64748b; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.mc-combo-clear:hover { background: #f1f5f9; color: var(--sch-text); }
.mc-combo-clear[hidden] { display: none; }
.mc-combo-clear [data-lucide], .mc-combo-clear svg.lucide { width: 15px; height: 15px; }
.mc-combo-list {
    position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto; margin: 0; padding: 4px;
    list-style: none; background: #fff; border: 1px solid var(--sch-border); border-radius: 12px; box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}
.mc-combo-list[hidden] { display: none; }
.mc-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; min-height: 44px; border-radius: 8px; cursor: pointer; font-size: .92rem; }
.mc-opt[aria-selected="true"], .mc-opt:hover { background: var(--sch-green-tint); }
.mc-opt.is-current { font-weight: 700; color: var(--sch-green); }
.mc-opt-n { font-size: .78rem; color: var(--sch-muted); white-space: nowrap; }
.mc-opt-msg { padding: 12px; color: var(--sch-muted); font-size: .9rem; cursor: default; }
.mc-opt-msg.is-error { color: #b91c1c; }
.mc-opt-msg button { margin-left: 6px; border: 0; background: none; color: var(--sch-green); font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; }

.mc-scope { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .9rem; margin: -6px 0 14px; color: var(--sch-muted); }
.mc-scope a { color: var(--sch-green); font-weight: 700; }
.mc-results-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mc-results-head .sch-count { margin: 0; overflow-wrap: anywhere; }
.mc-sort { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.mc-sort select { min-height: 40px; border: 1px solid #cbd5e1; border-radius: 9px; padding: 6px 10px; background: #fff; }

/* Card additions */
.mc-fit { margin: 0 0 2px; font-size: .75rem; font-weight: 700; color: var(--sch-green); text-transform: uppercase; letter-spacing: .3px; overflow-wrap: anywhere; }
.mc-variant { display: flex; align-items: center; gap: 5px; margin: 2px 0 4px; font-size: .84rem; font-weight: 600; color: var(--sch-text); }
.mc-variant [data-lucide], .mc-variant svg.lucide { width: 14px; height: 14px; color: var(--sch-green); }
.mc-rating { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0; font-size: .82rem; font-weight: 700; }
.mc-rating [data-lucide], .mc-rating svg.lucide { width: 14px; height: 14px; color: #f59e0b; fill: #f59e0b; }
.mc-rating span { color: var(--sch-muted); font-weight: 500; }
.mc-badge-off { background: var(--sch-green); color: #fff; }
.mc-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mc-buy .sch-btn { padding-left: 8px; padding-right: 8px; min-width: 0; }

@media (max-width: 1199px) {
    .mc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mc-actions { grid-column: 1 / -1; }
    .mc-actions .sch-btn { flex: 1; }
}
@media (max-width: 575px) {
    .mc-filters { padding: 12px; }
    .mc-fields { grid-template-columns: 1fr; gap: 10px; }
    .mc-head-icon { width: 44px; height: 44px; }
    .mc-buy { grid-template-columns: 1fr; }
}
