/* ============================================================
   FIMAK — urun-detay.css
   Yalnizca urun detay sayfalarinda yuklenir; style.css'i tamamlar.

   Bolumler
   1. Blok iskeleti ve zeminler
   2. Sol kolon: urun gorseli
   3. Sag ust: koyu tanitim karti
   4. Sag alt: aciklama
   5. Teknik ozellikler (tablolar + teknik cizim)
   6. Responsive (tum media query'ler burada)

   Tum siniflar fpd- on ekiyle kapatildi; style.css ile cakismaz.
   ============================================================ */


/* ------------------------------------------------------------
   1. Blok iskeleti ve zeminler
   ------------------------------------------------------------ */
.fpd {
    --fpd-dark: #1d1d1f;
    --fpd-panel: var(--surface-alt);
    --fpd-radius: 18px;

    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin-inline: auto;
    padding: 28px clamp(16px, 2.5vw, 40px) 40px;
    background-color: var(--surface);
    color: var(--text);

    /* style.css'teki govde degerlerini notrle */
    letter-spacing: normal;
    line-height: normal;
}

.fpd img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ---------- Sayfa yolu (breadcrumb) ----------
   Solda F isareti, yaninda dikey cizgiyle ayrilan basamaklar. */
.fpd-top {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 20px;
}

.fpd-mark-link {
    flex-shrink: 0;
}

.fpd-mark {
    width: 56px;
    height: auto;
}

.fpd .fpd-mark-link:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 50%;
}

.fpd-breadcrumb {
    min-width: 0;
    padding-left: 22px;
    border-left: 1px solid var(--border);
}

.fpd-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    font-size: 13px;
    letter-spacing: -0.01em;
}

.fpd-breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

/* Basamaklar arasindaki kirmizi ok ucu */
.fpd-breadcrumb li+li::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-inline: 12px;
    border-top: 1.5px solid var(--brand);
    border-right: 1.5px solid var(--brand);
    transform: rotate(45deg) skew(-8deg, -8deg);
}

/* style.css'teki genel baglanti rengini degil, bu bolumun tonunu kullanir */
.fpd-breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.fpd-breadcrumb a:hover {
    color: var(--brand);
}

.fpd-breadcrumb [aria-current="page"] {
    font-weight: 600;
    color: var(--text);
}

.fpd .fpd-breadcrumb a:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}


.fpd-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 3%;
}

/* Acik gri panel: urun gorselinin arkasindan tum genislige uzanir */
.fpd-panel-bg {
    position: absolute;
    top: 42%;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    border-radius: var(--fpd-radius);
    background-color: var(--fpd-panel);
}

/* Arka plandaki buyuk soluk urun adi */
.fpd-watermark {
    position: absolute;
    top: 14%;
    left: -1%;
    z-index: 1;
    font-size: clamp(90px, 18vw, 290px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
    color: #f1f1f1;
    pointer-events: none;
    user-select: none;
}


/* ------------------------------------------------------------
   2. Sol kolon: urun gorseli
   ------------------------------------------------------------ */
.fpd-product {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    grid-column: 1;
    grid-row: 1 / span 2;
    padding: 0 4% 6%;
}

.fpd-product img {
    width: min(100%, 500px);
    filter: drop-shadow(0 30px 30px rgb(0 0 0 / 0.18));
}


/* ------------------------------------------------------------
   3. Sag ust: koyu tanitim karti
   ------------------------------------------------------------ */
.fpd-hero {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    grid-column: 2;
    grid-row: 1;
    min-height: 310px;
    margin-bottom: 70px;
    overflow: hidden;
    border-radius: var(--fpd-radius);
    background-color: var(--fpd-dark);
}

.fpd-hero-text {
    position: relative;
    z-index: 2;
    padding-left: 36px;
}

.fpd-hero-title {
    margin-bottom: 14px;
    font-size: clamp(40px, 4.2vw, 70px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--brand);
}

.fpd-hero-title sup {
    margin-left: 2px;
    font-size: 14px;
    font-weight: 400;
    vertical-align: super;
    color: #fff;
}

.fpd-hero-sub {
    font-size: clamp(17px, 1.6vw, 24px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.022em;
    color: #fff;
    /* Panelden uzun bir metin girilse de kutudan tasmasin: en fazla 3
       satir, fazlasi ucu uc nokta ile kesilir. -webkit-line-clamp tum
       guncel tarayicilarda calisiyor; desteklemeyen eski tarayicida
       max-height sinir olarak kaliyor. */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    max-height: calc(1.25em * 3);
}

/* Gorsel kutunun sag yarisindan biraz fazlasini kapliyor. Yakinlastirilan
   gorsel sag ve alt kenardan tasiyor; tasan kisim burada kirpiliyor. */
.fpd-hero-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 55%;
    overflow: hidden;

    /* Panelden gelmezse gecerli olan varsayilanlar. Blade ayni degiskenleri
       urun basina style niteliginde yeniden tanimliyor. */
    --fpd-hero-zoom: 2.2;
    --fpd-hero-fx: 50%;
    --fpd-hero-fy: 30%;
}

.fpd-hero-img img {
    width: 100%;
    height: 100%;

    /* object-position odak noktasini secer (kirpmanin hangi kismi kalacak),
       scale ayni noktadan yakinlastirir. Ikisi birlikte "urunun ust-orta
       kismina yakin plan" sonucunu verir. */
    object-fit: cover;
    object-position: var(--fpd-hero-fx) var(--fpd-hero-fy);
    transform: scale(var(--fpd-hero-zoom));
    transform-origin: var(--fpd-hero-fx) var(--fpd-hero-fy);
}

/* Gorselin sol kenarini kartin koyusuna yumusak gecirir. Gorselin uzerinde
   durdugu icin yakinlastirmadan etkilenmiyor; metnin okunurlugu her
   yakinlik degerinde korunuyor. */
.fpd-hero-img::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
        var(--fpd-dark) 0%,
        rgb(29 29 31 / 0.85) 12%,
        rgb(29 29 31 / 0) 45%);
}


