/* ==========================================================================
   Ürün aileleri (anasayfa ve /urunler, Views/Urunler/_UrunIzgarasi.cshtml): NFC Kart, Föylük, Yapışkanlı Folyo.
   Tasarım: MOCKUP/2026-11-03_anasayfa-urunler. Renk, boşluk ve yazı tokenlar.css'ten; aşağıdakiler bileşen tokenları.
   ========================================================================== */
:root {
    --secenek-oran: 16 / 10;
    --ozel-zemin: linear-gradient(150deg, var(--t-lacivert-700) 0%, var(--t-celik-700) 100%);
    --masa-ust: var(--zemin-vurgu);
    --masa-yuzey: #DCEAF0;
    --yakinda-zemin: var(--t-amber-100);
    --yakinda-metin: #92400E;
}

.bolum-bas--urunler { margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem); }

/* ---------- Aile seçici: yapışkan, bölüme atlar ---------- */
.aile-secici {
    position: sticky;
    top: calc(var(--ust-yukseklik) + 10px);
    z-index: 20;
    display: flex;
    gap: .35rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
    padding: .35rem;
    border: 1px solid var(--cizgi);
    border-radius: var(--t-yaricap-tam);
    background: rgb(255 255 255 / .92);
    backdrop-filter: blur(8px);
    box-shadow: var(--golge-1);
}
.aile-cip {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 46px;
    padding: .3rem 1rem .3rem .35rem;
    border-radius: var(--t-yaricap-tam);
    color: var(--metin);
    font: 600 .95rem/1.2 var(--yazi-baslik);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--t-sure-hizli), color var(--t-sure-hizli);
}
.aile-cip:hover { background: var(--zemin-yumusak); }
.aile-cip[aria-current="true"] { background: var(--metin); color: #fff; }
.aile-cip-ikon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--zemin-vurgu); color: var(--birincil-bas); font-size: 1.05rem; }
.aile-cip[aria-current="true"] .aile-cip-ikon { background: rgb(255 255 255 / .16); color: #fff; }
.ikon-foyluk { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* ---------- Aile ---------- */
.aile { scroll-margin-top: calc(var(--ust-yukseklik) + 84px); }
.aile + .aile { margin-top: clamp(2.5rem, 1.8rem + 2.5vw, 4rem); }
.aile-ust { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem 1rem; margin-bottom: 1.15rem; }
.aile-ikon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--zemin-vurgu); color: var(--birincil-bas); font-size: 1.55rem; }
.aile-ad { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); font-weight: 700; }
.aile-metin p { margin-top: .2rem; color: var(--metin-ikincil); }
.aile-ozellik { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.aile-ozellik li { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: var(--t-yaricap-tam); background: var(--zemin-yumusak); font: 600 .875rem/1.2 var(--yazi-baslik); white-space: nowrap; }
.aile-ozellik i { color: var(--birincil); }

/* ---------- Seçenek kartları: başlıktaki bağlantı tüm kartı kaplar ---------- */
.secenekler { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--urun-bosluk); }
.secenekler--iki { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.secenekler--iki .secenek-gorsel { aspect-ratio: 2 / 1; }
.secenek {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--cizgi);
    border-radius: var(--kart-yaricap);
    background: #fff;
    color: var(--metin);
    overflow: hidden;
    transition: border-color var(--t-sure-orta), box-shadow var(--t-sure-orta), translate var(--t-sure-orta) var(--t-egri);
}
.secenek--bagli:hover { border-color: var(--birincil); box-shadow: var(--golge-2); translate: 0 -3px; }
.secenek--bagli:has(.secenek-baglanti:focus-visible) { outline: 3px solid var(--odak); outline-offset: 3px; }
.secenek-baglanti { color: inherit; text-decoration: none; }
.secenek-baglanti::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.secenek-baglanti:focus-visible { outline: none; }
.secenek-gorsel { position: relative; display: grid; place-items: center; aspect-ratio: var(--secenek-oran); background: var(--zemin-vurgu); overflow: hidden; container-type: inline-size; }
.secenek-gorsel--masa { background: var(--masa-ust); }
.secenek-govde { display: flex; flex-direction: column; flex: 1; gap: .4rem; padding: clamp(.9rem, .6rem + 1vw, 1.25rem); }
.secenek-tur { color: var(--birincil-ust); font: 700 .75rem/1 var(--yazi-baslik); letter-spacing: .1em; text-transform: uppercase; }
.secenek-ad { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; font: 600 clamp(1.05rem, .95rem + .45vw, 1.3rem)/1.25 var(--yazi-baslik); letter-spacing: -.01em; }
.rozet { padding: .22rem .55rem; border-radius: var(--t-yaricap-tam); background: var(--zemin-vurgu); color: var(--birincil-bas); font: 600 .75rem/1.2 var(--yazi-baslik); letter-spacing: 0; }
.secenek-aciklama { color: var(--metin-ikincil); font-size: .94rem; line-height: 1.45; }
.secenek-indirim { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .65rem; border-radius: var(--t-yaricap-tam); background: #DCFCE7; color: var(--basari); font: 700 .82rem/1.25 var(--yazi-baslik); }
.secenek-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem .75rem; margin-top: auto; padding-top: .8rem; }
.secenek-fiyat { font: 700 1.25rem/1.2 var(--yazi-baslik); }
.secenek-fiyat small { font: 600 .85rem/1.2 var(--yazi-govde); color: var(--metin-ikincil); }
.secenek-fiyat--bos { color: var(--metin-ikincil); font-size: 1rem; }
.secenek-yakinda { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border: 1.5px dashed var(--cizgi-guclu); border-radius: var(--dugme-yaricap); color: var(--metin-ikincil); font: 600 .9rem/1 var(--yazi-baslik); }

