/* Icerik sayfalari: urunler, temsilcilikler, hakkimizda, belgeler,
   sertifikalar, haberler, galeri, gizlilik, pdf goruntuleyici */

/* ---------- Kategori cipleri (product.aspx) ---------- */
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    transition: background .2s, border-color .2s;
}

    .chip:hover {
        background: var(--brand-soft);
        border-color: var(--brand);
    }

    .chip .fa {
        color: var(--brand-dark);
    }

/* ---------- Urun / temsilci satiri (resim + aciklama) ---------- */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.item-row {
    display: grid;
    gap: 20px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px;
    color: var(--text);
    transition: box-shadow .2s, border-color .2s, transform .2s;
}

@media (min-width: 700px) {
    .item-row {
        grid-template-columns: 240px 1fr;
        padding: 24px;
        gap: 28px;
    }
}

a.item-row:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.item-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px;
    min-height: 160px;
}

    .item-image img {
        max-height: 220px;
        width: auto;
        object-fit: contain;
    }

.item-text {
    min-width: 0;
    line-height: 1.7;
}

    .item-text p:last-child {
        margin-bottom: 0;
    }

    .item-text img {
        border-radius: 8px;
    }

    .item-text table {
        max-width: 100%;
        display: block;
        overflow-x: auto;
    }

/* ---------- Hakkimizda ---------- */
.about-card {
    max-width: 880px;
    margin: 0 auto;
}

    .about-card .about-text {
        font-size: 16px;
        line-height: 1.85;
        color: var(--text);
        text-align: justify;
    }

.about-logo {
    display: flex;
    justify-content: center;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
}

    .about-logo img {
        width: 220px;
    }

/* ---------- Belge / sertifika listesi ---------- */
.doc-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

    .doc-card:hover {
        border-color: var(--brand);
        box-shadow: var(--shadow);
        transform: translateY(-2px);
    }

    .doc-card img {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        object-fit: contain;
    }

    .doc-card .doc-name {
        flex: 1 1 auto;
        min-width: 0;
        line-height: 1.4;
    }

    .doc-card .fa {
        color: var(--muted);
    }

/* ---------- Haber detay ---------- */
.news-detail {
    display: grid;
    gap: 24px;
    align-items: start;
}

@media (min-width: 768px) {
    .news-detail {
        grid-template-columns: 300px 1fr;
    }
}

.news-detail-image img {
    width: 100%;
    border-radius: 12px;
}

.news-detail-text {
    line-height: 1.8;
    text-align: justify;
    min-width: 0;
}

/* ---------- Galeri ---------- */
.gallery-container {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

@media (min-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
}

.gallery-item {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--border);
    cursor: zoom-in;
    padding: 0;
    border: 0;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.06);
}

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 13, .92);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 56px 12px;
}

    #lightbox.open {
        display: flex;
    }

#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lb-btn {
    position: absolute;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

    .lb-btn:hover {
        background: var(--brand);
        color: var(--ink);
    }

    .lb-btn.close {
        top: 12px;
        right: 12px;
    }

    .lb-btn.prev {
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lb-btn.next {
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
    }

.lb-counter {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,.7);
    font-size: 14px;
}

/* ---------- Gizlilik politikasi (uzun metin) ---------- */
.prose {
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 15px;
}

    .prose h1 {
        font-size: clamp(22px, 4vw, 30px);
        text-align: left !important;
    }

    .prose h2,
    .prose h3 {
        margin-top: 1.6em;
    }

    .prose ul,
    .prose ol {
        padding-left: 1.3em;
    }

    .prose a {
        color: var(--info);
        font-weight: 600;
    }

/* ---------- PDF goruntuleyici ---------- */
.pdf-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.pdf-frame {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 80vh;
    min-height: 480px;
}

    .pdf-frame iframe {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }

@media (max-width: 640px) {
    .pdf-frame {
        height: 70vh;
    }

    .pdf-toolbar .btn {
        flex: 1 1 auto;
    }
}
