/* Parça Ara sayfası (vitrin + listeleme) */

/* Vitrin: araç seçici + kategoriler */
.hero { display: grid; gap: 14px; margin-top: 16px; }
.finder { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 20px; }
.finder__vin { display: grid; gap: 10px; }
.finder__input { width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: #fff; color: var(--ink); font-weight: 500; }
.finder__input:focus { outline: 0; box-shadow: 0 0 0 3px rgba(215, 25, 45, .55); }
.finder__input--vin { text-transform: uppercase; letter-spacing: .03em; }
.finder__input--vin::placeholder { text-transform: none; letter-spacing: 0; }
select.finder__input { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
select.finder__input:disabled { background-color: #d9dbe0; color: #6f737b; }
.finder__sep { height: 1px; background: #2f3237; margin: 18px 0 16px; }
.finder__lead { font-size: 14px; color: #c9ccd2; margin-bottom: 14px; }
.finder__lead strong { color: #fff; }
.finder__form { display: grid; gap: 10px; }

.hcats { padding: 18px; }
.hcats__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.hcats__head h2 { font-size: 20px; }
.hcats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.hcats__grid a { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 44px; padding: 8px 10px 8px 12px; font-size: 13px; line-height: 1.25; border-radius: var(--r-sm); background: var(--page); text-decoration: none; font-weight: 600; }
.hcats__grid a .icon { width: 16px; height: 16px; color: var(--muted); }
.hcats__grid a:hover { background: var(--red-soft); color: var(--red); }
.hcats__grid a:hover .icon { color: var(--red); }

/* Marka karuseli */
.bstrip { display: flex; gap: 12px; margin: 0; padding: 2px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bstrip::-webkit-scrollbar { display: none; }
.bstrip li { flex: none; scroll-snap-align: start; }
.btile { display: grid; justify-items: center; gap: 8px; width: 132px; padding: 16px 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.btile:hover { border-color: var(--red); box-shadow: var(--shadow); }
.btile__logo { display: grid; place-items: center; width: 100%; height: 40px; }
.btile__logo img { width: auto; height: auto; max-width: 96px; max-height: 34px; object-fit: contain; }
.btile__name { font-size: 13px; font-weight: 700; }

/* Yol ve sayfa başlığı */
.phead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 16px; }
.phead--landing { margin-top: 30px; }
.phead__ic { display: grid; place-items: center; width: 64px; height: 64px; flex: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); }
.phead__ic img { max-width: 48px; max-height: 32px; width: auto; height: auto; }
.phead__ic .icon { width: 28px; height: 28px; }
.phead__txt { flex: 1; min-width: 0; }
.phead__txt h1, .phead__txt h2 { font-size: 22px; font-weight: 700; }
.phead__txt p { margin: 4px 0 0; color: var(--muted); }
.phead__txt p strong { color: var(--ink); }
.phead__tools { flex: 1 0 100%; display: flex; gap: 8px; }
.phead__filter { flex: none; height: 46px; border-color: var(--line); }
.sortf { flex: 1; display: flex; gap: 8px; min-width: 0; }
.sortf select { min-width: 0; height: 46px; border-color: var(--line); background-color: var(--card); }

/* Liste düzeni */
.plist__main { min-width: 0; }
.plist__chips { margin-bottom: 14px; }
.mbar { margin-bottom: 12px; }

/* Filtre kenar çubuğu: mobilde tam ekran çekmece */
.side { position: fixed; inset: 0; z-index: 90; background: var(--page); padding: 14px var(--gutter) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto;
  transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; }
.side.is-open { transform: none; visibility: visible; transition: transform .22s ease; }
.side__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.side__close { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--card); cursor: pointer; }
.side__card { padding: 4px 20px; }
.side__sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.side__sec:last-of-type { border-bottom: 0; }
.side__title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.side__title--red { color: var(--red); }
.side__clear { padding: 4px 0 18px; }
.opts { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.opts--scroll { max-height: 290px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.opts--sub { margin: 4px 0 8px 28px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text); }
.opt__box { width: 18px; height: 18px; flex: none; border: 1.5px solid #C5C9D0; border-radius: 5px; background: var(--card); }
.opt:hover { color: var(--red); }
.opt:hover .opt__box { border-color: var(--red); }
.opt.is-on { color: var(--ink); font-weight: 700; }
.opt.is-on .opt__box { border-color: var(--red); background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 13px; }
.pricef { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 12px; }
.pricef .input { min-height: 40px; padding: 8px 10px; }
.pricef .btn { min-height: 40px; padding: 0 10px; }
.side__vin { display: grid; gap: 10px; margin-top: 14px; padding: 20px; }
.side__vin .side__title { margin-bottom: 0; }
.vin-input { text-transform: uppercase; }
.vin-input::placeholder { text-transform: none; }
.no-scroll { overflow: hidden; }

/* Şasi sonucu */
.vinres { padding: 20px; margin-bottom: 16px; border-left: 4px solid var(--red); }
.vinres h2 { font-size: 17px; margin-bottom: 12px; }
.vinres h2 span { color: var(--muted); font-weight: 600; }
.vinres__error { margin: 0; font-weight: 700; color: var(--red-dark); }
.vinres__note { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.vinres__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin: 0 0 16px; }
.vinres__list div { min-width: 0; }
.vinres__list dt { font-size: 12px; color: var(--muted); }
.vinres__list dd { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }


@media (min-width: 640px) {
  .hcats__grid a { font-size: 14px; padding: 10px 14px; }
  .phead__tools { flex: none; }
  .sortf select { min-width: 230px; }
  .vinres__list { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .hero { grid-template-columns: 340px 1fr; gap: 24px; margin-top: 24px; }
  .finder { padding: 24px; }
  .hcats { padding: 22px 24px; }
  .hcats__grid { grid-template-columns: repeat(3, 1fr); }
  .phead { margin: 20px 0 22px; }
  .phead__txt h1, .phead__txt h2 { font-size: 30px; }
  .phead--landing .phead__txt h2 { font-size: 28px; }
  .plist { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
  .side { position: static; inset: auto; z-index: auto; transform: none; visibility: visible; padding: 0; overflow: visible; background: none; }
  .side__head, .phead__filter { display: none; }
  .plist--full { display: block; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plist--full .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1240px) {
  .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .plist--full .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