/* Kategori ve tasarım sayısı */
.secenek-sayi { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .4rem; font: 600 .95rem/1.3 var(--yazi-baslik); }
.secenek-sayi > span:not(.ayrac) { white-space: nowrap; }
.secenek-sayi strong { color: var(--birincil-bas); font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.secenek-sayi .ayrac { color: var(--cizgi-guclu); }
.secenek-sayi--yakinda { align-self: flex-start; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: var(--t-yaricap-tam); background: var(--yakinda-zemin); color: var(--yakinda-metin); font-size: .875rem; }
.kat-serit { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .15rem; padding: 0; list-style: none; }
.kat-serit li { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .5rem .18rem .2rem; border: 1px solid var(--cizgi); border-radius: var(--t-yaricap-tam); font: 700 .78rem/1 var(--yazi-baslik); font-variant-numeric: tabular-nums; }
.kat-ikon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--kat-renk); background-image: var(--kat-gecis, none); color: #fff; font-size: .66rem; }

/* Özel tasarım: koyu kart, WhatsApp'tan teklif */
.secenek--ozel { border-color: transparent; background: var(--ozel-zemin); color: #fff; }
.secenek--ozel:hover { border-color: var(--vurgu); }
.secenek--ozel .secenek-gorsel { background: radial-gradient(circle at 72% 18%, rgb(143 227 233 / .3), transparent 62%); }
.secenek--ozel .secenek-tur { color: var(--vurgu); }
.secenek--ozel .secenek-aciklama { color: rgb(255 255 255 / .8); }
.ozel-sekil { position: relative; display: grid; place-items: center; border: .45cqw dashed rgb(255 255 255 / .7); background: rgb(255 255 255 / .07); color: #fff; font: 600 4.4cqw/1 var(--yazi-baslik); }
.ozel-sekil span { display: inline-flex; align-items: center; gap: 1.6cqw; }
.ozel-sekil--folyo { width: 54cqw; aspect-ratio: 11 / 7; border-radius: 5cqw; }

/* Kendin Tasarla Föylük: noktalı plaka + karekod, solda renk ve desen seçimleri */
.foyluk-sahne--kendin .foyluk { left: 50%; bottom: 7cqw; width: 50cqw; translate: -50% 0; }
.foyluk-tasarim { position: relative; display: grid; place-items: center; aspect-ratio: 1299 / 827; background-color: #F4EFE6; background-image: radial-gradient(circle, #10294A 1cqw, transparent 1.15cqw); background-size: 5cqw 4.3cqw; background-position: 2.5cqw 2.1cqw; }
.foyluk-qr { display: grid; place-items: center; width: 36%; padding: 1.4cqw; background: #fff; }
.foyluk-qr svg { display: block; width: 100%; height: auto; }
.foyluk-secimler { position: absolute; left: 5cqw; top: 50%; display: grid; gap: 1.6cqw; margin: 0; padding: 0; list-style: none; translate: 0 -50%; }
.foyluk-secim { width: 7cqw; height: 7cqw; border-radius: 1.4cqw; background: var(--z, #fff); box-shadow: 0 0 0 .3cqw rgb(16 41 74 / .14), 0 .6cqw 1.2cqw rgb(16 41 74 / .12); }
.foyluk-secim--secili { box-shadow: 0 0 0 .5cqw var(--birincil), 0 .6cqw 1.2cqw rgb(16 41 74 / .12); }
.foyluk-secim--cizgi { background: repeating-linear-gradient(45deg, #317590 0 .7cqw, #fff .7cqw 2.2cqw); }
.foyluk-secim--altigen { background: #fff radial-gradient(circle, transparent 1.3cqw, #047857 1.4cqw, #047857 1.7cqw, transparent 1.8cqw); background-size: 3.6cqw 3.6cqw; }

/* ---------- Görseller ---------- */
/* Sahne: 16/10 kutu, uzun görselde (telefon satırı) dikeyde ortalı */
.gorsel-sahne { position: absolute; left: 0; right: 0; top: 50%; z-index: 0; aspect-ratio: var(--secenek-oran); translate: 0 -50%; }

.gorsel-yelpaze { position: relative; width: 72%; aspect-ratio: var(--kart-oran); }
.secenekler--iki .gorsel-yelpaze { width: 60%; }
.gorsel-yelpaze img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--kart-kose); box-shadow: var(--kart-golge); background: #fff; }
.gorsel-yelpaze img:nth-child(1) { translate: -19% -3%; rotate: -8deg; scale: .84; }
.gorsel-yelpaze img:nth-child(2) { translate: 19% -3%; rotate: 8deg; scale: .84; }
.gorsel-yelpaze img:nth-child(3) { translate: 0 7%; scale: .88; }

.gorsel-kart { position: relative; width: 60%; aspect-ratio: var(--kart-oran); container-type: inline-size; }
.secenekler--iki .gorsel-kart { width: 52%; }
.gorsel-kart img { width: 100%; height: 100%; border-radius: var(--kart-kose); box-shadow: var(--kart-golge); }
.gorsel-yazi { position: absolute; left: 44%; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--yazi-baslik); font-weight: 600; }
.gorsel-yazi--ana { top: 44%; color: var(--t-lacivert-700); font-size: 8.3cqw; }
.gorsel-yazi--alt { top: 60%; color: var(--t-celik-500); font-size: 3.8cqw; }
.gorsel-logo { position: absolute; left: 17%; top: 22%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 17cqw; height: 17cqw; border: .35cqw dashed var(--birincil); border-radius: 2cqw; color: var(--birincil-ust); font: 600 3.4cqw/1 var(--yazi-baslik); }

/* Föylük: L tipi şeffaf pleksi, masa üstünde; masa yüzeyi sahnenin %70'inden görselin sonuna uzanır */
.foyluk-sahne::before { content: ""; position: absolute; left: 0; right: 0; top: 70%; z-index: -1; height: 200%; background: var(--masa-yuzey); }
.foyluk { position: absolute; filter: drop-shadow(0 1.2cqw 1.6cqw rgb(16 41 74 / .2)); }
.foyluk-plaka {
    position: relative;
    padding: 3.5%;
    border-radius: .5cqw;
    background: linear-gradient(160deg, rgb(255 255 255 / .8), rgb(255 255 255 / .4));
    box-shadow: inset 0 0 0 .25cqw rgb(255 255 255 / .95), 0 0 0 .2cqw rgb(16 41 74 / .14);
    transform: perspective(70cqw) rotateX(5deg);
    transform-origin: 50% 100%;
}
.foyluk-plaka::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(112deg, transparent 36%, rgb(255 255 255 / .42) 45%, transparent 55%); pointer-events: none; }
.foyluk-plaka img { display: block; width: 100%; height: auto; }
.foyluk-ayak { display: block; height: 3.4cqw; margin-inline: -7%; background: linear-gradient(to bottom, rgb(255 255 255 / .95), rgb(214 234 241 / .55)); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.foyluk-sahne--yatay .foyluk:nth-child(1) { left: 7cqw; bottom: 15cqw; width: 42cqw; }
.foyluk-sahne--yatay .foyluk:nth-child(2) { right: 7cqw; bottom: 6cqw; width: 53cqw; }
.foyluk-sahne--dikey .foyluk { bottom: 7cqw; width: 23cqw; }
.foyluk-sahne--dikey .foyluk:nth-child(1) { left: 18cqw; bottom: 11cqw; width: 20cqw; }
.foyluk-sahne--dikey .foyluk:nth-child(2) { left: 39cqw; }
.foyluk-sahne--dikey .foyluk:nth-child(3) { left: 63cqw; bottom: 11cqw; width: 20cqw; }

/* Yapışkanlı folyo: beyaz kesim paylı etiket gibi */
.yapiskan, .yapiskan-yuz { border-radius: 1.2cqw; outline: .7cqw solid #fff; box-shadow: 0 .5cqw 1.2cqw .4cqw rgb(16 41 74 / .16); }
.yapiskan { position: absolute; display: block; height: auto; }
.yapiskan--yatay { left: 9cqw; top: 15cqw; width: 50cqw; rotate: -4deg; }
.yapiskan--dikey { right: 11cqw; top: 8cqw; width: 25cqw; rotate: 5deg; }
.yapiskan-ornek { position: absolute; margin: 0; }
.yapiskan-ornek--yatay { left: 7cqw; top: 13cqw; width: 50cqw; }
.yapiskan-ornek--dikey { right: 9cqw; top: 6cqw; width: 25cqw; }
.yapiskan-yuz { position: relative; overflow: hidden; background: #fff; container-type: inline-size; }
.yapiskan-ornek--yatay .yapiskan-yuz { aspect-ratio: 11 / 7; }
.yapiskan-ornek--dikey .yapiskan-yuz { aspect-ratio: 7 / 11; border-radius: 0; }
.yapiskan-yuz--oval { border-radius: 9cqw; }
.yapiskan-yuz > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yapiskan-ic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6cqw; padding: 8cqw; }
.yapiskan-ornek--dikey .yapiskan-ic { flex-direction: column; gap: 7cqw; padding: 10cqw; }
.yapiskan-metin { display: flex; flex-direction: column; align-items: flex-start; gap: 2cqw; }
.yapiskan-ornek--dikey .yapiskan-metin { align-items: center; text-align: center; }
.yapiskan-metin b { color: var(--t-lacivert-700); font: 600 8.5cqw/1.1 var(--yazi-baslik); }
.yapiskan-ornek--dikey .yapiskan-metin b { font-size: 13cqw; }
.yapiskan-metin small { color: var(--t-celik-500); font: 600 4.2cqw/1.2 var(--yazi-baslik); }
.yapiskan-logo { display: grid; place-items: center; width: 15cqw; height: 10cqw; border: .4cqw dashed var(--birincil); border-radius: 1.6cqw; color: var(--birincil-ust); font: 600 3.6cqw/1 var(--yazi-baslik); }
.yapiskan-ornek--dikey .yapiskan-logo { width: 26cqw; height: 17cqw; font-size: 6cqw; }
.yapiskan-qr { flex: none; width: 30cqw; background: #fff; color: #000; }
.yapiskan-ornek--dikey .yapiskan-qr { width: 56cqw; }
.yapiskan-qr svg { display: block; width: 100%; height: auto; }
.yapiskan-ornek figcaption { position: absolute; left: 50%; top: calc(100% + 2.6cqw); translate: -50% 0; padding: .9cqw 2.2cqw; border-radius: 999px; background: #fff; color: var(--metin); font: 600 2.9cqw/1 var(--yazi-baslik); white-space: nowrap; box-shadow: var(--golge-1); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1023px) {
    .secenekler { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .secenek--ozel { grid-column: 1 / -1; flex-direction: row; }
    .secenek--ozel .secenek-gorsel { flex: 0 0 40%; aspect-ratio: auto; }
    .aile-ust { grid-template-columns: auto minmax(0, 1fr); }
    .aile-ozellik { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 640px) {
    .aile-secici { width: auto; justify-content: space-between; }
    .aile-cip { flex: 1; justify-content: center; padding-inline: .75rem; font-size: .9rem; }
    .aile-cip-ikon { display: none; }
    .aile-ikon { width: 46px; height: 46px; border-radius: 14px; font-size: 1.3rem; }
    .secenekler { grid-template-columns: 1fr; gap: .75rem; }
    .secenek, .secenek--ozel { flex-direction: row; }
    .secenek .secenek-gorsel { flex: 0 0 38%; aspect-ratio: auto; }
    .secenekler--iki .gorsel-yelpaze { width: 72%; }
    .secenekler--iki .gorsel-kart { width: 64%; }
    .secenek-govde { gap: .3rem; padding: .8rem .9rem; }
    .secenek-aciklama, .kat-serit { display: none; }
    .secenek-indirim { font-size: .75rem; }
    .secenek-sayi strong { font-size: 1.2rem; }
    .secenek-alt { padding-top: .45rem; }
    .secenek .dugme, .secenek-yakinda { min-height: 38px; padding: 0 .8rem; font-size: .875rem; }
    .secenek-fiyat { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
    .secenek, .secenek--bagli:hover { transition: none; translate: none; }
}

/* Tek hazır seçenekli aile (kart): kart ortada, dar */
.secenekler--bir { grid-template-columns: minmax(0, 640px); justify-content: center; }
.secenekler--bir .secenek-gorsel { aspect-ratio: 2 / 1; }

/* Kendin Tasarla ailenin altında düğme (05.11.2026) */
.aile-kendin { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; margin-top: var(--urun-bosluk); padding: 1rem 1.25rem; border: 1.5px dashed var(--cizgi-guclu); border-radius: var(--kart-yaricap); background: #fff; }
.aile-kendin-ikon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--zemin-vurgu); color: var(--birincil-bas); font-size: 1.35rem; }
.aile-kendin-metin strong { display: block; font: 600 1.05rem/1.3 var(--yazi-baslik); }
.aile-kendin-metin p { margin: .15rem 0 0; color: var(--metin-ikincil); font-size: .94rem; }
@media (max-width: 640px) {
    .secenekler--bir .secenek-gorsel { aspect-ratio: auto; }
    .aile-kendin { grid-template-columns: auto minmax(0, 1fr); }
    .aile-kendin .dugme, .aile-kendin .secenek-yakinda { grid-column: 1 / -1; justify-content: center; }
}
