/* =====================================================================
   Üretici kartı — docs/UX-UI/URETICI_KARTI_SPEC.md + uretici-karti-referans.html
   Üreticiler sayfası (.prc-grid) + ana sayfa şeridi (.prc-rail) — tek bileşen (.prc)
   ===================================================================== */
.prc-grid, .prc-rail, .ts-v2 {
    --brand-800: #134d42; --brand-700: #1a6355; --brand-100: #d3e4e0; --brand-50: #e8f1ef;
    --warning-700: #8a5a00; --warning-50: #fdf3e1;
    --ink: #222222; --ink-muted: #595959; --ink-subtle: #5f6b78;
    --surface: #ffffff; --surface-sunken: #f6f5f2; --border: #e0e0e0; --divider: #eeeeee;
    --radius-lg: 16px; --radius-pill: 999px;
    --shadow-card-hover: 0 6px 20px rgba(15, 61, 52, 0.10);
    --shadow-float: 0 2px 8px rgba(0, 0, 0, 0.12);
    --font-sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-condensed: "Barlow Condensed", "Fira Sans Condensed", "Fira Sans", system-ui, sans-serif;
}

/* ---- düzenler ---- */
.prc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left; }
@media (max-width: 1180px) { .prc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .prc-grid { grid-template-columns: 1fr; gap: 12px; } }

.prc-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none; text-align: left; padding: 2px 0 4px; scroll-behavior: smooth; }
.prc-rail::-webkit-scrollbar { display: none; }
.prc-rail > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .prc-rail { grid-auto-columns: calc((100% - 20px) / 2.2); } }
@media (max-width: 640px) { .prc-rail { grid-auto-columns: 82%; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .prc-rail { scroll-behavior: auto; } }

.prc-empty { padding: 32px 16px; text-align: center; color: #595959; font-size: 15px; border: 1px dashed #e0e0e0; border-radius: 16px; }

/* ---- kart ---- */
.prc { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; font-family: var(--font-sans);
    color: var(--ink); transition: box-shadow .2s, border-color .2s; }
@media (hover: hover) { .prc:hover { box-shadow: var(--shadow-card-hover); border-color: transparent; } }
.prc__stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.prc__follow, .prc__more { position: relative; z-index: 2; }

.prc__mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--surface-sunken); }
.prc__mosaic img, .prc__mosaic span { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--surface-sunken); }

.prc__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 0 16px 14px; }
.prc__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -28px; }
.prc__id { position: relative; flex: none; width: 60px; height: 60px; }
.prc__logo { width: 60px; height: 60px; box-sizing: border-box; border-radius: 14px; border: 3px solid #fff; box-shadow: var(--shadow-float);
    object-fit: cover; display: grid; place-items: center; background: #fff; margin: 0; }
.prc__logo--initials { background: var(--brand-50); color: var(--brand-700); font: 700 18px/1 var(--font-sans); }
.prc__face { position: absolute; right: -8px; bottom: -6px; width: 28px; height: 28px; box-sizing: border-box; border-radius: var(--radius-pill);
    border: 2px solid #fff; object-fit: cover; background: #fff; }

.prc__follow { height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--brand-700); background: var(--surface);
    color: var(--brand-700); font: 600 13px/18px var(--font-sans); display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    white-space: nowrap; margin: 0; transition: background-color .15s ease; }
.prc__follow svg { width: 16px; height: 16px; }
.prc__follow:hover { background: var(--brand-50); }
.prc__follow[aria-pressed="true"] { background: var(--brand-50); border-color: var(--brand-100); }
.prc__follow[aria-pressed="true"] path { fill: currentColor; }
.prc__follow[disabled] { opacity: .7; cursor: progress; }

.prc__head { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; min-width: 0; }
.prc__name { display: flex; align-items: center; gap: 6px; min-width: 0; font: 600 21px/24px var(--font-condensed); color: var(--brand-700) !important; text-decoration: none !important; }
.prc__name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prc__name svg { flex: none; width: 17px; height: 17px; }
.prc__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.prc__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.prc-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; box-sizing: border-box; border-radius: var(--radius-pill);
    font-size: 12px; line-height: 1; font-weight: 600; white-space: nowrap; }
