/* URUN TURU (/urun-turu/{tur}) v2 — Plan 2f754b6a, handoff_urun_turu.
   Isaretleme: Products/Views/revolution/pages/product-category-list.blade.php
   Davranis: js/pages/urun-turu.js. Kart verisi CategoryCardSpec::urunTuruVeri (kartin diger 5 kullanimi eski kartta).
   Kart ici (gorsel, karartma, beyaz baslik, haplar, serit) iki temada AYNI; sayfa yuzeyleri temaya gore.
   Serit / hap rengi kartta --utRgb ("r,g,b") olarak gelir. */

.utSayfa {
    --utKart: #20212B;
    --utAlan: #111117;
    --utKartKenar: #2A2B38;
    --utKenar: #333444;
    --utKenarG: #4E4F5C;
    --utT0: #EDEEF2;
    --utT1: #C8C9D8;
    --utT2: #ABACB5;
    --utT3: #8B8C99;
    --utNane: #80F1B1;
    --utNaneUstu: #0A2416;
    --utNaneZemin: rgba(128, 241, 177, .10);
    --utGolge: rgba(0, 0, 0, .45);
    width: 100%;
    padding: 12px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-family: "Wix Madefor Display", system-ui, sans-serif;
    color: var(--utT1);
}
body.light .utSayfa {
    --utKart: #FFFFFF;
    --utAlan: #FFFFFF;
    --utKartKenar: #E3E1D9;
    --utKenar: #E3E1D9;
    --utKenarG: #C7C5BC;
    --utT0: #1F1E1D;
    --utT1: #3D3C38;
    --utT2: #6B6A65;
    --utT3: #5F5E58;
    --utNane: #137E4C;
    --utNaneUstu: #FFFFFF;
    --utNaneZemin: rgba(19, 126, 76, .08);
    --utGolge: rgba(0, 0, 0, .18);
}

