/* =====================================================
   BOOTSTRAP FONT OVERRIDE (EN ÜSTTE)
   ===================================================== */
:root {
    --bs-body-font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =====================================================
   GLOBAL RESET & OVERFLOW FIX
   ===================================================== */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 🔥 sağa taşma keser */
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: var(--bs-body-font-family);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    line-height: 1.6;
}

/* =====================================================
   BOOTSTRAP FOCUS STATES (TEMİZ)
   ===================================================== */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 .1rem #fff, 0 0 0 .25rem #258cfb;
}

/* =====================================================
   FORM FLOATING
   ===================================================== */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =====================================================
   HEADER & NAVBAR (PREMIUM)
   ===================================================== */
header {
    border-bottom: 1px solid #eee;
    background: #fff;
}

    header.shadow-sm {
        box-shadow: 0 6px 20px rgba(0,0,0,.06) !important;
    }

    header .navbar {
        padding: 12px 0;
    }

/* Logo */
.navbar-brand img {
    transition: transform .2s ease;
}

.navbar-brand:hover img {
    transform: scale(1.03);
}

/* Menü linkleri */
.navbar-nav .nav-link {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .2px;
    color: #222;
    padding: 8px 14px;
    position: relative;
    transition: color .2s ease;
}

    /* Hover alt çizgi */
    .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 4px;
        height: 2px;
        background: #000;
        opacity: 0;
        transform: scaleX(.6);
        transition: .25s ease;
    }

    .navbar-nav .nav-link:hover {
        color: #000;
    }

        .navbar-nav .nav-link:hover::after {
            opacity: 1;
            transform: scaleX(1);
        }

/* =====================================================
   DROPDOWN (MARKALAR)
   ===================================================== */
.dropdown-menu.custom-dropdown {
    border: none;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
}

.custom-dropdown .dropdown-item {
    padding: 10px 15px;
    border-radius: 10px;
    transition: background .2s ease, transform .15s ease;
}

    .custom-dropdown .dropdown-item:hover {
        background: #f5f5f5;
        transform: translateX(3px);
    }

.custom-dropdown img {
    height: 22px;
}

/* =====================================================
   SEARCH
   ===================================================== */
#searchBox {
    border-radius: 999px;
    padding: 6px 14px;
    border-color: #ddd;
    font-size: 14px;
}

    #searchBox:focus {
        border-color: #000;
        box-shadow: 0 0 0 .15rem rgba(0,0,0,.1);
    }

/* taşma yapmayan dropdown */
#searchDropdown {
    border-radius: 14px;
    width: 100%;
    max-width: 500px;
}

/* =====================================================
   ICON BUTTONS (SAĞ TARAF)
   ===================================================== */
header .btn-outline-secondary {
    border-radius: 999px;
    border-color: #ddd;
    transition: all .2s ease;
}

    header .btn-outline-secondary:hover {
        background: #000;
        border-color: #000;
        color: #fff;
    }

/* =====================================================
   NAVBAR TOGGLER
   ===================================================== */
.navbar-toggler {
    border-radius: 8px;
    border-color: #ddd;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 .15rem rgba(0,0,0,.1);
    }

/* =====================================================
   CONTAINER FLUID FIX (NEGATIVE MARGIN ÖNLEME)
   ===================================================== */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* =====================================================
   MOBILE (NAV)
   ===================================================== */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 10px 6px;
    }

        .navbar-nav .nav-link::after {
            display: none;
        }
}

/* =====================================================
   TILE (KALİTE VİTRİN KARTLARI) - DİKEY
   Kullanım: <a class="tile"> ... </a>
   ===================================================== */
a.tile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4; /* ✅ dikey */
    border-radius: 18px;
    overflow: hidden; /* ✅ zoom taşmaz, biniş olmaz */
    text-decoration: none;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    transform: translateZ(0);
}

    a.tile > img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .45s ease;
    }

    a.tile:hover > img {
        transform: scale(1.06);
    }

    a.tile .tile__overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,.70), rgba(0,0,0,.20), rgba(0,0,0,0));
        opacity: 1;
    }

    a.tile .tile__content {
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 14px;
        display: grid;
        gap: 6px;
        z-index: 1;
    }

    a.tile .tile__title {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
    }

    a.tile .tile__sub {
        font-size: 13px;
        opacity: .92;
    }

/* =====================================================
   CATALOG PRODUCT CARD (ÜRÜN KARTI) - OVERLAY TEXT
   Kullanım: <a class="catalog-link"><div class="card catalog-card">...</div></a>
   ===================================================== */
