/**
 * ═══════════════════════════════════════════════════════════════════════════════
 * TurkCMS - Ana Stil Dosyası
 * ═══════════════════════════════════════════════════════════════════════════════
 * 
 * Bu dosya, tüm frontend stillerini organize eden ana CSS dosyasıdır.
 * Utility-first yaklaşımı ile Tailwind CSS'i tamamlar.
 * 
 * @author TurkCMS Team
 * @version 2.0.0
 * 
 * ┌─────────────────────────────────────────────────────────────────────────────┐
 * │  İÇİNDEKİLER                                                                │
 * ├─────────────────────────────────────────────────────────────────────────────┤
 * │  1. CSS DEĞİŞKENLERİ (Custom Properties)                                    │
 * │  2. RESET & BASE                                                            │
 * │  3. TİPOGRAFİ                                                               │
 * │  4. ANİMASYONLAR                                                            │
 * │  5. LAYOUT BİLEŞENLERİ                                                      │
 * │  6. KART BİLEŞENLERİ                                                        │
 * │  7. FORM ELEMANLARI                                                         │
 * │  8. UTILITY SINIFLARI                                                       │
 * │  9. RESPONSIVE DÜZENLEMELER                                                 │
 * └─────────────────────────────────────────────────────────────────────────────┘
 */

/* ═══════════════════════════════════════════════════════════════════════════════
   1. CSS DEĞİŞKENLERİ
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
    /* Renkler - Veritabanından override edilir */
    --color-primary: #f59c10;
    --color-primary-rgb: 245, 156, 16;
    --color-primary-dark: #d97706;
    --color-primary-light: #fbbf24;

    /* Metin Renkleri */
    --color-text-heading: #0c4a6e;
    --color-text-body: #334155;
    --color-text-muted: #64748b;

    /* Arka Plan Renkleri */
    --color-bg-light: #f0f9ff;
    --color-bg-dark: #121214;
    --color-bg-white: #ffffff;

    /* Tipografi */
    --font-family-base: 'Inter', sans-serif;
    --font-family-heading: var(--font-family-base);

    /* Boyutlar */
    --hero-height: 400px;
    --border-radius-base: 12px;
    --border-radius-sm: 6px;
    --border-radius-lg: 16px;
    --border-radius-full: 9999px;

    /* Gölgeler */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Geçişler */
    --transition-fast: 200ms ease;
    --transition-base: 350ms ease;
    --transition-hover: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms ease;

    /* Z-Index Katmanları */
    --z-dropdown: 50;
    --z-sticky: 100;
    --z-fixed: 200;
    --z-modal-backdrop: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ETKİLEŞİM GEÇİŞLERİ — ani hover/focus sıçramalarını yumuşat
   ═══════════════════════════════════════════════════════════════════════════════ */

a,
button,
.btn,
.btn-primary,
.btn-secondary,
.nav-link,
[role="button"] {
    transition:
        color var(--transition-hover),
        background-color var(--transition-hover),
        border-color var(--transition-hover),
        box-shadow var(--transition-hover),
        opacity var(--transition-hover),
        filter var(--transition-hover);
}

