/* Kappadoor iç sayfa stilleri */
:root {
    --kd-blue: #0B3886;
    --kd-cyan: #00A0E4;
    --kd-blue-dark: #082a64;
}

/* Page hero — ortalı banner + breadcrumb */
.kd-page-hero {
    background: linear-gradient(135deg, var(--kd-blue) 0%, var(--kd-blue-dark) 55%, #0a2f6e 100%);
    padding: 56px 0 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.kd-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(0, 160, 228, 0.18), transparent 45%);
    pointer-events: none;
}

.kd-page-hero .container {
    position: relative;
    z-index: 1;
}

.kd-page-hero h1 {
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.kd-page-hero-breadcrumb {
    display: flex;
    justify-content: center;
}

.kd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.kd-breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.kd-breadcrumb-item a:hover {
    color: var(--kd-cyan);
}

.kd-breadcrumb-item.is-active {
    color: var(--kd-cyan);
    font-weight: 600;
}

.kd-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.45);
}

/* İçerik sayfaları padding */
.kd-inner-content,
.by-gallery-page,
.by-gallery-list-page,
.by-contact-page,
.by-blog-page,
.by-references-page,
.by-products-page,
.by-product-detail,
.by-content-page,
.site-main-inner {
    padding-top: 56px;
    padding-bottom: 64px;
}

/* reCAPTCHA ortalama */
.kd-recaptcha-col,
.by-recaptcha-wrap,
.teklif-recaptcha-col {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 8px 0 4px;
}

.by-recaptcha-wrap > div,
.by-recaptcha-wrap iframe {
    margin: 0 auto;
}

/* İkram/Kılsan renk override */
.by-contact-page .by-contact-submit,
.by-blog-card-link,
.by-gallery-page a:hover,
.ikram-page-hero {
    /* legacy class neutralize */
}

.by-contact-page .by-contact-submit,
.by-cta-whatsapp,
.ttm-btn-color-skincolor,
.btn-default {
    background: var(--kd-cyan) !important;
    border-color: var(--kd-cyan) !important;
}

.by-contact-page .by-contact-submit:hover,
.btn-default:hover {
    background: var(--kd-blue) !important;
    border-color: var(--kd-blue) !important;
}

.ikram-listing-section,
.ttm-row.ikram-listing-section {
    padding-top: 56px;
    padding-bottom: 64px;
}

.ikram-listing-intro {
    text-align: center;
    color: var(--text-color, #5A6478);
    margin-bottom: 32px;
}
.kd-ref-slider {
    display: flex;
    gap: 28px;
    animation: kdRefScroll 28s linear infinite;
    width: max-content;
}

.kd-ref-item img {
    max-height: 72px;
    width: auto;
    filter: grayscale(20%);
    opacity: 0.9;
}

@keyframes kdRefScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Font Awesome 6 — iletişim ve detay sayfaları */
.by-contact-page .fa-brands,
.by-urun-detay .fa-brands,
.by-blog-detay-yeni .fa-brands,
.by-contact-social .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}

.by-contact-page .fa-solid,
.by-urun-detay .fa-solid,
.by-blog-detay-yeni .fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

.kd-ref-track {
    overflow: hidden;
    padding: 10px 0;
}

/* ================================================
   Kappadoor marka renk override — sarı/İkram kalıntıları
   ================================================ */
.by-bd-cta-icon i,
.by-sidebar-header i,
.by-cta-icon i {
    color: #fff !important;
}

.by-bd-cta-btn,
.by-sidebar-tel {
    background: var(--kd-cyan) !important;
    color: #fff !important;
    border: none;
}

.by-bd-cta-btn:hover,
.by-sidebar-tel:hover {
    background: var(--kd-blue) !important;
    color: #fff !important;
}

/* Ürün kartları */
.ikram-urun-grid {
    margin-left: -12px;
    margin-right: -12px;
    margin-top: 8px;
}

