﻿:root {
    --color-primary: #EA2047;
    --color-primary-700: #B71733;
    --color-gray-900: #232426;
    --color-gray-500: #6D6E71;
}

.btn-primary {
    background-color: var(--color-primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

    .btn-primary:hover {
        background-color: var(--color-primary-700);
    }

/* Genel section boşlukları */
.section {
    padding: 3rem 0;
}

/* HERO */
.section-hero {
    position: relative;
}

.section-hero__media {
    overflow: hidden;
}

.section-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    /* arkaplan/renkleri burada temalandır */
    background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.35));
}

.section-hero__title {
    margin-bottom: .5rem;
}

.section-hero__subtitle {
    opacity: .9;
}

/* VIDEO FULL */
.section-video-full__wrap {
    overflow: hidden;
    border-radius: .75rem;
}

.section-video-full__caption {
    margin-top: .75rem;
    color: var(--bs-secondary-color);
}

/* SPLIT */
.section-split__title {
    margin-bottom: .75rem;
}

.section-split__body {
    color: var(--bs-secondary-color);
}

.section-split__image {
    border-radius: .75rem;
}

/* SLIDER */
.section-slider__image {
    max-height: 640px;
    object-fit: cover;
}

.section-slider__caption {
    margin-top: .5rem;
    color: var(--bs-secondary-color);
}

/* Hero (image) */
.section-hero {
    position: relative;
    min-height: 60vh;
}

.section-hero--image .section-hero__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.section-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.35));
}

.section-hero__title {
    color: #fff;
    margin-bottom: .5rem;
}

.section-hero__subtitle {
    color: rgba(255,255,255,.85);
}



/* MasterHero aktifken navbar şeffaf/kayan */
.has-master-hero .navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent !important;
    box-shadow: none !important;
    z-index: 10;
}

    .has-master-hero .navbar.scrolled {
        position: fixed;
        background-color: rgba(0,0,0,.85) !important;
        backdrop-filter: saturate(180%) blur(6px);
    }

    .has-master-hero .navbar .nav-link {
        color: #fff !important;
    }

    .has-master-hero .navbar.scrolled .nav-link {
        color: #fff !important;
    }

/* — MasterHero tam ekran, üstten başlasın — */
.master-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

    .master-hero .hero-bg-video,
    .master-hero .hero-bg-image {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100vw;
        height: auto;
        min-height: 100vh;
        transform: translate(-50%, -50%);
        object-fit: cover;
        background-size: cover;
        background-position: center center;
        z-index: 0;
    }



/* — MasterHero 1. sıradaysa navbar overlay & şeffaf — */
.has-master-hero .navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 10;
}

    .has-master-hero .navbar.scrolled {
        position: fixed;
        background: rgba(0,0,0,.85) !important;
        backdrop-filter: saturate(180%) blur(6px);
    }

/* — Link ve logo renkleri tema göre — */
.theme-dark .navbar .nav-link {
    color: #fff !important;
}

.theme-dark .navbar .btn.btn-primary {
    color: #fff;
}

.theme-dark .site-logo--light {
    display: inline;
}

.theme-dark .site-logo--dark {
    display: none;
}

.theme-light .navbar .nav-link {
    color: #212529 !important;
}

.theme-light .site-logo--light {
    display: none;
}

.theme-light .site-logo--dark {
    display: inline;
}

/* MasterHero açıkken ana içeriğin üst boşluğunu kaldır */
.has-master-hero main {
    padding-top: 0 !important;
}

/* Logo görünürlük kuralları */
.site-logo--light {
    display: none;
}

.site-logo--dark {
    display: none;
}

/* Tema bazlı görünürlük */
.theme-dark .site-logo--light {
    display: inline;
}

.theme-dark .site-logo--dark {
    display: none;
}

.theme-light .site-logo--light {
    display: none;
}

.theme-light .site-logo--dark {
    display: inline;
}

/* Varsayılan: her ikisini de kapat (özgüllük + !important) */
.navbar .navbar-brand img.site-logo--light,
.navbar .navbar-brand img.site-logo--dark {
    display: none !important;
}

/* Tema bazlı görünürlük (özgüllük + !important) */
.theme-dark .navbar .navbar-brand img.site-logo--light {
    display: inline-block !important;
}

.theme-dark .navbar .navbar-brand img.site-logo--dark {
    display: none !important;
}

.theme-light .navbar .navbar-brand img.site-logo--light {
    display: none !important;
}

.theme-light .navbar .navbar-brand img.site-logo--dark {
    display: inline-block !important;
}

.section-products-grid .card-img-top.object-fit-contain {
    object-fit: contain;
}

.section-addresses-two .section-head .h3 {
    font-weight: 700;
}

.section-addresses-two__list .small {
    letter-spacing: .02em;
}

.section-addresses-two__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    }

    .whatsapp-float img {
        width: 32px;
        height: 32px;
        filter: brightness(0) invert(1);
    }

/* ===== Category Panel ===== */
.section-category__row {
    align-items: stretch; /* sol kolon yüksekliği boyunca divider uzasın */
}

.section-category__left {
    position: relative;
}

.section-category__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

