/* Cila turu: marka simgeleri ve motiflerin bağlandığı yerler, alt bilgi akordeonu, tek güvence şeridi, kod aramasında
   "Diğer sonuçlar", koyu temada ölçülü ışıma. site.css ve brand-motifs.css'ten sonra yüklenir; yalnızca site.css belirteçlerini kullanır. */

/* ================================================================ Kategori simgeleri */
.nav a .ico { flex: none; width: 18px; height: 18px; }
.nav a:not(.all):not(.katalog) .ico { color: var(--cyan-d); }
.nav .wrap { gap: 2px; }
.nav a { gap: 7px; padding: 0 14px; }
@media (max-width: 1399px) {
    .nav a:not(.all):not(.katalog) .ico { display: none; }
}
.vchips .vchip .ico { flex: none; width: 16px; height: 16px; color: var(--cyan-d); }
.vchips .vchip[aria-current="page"] .ico { color: inherit; }

/* ================================================================ Motifler */
.sec-title .yf-divider-pleat { width: 72px; margin: 8px 0 0; }
.sec-title p { margin-top: 8px; }
.vf-head.yf-bg-flow { --yf-flow-pos: 78% 46%; }
.vf-head.yf-bg-flow::after { display: none; }
.vf-state.is-loading .vf-state-spin { --yf-spinner-size: 26px; grid-column: 1 / -1; justify-self: center; margin: 2px 0 4px; }
.vf-vin-out .yf-spinner { margin-right: 4px; }

/* Katalog: "… aranıyor / yükleniyor" metinlerinde pile diski (stock.js .yf-busy ekler) */
.catalog-app .yf-busy::before {
    content: "";
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    margin-right: .5em;
    vertical-align: -.22em;
    background-color: var(--cyan);
    -webkit-mask: url("../img/brand/motif/spinner.svg") center / contain no-repeat;
    mask: url("../img/brand/motif/spinner.svg") center / contain no-repeat;
    animation: yf-spin .9s steps(8) infinite;
}
/* Katalog muadil kodları: kod etiketi tipografisi ve sol şerit (yalnızca CSS; app.js işaretlemesi aynı) */
.catalog-app .mcode { border-left: 2px solid var(--cyan); border-radius: 3px 6px 6px 3px; font-variant-numeric: tabular-nums slashed-zero; font-feature-settings: "tnum" 1, "zero" 1; letter-spacing: .04em; }
.catalog-app .mcode.has-stock { border-left-color: var(--success); }
.catalog-app .mcode.unv { border-left-color: var(--line-2); border-left-style: dashed; }

/* ================================================================ Kod etiketi ve boş durumlar */
.empty-state b .yf-code, .smatch-text .yf-code { font-size: .85em; vertical-align: .05em; }
.quote-done p .yf-code { margin-right: 2px; vertical-align: 1px; }

/* ================================================================ Kod araması: "Diğer sonuçlar" */
.others { margin: 4px 0 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.others > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 18px; list-style: none; cursor: pointer; }
.others > summary::-webkit-details-marker { display: none; }
.others > summary b { display: block; color: var(--heading); font-size: 15px; }
.others > summary small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.others > summary:hover b { color: var(--cyan-d); }
.others-caret { flex: none; color: var(--muted); transition: transform .2s; }
.others[open] > summary { border-bottom: 1px solid var(--line); }
.others[open] .others-caret { transform: rotate(90deg); }
.others > .layout { padding: 16px; }
@media (max-width: 640px) {
    .others > summary { padding: 10px 14px; }
    .others > .layout { padding: 12px; }
}