/* ------------------------------------------------------------
   4. Sag alt: aciklama
   ------------------------------------------------------------ */
.fpd-desc {
    position: relative;
    z-index: 2;
    grid-column: 2;
    grid-row: 2;
    padding: 0 36px 60px;
}

.fpd-desc article {
    max-width: 490px;
}

.fpd-desc h2 {
    margin-bottom: 12px;
    font-size: clamp(20px, 1.7vw, 26px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.022em;
}

.fpd-desc h2 strong {
    position: relative;
    display: inline-block;
    font-weight: 600;
}

/* Urun adinin altindaki kirmizi vurgu cizgisi */
.fpd-desc h2 strong::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 3px;
    background-color: var(--brand);
}

.fpd-desc p {
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: -0.016em;
    color: var(--text-secondary);
}


/* ------------------------------------------------------------
   5. Teknik ozellikler
   Iki model tablosu ve teknik cizim yan yana; dar ekranda alt alta.
   Tablolar sigmazsa kendi icinde yatay kayar (bolum tasmaz).
   ------------------------------------------------------------ */
.fts {
    --fts-row: var(--surface-alt);
    --fts-radius: 14px;

    max-width: 1600px;
    margin-inline: auto;
    padding: 40px clamp(16px, 2.5vw, 40px);
    color: var(--text);

    /* style.css'teki govde degerlerini notrle */
    letter-spacing: normal;
    line-height: normal;
}

.fts-title {
    margin-bottom: 24px;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 400;
    letter-spacing: -0.022em;
}

.fts-title strong {
    position: relative;
    font-weight: 600;
}

/* Baslikatindaki kirmizi vurgu cizgisi */
.fts-title strong::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 3px;
    background-color: var(--brand);
}

.fts-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: clamp(20px, 2.5vw, 44px);
    align-items: start;
}

/* Grid ogelerinin varsayilan min-width degeri auto; tablonun
   min-width: 420px'i sutunu viewport'tan genis yapiyor ve sarmalayicinin
   overflow-x: auto'su hic devreye girmiyordu — dar ekranda tum sayfa
   yatayda kayiyordu. Bu satir tasmayi tablonun kendi seridine hapseder. */
.fts-grid > * {
    min-width: 0;
}

/* Tablo kapsayicisi: sigmazsa yalnizca tablo kayar.
   min-width: 0 sart — kapsayici .fts-grid'in bir grid ogesi ve grid
   ogelerinin varsayilan min-width degeri auto. O yuzden tablonun
   min-width: 420px'i sutunu genisletiyor, overflow-x hic devreye
   girmiyordu ve dar ekranda TUM SAYFA yatayda kayiyordu. */
.fts-table-wrap {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    border-radius: var(--fts-radius);
    -webkit-overflow-scrolling: touch;
}

.fts-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Ekran okuyucular icin tablo basligi; gorsel olarak gizli */
.fts-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.fts-table thead th {
    padding: 18px 12px;
    border-left: 1px solid rgb(255 255 255 / 0.35);
    background-color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
}

.fts-table thead th:first-child {
    width: 46%;
    border-left: 0;
}

