/**
 * İçerik sayfaları (Gizlilik Politikası vb. — site.page.show)
 */

/* Üst başlık alanı */
.by-content-page .by-page-hero-plain .pg-tp-wrp.style2 {
    padding: 28px 0 24px !important;
    gap: 0;
}

.by-content-page .by-page-hero-plain .by-breadcrumb-nav {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.by-content-page .by-page-hero-plain .pg-tp-wrp > h1 {
    font-size: 28px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    font-weight: 700 !important;
}

/* İçerik gövdesi */
.by-content-page__section .gap {
    padding-top: 10px;
    padding-bottom: 50px;
}

.by-content-page__body {
    max-width: 100%;
    margin: 0 auto;
    float: none;
    font-size: 15px;
    line-height: 1.75;
    color: #444;
}

.by-content-page__body > p {
    margin: 0 0 1em !important;
}

.by-content-page__body > p:first-child {
    margin-top: 0 !important;
}

.by-content-page__body h1 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.75em;
    line-height: 1.35;
}

.by-content-page__body h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin: 1.65em 0 0.45em;
    padding-bottom: 0.35em;
    border-bottom: 1px solid #ebebeb;
    line-height: 1.35;
}

.by-content-page__body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    margin: 1.25em 0 0.4em;
    line-height: 1.4;
}

.by-content-page__body h4,
.by-content-page__body h5,
.by-content-page__body h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin: 1.1em 0 0.35em;
    line-height: 1.45;
}

.by-content-page__body ul,
.by-content-page__body ol {
    margin: 0 0 1em;
    padding-left: 1.35em;
}

.by-content-page__body li {
    margin-bottom: 0.35em;
}

.by-content-page__body li + li {
    margin-top: 0.2em;
}

.by-content-page__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.75em 0;
}