.ikram-urun-grid > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    margin-top: 30px;
}

.ikram-urun-card {
    background: #fff;
    border: 1px solid #e8eaf3;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(11, 56, 134, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ikram-urun-card:hover {
    box-shadow: 0 12px 32px rgba(11, 56, 134, 0.12);
    transform: translateY(-4px);
}

.ikram-urun-card-img {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f9f9f9;
}

.ikram-urun-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ikram-urun-card:hover .ikram-urun-card-img img {
    transform: scale(1.05);
}

.ikram-urun-card-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ikram-urun-card-title {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    min-height: 44px;
}

.ikram-urun-card-title a {
    color: var(--kd-blue) !important;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ikram-urun-card-title a:hover {
    color: var(--kd-cyan) !important;
}

.ikram-urun-card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--kd-cyan);
    text-decoration: none;
    padding-top: 12px;
    border-top: 1px solid #eef0f6;
    transition: color 0.2s ease, gap 0.2s ease;
}

.ikram-urun-card-link:hover {
    color: var(--kd-blue);
    gap: 10px;
}

.ikram-listing-empty {
    text-align: center;
    padding: 48px 28px;
    background: #f9f9f9;
    border: 1px solid #ececec;
    border-radius: 12px;
}

.ikram-listing-empty h4 {
    margin: 0 0 10px;
    color: var(--kd-blue);
    font-size: 1.25rem;
}

.ikram-content-page-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 8px 24px rgba(11, 56, 134, 0.06);
}

.ikram-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.kd-pagination,
.page-pagination.kd-pagination {
    margin-top: 0;
    text-align: center;
    width: 100%;
}

.kd-pagination ul,
.page-pagination.kd-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.kd-pagination ul li,
.page-pagination.kd-pagination ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kd-pagination ul li a,
.kd-pagination ul li span,
.page-pagination.kd-pagination ul li a,
.page-pagination.kd-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #dde0f0;
    border-radius: 10px;
    background: #fff;
    color: var(--kd-blue);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.kd-pagination ul li a:hover,
.page-pagination.kd-pagination ul li a:hover {
    background: var(--kd-cyan);
    border-color: var(--kd-cyan);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 160, 228, 0.22);
}

.kd-pagination ul li.active span,
.page-pagination.kd-pagination ul li.active span {
    background: var(--kd-blue);
    border-color: var(--kd-blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(11, 56, 134, 0.18);
}

.kd-pagination ul li.disabled span,
.page-pagination.kd-pagination ul li.disabled span {
    background: #f4f7fb;
    border-color: #e8eaf3;
    color: #a8b0c3;
    cursor: not-allowed;
}

.kd-pagination-info {
    margin: 14px 0 0;
    font-size: 14px;
    color: var(--text-color, #5A6478);
}

/* Accordion / sidebar aktif renkler */
.by-acc-btn:hover,
.by-acc-btn.is-active,
details[open] > .by-acc-btn,
.by-acc-link:hover,
.by-acc-link.aktif,
.by-acc-solo:hover,
.by-acc-solo.aktif {
    background: #f9f9f9 !important;
    color: var(--kd-blue) !important;
}

.by-sidebar-header,
.by-bd-widget-cta,
.by-sidebar-cta {
    background: linear-gradient(135deg, var(--kd-blue) 0%, var(--kd-blue-dark) 100%) !important;
}

.by-urun-detay {
    background: #f9f9f9 !important;
}

/* 404 Sayfası */
.kd-404-page {
    padding: 56px 0 72px;
    background: linear-gradient(180deg, #f4f7fb 0%, #f9fafb 100%);
    min-height: 55vh;
}

.kd-404-card {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e4eaf3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(11, 56, 134, 0.08);
}

.kd-404-visual {
    background: linear-gradient(135deg, var(--kd-blue) 0%, var(--kd-blue-dark) 100%);
    padding: 40px 24px 36px;
    text-align: center;
    position: relative;
}

.kd-404-code {
    margin: 0;
    font-size: clamp(4rem, 12vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: -0.04em;
}

.kd-404-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 160, 228, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}

.kd-404-body {
    padding: 32px 28px 36px;
}

.kd-404-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--kd-cyan);
    margin-bottom: 10px;
}

.kd-404-title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--kd-blue);
    line-height: 1.25;
}