.fts-table tbody th,
.fts-table tbody td {
    padding: 12px 14px;
    /* Hucreleri ayiran beyaz cizgi; satir zemini uzerinde bosluk gibi durur */
    border-left: 1.5px solid var(--surface);
}

.fts-table tbody th {
    border-left: 0;
    font-weight: 600;
    text-align: left;
}

.fts-table tbody td {
    text-align: center;
}

.fts-table tbody tr:nth-child(odd) {
    background-color: var(--fts-row);
}

.fts-table tbody tr:nth-child(even) {
    background-color: var(--surface);
}

.fts-table tbody tr:nth-child(even) td {
    border-left-color: var(--fts-row);
}

.fts-table sup {
    font-size: 0.7em;
}

/* Ustteki satirin devami olan ek satir */
.fts-table tbody tr.fts-sub {
    background: inherit;
}

.fts-table tr.fts-sub td {
    padding-top: 0;
    font-size: 12.5px;
}

/* Teknik cizim */
.fts-drawing img,
.fts-drawing svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Cizim gelmeden once duran notr yer tutucu */
.fts-drawing--empty {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    border-radius: var(--fts-radius);
    background-color: var(--fts-row);
}

.fts-drawing--empty svg {
    width: 28%;
    fill: none;
    stroke: var(--border);
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ------------------------------------------------------------
   6. Responsive
   ------------------------------------------------------------ */
@media (max-width: 1200px) {
    .fts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fts-drawing,
    .ftc {
        grid-column: 1 / -1;
    }

    .fts-drawing--empty {
        aspect-ratio: 16 / 7;
    }
}

@media (max-width: 820px) {

    /* Dar ekranda tek kolon: once tanitim karti, sonra urun, sonra metin */
    .fpd-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .fpd-top {
        gap: 14px;
    }

    .fpd-mark {
        width: 42px;
    }

    .fpd-breadcrumb {
        padding-left: 14px;
    }

    .fts-grid {
        grid-template-columns: 1fr;
    }

    .fts-table {
        font-size: 12.5px;
    }

    .fpd-breadcrumb ol {
        font-size: 12px;
    }

    .fpd-breadcrumb li+li::before {
        width: 5px;
        height: 5px;
        margin-inline: 8px;
    }

    .fpd-panel-bg {
        display: none;
    }

    .fpd-watermark {
        top: 4%;
        font-size: 120px;
    }

    .fpd-hero {
        grid-column: 1;
        grid-row: 1;
        min-height: 220px;
        margin-bottom: 24px;
    }

    .fpd-hero-text {
        padding-left: 22px;
    }

    .fpd-hero-img {
        width: 48%;
    }

    .fpd-product {
        flex-direction: column;
        align-items: center;
        grid-column: 1;
        grid-row: 2;
        padding: 24px 16px 0;
        border-radius: var(--fpd-radius) var(--fpd-radius) 0 0;
        background-color: var(--fpd-panel);
    }

    .fpd-desc {
        grid-column: 1;
        grid-row: 3;
        padding: 28px 22px 36px;
        border-radius: 0 0 var(--fpd-radius) var(--fpd-radius);
        background-color: var(--fpd-panel);
    }
}

/* ------------------------------------------------------------
   Teknik tablo — sekmeler, sabit ilk sütun, yatay kaydırma
   (çok sütunlu birleşik tablolar için; kural 8 ve 11)
   ------------------------------------------------------------ */

.fts-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.fts-tab {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, .14);
    background: transparent;
    border-radius: 999px;
    padding: 8px 16px;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    color: #1d1d1f;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.fts-tab:hover {
    border-color: rgba(0, 0, 0, .32);
}

.fts-tab.is-active {
    background: #1d1d1f;
    border-color: #1d1d1f;
    color: #fff;
}

.fts-table-wrap.is-hidden {
    display: none;
}

/* Geniş tablo yatay kayar; ilk sütun (özellik adı) sabit kalır,
   yoksa kaydırırken hangi satıra bakıldığı kayboluyor. */
.fts-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fts-table th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
}

/* Ürünün kendi sütunu vurgulanır (highlight_column) */
.fts-table th.is-current,
.fts-table td.is-current {
    /* background: rgba(226, 6, 19, .05); */
    font-weight: 600;
}

.fts-table thead th.is-current {
    /* background: rgba(226, 6, 19, .1); */
}

