/* Homepage: hero, matcher, results, about */

/* Hero */
.hero { padding: var(--s-8) 0 var(--s-6); position: relative; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(245,158,11,.16), transparent 70%); pointer-events: none;
}
.hero__title { max-width: 16ch; }
.hero__text { max-width: 58ch; color: var(--c-muted); font-size: 1.075rem; margin-bottom: 0; }

/* Shared panel */
.matcher { display: grid; gap: var(--s-6); }
.panel { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow); }
.panel__head { margin-bottom: var(--s-4); }
.step {
	display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: .5em;
	border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); font-size: .7em; vertical-align: .15em;
}
.matcher h2 { margin: 0; }

/* Selector */
.selector { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .selector { grid-template-columns: repeat(3, 1fr); } }
.field label { display: block; font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: 6px; font-weight: 500; }
.field select, .region select {
	width: 100%; appearance: none; -webkit-appearance: none;
	min-height: 46px; padding: 0 40px 0 14px;
	background: var(--c-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F59E0B' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
	border: 1px solid var(--c-border-2); border-radius: var(--r-sm); color: var(--c-text-strong); cursor: pointer;
	transition: border-color .2s var(--ease);
}
.field select:hover:not(:disabled), .region select:hover { border-color: var(--c-accent); }
.field select:disabled { opacity: .5; cursor: not-allowed; }

/* Bike standards strip */
.bike-spec { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px dashed var(--c-border-2); }
.bike-spec__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--c-faint); font-weight: 600; margin-bottom: var(--s-2); }
.bike-spec__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.bike-spec__list li { font-size: var(--fs-xs); padding: 4px 10px; border-radius: var(--r-pill); background: var(--c-accent-soft); color: var(--c-text); border: 1px solid rgba(245,158,11,.25); }
.bike-spec__list li b { color: var(--c-accent); font-weight: 600; margin-right: 4px; }

/* Results header */
.results__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.results__tools { display: flex; align-items: center; gap: var(--s-3); }
.region { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--c-muted); }
.region select { width: auto; min-height: 36px; padding-right: 34px; background-position: right 10px center; font-size: var(--fs-sm); }
.badge { background: var(--c-surface-2); color: var(--c-accent); padding: 4px 12px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }

/* Filter chips */
.filters { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.chips { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
@media (min-width: 768px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chips__label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; color: var(--c-faint); align-self: center; margin-right: 4px; white-space: nowrap; }
.chip {
	flex: none; background: var(--c-surface-2); border: 1px solid var(--c-border-2); color: var(--c-muted);
	padding: 6px 14px; border-radius: var(--r-pill); font-size: .8rem; cursor: pointer; white-space: nowrap;
	transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--c-accent); color: var(--c-text); }
.chip[aria-pressed="true"] { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); font-weight: 600; }
.chips--brand .chip[aria-pressed="true"] { background: var(--c-info); border-color: var(--c-info); color: #fff; }
.chip__n { opacity: .65; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* Part cards */
.cards { display: grid; gap: var(--s-3); }
.card {
	display: grid; gap: var(--s-4); align-items: center;
	grid-template-columns: 72px 1fr;
	background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-4);
	transition: border-color .2s var(--ease);
}
.card:hover { border-color: var(--c-border-2); }
@media (min-width: 820px) { .card { grid-template-columns: 96px 1fr 260px; } }
.card__img { width: 72px; height: 72px; background: #fff; border-radius: var(--r-sm); display: grid; place-items: center; overflow: hidden; }
@media (min-width: 820px) { .card__img { width: 96px; height: 96px; } }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__img--none { background: var(--c-surface-2); color: var(--c-faint); }
.card__img--none svg { width: 36px; height: 36px; }
.card__img--none img { width: 80%; height: 80%; }
.card__cat { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-accent); }
.card__name { margin: 2px 0 4px; font-size: 1.05rem; line-height: 1.3; }
.card__meta { font-size: var(--fs-sm); color: var(--c-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.card__sku { font-family: var(--f-mono); font-size: .78rem; color: var(--c-faint); }
.card__fits { margin-top: 6px; font-size: .78rem; color: var(--c-muted); }
.card__fits b { color: #34D399; font-weight: 600; }
.card__shops { grid-column: 1 / -1; display: grid; gap: var(--s-2); }
@media (min-width: 820px) { .card__shops { grid-column: auto; border-left: 1px solid var(--c-border); padding-left: var(--s-4); } }
.card__shops-label { font-size: var(--fs-xs); color: var(--c-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.shop {
	display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
	min-height: 40px; padding: 0 14px; background: #fff; border: 1px solid #E2E8F0; border-radius: var(--r-pill);
	text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.shop:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.25); border-color: var(--c-accent); }
.shop__name { font-size: .78rem; font-weight: 800; color: #0F172A; letter-spacing: .04em; }
.shop__price { font-size: .85rem; font-weight: 700; color: var(--c-price); white-space: nowrap; }
.shop__price--none { color: #475569; font-weight: 600; }

/* States */
.empty { text-align: center; padding: var(--s-7) var(--s-5); background: var(--c-surface); border: 1px dashed var(--c-border-2); border-radius: var(--r-md); color: var(--c-muted); }
.empty__title { color: var(--c-text-strong); font-weight: 600; font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.empty p:last-child { margin: 0; }
.skeleton { height: 128px; border-radius: var(--r-md); background: linear-gradient(90deg, var(--c-surface) 0%, var(--c-surface-2) 50%, var(--c-surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* About */
.about { margin-top: var(--s-8); }
.how { list-style: none; padding: 0; margin: var(--s-5) 0 var(--s-8); display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-5); }
.how__n { font-weight: 700; color: var(--c-accent); font-size: var(--fs-sm); letter-spacing: .1em; }
.how h3 { margin: var(--s-2) 0; font-size: 1.1rem; }
.how p { color: var(--c-muted); margin: 0; font-size: .95rem; }
.story { max-width: 68ch; }
.story p { color: var(--c-muted); }
.story__contact { color: var(--c-text) !important; }
.card__noshop { margin: 0; font-size: var(--fs-sm); color: var(--c-faint); }
.card__note { margin: 6px 0 0; font-size: .78rem; color: var(--c-muted); line-height: 1.45; }
