/* =========================================================
   /urunler/ — the listening catalogue
   Source selector (category strip with a gliding indicator), an editorial
   index list whose photo follows the cursor, a gallery view, and a
   full-screen product sheet. Accents use the mood tokens only.
   ========================================================= */
.cat, .catalog, .ask, .sheet { --out: cubic-bezier(.16, 1, .3, 1); --io: cubic-bezier(.76, 0, .24, 1); }

/* ---------- head: one line and the selector ---------- */
.cat { padding-top: clamp(36px, 5.5vw, 84px); }
.cat .breadcrumb ol { margin-bottom: clamp(18px, 2.4vw, 32px); }
.cat__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px clamp(24px, 4vw, 64px);
  align-items: end;
}
.cat__title {
  margin: 0; font-size: clamp(3.9rem, 1rem + 8.6vw, 9.6rem); line-height: .9; max-width: none;
}
.cat__lede { margin: 0 0 .9em; max-width: 34ch; color: var(--muted); font-size: var(--step-0); line-height: 1.5; }
.cat__lede a { color: var(--fg); text-decoration-color: var(--brass-line); text-underline-offset: .2em; }
.cat__lede a:hover { text-decoration-color: var(--accent); }

.deck { margin-top: clamp(36px, 5vw, 72px); }
.deck[hidden] { display: none; }