@media (max-width: 760px) {
    /* Dar ekranda kutu, metnin yanina gorsel sigdiramiyor: gorsel akisa
       girip metnin ALTINA iniyor, boylece ikisi hic cakismiyor.
       Yakinlik da siniri asiyorsa dusuruluyor — dar bir seritte 2.2x
       urunu taninmaz hale getiriyor. Satir ici style niteligi
       --fpd-hero-zoom'u ezemeyecegimiz icin min() ile sinirlaniyor. */
    .fpd-hero {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }

    .fpd-hero-text {
        padding: 24px 22px 18px;
    }

    .fpd-hero-img {
        position: relative;
        width: 100%;
        height: 180px;
    }

    .fpd-hero-img img {
        transform: scale(min(var(--fpd-hero-zoom), 1.4));
    }

    /* Gecis artik soldan degil ustten: metin gorselin ustunde duruyor */
    .fpd-hero-img::before {
        background: linear-gradient(180deg,
            var(--fpd-dark) 0%,
            rgb(29 29 31 / 0) 42%);
    }

    .fts-table {
        font-size: 13px;
    }

    .fts-table th,
    .fts-table td {
        white-space: nowrap;
    }

    /* Dar ekranda sabit sütun daha fazla yer kaplamasın */
    .fts-table th[scope="row"] {
        max-width: 180px;
        white-space: normal;
    }
}

/* ------------------------------------------------------------
   6. Teknik cizimler (olculu montaj cizimleri)

   Galeriden ayri bolum: galeri urunun fotograflari, burasi katalogdan
   gelen cizimler. Cizimler beyaz zeminli oldugu icin kutu da beyaz.
   ------------------------------------------------------------ */
/* Cizim sutunu teknik ozellik tablosunun SAGINDA, .fts-grid'in ikinci
   ogesi olarak duruyor. Tablosu olmayan urunde tek sutun kaliyor. */
.ftc {
    --ftc-radius: 14px;

    min-width: 0;
    color: var(--text);
    letter-spacing: normal;
}

.fts-grid--yalniz-cizim {
    grid-template-columns: 1fr;
}

.ftc-title {
    margin: 0 0 12px;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 500;
    letter-spacing: -0.018em;
}

.ftc-box {
    padding: clamp(12px, 1.4vw, 20px);
    border: 1px solid rgb(0 0 0 / 0.08);
    border-radius: var(--ftc-radius);
    background-color: #fff;
}

.ftc-figure {
    margin: 0;
}

.ftc-figure.is-hidden {
    display: none;
}

/* Gorsel bir butonun icinde: tiklanabilir oldugu klavyeyle de belli olsun */
.ftc-zoom {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    cursor: zoom-in;
}

.ftc-zoom img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.ftc-zoom:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.ftc-caption {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: var(--text);
}

/* Birden fazla cizim: kucuk resim seridi */
.ftc-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 18px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.ftc-thumb {
    flex: 0 0 auto;
    width: 92px;
    padding: 6px;
    border: 1.5px solid rgb(0 0 0 / 0.1);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.ftc-thumb img {
    display: block;
    width: 100%;
    height: 52px;
    object-fit: contain;
}

.ftc-thumb span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    color: #6b6b70;
}

.ftc-thumb.is-active {
    border-color: var(--brand);
}

.ftc-thumb.is-active span {
    color: var(--text);
}

.ftc-thumb:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.ftc-hint {
    margin: 14px 0 0;
    font-size: 13px;
    text-align: center;
    color: #6b6b70;
}

/* Lightbox ---------------------------------------------------- */
.ftc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgb(0 0 0 / 0.92);
}

.ftc-lightbox[hidden] {
    display: none;
}

/* Kaydirma + yakinlastirma alani: mobilde parmakla buyutulebilsin */
.ftc-lightbox__alan {
    overflow: auto;
    max-width: 100%;
    max-height: 86vh;
    padding: 16px;
    touch-action: pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.ftc-lightbox__alan img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    background: #fff;
    border-radius: 6px;
}

.ftc-lightbox__baslik {
    margin: 12px 16px 0;
    font-size: 14px;
    text-align: center;
    color: #fff;
}

.ftc-lightbox__close,
.ftc-lightbox__nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.14);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.ftc-lightbox__close {
    top: 16px;
    right: 16px;
    font-size: 30px;
}

.ftc-lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.ftc-lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

.ftc-lightbox__close:hover,
.ftc-lightbox__nav:hover {
    background: rgb(255 255 255 / 0.26);
}

.ftc-lightbox__close:focus-visible,
.ftc-lightbox__nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Lightbox acikken arka plan kaymasin */
body.ftc-acik {
    overflow: hidden;
}

@media (max-width: 760px) {
    .ftc-thumb {
        width: 82px;
    }

    .ftc-lightbox__nav {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .ftc-lightbox__alan {
        max-height: 78vh;
        padding: 8px;
    }
}