.product-card,
.content-card,
.katalog-card,
.video-card,
.reference-item,
.stat-card,
.team-card,
.timeline-card,
.value-card {
    transition:
        box-shadow var(--transition-hover),
        border-color var(--transition-hover),
        background-color var(--transition-hover),
        transform var(--transition-hover);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus Stilleri - Erişilebilirlik */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Görsel Seçimi */
::selection {
    background-color: rgba(var(--color-primary-rgb), 0.2);
    color: var(--color-text-heading);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   3. TİPOGRAFİ
   ═══════════════════════════════════════════════════════════════════════════════ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    color: var(--color-text-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-heading {
    color: var(--color-text-heading);
}

.text-body {
    color: var(--color-text-body);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-primary {
    color: var(--color-primary);
}

/* Link Stilleri */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

/* İletişim satırları — global a:hover cam/renk bozulmasını engelle */
a.contact-link:hover {
    color: inherit;
}

/* Navbar Link Stilleri */
.nav-link {
    font-size: 1.0625rem;
    /* 17px */
    font-weight: 500;
}

/* Prose - İçerik Yazıları */
.prose {
    color: var(--color-text-body);
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.75;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose h1 {
    font-size: 2.25em;
    margin-top: 0;
    margin-bottom: 0.8888889em;
    line-height: 1.1111111;
}

.prose h2 {
    font-size: 1.875em;
    margin-top: 1.5555556em;
    margin-bottom: 0.8888889em;
    line-height: 1.3333333;
}

.prose h3 {
    font-size: 1.5em;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    line-height: 1.6;
}

.prose h4 {
    font-size: 1.25em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.5;
}

.prose strong {
    color: inherit;
    font-weight: 700;
}

.prose a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

.prose a:hover {
    color: var(--color-primary-dark);
}

.prose ul {
    list-style-type: disc !important;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-inline-start: 1.625em;
}

.prose ol {
    list-style-type: decimal !important;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-inline-start: 1.625em;
}

.prose ul ul {
    list-style-type: circle !important;
}

.prose ul ul ul {
    list-style-type: square !important;
}

.prose li {
    display: list-item !important;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose ul>li {
    padding-inline-start: 0.375em;
}

.prose ul>li::marker {
    color: var(--color-primary);
}

.prose ol>li::marker {
    color: var(--color-text-heading);
    font-weight: 600;
}

.prose blockquote {
    font-style: italic;
    color: var(--color-text-heading);
    border-inline-start: 4px solid var(--color-primary);
    padding-inline-start: 1em;
    margin-top: 1.6em;
    margin-bottom: 1.6em;
}

.prose code {
    color: var(--color-text-heading);
    background-color: #f1f5f9;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-weight: 600;
}

.prose pre {
    background-color: var(--dm-elevated, #303038);
    color: #e2e8f0;
    padding: 1.25em 1.5em;
    border-radius: var(--border-radius-base);
    overflow-x: auto;
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
}

.prose pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    font-weight: 400;
}

.prose img,
.prose img.editor-img {
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: var(--border-radius-base);
    max-width: 100% !important;
    height: auto !important;
}

.prose table {
    width: 100%;
    margin-top: 2em;
    margin-bottom: 2em;
    border-collapse: collapse;
}

/* Ürün teknik / içerik tabloları — tam genişlik, hizalı sütunlar */
.prose .table-wrap,
.product-specs-wrap,
.bayi-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.75rem 0;
    border: 1px solid color-mix(in srgb, var(--color-text-heading, #3f3e3e) 12%, transparent);
    background: #fff;
}
html.dark-mode .prose .table-wrap,
html.dark-mode .product-specs-wrap,
html.dark-mode .bayi-table-wrap {
    background: var(--dm-panel, #25252b);
    border-color: var(--dm-border-soft, #34343c);
}
.bayi-table-wrap .bayi-table-wrap,
.bayi-table-wrap .product-specs-wrap,
.product-specs-wrap .product-specs-wrap {
    margin: 0;
    border: none;
    background: transparent;
}
.prose table,
.product-specs-wrap table,
.bayi-table-wrap table,
table.product_detail_table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.925rem;
}
.prose thead th,
.product-specs-wrap thead th,
.bayi-table-wrap thead th,
.prose th,
table.product_detail_table thead th {
    background: color-mix(in srgb, var(--color-primary, #f59c10) 12%, #fff);
    color: var(--color-text-heading, #3f3e3e);
    font-weight: 700;
    text-align: left;
    padding: 0.9em 1.1em;
    border-bottom: 2px solid color-mix(in srgb, var(--color-primary, #f59c10) 35%, transparent);
    white-space: normal;
}
.prose td,
.prose th,
.product-specs-wrap td,
.product-specs-wrap th,
.bayi-table-wrap td,
.bayi-table-wrap th,
table.product_detail_table td,
table.product_detail_table th {
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    padding: 0.75em 1em;
    border: none;
    border-bottom: 1px solid #e8e4dc;
    color: var(--color-text-body, #6f6e6e);
    vertical-align: middle;
    white-space: normal !important;
    word-break: break-word;
    background: transparent;
}
/* 3 sütunlu teknik tablolar — yalnızca ürün tabloları */
table.product_detail_table:not(.bayi-list-table) td:first-child:not([colspan]),
table.product_detail_table:not(.bayi-list-table) th:first-child:not([colspan]) {
    font-weight: 600;
    color: var(--color-text-heading, #3f3e3e);
    width: 48% !important;
    text-align: left;
}
table.product_detail_table:not(.bayi-list-table) td:nth-child(2):not([colspan]),
table.product_detail_table:not(.bayi-list-table) th:nth-child(2):not([colspan]) {
    width: 20% !important;
    text-align: center;
    color: var(--color-text-body, #6f6e6e);
    font-size: 0.875em;
    letter-spacing: 0.02em;
}
table.product_detail_table:not(.bayi-list-table) td:nth-child(3):not([colspan]),
table.product_detail_table:not(.bayi-list-table) th:nth-child(3):not([colspan]),
table.product_detail_table:not(.bayi-list-table) td:last-child:not([colspan]):not(:first-child):not(:nth-child(2)) {
    width: 32% !important;
    text-align: center;
    font-weight: 600;
    color: var(--color-text-heading, #3f3e3e);
}
table.product_detail_table:not(.bayi-list-table) tr:first-child td[colspan],
table.product_detail_table:not(.bayi-list-table) tr:first-child th[colspan] {
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    width: 100% !important;
    color: var(--color-text-heading, #3f3e3e);
    background: color-mix(in srgb, var(--color-primary, #f59c10) 10%, #fff);
    padding: 1em 1.1em;
    border-bottom: 2px solid color-mix(in srgb, var(--color-primary, #f59c10) 30%, transparent);
}
html.dark-mode table.product_detail_table:not(.bayi-list-table) tr:first-child td[colspan],
html.dark-mode table.product_detail_table:not(.bayi-list-table) tr:first-child th[colspan] {
    color: var(--dm-heading, #f4f4f5);
    background: color-mix(in srgb, var(--color-primary, #f59c10) 18%, var(--dm-panel, #25252b));
}
table.product_detail_table:not(.bayi-list-table) tr td:first-child:not([colspan]) {
    text-align: left;
}
table.product_detail_table:not(.bayi-list-table) td:not(:first-child):not([colspan]),
table.product_detail_table:not(.bayi-list-table) th:not(:first-child):not([colspan]) {
    text-align: center;
}

/* Bayi / tedarikçi listesi — ferah sütunlar (basit 3 sütun) */
table.bayi-list-table {
    width: 100% !important;
    min-width: 42rem !important;
    table-layout: fixed !important;
    font-size: 0.95rem;
}
table.bayi-list-table tr:first-child td,
table.bayi-list-table tr:first-child th {
    background: color-mix(in srgb, var(--color-primary, #f59c10) 12%, #fff) !important;
    color: var(--color-text-heading, #3f3e3e) !important;
    font-weight: 700 !important;
    text-align: left !important;
    padding: 1rem 1.35rem !important;
    border-bottom: 2px solid color-mix(in srgb, var(--color-primary, #f59c10) 35%, transparent) !important;
    white-space: nowrap !important;
}
table.bayi-list-table td,
table.bayi-list-table th {
    padding: 1rem 1.35rem !important;
    vertical-align: middle !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
    text-align: left !important;
    width: auto !important;
    font-weight: 400 !important;
}
table.bayi-list-table:not(.bayi-list-table--wide):not(.bayi-list-table--col4) td:first-child {
    width: 38% !important;
    font-weight: 600 !important;
    color: var(--color-text-heading, #3f3e3e) !important;
    padding-right: 1.75rem !important;
}
table.bayi-list-table:not(.bayi-list-table--wide):not(.bayi-list-table--col4) td:nth-child(2) {
    width: 34% !important;
    color: var(--color-text-body, #6f6e6e) !important;
}
table.bayi-list-table:not(.bayi-list-table--wide):not(.bayi-list-table--col4) td:nth-child(3),
table.bayi-list-table:not(.bayi-list-table--wide):not(.bayi-list-table--col4) td:last-child {
    width: 28% !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

/* 4 sütunlu bayi listesi: BAYİ ADI / ADRES / İL / TELEFON */
table.bayi-list-table.bayi-list-table--col4 {
    min-width: 52rem !important;
}
table.bayi-list-table.bayi-list-table--col4 td:first-child,
table.bayi-list-table.bayi-list-table--col4 th:first-child {
    width: 27% !important;
    font-weight: 600 !important;
    color: var(--color-text-heading, #3f3e3e) !important;
    padding-right: 1.25rem !important;
}
table.bayi-list-table.bayi-list-table--col4 td:nth-child(2),
table.bayi-list-table.bayi-list-table--col4 th:nth-child(2) {
    width: 35% !important;
    color: var(--color-text-body, #6f6e6e) !important;
}
table.bayi-list-table.bayi-list-table--col4 td:nth-child(3),
table.bayi-list-table.bayi-list-table--col4 th:nth-child(3) {
    width: 16% !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    color: var(--color-text-heading, #3f3e3e) !important;
    font-weight: 600 !important;
}
table.bayi-list-table.bayi-list-table--col4 td:nth-child(4),
table.bayi-list-table.bayi-list-table--col4 th:nth-child(4),
table.bayi-list-table.bayi-list-table--col4 td:last-child,
table.bayi-list-table.bayi-list-table--col4 th:last-child {
    width: 22% !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

/* Telefon linkleri ve liste yapısı */
.bayi-tel-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}
table.bayi-list-table a.bayi-tel {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-text-heading, #3f3e3e);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    transition: color 0.15s ease, transform 0.15s ease;
}
table.bayi-list-table a.bayi-tel:hover {
    color: var(--color-primary, #f59c10);
    text-decoration: underline;
}
table.bayi-list-table .bayi-tel__icon {
    font-size: 0.72rem;
    color: var(--color-primary, #f59c10);
    opacity: 0.85;
    flex-shrink: 0;
}

/* Mobil Uyumluluk: 768px altında satırları modern dokunmatik kartlara dönüştür */
@media (max-width: 768px) {
    .bayi-table-wrap {
        overflow-x: visible !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin-top: 0.5rem !important;
        box-shadow: none !important;
    }

    table.bayi-list-table,
    table.bayi-list-table.bayi-list-table--col4 {
        min-width: 100% !important;
        width: 100% !important;
        table-layout: auto !important;
        display: block !important;
        border: none !important;
        background: transparent !important;
    }

    /* Mobilde tablo başlık satırını gizle */
    table.bayi-list-table tr:first-child {
        display: none !important;
    }

    table.bayi-list-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.85rem !important;
        width: 100% !important;
    }

    /* Her bayi satırı bağımsız bir karta dönüşür */
    table.bayi-list-table tr:not(:first-child) {
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 0.875rem !important;
        padding: 1.15rem 1.25rem !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        gap: 0.65rem !important;
        position: relative !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    table.bayi-list-table td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        text-align: left !important;
    }

    /* Bayi Adı (Kart Başlığı) */
    table.bayi-list-table td.bayi-col-name,
    table.bayi-list-table:not(.bayi-list-table--wide) td:first-child {
        width: 100% !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        color: var(--color-text-heading, #1e293b) !important;
        line-height: 1.35 !important;
        padding-right: 5.5rem !important; /* Sağdaki İl rozetine çarpmasın */
    }

    /* İl Rozeti (Sağ üst köşe badge) */
    table.bayi-list-table td.bayi-col-il,
    table.bayi-list-table.bayi-list-table--col4 td:nth-child(3) {
        position: absolute !important;
        top: 1rem !important;
        right: 1.15rem !important;
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: color-mix(in srgb, var(--color-primary, #f59c10) 14%, #fff) !important;
        color: var(--color-primary, #d97706) !important;
        border: 1px solid color-mix(in srgb, var(--color-primary, #f59c10) 30%, transparent) !important;
        padding: 0.25rem 0.65rem !important;
        border-radius: 9999px !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.03em !important;
        text-transform: uppercase !important;
    }

    /* Adres (Konum ikonu ile) */
    table.bayi-list-table td.bayi-col-addr,
    table.bayi-list-table:not(.bayi-list-table--wide) td:nth-child(2) {
        width: 100% !important;
        font-size: 0.875rem !important;
        color: var(--color-text-body, #64748b) !important;
        line-height: 1.45 !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 0.45rem !important;
        padding-top: 0.15rem !important;
    }
    table.bayi-list-table td.bayi-col-addr::before {
        content: "\f3c5";
        font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome !important;
        font-weight: 900 !important;
        color: var(--color-primary, #f59c10) !important;
        font-size: 0.85rem !important;
        margin-top: 0.15rem !important;
        flex-shrink: 0 !important;
    }

    /* Telefon (Arama butonları) */
    table.bayi-list-table td.bayi-col-tel,
    table.bayi-list-table.bayi-list-table--col4 td:nth-child(4),
    table.bayi-list-table td:last-child {
        width: 100% !important;
        padding-top: 0.6rem !important;
        margin-top: 0.25rem !important;
        border-top: 1px dashed rgba(0, 0, 0, 0.08) !important;
    }

    table.bayi-list-table .bayi-tel-group {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    table.bayi-list-table a.bayi-tel {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.45rem !important;
        background: #f8fafc !important;
        border: 1px solid rgba(0, 0, 0, 0.09) !important;
        border-radius: 0.5rem !important;
        padding: 0.5rem 0.85rem !important;
        font-size: 0.85rem !important;
        color: var(--color-text-heading, #1e293b) !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        flex: 1 1 calc(50% - 0.25rem) !important;
        min-width: 135px !important;
        box-sizing: border-box !important;
    }
    table.bayi-list-table a.bayi-tel:active {
        background: color-mix(in srgb, var(--color-primary, #f59c10) 15%, #fff) !important;
        transform: scale(0.98) !important;
    }

    /* Dark Mode mobil kartlar */
    html.dark-mode table.bayi-list-table tr:not(:first-child) {
        background: var(--dm-panel, #25252b) !important;
        border-color: var(--dm-border-soft, #34343c) !important;
        box-shadow: none !important;
    }
    html.dark-mode table.bayi-list-table td.bayi-col-name {
        color: var(--dm-heading, #f4f4f5) !important;
    }
    html.dark-mode table.bayi-list-table td.bayi-col-il {
        background: color-mix(in srgb, var(--color-primary, #f59c10) 20%, var(--dm-panel, #25252b)) !important;
        color: var(--color-primary, #fbbf24) !important;
        border-color: color-mix(in srgb, var(--color-primary, #f59c10) 35%, transparent) !important;
    }
    html.dark-mode table.bayi-list-table td.bayi-col-addr {
        color: var(--dm-body, #c8c8d0) !important;
    }
    html.dark-mode table.bayi-list-table td.bayi-col-tel {
        border-top-color: var(--dm-border-soft, #34343c) !important;
    }
    html.dark-mode table.bayi-list-table a.bayi-tel {
        background: var(--dm-elevated, #303038) !important;
        border-color: var(--dm-border-soft, #34343c) !important;
        color: var(--dm-heading, #f4f4f5) !important;
    }
}

/* Geniş dizin → kart grid */
.bayi-table-wrap:has(.bayi-dealer-grid),
.bayi-dealer-wrap {
    border: none !important;
    background: transparent !important;
    overflow: visible !important;
    margin: 1.75rem 0 !important;
    padding: 0 !important;
}
.bayi-dealer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    width: 100%;
}
@media (min-width: 900px) {
    .bayi-dealer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}
.bayi-dealer-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.15rem 1.2rem 1rem;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--color-text-heading, #3f3e3e) 11%, transparent);
    border-left: 3px solid var(--color-primary, #f59c10);
    min-height: 100%;
}
.bayi-dealer-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}
.bayi-dealer-card__identity {
    min-width: 0;
    flex: 1;
}
.bayi-dealer-card__name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--color-text-heading, #3f3e3e);
}
.bayi-dealer-card__person {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-body, #6f6e6e);
}
.bayi-dealer-card__loc {
    flex-shrink: 0;
    max-width: 42%;
    margin: 0.1rem 0 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.3;
    text-align: right;
    text-transform: uppercase;
    color: var(--color-primary, #f59c10);
}
.bayi-dealer-card__addr {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--color-text-body, #6f6e6e);
}
.bayi-dealer-card__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    margin-top: auto;
    padding-top: 0.15rem;
}
.bayi-dealer-card__phones {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
}
.bayi-dealer-card__sep {
    color: color-mix(in srgb, var(--color-text-body, #6f6e6e) 55%, transparent);
    font-weight: 600;
    user-select: none;
}
.prose .bayi-dealer-card a.bayi-dealer-card__tel,
.bayi-dealer-card a.bayi-dealer-card__tel {
    display: inline;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-heading, #3f3e3e) !important;
    background: none;
    border: 0;
    text-decoration: none !important;
    white-space: nowrap;
}
.prose .bayi-dealer-card a.bayi-dealer-card__tel:hover,
.bayi-dealer-card a.bayi-dealer-card__tel:hover {
    color: var(--color-primary, #f59c10) !important;
    text-decoration: none !important;
}
.prose .bayi-dealer-card a.bayi-dealer-card__web,
.bayi-dealer-card a.bayi-dealer-card__web {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary, #f59c10) !important;
    text-decoration: none !important;
    border: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.prose .bayi-dealer-card a.bayi-dealer-card__web:hover,
.bayi-dealer-card a.bayi-dealer-card__web:hover {
    text-decoration: underline !important;
    text-underline-offset: 2px;
}
.bayi-dealer-card__tax {
    margin: 0;
    padding-top: 0.65rem;
    border-top: 1px solid color-mix(in srgb, var(--color-text-heading, #3f3e3e) 9%, transparent);
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--color-text-body, #6f6e6e);
    font-variant-numeric: tabular-nums;
}
.bayi-dealer-card__tax-label {
    display: inline-block;
    margin-right: 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-heading, #3f3e3e);
    opacity: 0.55;
}

html.dark-mode .bayi-dealer-card,
html.dark-mode section.bg-zebra .bayi-dealer-card,
html.dark-mode section.bg-white .bayi-dealer-card,
html.dark-mode .prose .bayi-dealer-card {
    background: var(--dm-elevated, #303038) !important;
    border-color: var(--dm-border-soft, #34343c) !important;
    border-left-color: var(--color-primary, #f59c10) !important;
    color: var(--dm-body, #c8c8d0) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
html.dark-mode .bayi-dealer-card__name,
html.dark-mode .bayi-dealer-card h3,
html.dark-mode section.bg-zebra .bayi-dealer-card h3,
html.dark-mode section.bg-white .bayi-dealer-card h3,
html.dark-mode .prose .bayi-dealer-card h3 {
    color: var(--dm-heading, #f4f4f5) !important;
    -webkit-text-fill-color: var(--dm-heading, #f4f4f5) !important;
}
html.dark-mode .bayi-dealer-card__person,
html.dark-mode .bayi-dealer-card__addr,
html.dark-mode .bayi-dealer-card__tax,
html.dark-mode .bayi-dealer-card p,
html.dark-mode section.bg-zebra .bayi-dealer-card p,
html.dark-mode .prose .bayi-dealer-card p {
    color: var(--dm-body, #c8c8d0) !important;
    -webkit-text-fill-color: var(--dm-body, #c8c8d0) !important;
}
html.dark-mode .bayi-dealer-card__loc {
    color: var(--color-primary, #f59c10) !important;
}
html.dark-mode .bayi-dealer-card__sep,
html.dark-mode .bayi-dealer-card__tax-label {
    color: var(--dm-muted, #a3a3a3) !important;
}
html.dark-mode .bayi-dealer-card__tax {
    border-top-color: var(--dm-border-soft, #34343c) !important;
}
html.dark-mode .prose .bayi-dealer-card a.bayi-dealer-card__tel,
html.dark-mode .bayi-dealer-card a.bayi-dealer-card__tel,
html.dark-mode section.bg-zebra .bayi-dealer-card a.bayi-dealer-card__tel {
    color: var(--dm-heading, #f4f4f5) !important;
    -webkit-text-fill-color: var(--dm-heading, #f4f4f5) !important;
}
html.dark-mode .prose .bayi-dealer-card a.bayi-dealer-card__tel:hover,
html.dark-mode .bayi-dealer-card a.bayi-dealer-card__tel:hover {
    color: var(--color-primary, #f59c10) !important;
    -webkit-text-fill-color: var(--color-primary, #f59c10) !important;
}
html.dark-mode .prose .bayi-dealer-card a.bayi-dealer-card__web,
html.dark-mode .bayi-dealer-card a.bayi-dealer-card__web {
    color: var(--color-primary, #f59c10) !important;
}

html.dark-mode table.bayi-list-table,
html.dark-mode .bayi-table-wrap table.bayi-list-table {
    background: var(--dm-panel, #25252b) !important;
    color: var(--dm-body, #c8c8d0) !important;
}
html.dark-mode table.bayi-list-table td,
html.dark-mode table.bayi-list-table th {
    color: var(--dm-body, #c8c8d0) !important;
    background: transparent !important;
    border-color: var(--dm-border-soft, #34343c) !important;
}
html.dark-mode table.bayi-list-table tr:first-child td,
html.dark-mode table.bayi-list-table tr:first-child th {
    background: color-mix(in srgb, var(--color-primary, #f59c10) 18%, var(--dm-panel, #25252b)) !important;
    color: var(--dm-heading, #f4f4f5) !important;
}
html.dark-mode table.bayi-list-table td:first-child,
html.dark-mode table.bayi-list-table.bayi-list-table--col4 td:nth-child(3),
html.dark-mode table.bayi-list-table.bayi-list-table--col4 td.bayi-col-il,
html.dark-mode table.bayi-list-table a.bayi-tel {
    color: var(--dm-heading, #f4f4f5) !important;
}
.prose tbody tr:nth-child(even) td,
.product-specs-wrap tbody tr:nth-child(even) td,
.bayi-table-wrap tbody tr:nth-child(even) td {
    background: #faf8f5;
}
html.dark-mode .prose tbody tr:nth-child(even) td,
html.dark-mode .product-specs-wrap tbody tr:nth-child(even) td,
html.dark-mode .bayi-table-wrap tbody tr:nth-child(even) td {
    background: var(--dm-elevated, #303038);
}
.prose tbody tr:hover td,
.product-specs-wrap tbody tr:hover td,
.bayi-table-wrap tbody tr:hover td {
    background: color-mix(in srgb, var(--color-primary, #f59c10) 8%, #fff);
}
html.dark-mode .prose tbody tr:hover td,
html.dark-mode .product-specs-wrap tbody tr:hover td,
html.dark-mode .bayi-table-wrap tbody tr:hover td {
    background: var(--dm-hover, #3a3a44);
}
@media (max-width: 640px) {
    .prose table,
    .product-specs-wrap table,
    .bayi-table-wrap table,
    table.product_detail_table {
        font-size: 0.8125rem;
        min-width: 28rem;
        table-layout: auto;
    }
    .prose td,
    .prose th,
    .product-specs-wrap td,
    .product-specs-wrap th,
    .bayi-table-wrap td,
    .bayi-table-wrap th {
        padding: 0.55em 0.65em;
    }
}

/* dynamic_styles glass tablo kurallarını ürün teknik tablolarında ez — yalnızca açık tema */
html:not(.dark-mode) body section.bg-white .prose table.product_detail_table,
html:not(.dark-mode) body section.bg-zebra .prose table.product_detail_table,
html:not(.dark-mode) body main .prose table.product_detail_table {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    color: inherit !important;
}
html:not(.dark-mode) body section.bg-white .prose table.product_detail_table td,
html:not(.dark-mode) body section.bg-white .prose table.product_detail_table th,
html:not(.dark-mode) body section.bg-zebra .prose table.product_detail_table td,
html:not(.dark-mode) body section.bg-zebra .prose table.product_detail_table th,
html:not(.dark-mode) body main .prose table.product_detail_table td,
html:not(.dark-mode) body main .prose table.product_detail_table th {
    color: var(--color-text-body, #6f6e6e) !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #e8e4dc !important;
}
html:not(.dark-mode) body section.bg-white .prose table.product_detail_table td:first-child,
html:not(.dark-mode) body section.bg-zebra .prose table.product_detail_table td:first-child,
html:not(.dark-mode) body main .prose table.product_detail_table td:first-child {
    color: var(--color-text-heading, #3f3e3e) !important;
    font-weight: 600 !important;
}
html:not(.dark-mode) body section.bg-white .prose table.product_detail_table tbody tr:nth-child(even) td,
html:not(.dark-mode) body section.bg-zebra .prose table.product_detail_table tbody tr:nth-child(even) td,
html:not(.dark-mode) body main .prose table.product_detail_table tbody tr:nth-child(even) td {
    background: #faf8f5 !important;
}
html:not(.dark-mode) body section.bg-white .prose table.product_detail_table tr:first-child td[colspan],
html:not(.dark-mode) body section.bg-zebra .prose table.product_detail_table tr:first-child td[colspan],
html:not(.dark-mode) body main .prose table.product_detail_table tr:first-child td[colspan] {
    color: var(--color-text-heading, #3f3e3e) !important;
    background: color-mix(in srgb, var(--color-primary, #f59c10) 10%, #fff) !important;
    font-weight: 700 !important;
}

/* Bayi / tedarikçi detay içeriği */
.poly-detail-body .bayi-table-wrap,
.poly-detail-body table {
    width: 100%;
}

/* Ürün açıklama + teknik şema */
.prose .product-diagram {
    margin: 1.5rem 0 0;
    padding: 0;
}
.prose .product-diagram img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    margin: 0 auto;
    background: #faf8f5;
}
.prose .product-diagram figcaption {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-body, #6f6e6e);
    text-align: center;
}
.prose h2 {
    margin-top: 0;
    font-size: 1.35rem;
    color: var(--color-text-heading, #3f3e3e);
}
.prose h3 {
    margin-top: 2rem;
    font-size: 1.15rem;
    color: var(--color-text-heading, #3f3e3e);
}
.bayi-directory {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .bayi-directory,
    .bayi-directory--home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}
.bayi-directory-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 7.25rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid color-mix(in srgb, var(--color-text-heading, #3f3e3e) 12%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 6%, #fff) 0%, #fff 55%);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.bayi-directory-card:hover {
    border-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.bayi-directory-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-heading);
    min-height: 2.6em; /* 2 satır hizası */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bayi-directory-card p {
    margin: 0.4rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--color-text-body);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.bayi-directory-card .bayi-arrow {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--color-primary) 14%, transparent);
    color: var(--color-primary);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.bayi-directory-card:hover .bayi-arrow {
    background: var(--color-primary);
    color: #fff;
    transform: translateX(2px);
}

/*
 * Kart metinleri: .bg-zebra h3/p !important kurallarından bağımsız.
 * Aksi halde koyu zebra / dark-mode’da beyaz kart üstünde açık renk metin kalır.
 */
.bayi-directory-card h3,
.bg-zebra .bayi-directory-card h3,
section.bg-zebra .bayi-directory-card h3 {
    color: #3f3e3e !important;
}
.bayi-directory-card p,
.bg-zebra .bayi-directory-card p,
section.bg-zebra .bayi-directory-card p {
    color: #6f6e6e !important;
}

html.dark-mode .bayi-directory-card {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--color-primary) 12%, var(--dm-elevated, #303038)) 0%,
        var(--dm-panel, #25252b) 60%
    ) !important;
    border-color: var(--dm-border-soft, #34343c) !important;
    color: var(--dm-body, #c8c8d0) !important;
    box-shadow: none !important;
}
html.dark-mode .bayi-directory-card:hover {
    border-color: color-mix(in srgb, var(--color-primary) 45%, transparent) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32) !important;
    background: var(--dm-hover, #3a3a44) !important;
}
html.dark-mode .bayi-directory-card h3,
html.dark-mode .bg-zebra .bayi-directory-card h3,
html.dark-mode section.bg-zebra .bayi-directory-card h3,
html.dark-mode section.bg-white .bayi-directory-card h3 {
    color: var(--dm-heading, #f4f4f5) !important;
    -webkit-text-fill-color: var(--dm-heading, #f4f4f5) !important;
}
html.dark-mode .bayi-directory-card p,
html.dark-mode .bg-zebra .bayi-directory-card p,
html.dark-mode section.bg-zebra .bayi-directory-card p,
html.dark-mode section.bg-white .bayi-directory-card p {
    color: var(--dm-body, #c8c8d0) !important;
    -webkit-text-fill-color: var(--dm-body, #c8c8d0) !important;
}
html.dark-mode .bayi-directory-card .bayi-arrow {
    background: color-mix(in srgb, var(--color-primary) 22%, transparent);
    color: var(--color-primary);
}
html.dark-mode .bayi-directory-card:hover .bayi-arrow {
    background: var(--color-primary);
    color: #fff;
}

/* Prose Boyut Varyantları */
.prose-sm {
    font-size: 0.875rem;
    /* 14px */
}

.prose-lg {
    font-size: 1.25rem;
    /* 20px */
}

.prose-xl {
    font-size: 1.375rem;
    /* 22px */
    line-height: 1.8;
}

.prose-xl p {
    margin-top: 1.4em;
    margin-bottom: 1.4em;
}

.prose-xl h2 {
    font-size: 2em;
    margin-top: 1.5em;
    margin-bottom: 0.8333333em;
}

.prose-xl h3 {
    font-size: 1.6666667em;
    margin-top: 1.4em;
    margin-bottom: 0.6em;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   4. ANİMASYONLAR
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Scroll Animasyonları */
/* Scroll Animasyonları Devre Dışı (Kullanıcı Talebi: En sade şekilde) */
[data-animate] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Fade Varyasyonları */
[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="fade-down"] {
    transform: translateY(-30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-in"] {
    transform: none;
}

[data-animate="zoom-in"] {
    transform: scale(0.95);
}

[data-animate].is-visible {
    transform: translateY(0) translateX(0) scale(1);
}

/* Keyframe Animasyonları */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Utility Animasyon Sınıfları */
.animate-fade-in {
    animation: fadeIn var(--transition-base) ease-out;
}

.animate-slide-up {
    animation: slideUp var(--transition-base) ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   5. LAYOUT BİLEŞENLERİ
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Section Spacing */
.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

@media (min-width: 1024px) {
    .section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   6. KART BİLEŞENLERİ
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Base Card */
.card {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-base);
    border: 0.5px solid #e2e8f0;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.card:hover {
    border-color: var(--color-primary);
    box-shadow: none;
}

/* Content Card */
.content-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-base);
    border: 0.5px solid #e2e8f0;
    box-shadow: none;
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.content-card:hover {
    border-color: var(--color-primary);
    box-shadow: none;
}

/* Kart "Fiyat Al" — ince outline, Detaylar ile aynı yükseklik dili */
.card-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    min-height: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    cursor: pointer;
    user-select: none;
    background: transparent !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    border-radius: var(--border-radius-base, 8px);
    box-shadow: none !important;
    color: #334155 !important;
    transition:
        color var(--transition-hover),
        background-color var(--transition-hover),
        border-color var(--transition-hover);
}
.card-quote-btn > span,
.content-card .card-quote-btn,
.content-card .card-quote-btn > span,
section .content-card .card-quote-btn,
section .content-card .card-quote-btn > span,
section.bg-zebra .content-card .card-quote-btn,
section.bg-zebra .content-card .card-quote-btn > span,
section.bg-white .content-card .card-quote-btn,
section.bg-white .content-card .card-quote-btn > span {
    color: #334155 !important;
    opacity: 1 !important;
}
.card-quote-btn i,
.content-card .card-quote-btn i,
section .content-card .card-quote-btn i {
    font-size: 0.95rem;
    line-height: 1;
    color: #25D366 !important;
    opacity: 1 !important;
}
.card-quote-btn:hover,
.card-quote-btn:focus-visible {
    background: rgba(37, 211, 102, 0.08) !important;
    border-color: rgba(37, 211, 102, 0.45) !important;
    color: #166534 !important;
    outline: none;
}
.card-quote-btn:hover > span,
.card-quote-btn:focus-visible > span,
.content-card .card-quote-btn:hover > span,
section .content-card .card-quote-btn:hover > span {
    color: #166534 !important;
}
.card-quote-btn:not(.is-wa) i {
    color: var(--color-primary) !important;
}
.card-quote-btn:not(.is-wa):hover {
    background: rgba(var(--color-primary-rgb, 14, 165, 233), 0.08) !important;
    border-color: rgba(var(--color-primary-rgb, 14, 165, 233), 0.4) !important;
}
html.dark-mode .card-quote-btn,
html.dark-mode .card-quote-btn > span,
html.dark-mode .content-card .card-quote-btn,
html.dark-mode .content-card .card-quote-btn > span {
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}
html.dark-mode .card-quote-btn:hover,
html.dark-mode .card-quote-btn:hover > span {
    color: #ffffff !important;
    background: rgba(37, 211, 102, 0.12) !important;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-base);
    border: 0.5px solid #e2e8f0;
    box-shadow: none;
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.product-card:hover {
    border-color: var(--color-primary);
    box-shadow: none;
}

/* Katalog Card */
.katalog-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-base);
    border: 0.5px solid #e2e8f0;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.katalog-card:hover {
    border-color: var(--color-primary);
    box-shadow: none;
}

/* Reference Item */
.reference-item {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-sm);
    border: 0.5px solid #e2e8f0;
    transition: border-color var(--transition-base);
    cursor: pointer;
}

.reference-item:hover {
    border-color: var(--color-primary);
}

/* Gallery Item */
.gallery-item {
    border: 0.5px solid #e2e8f0;
    transition: border-color var(--transition-base);
}

.gallery-item:hover {
    border-color: var(--color-primary);
}

/* Video Card */
.video-card {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-base);
    border: 0.5px solid #e2e8f0;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.video-card:hover {
    border-color: var(--color-primary);
    box-shadow: none;
}

/* Video kart — medya + play overlay */
.video-card__media {
    position: relative;
    isolation: isolate;
}
.video-card__overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.12) 45%, rgba(15, 23, 42, 0.18) 100%);
    transition: background 0.3s ease;
}
.video-card:hover .video-card__overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.22) 50%, rgba(15, 23, 42, 0.28) 100%);
}

/* Modern video play control — frosted glass + primary ring */
.video-play-btn {
    width: 4.25rem;
    height: 4.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.42);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--color-primary) 55%, transparent),
        0 10px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.video-play-btn i {
    font-size: 1.15rem;
    margin-left: 0.15rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.group:hover .video-play-btn,
.video-card:hover .video-play-btn {
    transform: scale(1.08);
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow:
        0 0 0 2.5px color-mix(in srgb, var(--color-primary) 75%, transparent),
        0 14px 32px rgba(0, 0, 0, 0.32);
}
@media (min-width: 640px) {
    .video-play-btn {
        width: 4.75rem;
        height: 4.75rem;
    }
    .video-play-btn i {
        font-size: 1.35rem;
        margin-left: 0.2rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   7. FORM ELEMANLARI
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Input Base */
.input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-body);
    background-color: var(--color-bg-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-base);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.input:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

/* Button Base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    border: none;
    border-radius: var(--border-radius-base);
    cursor: pointer;
    transition:
        background-color var(--transition-hover),
        box-shadow var(--transition-hover),
        color var(--transition-hover),
        border-color var(--transition-hover);
}

.btn:hover {
    box-shadow: var(--shadow-md);
}

/* Button Variants */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: white;
}

.btn-secondary {
    background-color: #64748b;
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   8. UTILITY SINIFLARI
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Line Clamp */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scrollbar Gizleme */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* GPU Hızlandırma */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Aspect Ratio */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-portrait {
    aspect-ratio: 3 / 4;
}

/* Backdrop Blur */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   9. RESPONSIVE DÜZENLEMELER
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Mobil Öncelikli Gizleme */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
}

/* Desktop'ta Gizleme */
@media (min-width: 1024px) {
    .hide-desktop {
        display: none;
    }
}

/* Touch Cihazlar için Hover Devre Dışı */
@media (hover: none) {
    .card:hover,
    .content-card:hover,
    .product-card:hover,
    .katalog-card:hover,
    .reference-item:hover,
    .gallery-item:hover,
    .video-card:hover {
        border-color: inherit;
    }
}

/* Reduced Motion Tercihi */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}

/* Print Stilleri */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    a {
        text-decoration: underline;
    }

    .card,
    .content-card,
    .product-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   DARK MODE - KART BİLEŞENLERİ
   ═══════════════════════════════════════════════════════════════════════════════ */

html.dark-mode .card,
html.dark-mode .content-card,
html.dark-mode .product-card,
html.dark-mode .katalog-card {
    background-color: var(--dm-elevated, #303038);
    border-color: var(--dm-border-soft, #34343c);
}

html.dark-mode .card:hover,
html.dark-mode .content-card:hover,
html.dark-mode .product-card:hover,
html.dark-mode .katalog-card:hover {
    border-color: var(--color-primary) !important;
    box-shadow: none !important;
    background-color: var(--dm-hover, #3a3a44);
}

html.dark-mode .reference-item {
    background-color: var(--dm-elevated, #303038);
    border-color: var(--dm-border-soft, #34343c);
}

html.dark-mode .reference-item:hover {
    border-color: var(--color-primary) !important;
    background-color: var(--dm-hover, #3a3a44);
}

html.dark-mode .gallery-item {
    border-color: var(--dm-border-soft, #34343c);
}

html.dark-mode .gallery-item:hover {
    border-color: var(--color-primary) !important;
}

html.dark-mode .video-card {
    background-color: var(--dm-elevated, #303038);
    border-color: var(--dm-border-soft, #34343c);
}

html.dark-mode .video-card:hover {
    border-color: var(--color-primary) !important;
    box-shadow: none !important;
    background-color: var(--dm-hover, #3a3a44);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MOBİL İYİLEŞTİRMELER
   ═══════════════════════════════════════════════════════════════════════════════ */

/* iOS input zoom önleme */
@media (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="url"],
    textarea,
    select {
        font-size: 16px !important;
    }

    /* Dokunma hedefleri minimum 44px — sadece butonlar ve nav linkleri */
    button:not(.slider-indicator),
    [role="button"],
    .btn,
    nav a {
        min-height: 44px;
    }
    footer .footer-bottom__legal-link {
        min-height: 0;
    }

    /* Hero section mobilde daha kompakt */
    .hero-section {
        min-height: 50vh !important;
    }

    /* Section padding mobilde azalt */
    .section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Başlıklar mobilde küçült */
    h1 { font-size: clamp(1.5rem, 5vw, 2.5rem) !important; }
    h2 { font-size: clamp(1.25rem, 4vw, 2rem) !important; }
    h3 { font-size: clamp(1.1rem, 3.5vw, 1.5rem) !important; }

    /* Kart grid'leri tek sütun */
    .cards-grid {
        grid-template-columns: 1fr !important;
    }

    /* Tablo yatay scroll */
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Float butonlar mobilde daha büyük */
    .contact-float-btn {
        width: 52px !important;
        height: 52px !important;
    }

    /* Pagination mobilde kompakt */
    .pagination a,
    .pagination span {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
    }

    /* Arama sayfası input */
    .search-input {
        font-size: 16px !important;
    }

    /* Cookie consent mobilde tam genişlik */
    #cookie-consent-banner {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 0 !important;
        max-width: 100% !important;
    }
}

/* Küçük ekranlar (< 380px) */
@media (max-width: 380px) {
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    h1 { font-size: 1.4rem !important; }
    h2 { font-size: 1.2rem !important; }
}

/* Koyu tema: ürün teknik tablosu — açık zemin + açık yazı çakışmasın */
html.dark-mode .product-specs-wrap,
html.dark-mode .prose .table-wrap,
html.dark-mode .bayi-table-wrap {
    background: var(--dm-panel, #25252b) !important;
    border-color: var(--dm-border-soft, #34343c) !important;
}
html.dark-mode .product-specs-wrap table,
html.dark-mode table.product_detail_table,
html.dark-mode body section.bg-white .prose table.product_detail_table,
html.dark-mode body section.bg-zebra .prose table.product_detail_table,
html.dark-mode body main .prose table.product_detail_table {
    background: var(--dm-panel, #25252b) !important;
    color: var(--dm-body, #c8c8d0) !important;
    border-color: var(--dm-border-soft, #34343c) !important;
}
html.dark-mode .product-specs-wrap td,
html.dark-mode .product-specs-wrap th,
html.dark-mode table.product_detail_table td,
html.dark-mode table.product_detail_table th,
html.dark-mode body section.bg-white .prose table.product_detail_table td,
html.dark-mode body section.bg-white .prose table.product_detail_table th,
html.dark-mode body section.bg-zebra .prose table.product_detail_table td,
html.dark-mode body section.bg-zebra .prose table.product_detail_table th,
html.dark-mode body main .prose table.product_detail_table td,
html.dark-mode body main .prose table.product_detail_table th {
    color: var(--dm-body, #c8c8d0) !important;
    background: transparent !important;
    border-bottom-color: var(--dm-border-soft, #34343c) !important;
    -webkit-text-fill-color: var(--dm-body, #c8c8d0) !important;
}
html.dark-mode table.product_detail_table td:first-child,
html.dark-mode table.product_detail_table th:first-child,
html.dark-mode body section.bg-white .prose table.product_detail_table td:first-child,
html.dark-mode body section.bg-zebra .prose table.product_detail_table td:first-child,
html.dark-mode body main .prose table.product_detail_table td:first-child {
    color: var(--dm-heading, #f4f4f5) !important;
    -webkit-text-fill-color: var(--dm-heading, #f4f4f5) !important;
}
html.dark-mode .product-specs-wrap tbody tr:nth-child(even) td,
html.dark-mode table.product_detail_table tbody tr:nth-child(even) td,
html.dark-mode body section.bg-white .prose table.product_detail_table tbody tr:nth-child(even) td,
html.dark-mode body section.bg-zebra .prose table.product_detail_table tbody tr:nth-child(even) td,
html.dark-mode body main .prose table.product_detail_table tbody tr:nth-child(even) td {
    background: var(--dm-elevated, #303038) !important;
}
html.dark-mode .product-specs-wrap tbody tr:hover td,
html.dark-mode table.product_detail_table tbody tr:hover td {
    background: var(--dm-hover, #3a3a44) !important;
}
html.dark-mode table.product_detail_table tr:first-child td[colspan],
html.dark-mode table.product_detail_table tr:first-child th[colspan],
html.dark-mode body section.bg-white .prose table.product_detail_table tr:first-child td[colspan],
html.dark-mode body section.bg-zebra .prose table.product_detail_table tr:first-child td[colspan],
html.dark-mode body main .prose table.product_detail_table tr:first-child td[colspan],
html.dark-mode table.product_detail_table thead th {
    color: var(--dm-heading, #f4f4f5) !important;
    -webkit-text-fill-color: var(--dm-heading, #f4f4f5) !important;
    background: color-mix(in srgb, var(--color-primary, #f59c10) 18%, var(--dm-panel, #25252b)) !important;
}
html.dark-mode table.product_detail_table tr:first-child td[colspan] strong,
html.dark-mode table.product_detail_table tr:first-child td[colspan] b {
    color: var(--dm-heading, #f4f4f5) !important;
    -webkit-text-fill-color: var(--dm-heading, #f4f4f5) !important;
    background: transparent !important;
}
html.dark-mode .prose .product-diagram img {
    background: var(--dm-elevated, #303038);
}