.prc-chip svg { width: 12px; height: 12px; }
.prc-chip--rating { background: var(--warning-50); color: var(--warning-700); }
.prc-chip--new { background: var(--surface-sunken); color: var(--ink-muted); }
.prc-chip--cert { background: var(--brand-50); color: var(--brand-700); }
.prc-chip--score { border: 1px solid var(--brand-100); color: var(--brand-700) !important; background: var(--surface); text-decoration: none !important; }
.prc-chip--score:hover { background: var(--brand-50); }

.prc__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--divider); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.prc__count { color: var(--ink-muted); }
.prc__count b { color: var(--ink); font-weight: 600; }
.prc__go { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-700); font-weight: 600; }
.prc__go svg { width: 14px; height: 14px; }
.prc a:focus-visible, .prc button:focus-visible { outline: 2px solid var(--brand-700); outline-offset: 2px; }
.prc.is-hidden-filter { display: none; }

.prc-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 10050; background: #222; color: #fff;
    padding: 10px 16px; border-radius: 10px; font: 500 14px/1.3 "Fira Sans", sans-serif; box-shadow: 0 4px 16px rgba(0,0,0,.25); }

/* =====================================================================
   Üreticiler sayfası (/top-sellers) — .ts-v2
   ===================================================================== */
.ts-v2 { max-width: 1360px; margin: 0 auto; padding: 24px 40px 56px; box-sizing: border-box; font-family: var(--font-sans); color: var(--ink); text-align: left; }
.ts-v2__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ts-v2__title { margin: 0; padding: 0; border: 0; font: 600 36px/40px var(--font-condensed); color: var(--brand-700); text-align: left; }
.ts-v2__sub { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ts-v2__sub a { color: var(--brand-700); font-weight: 600; text-decoration: underline; }
.ts-v2__sort { display: flex; align-items: center; gap: 10px; flex: none; font-size: 14px; color: var(--ink-muted); }
.ts-v2__sort select { height: 44px; min-width: 180px; padding: 0 36px 0 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
    font: 500 15px var(--font-sans); color: var(--ink); cursor: pointer; }
.ts-v2__layout { display: flex; gap: 32px; align-items: flex-start; }
.ts-v2__filters { flex: 0 0 260px; position: sticky; top: 90px; }
.ts-v2__main { flex: 1; min-width: 0; }
.ts-v2__chips { display: none; }

/* filtre paneli (mevcut widget) — yeni görünüm */
.ts-v2 .ts-filter-mobile-header, .ts-v2 .ts-filter-header, .ts-v2 .ts-filter-actions { display: none !important; }
.ts-v2 .ts-filter-content { display: block !important; padding: 0; background: none; box-shadow: none; border: 0; }
.ts-v2 .ts-filter-sidebar { background: none; box-shadow: none; border: 0; padding: 0; }
.ts-v2 .ts-filter-group { margin: 0 0 24px; padding: 0; border: 0; }
.ts-v2 .ts-filter-label { display: block; margin: 0 0 10px; font: 600 15px var(--font-sans); color: var(--ink); }
.ts-v2 .ts-filter-label svg { display: none; }
.ts-v2 .ts-filter-select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font: 400 15px var(--font-sans); color: var(--ink); }
.ts-v2 .ts-filter-checkboxes { display: flex; flex-direction: column; gap: 2px; max-height: none; }
.ts-v2 .ts-filter-checkbox { display: flex; align-items: center; gap: 10px; min-height: 36px; margin: 0; cursor: pointer; font-size: 15px; }
.ts-v2 .ts-filter-checkbox input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--brand-700); }
.ts-v2 .ts-filter-checkbox-label { display: flex; flex: 1; justify-content: space-between; gap: 8px; color: var(--ink); }
.ts-v2 .ts-filter-checkbox-count { color: var(--ink-subtle); font-size: 13px; }
.ts-v2__note { margin: -8px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-subtle); }
.ts-v2__clear { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--brand-700); }
.ts-v2.is-loading .ts-v2__main { opacity: .55; transition: opacity .15s; }