/* Divider: sol kolonun (görselin) yüksekliği kadar */
.section-category__divider {
    display: inline-block;
    width: 2px;
    background: var(--bs-border-color, rgba(0,0,0,.1));
    /* hilesi: bu span'ı sol kolona göre esnetmek için parent row align-items:stretch */
    height: 100%;
    transform: translateY(0); /* safi 100% çalışması için */
    border-radius: 1px;
}

/* Sağ blok tipografi */
.section-category__title {
    font-weight: 700;
}

.section-category__body p:last-child {
    margin-bottom: 0;
}

.section-category__links .section-category__link {
    text-decoration: none;
    font-weight: 600;
    color: var(--bs-body-color);
    border-bottom: 1px dashed transparent;
    transition: color .2s ease, border-color .2s ease, padding-left .15s ease;
}

    .section-category__links .section-category__link:hover {
        color: var(--bs-primary);
        border-color: var(--bs-primary);
        padding-left: .25rem;
    }

/* Dar ekranlarda divider kaybolsun, bloklar alt alta gelsin */
@media (max-width: 991.98px) {
    .section-category__divider {
        display: none;
    }
}

/* ===== Category Tree ===== */
.section-cat-tree__row {
    align-items: stretch;
}

.section-cat-tree__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

.section-cat-tree__divider {
    display: inline-block;
    width: 2px;
    height: 100%;
    background: var(--bs-border-color, rgba(0,0,0,.1));
    border-radius: 1px;
}

.section-cat-tree__title {
    font-weight: 800;
    letter-spacing: .2px;
}

/* Grup kartı */
.section-cat-tree__group .card-body {
    background: #fff;
    border-radius: 12px;
}

.section-cat-tree__link {
    text-decoration: none;
    font-weight: 600;
    color: var(--color-primary);
    transition: color .2s ease, transform .15s ease;
}

    .section-cat-tree__link .chev {
        display: inline-flex;
        width: 1.25rem;
        height: 1.25rem;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--bs-gray-100);
        font-weight: 700;
        line-height: 1;
        transform: translateY(-1px);
    }

    .section-cat-tree__link:hover {
        color: var(--color-primary-700);
        transform: translateX(2px);
    }

        .section-cat-tree__link:hover .chev {
            background: var(--color-primary-700);
            color: #fff;
        }

@media (max-width: 991.98px) {
    .section-cat-tree__divider {
        display: none;
    }
}

/* ----- Kategori kartları için çerçeve ve hover efekti ----- */
.section-cat-tree__card {
    border: 1px solid var(--color-primary-700);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    background: #fff;
}

    .section-cat-tree__card:hover {
        transform: translateY(-4px);
        border-color: var(--color-primary-700);
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
    }

    .section-cat-tree__card .card-body {
        border-radius: 14px;
        padding: 1.5rem 1.25rem;
    }

/* Başlık vurgusu */
.section-cat-tree__group-title {
    color: var(--color-primary-700);
    font-weight: 700;
}

/* Mobilde kart aralıklarını yumuşat */
@media (max-width: 768px) {
    .section-cat-tree__card {
        border-radius: 10px;
    }
}

.section-cat-tree__card {
    border: 1px solid transparent;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transition: all .3s ease;
}

    .section-cat-tree__card:hover {
        transform: translateY(-5px);
        border-color: var(--color-primary-700);
        box-shadow: 0 12px 28px rgba(0,0,0,.15);
        background: radial-gradient(circle at top left, rgba(230,240,255,0.6), #fff);
    }

/* ===== Category Detail ===== */
.section-cat-detail__row {
    align-items: stretch;
}

.section-cat-detail__title {
    font-weight: 800;
    letter-spacing: .2px;
}

/* Kaydırılabilir modern tablo kabuğu */
.table-shell {
    position: relative;
    border: 1px solid var(--bs-border-color, rgba(0,0,0,.1));
    border-radius: 12px;
    background: #fff;
}

    .table-shell .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    /* Edge fade (mobilde kaydırma ipucu gibi) */
    .table-shell .table-scroll {
        mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    }

/* sticky header */
.modern-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    border-bottom: 1px solid var(--bs-border-color, rgba(0,0,0,.1));
    font-weight: 700;
    white-space: nowrap;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .modern-table th, .modern-table td {
        padding: .75rem 1rem;
        vertical-align: middle;
        border-bottom: 1px solid var(--bs-border-color, rgba(0,0,0,.08));
    }

    .modern-table tbody tr:hover td {
        background: rgba(0,0,0,.02);
    }

/* mobil ipucu */
.table-shell .scroll-hint {
    font-size: .8rem;
    color: var(--bs-secondary-color, #6c757d);
    padding: .35rem .75rem .6rem;
    text-align: right;
}

/* Sağ teknik kartlar */
.tech-card {
    border: 1px solid var(--bs-border-color, rgba(0,0,0,.1));
    border-radius: 12px;
    background: #fff;
    transition: box-shadow .2s ease, transform .15s ease, border-color .2s ease;
}

.tech-card__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.tech-card:hover {
    border-color: var(--color-primary-700, var(--bs-primary));
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

/* Özellik kartı ve madde stili */
.features .card-body {
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--bs-border-color, rgba(0,0,0,.1));
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.feature-item {
    line-height: 1.45;
}

.feature-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--color-primary-700, var(--bs-primary));
    margin-top: .45rem;
}