a.catalog-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.catalog-card {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

    /* h-100 verilirse bile uzatmasın */
    .catalog-card.h-100 {
        height: auto !important;
    }

    .catalog-card .img-wrap {
        position: relative;     
        aspect-ratio: 3 / 4; /* ✅ DİKEY 3:4 */
    }

        .catalog-card .img-wrap img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }

    /* Alt metin bandı */
    .catalog-card .img-text {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 12px 14px;
        color: #fff;
        background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.25), rgba(0,0,0,0));
    }

        .catalog-card .img-text .brand {
            font-size: 12px;
            font-weight: 600;
            opacity: .9;
        }

        .catalog-card .img-text .name {
            font-size: 13px;
            font-weight: 600;
            line-height: 1.25;
        }

    /* İstersen ürün kartında da hover zoom */
    .catalog-card .img-wrap img {
        transition: transform .45s ease;
    }

a.catalog-link:hover .catalog-card .img-wrap img {
    transform: scale(1.04);
}
.single-line {
    white-space: nowrap; /* alt satıra geçme */
    overflow: hidden; /* taşanı gizle */
    text-overflow: ellipsis; /* ... koy */
}
.tile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    transform: translateZ(0);
}

    .tile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.02);
        transition: transform .45s ease;
    }

.tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.10) 35%, rgba(0,0,0,.55) 100%);
    opacity: .95;
    transition: opacity .35s ease;
}

.tile__content {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: grid;
    gap: 6px;
}

.tile__badge {
    justify-self: start;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.18);
}

.tile__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 8px 22px rgba(0,0,0,.35);
}

.tile__sub {
    font-size: 13px;
    opacity: .92;
}

.tile:hover img {
    transform: scale(1.08);
}

.tile:hover .tile__overlay {
    opacity: 1;
}

.tile:focus-visible {
    outline: 3px solid rgba(13,110,253,.5); /* bootstrap primary */
    outline-offset: 3px;
}

/* Mobilde yazı biraz küçülsün */
@@media (max-width: 576px) {
    .tile {
        border-radius: 14px;
    }

    .tile__title {
        font-size: 15px;
    }

    .tile__sub {
        font-size: 12px;
    }
}
/* Ortada başlık + iki yana doğru gradient çizgi */
.section-divider {
    position: relative;
    text-align: center;
    margin: 30px 0 22px;
}

    .section-divider::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 1px;
        transform: translateY(-50%);
        background: linear-gradient(to right, transparent, #d9d9d9, transparent);
    }

    .section-divider span {
        position: relative;
        display: inline-block;
        background: #fff; /* Eğer arka planın farklıysa aynı renge çek */
        padding: 0 18px;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 1.5px; /* geniş harf aralığı */
        text-transform: uppercase; /* istersen kaldır */
        color: #333;
    }

/* Mobilde daha dengeli */
@media (max-width: 576px) {
    .section-divider {
        margin: 22px 0 16px;
    }

        .section-divider span {
            font-size: 14px;
            padding: 0 12px;
            letter-spacing: 1.2px;
        }
}
/* THUMB STRIP – 10'LU ŞERİT (GARANTİ) */
.thumbstrip {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
    font-size: 0; /* inline boşluk ihtimalini de öldür */
    line-height: 0;
}

.thumbstrip__item {
    flex: 0 0 10%; /* 🔥 10 adet = her biri %10 (kilit) */
    height: 120px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

    .thumbstrip__item img {
        width: 100% !important; /* 🔥 başka CSS ezmesin */
        height: 100% !important;
        display: block !important;
        object-fit: cover;
        object-position: center;
    }
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    background: #f1f3f5;
    color: #333;
    text-decoration: none;
    transition: all .2s ease;
    border: 1px solid #e5e7eb;
}

    .tag-item:hover {
        background: #212529;
        color: #fff;
        transform: translateY(-2px);
    }
/* === SLIDER CAPTION GENEL === */
.custom-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 2.5rem;
    background: linear-gradient( to top, rgba(0,0,0,0.85), rgba(0,0,0,0.45), rgba(0,0,0,0) );
    text-align: left;
}

    /* === AFİŞ GİBİ BAŞLIK === */
    .custom-caption h5 {
        font-size: clamp(1.6rem, 4vw, 3rem);
        font-weight: 900;
        line-height: 1.15;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #ffffff;
        margin-bottom: 0.6rem;
    }

    /* === AÇIKLAMA === */
    .custom-caption p {
        font-size: clamp(0.95rem, 2.2vw, 1.2rem);
        font-weight: 500;
        max-width: 720px;
        color: #f2f2f2;
    }

/* === MOBİL İNCE AYAR === */
@media (max-width: 576px) {
    .custom-caption {
        padding: 1.2rem 1.4rem;
    }

        .custom-caption h5 {
            letter-spacing: 0.6px;
        }
}