/* mobil çip satırı + alt sayfa filtre */
.ts-v2__chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; box-sizing: border-box; flex: none;
    border: 1px solid var(--border); border-radius: var(--radius-pill); background: #fff; color: var(--ink); font: 500 14px var(--font-sans);
    white-space: nowrap; cursor: pointer; text-decoration: none; }
.ts-v2__chip.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.ts-v2__chip svg { width: 16px; height: 16px; }
.ts-v2__chip:focus-visible { outline: 2px solid var(--brand-700); outline-offset: 2px; }

/* Yeşil Puan açıklaması (mevcut infografik) */
#yesil-puan { scroll-margin-top: 90px; }

@media (max-width: 900px) {
    .ts-v2 { padding: 16px 12px 110px; }   /* alttaki sabit arama çubuğu içeriği örtmesin */
    .ts-v2__layout { flex-direction: column; }
    .ts-v2__filters { display: none; position: fixed; inset: auto 0 0 0; top: auto; z-index: 10040; max-height: 82vh; overflow-y: auto;
        background: #fff; border-radius: 16px 16px 0 0; padding: 8px 16px 24px; box-shadow: 0 -8px 30px rgba(0,0,0,.2); }
    .ts-v2.is-sheet-open .ts-v2__filters { display: block; }
    .ts-v2__sheet-head { display: flex !important; }
    .ts-v2__backdrop { display: none; position: fixed; inset: 0; z-index: 10039; background: rgba(0,0,0,.4); }
    .ts-v2.is-sheet-open .ts-v2__backdrop { display: block; }
    .ts-v2__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -8px -12px 16px; padding: 0 12px 2px; }
    .ts-v2__chips::-webkit-scrollbar { display: none; }
    .ts-v2__head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 16px; }
    .ts-v2__sort select { min-width: 0; height: 40px; }
}
@media (max-width: 640px) {
    .ts-v2__title { font-size: 24px; line-height: 28px; }
}
.ts-v2__sheet-head { display: none; align-items: center; justify-content: space-between; padding: 8px 0 12px; position: sticky; top: -8px; background: #fff; z-index: 1; }
.ts-v2__sheet-head b { font: 600 18px var(--font-sans); }
.ts-v2__sheet-close { border: 0; background: none; font-size: 26px; line-height: 1; width: 40px; height: 40px; cursor: pointer; color: var(--ink); }
.ts-v2__backdrop { display: none; }
body.ts-sheet-lock { overflow: hidden; }

/* =====================================================================
   Ana sayfa bölümü — yeşil şerit, 4'lü yatay
   ===================================================================== */
.prc-band { background: #1a6355; padding: 48px 0; }
.prc-band__wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; box-sizing: border-box; text-align: left; }
.prc-band__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.prc-band__title { margin: 0; padding: 0; border: 0; font: 600 34px/38px "Barlow Condensed", "Fira Sans", sans-serif; color: #fff; text-align: left; }
.prc-band__sub { margin: 6px 0 0; font: 400 15px/1.4 "Fira Sans", sans-serif; color: #d3e4e0; }
.prc-band__nav { display: flex; align-items: center; gap: 12px; flex: none; }
.prc-band__all { color: #fff !important; font: 600 15px "Fira Sans", sans-serif; text-decoration: none !important; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.prc-band__all svg { width: 16px; height: 16px; }
.prc-band__arrow { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background-color .15s; }
.prc-band__arrow svg { width: 18px; height: 18px; }
.prc-band__arrow:not([disabled]):hover { background: rgba(255,255,255,.12); }
.prc-band__arrow--next:not([disabled]) { background: #fff; color: #1a6355; border-color: #fff; }
.prc-band__arrow[disabled] { opacity: .45; cursor: default; }
.prc-band__arrow:focus-visible, .prc-band__all:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) {
    .prc-band { padding: 32px 0; }
    .prc-band__wrap { padding: 0 12px; }
    .prc-band__title { font-size: 26px; line-height: 30px; }
    .prc-band__arrow { display: none; }
    .prc-band__head { margin-bottom: 18px; }
}
.ts-v2__chip[hidden], .prc-login-link[hidden] { display: none !important; }