/* the source selector */
.sources {
  position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overscroll-behavior-x: contain;
}
.sources::-webkit-scrollbar { display: none; }
.sources.is-more { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.sources__track { position: relative; display: flex; gap: clamp(20px, 2.5vw, 40px); width: max-content; min-width: 100%; }
.sources__item {
  position: relative; display: inline-flex; align-items: flex-start; gap: 4px;
  padding: clamp(16px, 1.8vw, 22px) 0 clamp(18px, 2vw, 24px); border: 0; background: none; cursor: pointer;
  color: var(--muted); font: inherit; white-space: nowrap;
  transition: color .4s var(--out);
}
.sources__t { font-family: var(--serif); font-weight: 360; font-size: clamp(1.2rem, .95rem + .55vw, 1.5rem); letter-spacing: -.015em; line-height: 1; }
.sources__n { font-size: .68rem; font-weight: 600; line-height: 1; color: var(--accent-soft); opacity: .7; font-variant-numeric: tabular-nums; transition: opacity .4s; }
.sources__item:hover, .sources__item[aria-pressed="true"] { color: var(--fg); }
.sources__item[aria-pressed="true"] .sources__n { opacity: 1; }
.sources__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.sources__ind {
  position: absolute; left: 0; bottom: 0; width: 0; height: 2px; pointer-events: none;
  background: var(--accent); box-shadow: 0 0 14px var(--glow);
  transition: transform .75s var(--out), width .75s var(--out), background 1.6s, box-shadow 1.6s;
}
.sources__ind::after { /* the light the selected input throws up the panel */
  content: ""; position: absolute; left: -20%; right: -20%; bottom: 2px; height: 44px;
  background: radial-gradient(50% 100% at 50% 100%, color-mix(in srgb, var(--glow) 16%, transparent), transparent 75%);
}

/* tools: search, brand, sort, stock, view, count */
.tools {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px clamp(12px, 1.4vw, 20px);
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.tools__q { position: relative; flex: 1 1 220px; max-width: 360px; }
.tools__q-ico { position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); pointer-events: none; }
.tools__q input {
  width: 100%; min-height: 44px; padding: 8px 0 8px 30px; border: 0; border-bottom: 1px solid transparent; border-radius: 0;
  background: none; color: var(--fg); font: inherit; font-size: .95rem; transition: border-color .3s;
}
.tools__q input::placeholder { color: #7A838D; }
.tools__q input:focus { outline: none; border-bottom-color: var(--accent); }
.tools__q input:focus-visible { outline: none; }
.tools__more { display: flex; align-items: center; gap: 10px; }
.tools__sel { position: relative; }
.tools__sel::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 6px; height: 6px; margin-top: -5px; pointer-events: none;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg);
}
.tools__sel select {
  -webkit-appearance: none; appearance: none; min-height: 42px; padding: 0 38px 0 16px; max-width: 240px;
  border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--fg); font: inherit; font-size: .88rem; cursor: pointer;
  transition: border-color .3s;
}
.tools__sel select:hover { border-color: rgba(232, 235, 238, .32); }
.tools__sel select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tools__sel option { background: var(--surface); color: var(--fg); }
.tools__stock, .tools__toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 4px;
  border: 0; background: none; color: var(--fg); font: inherit; font-size: .88rem; cursor: pointer; white-space: nowrap;
}
.tools__switch { position: relative; width: 32px; height: 18px; border-radius: 999px; border: 1px solid rgba(232, 235, 238, .3); transition: background .3s, border-color .3s; }
.tools__switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform .4s var(--out), background .3s; }
.tools__stock[aria-checked="true"] .tools__switch { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.tools__stock[aria-checked="true"] .tools__switch::after { transform: translateX(14px); background: var(--accent); }
.tools__stock:focus-visible, .tools__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.tools__toggle { display: none; }
.tools__view { display: inline-flex; margin-left: auto; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.tools__view button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: none; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; transition: background .4s var(--out), color .3s;
}
.tools__view svg { width: 14px; height: 14px; }
.tools__view button[aria-pressed="true"] { background: var(--fg); color: #111316; }
.tools__view button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tools__count { margin: 0; min-width: 4.5em; text-align: right; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.tools__count [data-count-num] { font-family: var(--serif); font-size: 1.25rem; color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- the list ---------- */
.catalog { position: relative; padding-block: 0 clamp(80px, 10vw, 150px); }
.pieces { list-style: none; margin: 0; padding: 0; transition: opacity .22s, transform .3s var(--out); }
.pieces.is-out { opacity: 0; transform: translateY(10px); }
.pieces[hidden] { display: none; }
.piece { position: relative; }
.piece[hidden] { display: none; }
.piece p { margin: 0; }
.piece__brand { font-size: .82rem; font-weight: 600; color: var(--muted); }
.piece__model { margin: 0; font-family: var(--serif); font-weight: 330; letter-spacing: -.03em; color: var(--fg); }
.piece__model a { color: inherit; text-decoration: none; }
.piece__model a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* the whole row opens the sheet */
.piece__model a:focus-visible { outline: none; }
.piece:has(.piece__model a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
.piece__mi { display: inline-block; transition: transform .8s var(--out), color .45s, opacity .45s; }
.piece__type { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; line-height: 1.35; color: var(--muted); }
.piece__year { font-family: var(--serif); font-size: 1rem; color: var(--accent-soft); font-variant-numeric: tabular-nums; }
.piece__state { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: .82rem; text-align: right; }
.piece__cond { color: var(--muted); }
.piece__media { overflow: hidden; background: var(--surface); }
.piece__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.piece__actions { position: relative; z-index: 2; display: flex; gap: 18px; font-size: .88rem; }
.piece__actions a { color: var(--fg); text-underline-offset: .25em; text-decoration-color: var(--brass-line); }
.is-enhanced .piece__actions { display: none; }

/* status: a small lamp */
.st { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.st--rezerve::before { background: none; border: 1px solid var(--accent); box-shadow: none; }
.st--satildi { color: var(--muted); }
.st--satildi::before { background: #5C636B; box-shadow: none; }
.piece[data-status="satildi"] .piece__mi { opacity: .45; }

/* ===== view (a): the editorial index ===== */
.pieces[data-view="liste"] .piece {
  display: grid; align-items: baseline; column-gap: clamp(16px, 2.4vw, 40px);
  grid-template-columns: clamp(64px, 7vw, 104px) minmax(0, 2fr) minmax(0, 7fr) minmax(0, 2.6fr) minmax(0, 1.4fr);
  grid-template-areas: "media brand model type state";
  padding: clamp(18px, 2.1vw, 30px) 0; border-bottom: 1px solid var(--line);
}
.pieces[data-view="liste"] .piece::before { /* a rule that lights along the row */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--out), background 1.6s;
}
.pieces[data-view="liste"] .piece__media { grid-area: media; align-self: center; aspect-ratio: 4 / 3; border-radius: 3px; }
.pieces[data-view="liste"] .piece__brand { grid-area: brand; }
.pieces[data-view="liste"] .piece__model { grid-area: model; font-size: clamp(2rem, .9rem + 3.3vw, 4.5rem); line-height: 1; overflow: hidden; padding: .06em 0 .1em; margin: -.06em 0 -.1em; }
.pieces[data-view="liste"] .piece__type { grid-area: type; }
.pieces[data-view="liste"] .piece__state { grid-area: state; }
.pieces[data-view="liste"] .piece__actions { grid-column: 3 / -1; margin-top: 12px; }

/* fine pointer + motion: no thumbnails, the photo follows the cursor instead */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (min-width: 701px) {
  .is-enhanced .pieces[data-view="liste"] .piece {
    grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) minmax(0, 2.6fr) minmax(0, 1.4fr);
    grid-template-areas: "brand model type state";
  }
  .is-enhanced .pieces[data-view="liste"] .piece__media { display: none; }
  .pieces[data-view="liste"] .piece.is-hover::before { transform: scaleX(1); }
  .pieces[data-view="liste"] .piece.is-hover .piece__mi { transform: translateX(clamp(10px, 1.6vw, 28px)); }
  .pieces[data-view="liste"].is-peeking .piece:not(.is-hover) .piece__mi { color: color-mix(in srgb, var(--fg) 30%, transparent); }
  .pieces[data-view="liste"].is-peeking .piece:not(.is-hover) > p { opacity: .4; }
  .pieces[data-view="liste"] .piece > p { transition: opacity .45s; }
}

/* the photo that follows the cursor */
.peek { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; will-change: transform; display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (min-width: 701px) {
  .is-enhanced .peek { display: block; }
}
.peek__frame {
  width: clamp(220px, 19vw, 300px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--surface);
  transform: translate(40px, -50%) scale(.55); opacity: 0; transform-origin: 0 50%;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: transform .6s var(--out), opacity .35s;
}
.peek.is-on .peek__frame { transform: translate(40px, -50%) scale(1); opacity: 1; }
.peek.is-flip .peek__frame { transform: translate(calc(-100% - 40px), -50%) scale(.55); transform-origin: 100% 50%; }
.peek.is-flip.is-on .peek__frame { transform: translate(calc(-100% - 40px), -50%) scale(1); }
.peek img { display: block; width: 100%; height: 100%; object-fit: cover; }
.peek.is-swap img { animation: peek-in .6s var(--out) both; }
@keyframes peek-in { from { clip-path: inset(100% 0 0 0); transform: scale(1.25); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* ===== view (b): the gallery ===== */
.pieces[data-view="galeri"] {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 80px) clamp(16px, 2.4vw, 36px); padding: clamp(32px, 4vw, 56px) 0 clamp(60px, 7vw, 110px);
}
.pieces[data-view="galeri"] .piece {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; row-gap: 6px; column-gap: 12px;
  grid-template-areas: "media media" "brand state" "model model" "type type";
}
.pieces[data-view="galeri"] .piece:nth-child(3n+2) { translate: 0 clamp(36px, 5vw, 88px); }
.pieces[data-view="galeri"] .piece__media { grid-area: media; aspect-ratio: 4 / 5; margin-bottom: 12px; border-radius: 3px; }
.pieces[data-view="galeri"] .piece__media img { transition: transform 1.4s var(--out); }
.pieces[data-view="galeri"] .piece:hover .piece__media img { transform: scale(1.05); }
.pieces[data-view="galeri"] .piece__brand { grid-area: brand; align-self: center; }
.pieces[data-view="galeri"] .piece__state { grid-area: state; align-self: center; }
.pieces[data-view="galeri"] .piece__cond { display: none; }
.pieces[data-view="galeri"] .piece__model { grid-area: model; font-size: clamp(1.6rem, 1rem + 1.2vw, 2.3rem); line-height: 1.05; }
.pieces[data-view="galeri"] .piece__type { grid-area: type; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--brass-line); margin-top: 6px; }
.pieces[data-view="galeri"] .piece__actions { grid-column: 1 / -1; margin-top: 8px; }
.pieces[data-view="galeri"] .piece:hover .piece__mi { color: var(--accent-soft); }

/* rows and cards rise as they enter (JS adds .is-in; without JS or with reduced motion nothing is hidden) */
@media (prefers-reduced-motion: no-preference) {
  .is-enhanced .pieces:not(.is-static) .piece:not(.is-in) .piece__mi { transform: translateY(105%); }
  .is-enhanced .pieces:not(.is-static) .piece:not(.is-in) > p,
  .is-enhanced .pieces:not(.is-static) .piece:not(.is-in) .piece__media { opacity: 0; }
  .is-enhanced .pieces[data-view="galeri"]:not(.is-static) .piece:not(.is-in) .piece__media { transform: translateY(40px); }
  .is-enhanced .pieces .piece .piece__mi { transition: transform 1s var(--out) var(--d, 0ms), color .45s, opacity .45s; }
  .is-enhanced .pieces .piece > p { transition: opacity .9s var(--out) calc(var(--d, 0ms) + 120ms); }
  .is-enhanced .pieces .piece .piece__media { transition: opacity .9s var(--out) var(--d, 0ms), transform 1.1s var(--out) var(--d, 0ms); }
  .is-enhanced .pieces .piece.is-in .piece__mi { transition: transform .8s var(--out), color .45s, opacity .45s; }
}

/* ---------- empty ---------- */
.empty { padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.empty[hidden] { display: none; }
.empty h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 340; letter-spacing: -.02em; font-size: var(--display-3); line-height: 1.05; }
.empty p { margin: 0; max-width: 52ch; color: var(--muted); }
.empty__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- not on the list ---------- */
.ask { padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--brass-line); background: radial-gradient(50% 80% at 10% 0%, color-mix(in srgb, var(--glow) 8%, transparent), transparent 70%); }
.ask__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; }
.ask__title { margin: 0; font-size: var(--display-2); max-width: 14ch; }
.ask__side p { margin: 0; color: var(--muted); max-width: 40ch; }
.ask__side a:not(.btn) { color: var(--fg); text-underline-offset: .2em; text-decoration-color: var(--brass-line); }
.ask__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 24px; }
.ask__tel { font-family: var(--serif); font-size: 1.35rem; text-decoration: none !important; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--brass-line); }
.ask__tel:hover { border-bottom-color: var(--accent); }

/* ---------- the product sheet ---------- */
html.has-sheet { overflow: hidden; }
.sheet {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--fg); overflow: hidden;
}
.sheet::backdrop { background: rgba(6, 7, 8, .55); }
.sheet__in {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); height: 100%;
  background: var(--bg);
}
.sheet__media {
  position: relative; margin: 0; height: 100%; overflow: hidden; display: grid; place-items: center;
  padding: clamp(32px, 5vw, 80px); user-select: none; touch-action: pan-y;
  background: radial-gradient(60% 55% at 50% 42%, color-mix(in srgb, var(--glow) 14%, transparent), transparent 72%), #0A0B0D;
}
.sheet__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; -webkit-user-drag: none; }
.sheet__media.has-photo { padding: 0; }
.sheet__media.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.sheet__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(8, 9, 11, .75)); }
.sheet__credit { position: absolute; left: clamp(16px, 2.4vw, 32px); right: clamp(16px, 2.4vw, 32px); bottom: 14px; z-index: 1; }
.sheet__credit .photo-credit { display: block; margin: 0; font-size: .72rem; color: rgba(232, 235, 238, .7); }
.sheet__credit .photo-credit[hidden] { display: none; }