/* ---------------------------------------------------------------- baslik (K10) */
/* Baslik solda, arama sagda (Ozgur 13.11 revize); alttaki satir yalniz suzgec cipleri. */
.utBas { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utBasSol { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.utBasSatir { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.utBas h1 {
    margin: 0;
    padding: 0;
    background: none;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.2;
    color: var(--utT0);
}
.utSayac { font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--utT3); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- suzgec + arama (K5) */
.utSuzgec { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.utGrup { display: flex; flex-wrap: wrap; gap: 6px; }
.utAyrac { flex: none; width: 1px; height: 22px; margin: 0 6px; background: var(--utKenarG); }
.utCip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--utKenar);
    background: var(--utKart);
    color: var(--utT1);
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.utCip:hover { border-color: var(--utKenarG); color: var(--utT0); }
.utCipIkon { display: block; flex: none; color: var(--utCipRenk, var(--utT2)); }
.utCipSayi { font-size: 11.5px; font-weight: 800; color: var(--utT3); font-variant-numeric: tabular-nums; }
.utTurCip.secili { background: var(--utNane); border-color: var(--utNane); color: var(--utNaneUstu); font-weight: 800; }
.utTurCip.secili .utCipIkon,
.utTurCip.secili .utCipSayi { color: var(--utNaneUstu); }
.utTurCip.secili .utCipSayi { opacity: .7; }
.utBolgeCipIkonlu { padding-left: 9px; }
.utBolgeCip.secili { background: var(--utNaneZemin); border-color: var(--utNane); color: var(--utT0); font-weight: 800; }
.utCipBayrak { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; display: block; flex: none; }
.utCipKure { display: block; flex: none; color: var(--utT2); }

.utArama { position: relative; display: flex; align-items: center; width: 320px; flex: none; }
.utAramaIkon { position: absolute; left: 12px; color: var(--utT3); pointer-events: none; display: block; }
.utAramaGirdi {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 36px;
    border-radius: 12px;
    background: var(--utAlan);
    border: 1px solid var(--utKenar);
    font-family: inherit;
    font-size: 14px;
    color: var(--utT0);
    -webkit-appearance: none;
    appearance: none;
}
.utAramaGirdi::-webkit-search-cancel-button { display: none; }
.utAramaGirdi::placeholder { color: var(--utT3); }
.utAramaGirdi:focus { outline: none; border-color: var(--utNane); }
.utAramaTemizle {
    position: absolute;
    right: 3px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--utT2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.utAramaTemizle[hidden] { display: none; }
.utAramaTemizle svg { display: block; }

.utSonuc { margin-top: -4px; font-size: 13px; font-weight: 700; color: var(--utT2); }
.utSonuc[hidden] { display: none; }

.utSayfa button:focus-visible,
.utSayfa a:focus-visible { outline: 2px solid var(--utNane); outline-offset: 2px; }

/* ---------------------------------------------------------------- izgara (K11) */
.utIzgara { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.utIzgara[hidden] { display: none; }

/* ---------------------------------------------------------------- kart (K2, K9) */
.utKart {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    background: #111117;
    border: 1px solid var(--utKartKenar, #2A2B38);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.utKart[hidden] { display: none; }
.utKart:focus-visible { outline: 2px solid #80F1B1; outline-offset: 3px; }
/* Kart sayfa sarmalayicisi (.utSayfa) disinda da kullanilir (oyun sayfasi, Plan ba5016ff): degiskenlerin varsayilani kartta. */
body.light .utKart { --utKartKenar: #E3E1D9; --utGolge: rgba(0, 0, 0, .18); }
body.light .utKart:focus-visible { outline-color: #137E4C; }
.utKartGorsel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.utKartGolge {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,14,.6) 0%, rgba(10,10,14,0) 34%, rgba(10,10,14,0) 46%, rgba(10,10,14,.94) 100%);
}
.utKartLogo {
    position: absolute;
    left: 17%;
    right: 17%;
    top: 36px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.utKartLogo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.55)); }

/* Tur hapi (K3): renk satir ici, metin panelden aynen. */
.utHap {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.utHap svg { display: block; flex: none; }

.utKartBayrak {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 3;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1.5px rgba(255,255,255,.6), 0 2px 6px rgba(0,0,0,.4);
}

/* Urun ikonu + renkli serit (K4). Ikonsuz kartta ikisi de basilmaz. */
.utBand {
    position: absolute;
    left: 0;
    right: 0;
    top: 47%;
    height: 26%;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 0;
    background: radial-gradient(ellipse 58% 120% at 50% 50%, rgba(var(--utRgb), .34) 0%, rgba(var(--utRgb), .10) 40%, rgba(10,10,14,.76) 80%);
    border-top: 1px solid rgba(var(--utRgb), .38);
    border-bottom: 1px solid rgba(var(--utRgb), .38);
    border-left: 0 solid rgba(var(--utRgb), .38);
    border-right: 0 solid rgba(var(--utRgb), .38);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transition: left .35s cubic-bezier(.2,.8,.2,1), right .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), border-radius .35s ease, border-width .35s ease, opacity .35s ease;
}
.utIkon {
    position: absolute;
    left: 50%;
    top: 47%;
    transform: translate(-50%, -50%);
    width: 40%;
    max-height: 32%;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.55));
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.utKartAlt {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}
.utKartOyun {
    max-width: 100%;
    font-size: 11.5px;
    font-weight: 700;
    color: rgba(255,255,255,.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.utKartBaslik {
    max-width: 100%;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    color: #FFFFFF;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.utKartGit { margin-top: 2px; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: #80F1B1; }
.utKartGit svg { display: block; flex: none; }

/* Uzerine gelme yalniz fareli masaustunde (K9 + serit merkeze kuculme); dokunmatikte kart hep tam seritli. */
@media (hover: hover) and (min-width: 768px) {
    .utKart:hover {
        transform: translateY(-4px);
        border-color: rgba(128, 241, 177, .55);
        box-shadow: 0 14px 30px var(--utGolge, rgba(0, 0, 0, .45));
    }
    .utKart:hover .utBand {
        left: 28%;
        right: 28%;
        height: 22%;
        border-radius: 999px;
        border-left-width: 1px;
        border-right-width: 1px;
        opacity: .9;
    }
    .utKart:hover .utIkon { transform: translate(-50%, -50%) scale(.72); }
}

/* ---------------------------------------------------------------- sonuc yok */
.utBos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 16px;
    border-radius: 16px;
    background: var(--utKart);
    border: 1px solid var(--utKenar);
    text-align: center;
}
.utBos[hidden] { display: none; }
.utBosIkon { color: var(--utT3); display: flex; }
.utBosIkon svg { display: block; }
.utBosBaslik { font-size: 15px; font-weight: 800; color: var(--utT0); }
.utBosDugme {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--utKenarG);
    background: transparent;
    color: var(--utT1);
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}
.utBosDugme:hover { color: var(--utT0); border-color: var(--utT3); }

/* ---------------------------------------------------------------- kirilimlar (K11) */
@media (max-width: 1199.98px) { .utIzgara { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 991.98px) {
    .utIzgara { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .utArama { width: 280px; }
}
@media (max-width: 767.98px) {
    .utSayfa { gap: 16px; padding: 4px 0 4px; }
    .utBas h1 { font-size: 26px; }
    .utBas { flex-direction: column; align-items: stretch; gap: 12px; }
    /* Mobilde suzgec tek satir, yatay kayar (K5). */
    .utSuzgec {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5);
        padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5) 2px;
    }
    .utSuzgec::-webkit-scrollbar { display: none; }
    .utGrup { flex-wrap: nowrap; }
    .utCip { height: 40px; }
    .utArama { width: 100%; }
    .utAramaGirdi { height: 46px; font-size: 16px; }
    .utAramaTemizle { width: 44px; height: 44px; right: 1px; }
    .utIzgara { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .utKart { border-radius: 14px; }
    .utKartLogo { top: 30px; height: 32px; }
    .utHap { left: 8px; top: 8px; height: 20px; font-size: 9.5px; }
    .utKartBayrak { right: 8px; top: 8px; width: 18px; height: 18px; }
    .utKartAlt { padding: 10px 10px 11px; }
    .utKartOyun { font-size: 10.5px; }
    .utKartBaslik { font-size: 13px; }
    .utKartGit { font-size: 11px; }
    .utBosDugme { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .utKart, .utBand, .utIkon { transition: none; }
    .utKart:hover { transform: none; }
}