/* ================================================================ Liste / arama: süzgeçler, sıralama, az sonuç, ızgara */
.layout { grid-template-columns: 244px minmax(0, 1fr); gap: 20px; }
.filters .f-head { padding: 12px 14px 10px; }
.filters .fgroup { padding: 12px 14px; }
.fgroup legend { margin-bottom: 8px; font-size: 13px; }
.fcheck { gap: 8px; padding: 3px 0; font-size: 13px; }
.fcheck small { font-size: 11px; }
.fgroup .fcheck + .fcheck { margin-top: -1px; }
.sort-wrap { display: inline-flex; align-items: center; gap: 8px; padding: 2px 4px 2px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sort-wrap:focus-within { border-color: var(--line-strong); box-shadow: var(--focus); }
.sort-wrap .sort-l { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.sort-wrap .sort-select { width: auto; min-width: 9.5rem; max-width: min(42vw, 220px); height: 36px; padding-right: 32px; border: 0; background-color: transparent; font-size: 13px; font-weight: 600; }
.sort-wrap .sort-select:not([data-sort-default]) { color: var(--cyan-ink); }
.results-few { margin: -4px 0 12px; padding: 10px 14px; border: 1px solid var(--cyan-line); border-radius: var(--radius); background: var(--cyan-l); color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.grid-products { align-items: stretch; }
.pcard { height: 100%; }
.store .crumbs { gap: 4px 6px; padding: 14px 0 12px; font-size: 12.5px; }
.store .crumbs-sep { color: var(--soft); user-select: none; }
.store .crumbs [aria-current] { max-width: min(46vw, 320px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { gap: 8px; padding: 36px 20px; }
.empty-state.compact { padding: 28px 16px; }
@media (max-width: 900px) {
    .sort-wrap { flex: 1 1 auto; justify-content: flex-end; max-width: 100%; }
    .sort-wrap .sort-select { flex: 1; max-width: none; min-width: 0; }
    .store .toolbar .right { flex: 1 1 100%; justify-content: space-between; }
}
@media (max-width: 640px) {
    .filters .fgroup { padding: 10px 14px; }
    .results-few { font-size: 12.5px; }
}

/* ================================================================ Ürün sayfası: galeri, set, kodlar, yapışkan çubuk */
.noimg--pd small { max-width: 16ch; line-height: 1.35; }
.pd-set-strip { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); font-size: 13px; }
.pd-set-ico { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--cyan-l); color: var(--cyan-ink); }
.pd-set-txt { display: grid; gap: 2px; min-width: 0; }
.pd-set-txt b { color: var(--heading); font-size: 13px; }
.pd-set-txt span { color: var(--muted); line-height: 1.4; }
.pd-set-table { width: 100%; margin: 12px 0 0; border-collapse: collapse; font-size: 13px; }
.pd-set-table th, .pd-set-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pd-set-table th { color: var(--muted); font-size: 12px; font-weight: 700; background: var(--surface-2); }
.pd-trust-ship { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); font-size: 13px; line-height: 1.45; }
.pd-trust-links { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 8px 0 0; font-size: 13px; }
.pd-trust-links a { color: var(--cyan-ink); font-weight: 600; text-decoration: none; }
.pd-trust-links a:hover { text-decoration: underline; }
.rv-pd .rv-note { margin: 0 0 12px; }
.smatch-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 12px; padding: 0; list-style: none; color: var(--muted); font-size: 12.5px; }
.smatch-legend .chip { margin-right: 4px; vertical-align: middle; }
.specs-codes { border-color: var(--line-2); }
.specs-codes dt { font-size: 12.5px; }
.specs-codes dd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; font-variant-numeric: tabular-nums slashed-zero; font-feature-settings: "tnum" 1, "zero" 1; letter-spacing: .02em; text-align: right; }
.pd-facts dl { font-size: 13px; }
@media (max-width: 768px) {
    .buybar-p { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "price stock" "name name"; column-gap: 8px; }
    .buybar-p b { grid-area: price; }
    .buybar-p small { grid-area: stock; justify-self: end; }
    .buybar-p::after { content: attr(data-name); grid-area: name; overflow: hidden; color: var(--muted); font-size: 11.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
}

/* Liste: araç seçimi bulucuya taşındı */
.fvehicle b { display: block; margin: 0 0 4px; color: var(--heading); font-size: 14px; }
.fvehicle p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.fvehicle .btn { gap: 8px; }

/* ================================================================ Temsili görsel notu (partials/representative-note.php) */
.rep-note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 8px 12px; border: 1px solid var(--cyan-line); border-radius: var(--radius); background: var(--cyan-l); color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }
.rep-note .ico { flex: none; margin-top: 1px; color: var(--cyan-ink); }