.by-content-page__body a {
    color: #dd1c1c;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.by-content-page__body blockquote {
    margin: 1.25em 0;
    padding: 1em 1.25em;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Görsel alt yazıları / caption */
.by-content-page__body figcaption,
.by-content-page__body .wp-caption-text,
.by-content-page__body caption,
.by-content-page__body .caption,
.by-content-page__body p.caption {
    display: block;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    color: #777 !important;
    margin: 0.3em 0 1.1em !important;
    text-align: center;
}

.by-content-page__body .wp-caption {
    max-width: 100%;
    margin: 1em 0 1.25em;
}

.by-content-page__body .item-page {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* —— Standart veri tablosu (teknik özellikler, içerik sayfaları) —— */
.by-content-page__body {
    --by-table-accent: #ff6d45;
    --by-table-accent-soft: #fff3ee;
    --by-table-accent-muted: #ffe8de;
    --by-table-header-bg: #141414;
    --by-table-header-color: #ffffff;
    --by-table-text: #2b2b2b;
    --by-table-text-muted: #5c5c5c;
    --by-table-border: #ebe6e2;
    --by-table-radius: 14px;
}

.by-content-page__body .item-page {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.by-content-page__body .by-content-page__table-scroll {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em 0 2em !important;
    padding: 0 !important;
    border: 1px solid var(--by-table-border) !important;
    border-radius: var(--by-table-radius) !important;
    background: #ffffff !important;
    box-shadow:
        0 1px 2px rgba(20, 20, 20, 0.04),
        0 12px 32px rgba(20, 20, 20, 0.08) !important;
}

.by-content-page__body table.by-data-table,
.by-content-page__body .by-content-page__table-scroll > table {
    width: 100% !important;
    min-width: 520px;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--by-table-text) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: auto !important;
    float: none !important;
    background: #ffffff !important;
    border: none !important;
}

.by-content-page__body table[align="left"],
.by-content-page__body table[align="right"],
.by-content-page__body table[align="center"] {
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Başlık satırı */
.by-content-page__body table.by-data-table thead th,
.by-content-page__body table.by-data-table thead td,
.by-content-page__body .by-content-page__table-scroll > table thead th,
.by-content-page__body .by-content-page__table-scroll > table thead td {
    padding: 15px 18px !important;
    vertical-align: middle !important;
    text-align: left !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    line-height: 1.35 !important;
    color: var(--by-table-header-color) !important;
    background: var(--by-table-header-bg) !important;
    background-color: var(--by-table-header-bg) !important;
    border: none !important;
    border-bottom: 3px solid var(--by-table-accent) !important;
    white-space: nowrap;
}

.by-content-page__body table.by-data-table thead th span,
.by-content-page__body table.by-data-table thead td span,
.by-content-page__body .by-content-page__table-scroll > table thead th span,
.by-content-page__body .by-content-page__table-scroll > table thead td span,
.by-content-page__body table.by-data-table thead strong,
.by-content-page__body .by-content-page__table-scroll > table thead strong {
    color: var(--by-table-header-color) !important;
    font-weight: 700 !important;
}

.by-content-page__body table.by-data-table thead tr:first-child th:first-child,
.by-content-page__body .by-content-page__table-scroll > table thead tr:first-child th:first-child,
.by-content-page__body table.by-data-table thead tr:first-child td:first-child,
.by-content-page__body .by-content-page__table-scroll > table thead tr:first-child td:first-child {
    border-top-left-radius: calc(var(--by-table-radius) - 1px) !important;
}

.by-content-page__body table.by-data-table thead tr:first-child th:last-child,
.by-content-page__body .by-content-page__table-scroll > table thead tr:first-child th:last-child,
.by-content-page__body table.by-data-table thead tr:first-child td:last-child,
.by-content-page__body .by-content-page__table-scroll > table thead tr:first-child td:last-child {
    border-top-right-radius: calc(var(--by-table-radius) - 1px) !important;
}

/* Gövde satırları — inline arka planları ez */
.by-content-page__body table.by-data-table tbody tr,
.by-content-page__body .by-content-page__table-scroll > table tbody tr {
    background: #ffffff !important;
    background-color: #ffffff !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.by-content-page__body table.by-data-table tbody tr:nth-child(even),
.by-content-page__body .by-content-page__table-scroll > table tbody tr:nth-child(even) {
    background: var(--by-table-accent-soft) !important;
    background-color: var(--by-table-accent-soft) !important;
}

.by-content-page__body table.by-data-table tbody tr:hover,
.by-content-page__body .by-content-page__table-scroll > table tbody tr:hover {
    background: var(--by-table-accent-muted) !important;
    background-color: var(--by-table-accent-muted) !important;
}

.by-content-page__body table.by-data-table tbody td,
.by-content-page__body .by-content-page__table-scroll > table tbody td,
.by-content-page__body table.by-data-table tbody th,
.by-content-page__body .by-content-page__table-scroll > table tbody th {
    padding: 13px 18px !important;
    vertical-align: middle !important;
    text-align: left !important;
    color: var(--by-table-text) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--by-table-border) !important;
    word-break: break-word;
}

.by-content-page__body table.by-data-table tbody tr:last-child td,
.by-content-page__body .by-content-page__table-scroll > table tbody tr:last-child td {
    border-bottom: none !important;
}

/* İlk sütun: marka / kategori vurgusu */
.by-content-page__body table.by-data-table tbody td:first-child,
.by-content-page__body .by-content-page__table-scroll > table tbody td:first-child {
    font-weight: 700 !important;
    color: #111111 !important;
    width: 22%;
    min-width: 110px;
}

/* Son sütun: ölçü */
.by-content-page__body table.by-data-table tbody td:last-child,
.by-content-page__body .by-content-page__table-scroll > table tbody td:last-child {
    font-weight: 600 !important;
    color: var(--by-table-accent) !important;
    white-space: nowrap;
}

.by-content-page__body table.by-data-table tbody td span,
.by-content-page__body .by-content-page__table-scroll > table tbody td span {
    color: inherit !important;
}

.by-content-page__body table.by-data-table tbody tr.by-table-row--empty,
.by-content-page__body .by-content-page__table-scroll > table tbody tr.by-table-row--empty {
    display: none !important;
}

.by-content-page__body table caption {
    caption-side: top;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.65em;
    padding: 0;
}

/* Fancybox (tema v3) — içerik görselleri */
.fancybox-caption {
    font-size: 13px !important;
    line-height: 1.45 !important;
    padding: 10px 16px !important;
}

@media (max-width: 767px) {
    .by-content-page .by-page-hero-plain .pg-tp-wrp > h1 {
        font-size: 24px !important;
    }

    .by-content-page__body {
        font-size: 14.5px;
    }

    .by-content-page__body h2 {
        font-size: 1.1rem;
        margin-top: 1.35em;
    }

    .by-content-page__body h3 {
        font-size: 1rem;
    }

    .by-content-page__body .by-content-page__table-scroll {
        margin-left: -4px !important;
        margin-right: -4px !important;
        border-radius: 10px !important;
    }

    .by-content-page__body table.by-data-table,
    .by-content-page__body .by-content-page__table-scroll > table {
        min-width: 480px;
        font-size: 13px !important;
    }

    .by-content-page__body table.by-data-table thead th,
    .by-content-page__body table.by-data-table thead td,
    .by-content-page__body .by-content-page__table-scroll > table thead th,
    .by-content-page__body .by-content-page__table-scroll > table thead td {
        padding: 12px 14px !important;
        font-size: 11px !important;
        white-space: normal;
    }

    .by-content-page__body table.by-data-table tbody td,
    .by-content-page__body .by-content-page__table-scroll > table tbody td {
        padding: 11px 14px !important;
    }
}