.sheet__body { display: flex; flex-direction: column; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: clamp(18px, 2.4vw, 32px) clamp(20px, 4.4vw, 72px) clamp(18px, 2.4vw, 28px); }
.sheet__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sheet__pos { margin: 0; font-family: var(--serif); font-size: 1.1rem; color: var(--accent-soft); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.sheet__close {
  position: relative; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(232, 235, 238, .24); background: none; color: var(--fg); cursor: pointer;
  transition: border-color .3s, transform .6s var(--out);
}
.sheet__close span::before, .sheet__close span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; margin: -.75px 0 0 -9px; background: currentColor; transform: rotate(45deg); }
.sheet__close span::after { transform: rotate(-45deg); }
.sheet__close:hover { border-color: var(--fg); transform: rotate(90deg); }
.sheet__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sheet__text { margin-block: auto; padding-block: clamp(28px, 4vh, 56px); }
.sheet__brand { margin: 0; font-size: .9rem; font-weight: 600; color: var(--muted); }
.sheet__title { margin: .12em 0 .14em; font-size: clamp(2.6rem, 1.2rem + 3.8vw, 5.6rem); line-height: .96; max-width: 12ch; }
.sheet__kind { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--accent-soft); }
.sheet__desc { margin: 20px 0 0; max-width: 46ch; color: var(--muted); line-height: 1.6; }
.sheet__rows { margin: clamp(24px, 3.4vh, 36px) 0 0; }
.sheet__row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 16px; padding: 13px 0; border-top: 1px solid var(--brass-line); }
.sheet__row:last-child { border-bottom: 1px solid var(--brass-line); }
.sheet__row dt { font-size: .85rem; color: var(--muted); }
.sheet__row dd { margin: 0; font-size: .95rem; }
.sheet__row.is-stokta dd::before, .sheet__row.is-rezerve dd::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 9px 2px 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); vertical-align: middle; }
.sheet__row.is-rezerve dd::before { background: none; border: 1px solid var(--accent); box-shadow: none; }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3.4vh, 36px); }
.sheet__note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
.sheet__share { padding: 0; border: 0; background: none; color: var(--fg); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--brass-line); text-underline-offset: .25em; }
.sheet__share:hover { text-decoration-color: var(--accent); }
.sheet__nav { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sheet__nav button {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--fg); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.sheet__nav button:disabled { opacity: .4; cursor: not-allowed; }
.sheet__nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sheet__arr { position: relative; width: 28px; height: 1px; background: currentColor; transition: width .5s var(--out); }
.sheet__arr::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.sheet__arr--prev::after { right: auto; left: 0; transform: rotate(-135deg); }
.sheet__nav button:hover .sheet__arr { width: 40px; }

@media (prefers-reduced-motion: no-preference) {
  .sheet[open] .sheet__in { animation: sheet-in .95s var(--io) both; }
  .sheet[open] .sheet__media img { animation: sheet-img 1.6s var(--out) both; }
  .sheet[open] .sheet__text > * { animation: sheet-rise 1s var(--out) both; }
  .sheet[open] .sheet__text > :nth-child(2) { animation-delay: .38s; }
  .sheet[open] .sheet__text > :nth-child(1) { animation-delay: .34s; }
  .sheet[open] .sheet__text > :nth-child(3) { animation-delay: .44s; }
  .sheet[open] .sheet__text > :nth-child(4) { animation-delay: .5s; }
  .sheet[open] .sheet__text > :nth-child(5) { animation-delay: .56s; }
  .sheet[open] .sheet__text > :nth-child(n+6) { animation-delay: .62s; }
  .sheet[open]::backdrop { animation: sheet-fade .5s both; }
  .sheet.is-closing .sheet__in { animation: sheet-out .55s var(--io) both; }
  .sheet.is-closing::backdrop { animation: sheet-fade .55s reverse both; }
  .sheet__media img, .sheet__text { transition: opacity .24s, transform .4s var(--out); }
  .sheet.is-turning .sheet__media img, .sheet.is-turning .sheet__text { opacity: 0; transform: translateX(-28px); }
  .sheet.is-turning[data-dir="prev"] .sheet__media img, .sheet.is-turning[data-dir="prev"] .sheet__text { transform: translateX(28px); }
}
@keyframes sheet-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sheet-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes sheet-img { from { transform: scale(1.14); } to { transform: none; } }
@keyframes sheet-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; margin: 0; max-width: min(92vw, 460px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: .8em 1.2em; border-radius: 999px; background: var(--surface-2); color: var(--fg); font-size: .9rem; font-weight: 600;
  border: 1px solid var(--brass-line); box-shadow: 0 12px 30px rgba(0, 0, 0, .6);
  transition: opacity .25s, transform .35s var(--out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tools__toggle { display: inline-flex; }
  .tools__toggle::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .4s var(--out); }
  .tools__toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
  .tools__more { display: none; order: 9; flex: 1 1 100%; flex-wrap: wrap; padding-top: 4px; }
  .deck.is-open .tools__more { display: flex; }
  .pieces[data-view="liste"] .piece { grid-template-columns: clamp(64px, 9vw, 104px) minmax(0, 1.6fr) minmax(0, 6fr) minmax(0, 2.6fr) minmax(0, 1.4fr); }
}
@media (max-width: 900px) {
  .cat__head { grid-template-columns: 1fr; }
  .cat__lede { margin: 0; }
  .pieces[data-view="galeri"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pieces[data-view="galeri"] .piece:nth-child(3n+2) { translate: none; }
  .pieces[data-view="galeri"] .piece:nth-child(2n) { translate: 0 clamp(28px, 6vw, 56px); }
  .sheet { overflow-y: auto; overscroll-behavior: contain; }
  .sheet__in { grid-template-columns: 1fr; height: auto; min-height: 100%; }
  .sheet__media { height: min(58vh, 520px); padding: 32px; }
  .sheet__body { height: auto; overflow: visible; position: relative; }
  .sheet__top { position: fixed; left: 0; right: 0; top: 0; padding: 14px 16px; z-index: 3; pointer-events: none; }
  .sheet__top > * { pointer-events: auto; }
  .sheet__pos { background: rgba(10, 11, 13, .55); padding: 4px 10px; border-radius: 999px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .sheet__close { background: rgba(10, 11, 13, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .sheet__text { padding-block: 26px 28px; }
  .sheet__nav { position: sticky; bottom: 0; margin: 0 calc(-1 * clamp(20px, 4.4vw, 72px)) calc(-1 * clamp(18px, 2.4vw, 28px)); padding: 12px clamp(20px, 4.4vw, 72px); background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
@media (max-width: 700px) {
  .tools__q { flex: 1 1 100%; max-width: none; border-bottom: 1px solid var(--line); }
  .tools { row-gap: 6px; }
  .tools__view button { padding: 0 11px; }
  .tools__view span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tools__view { margin-left: auto; }
  .tools__count { min-width: 0; }
  .tools__more { flex-direction: column; align-items: stretch; }
  .tools__sel select { width: 100%; max-width: none; }

  .pieces[data-view="liste"] .piece {
    grid-template-columns: 76px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; align-items: start;
    grid-template-areas: "media brand state" "media model model" "media type type";
    padding: 16px 0;
  }
  .pieces[data-view="liste"] .piece__media { align-self: start; aspect-ratio: 1; }
  .pieces[data-view="liste"] .piece__model { font-size: clamp(1.6rem, 1rem + 3vw, 2.2rem); }
  .pieces[data-view="liste"] .piece__state { flex-direction: row; gap: 10px; }
  .pieces[data-view="liste"] .piece__cond { display: none; }
  .pieces[data-view="liste"] .piece__type { flex-direction: row; flex-wrap: wrap; gap: 0 10px; align-items: baseline; margin-top: 2px; }
  .pieces[data-view="liste"] .piece__year { font-size: .9rem; }
  .pieces[data-view="liste"] .piece__actions { grid-column: 2 / -1; }

  .pieces[data-view="galeri"] { column-gap: 12px; row-gap: 36px; }
  .pieces[data-view="galeri"] .piece { grid-template-areas: "media media" "brand brand" "model model" "type type"; }
  .pieces[data-view="galeri"] .piece__state { display: none; }
  .pieces[data-view="galeri"] .piece__model { font-size: 1.35rem; }
  .pieces[data-view="galeri"] .piece__type { flex-direction: column; gap: 2px; font-size: .78rem; }
  .pieces[data-view="galeri"] .piece__actions { flex-direction: column; gap: 6px; }

  .ask__inner { grid-template-columns: 1fr; }
  .sheet__row { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); }
  .sheet__actions .btn { flex: 1 1 100%; }
}
/* reserve the selector's place before js/urunler.js fills it, so the list doesn't jump */
html.js .deck[hidden] { display: block; visibility: hidden; }
.sources__track { min-height: 1.6em; }

/* phones: asking about the piece is always one tap away, pinned above Önceki / Sonraki */
@media (max-width: 900px) {
  .sheet__actions {
    position: sticky; bottom: 58px; z-index: 2;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
    margin: 22px calc(-1 * clamp(20px, 4.4vw, 72px)) 0; padding: 10px clamp(20px, 4.4vw, 72px);
    background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .sheet__actions .btn { justify-content: center; }
}