/* ================================================================ Üst şerit ve başlık */
.topbar .tb-side > span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .tb-side .ico { color: var(--cyan-d); }
@media (max-width: 900px) {
    .topbar:not(:has(.tb-mid)) { display: none; }
    /* Bildirim zili kapalıyken başlıkta tek simge kalır; logo ortada, yan sütunlar daralır */
    .header .wrap:not(:has(.notify)) { grid-template-columns: 52px minmax(0, 1fr) 52px; }
}

/* ================================================================ Alt bilgi: sütunlar, dar ekranda hap akordeon */
.footer .fcol { min-width: 0; }
.footer .fcol > summary { display: block; list-style: none; cursor: default; }
.footer .fcol > summary::-webkit-details-marker { display: none; }
.footer .f-caret { display: none; }
@media (max-width: 640px) {
    .footer .f-brand { padding: 24px 0 14px; }
    .footer .f-contact { flex-direction: column; align-items: stretch; gap: 8px; }
    .footer .f-contact li { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
    .footer .f-contact li + li { border-left: 1px solid var(--line); }
    .footer .cols { display: grid; gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; }
    [data-theme="dark"] .footer .cols { background-image: none; box-shadow: none; }
    .footer .fcol, .footer .fcol + .fcol { padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
    .footer .fcol > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; cursor: pointer; }
    .footer .fcol > summary h2 { margin: 0; padding: 0; border: 0; }
    .footer .fcol > summary:focus-visible { outline-offset: -2px; }
    .footer .f-caret { display: block; color: var(--cyan-d); transform: rotate(90deg); transition: transform .2s; }
    .footer .fcol[open] .f-caret { transform: rotate(-90deg); }
    .footer .fcol ul { gap: 2px; padding: 0 0 14px; }
    .footer .fcol ul a { display: inline-block; padding: 6px 0; }
}

/* ================================================================ Ürün kartı + PDP görsel cila (katalog/arama sayfalarına dokunulmaz) */
.grid-products { gap: 18px; }
.pcard {
    padding: 0;
    border-color: color-mix(in srgb, var(--line) 88%, var(--navy) 12%);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 8px 22px -18px rgba(15, 23, 42, .28);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pcard:hover {
    border-color: color-mix(in srgb, var(--cyan-line) 70%, var(--navy) 30%);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 16px 32px -20px rgba(15, 23, 42, .38);
    transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
    .pcard, .pcard:hover { transition: none; transform: none; }
}
.pcard .disc { top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(240, 122, 12, .28); }
/* Kart görsel alanı: foto olsun/olmasın aynı kutu (aspect-ratio + max-height genişliği daraltabiliyordu) */
.pcard .img {
    display: grid;
    place-items: center;
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
    height: 168px;
    min-height: 168px;
    max-height: 168px;
    margin: 0;
    padding: 12px 14px;
    overflow: hidden;
    border-radius: 13px 13px 0 0;
    flex-shrink: 0;
    background:
        radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--cyan-l) 45%, transparent), transparent 62%),
        linear-gradient(180deg, var(--surface-2), var(--img-well));
}
.pcard .img img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .28s ease;
}
.pcard:hover .img img { transform: scale(1.03); }
.pcard .noimg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    place-self: center;
    color: var(--soft);
}
.pcard .noimg .ico { width: 36px; height: 36px; opacity: .5; }
.pcard .noimg small { font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.pcard .body { gap: 6px; padding: 12px 14px 14px; }
.pcard .pc-id { gap: 6px 10px; }
.pcard .brand { font-size: 11px; letter-spacing: .06em; }
.pcard .name {
    min-height: 2.7em;
    margin: 0;
    color: var(--heading);
    font-size: 14.5px;
    font-weight: 650;
    line-height: 1.35;
    text-wrap: pretty;
}
.pcard .name:hover { color: var(--cyan-ink); text-decoration: none; }
.pcard .spec { min-height: 0; color: var(--muted); font-size: 12.5px; }
.pcard .meta { gap: 6px 10px; min-height: 0; }
.pcard .meta .chip { font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.pcard .meta .chip::before { width: 6px; height: 6px; }
.pcard .fitq {
    justify-content: flex-start;
    gap: 6px;
    margin-top: 4px;
    padding: 6px 0 2px;
    border-bottom: 0;
    color: var(--cyan-ink);
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}
.pcard .fitq:hover { color: var(--cyan-d); text-decoration: underline; text-underline-offset: 2px; }
.pcard .fitok { margin-top: 4px; align-self: flex-start; }
.pcard-foot {
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}
.pcard .price { gap: 4px 8px; }
.pcard .price .now { font-size: 19px; font-weight: 800; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.pcard .price .old { font-size: 12.5px; }
.pcard .price-vat { margin-top: 0; color: var(--soft); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.pcard .add { height: 44px; border-radius: 10px; font-size: 13.5px; font-weight: 750; }
.pcard .btn-line.add { border-width: 1.5px; }

/* PDP layout lives in form-1.css (retail gallery + buy column). */
@media (max-width: 980px) {
    .pcard .img { height: 152px; min-height: 152px; max-height: 152px; padding: 12px; }
    .pcard .body { padding: 12px; }
    .pcard .name { font-size: 13.5px; }
    .pcard .add { height: 42px; }
}
@media (max-width: 640px) {
    .grid-products { gap: 12px; }
    .pcard:hover { transform: none; }
    .pcard .fitq { font-size: 12px; }
    .pcard .img { height: 136px; min-height: 136px; max-height: 136px; }
}

/* ================================================================ Koyu tema: metalik geçiş ve camgöbeği ışıma bir kademe azaltıldı.
   Işıma yalnızca odak ve etkin (basılı/seçili) durumlarda; yazı/zemin renkleri değişmedi (WCAG AA aynı). */
[data-theme="dark"] {
    --metal: linear-gradient(180deg, #2A2E35 0, #262A30 140px, #25292F 100%);
    --metal-bar: linear-gradient(180deg, #292D34, #24272D);
    --sheen: inset 0 1px 0 rgba(255, 255, 255, .035);
    --glow: 0 0 0 1px rgba(34, 199, 238, .32), 0 4px 12px rgba(34, 199, 238, .16);
    --focus: 0 0 0 3px rgba(34, 199, 238, .45), 0 0 8px rgba(34, 199, 238, .14);
}
[data-theme="dark"] .nav .all { background: linear-gradient(180deg, #363B44, #31353E); }
[data-theme="dark"] .d-hero { background: linear-gradient(135deg, #343941, #2A2E35 70%); }
[data-theme="dark"] .mcode { background: linear-gradient(180deg, #2D3139, #2A2E35); }
[data-theme="dark"] .btn-primary, [data-theme="dark"] .search button, [data-theme="dark"] .button:not(.secondary):not(.ghost) { background: linear-gradient(180deg, #33CDF1, #22C7EE); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
[data-theme="dark"] .btn-primary:hover, [data-theme="dark"] .search button:hover, [data-theme="dark"] .button:not(.secondary):not(.ghost):hover { background: #33CDF1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(61, 211, 245, .35); }
[data-theme="dark"] .btn-primary:is(:focus-visible, :active), [data-theme="dark"] .search button:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), var(--glow); }
[data-theme="dark"] .theme-switch[aria-checked="true"] .ts-thumb { box-shadow: 0 0 0 1px rgba(34, 199, 238, .45), 0 0 6px rgba(34, 199, 238, .28); }
[data-theme="dark"] .bottom-nav .kat .ico { box-shadow: 0 0 0 1px rgba(34, 199, 238, .28), 0 4px 12px rgba(0, 0, 0, .35); }
[data-theme="dark"] .vtabs button[aria-selected="true"] { background: linear-gradient(180deg, #31363F, #2C3037); box-shadow: var(--sheen), 0 0 0 1px rgba(34, 199, 238, .4); }
[data-theme="dark"] .catalog-v2 .stabs .tab[aria-selected="true"] { color: var(--heading); box-shadow: 0 4px 12px -10px rgba(34, 199, 238, .35), inset 0 -2px 0 var(--cyan); }
[data-theme="dark"] .catalog-v2 .stabs .tab[aria-selected="true"] .ico { color: var(--cyan); }
[data-theme="dark"] .catalog-app:not(.catalog-v2) .stabs .tab[aria-selected="true"] { box-shadow: 0 4px 10px -8px rgba(34, 199, 238, .4); }
[data-theme="dark"] .fchip[aria-pressed="true"], [data-theme="dark"] .pages a[aria-current] { box-shadow: none; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    [data-theme="dark"] :is(.sec-head h2, .block > h2) { background: linear-gradient(180deg, #FFFFFF 30%, #CDD3DB); -webkit-background-clip: text; background-clip: text; }
}
[data-theme="dark"] .others { background-image: var(--metal); box-shadow: var(--sheen); }

/* Çerez bilgilendirmesi: onay istemez, içeriği kapatmaz; kapatılınca bu tarayıcıda politika sürümü değişene kadar gösterilmez. */
.cookie-note { position: fixed; bottom: 18px; left: 18px; z-index: 45; display: flex; align-items: flex-start; gap: 12px; max-width: 460px; padding: 14px 14px 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); font-size: 13.5px; line-height: 1.5; box-shadow: var(--shadow); }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; }
.cookie-note a { font-weight: 600; }
.cookie-note .btn { flex: none; height: 36px; padding: 0 14px; font-size: 13px; }
@media (max-width: 980px) {
    .cookie-note { right: 76px; bottom: calc(76px + env(safe-area-inset-bottom)); left: 10px; max-width: none; padding: 12px; font-size: 13px; }
}

/* Çerez onayı (GA4/Meta açıkken): Reddet ve Kabul Et aynı boyut ve görünümde; Ayarlar aynı boyutta çerçeveli. */
.consent-bar { position: fixed; right: 18px; bottom: 18px; left: 18px; z-index: 60; display: flex; align-items: center; gap: 20px; max-width: 1180px; margin: 0 auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.5; box-shadow: var(--shadow); }
.consent-bar[hidden] { display: none; }
.consent-text { flex: 1; min-width: 0; }
.consent-text h2 { margin: 0 0 4px; font-size: 15px; }
.consent-text p { margin: 0; }
.consent-actions { display: flex; flex: none; gap: 10px; }
.consent-btn { min-width: 128px; border-color: var(--cyan-d); background: var(--cyan-d); color: #fff; }
.consent-btn:hover { filter: brightness(1.08); }
.consent-btn-alt { background: var(--surface); color: var(--text); }
.consent-btn-alt:hover { filter: none; background: var(--cyan-l); }
.consent-dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.5; box-shadow: var(--shadow); }
.consent-dlg::backdrop { background: rgba(10, 20, 35, .55); }
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cd-head h2 { margin: 0; font-size: 18px; }
.cd-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--radius); background: none; color: inherit; cursor: pointer; }
.cd-x:hover { background: var(--cyan-l); }
.cd-intro { margin: 8px 0 12px; }
.cd-cat { padding: 12px 0; border-top: 1px solid var(--line); }
.cd-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cd-row h3 { margin: 0 0 2px; font-size: 15px; }
.cd-row p { margin: 0; color: var(--muted); font-size: 13px; }
.cd-sw { display: flex; flex: none; align-items: center; gap: 8px; padding-top: 2px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.cd-sw input { width: 20px; height: 20px; margin: 0; accent-color: var(--cyan-d); }
.cd-sw input:disabled { cursor: not-allowed; }
.cd-actions { flex-wrap: wrap; margin-top: 16px; }
.cd-actions .btn { flex: 1 1 140px; }
.footer .f-cookie { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (max-width: 980px) {
    .consent-bar { right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); left: 10px; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; font-size: 13px; }
    .consent-actions { gap: 8px; }
    .consent-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; }
    .cd-actions { flex-direction: column; }
    .cd-actions .btn { flex: none; }
}