.kd-404-desc {
    margin: 0 0 24px;
    color: #5A6478;
    line-height: 1.7;
    font-size: 15px;
}

.kd-404-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.kd-404-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #dde3ec;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.kd-404-search input:focus {
    border-color: var(--kd-cyan);
}

.kd-404-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.kd-404-btn--primary {
    background: var(--kd-cyan);
    color: #fff !important;
}

.kd-404-btn--primary:hover {
    background: var(--kd-blue);
    color: #fff !important;
}

.kd-404-btn--outline {
    background: #fff;
    color: var(--kd-blue) !important;
    border: 1px solid #dde3ec;
}

.kd-404-btn--outline:hover {
    border-color: var(--kd-cyan);
    color: var(--kd-cyan) !important;
}

.kd-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.kd-404-links-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8892a4;
}

.kd-404-links {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.kd-404-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e8edf3;
    color: var(--kd-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.kd-404-links a:hover {
    background: #e8f6fc;
    border-color: var(--kd-cyan);
    color: var(--kd-cyan);
}

.kd-404-links a i {
    color: var(--kd-cyan);
    width: 16px;
    text-align: center;
}

.kd-404-help {
    padding-top: 20px;
    border-top: 1px solid #eef2f7;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    font-size: 14px;
    color: #5A6478;
}

.kd-404-help a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--kd-blue);
    font-weight: 600;
    text-decoration: none !important;
}

.kd-404-help a:hover {
    color: var(--kd-cyan);
}

@media (max-width: 575px) {
    .kd-404-body {
        padding: 24px 18px 28px;
    }

    .kd-404-search {
        flex-direction: column;
    }

    .kd-404-links {
        grid-template-columns: 1fr;
    }
}

/* Hızlı iletişim FAB */
.fab-container {
    position: fixed;
    bottom: 37px;
    left: 28px;
    z-index: 9990;
}

.fab-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--kd-blue);
    border: none;
    box-shadow: 0 8px 24px rgba(11, 56, 134, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.fab-button:hover {
    transform: scale(1.08);
    background: var(--kd-cyan);
}

.fab-icon-open,
.fab-icon-close {
    position: absolute;
    font-size: 24px;
    color: #fff;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.fab-button.active .fab-icon-open {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.fab-button.active .fab-icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.fab-button.active {
    transform: rotate(45deg);
    background: var(--kd-cyan);
}

.fab-button.active:hover {
    transform: rotate(45deg) scale(1.08);
}

.fab-menu {
    position: absolute;
    bottom: 80px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.fab-container.active .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.fab-item {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
}

.fab-container.active .fab-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fab-container.active .fab-item:nth-child(1) { transition-delay: 0.05s; }
.fab-container.active .fab-item:nth-child(2) { transition-delay: 0.1s; }
.fab-container.active .fab-item:nth-child(3) { transition-delay: 0.15s; }
.fab-container.active .fab-item:nth-child(4) { transition-delay: 0.2s; }

.fab-item:nth-child(1) { background: linear-gradient(135deg, #25D366, #128C7E); }
.fab-item:nth-child(2) { background: linear-gradient(135deg, var(--kd-blue), var(--kd-blue-dark)); }
.fab-item:nth-child(3) { background: linear-gradient(135deg, #E1306C, #C13584); }
.fab-item:nth-child(4) { background: linear-gradient(135deg, var(--kd-cyan), var(--kd-blue)); }

.fab-item:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 24px;
        left: 16px;
    }

    .fab-button {
        width: 56px;
        height: 56px;
    }

    .fab-item {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}
