:root {
    --navy: #0f2a4a;
    --navy-2: #163a63;
    --brand: #0b6bcb;
    --brand-dark: #095aaa;
    --accent: #ff9f1c;
    --hot: #ff6b00;
    --soft: #f3f7fb;
    --line: #e3ebf3;
    --text: #1f2d3d;
    --muted: #6b7a8c;
    --ease-pop: cubic-bezier(.175, .885, .32, 1.275);
}

* {
    box-sizing: border-box;
}

/* =====================================================
                       1) KARGO ŞERİDİ
                       ===================================================== */
.top-shipping-banner {
    background: linear-gradient(90deg, var(--navy), var(--brand), var(--navy));
    background-size: 200% 100%;
    animation: bannerFlow 10s linear infinite;
    color: #fff;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .3px;
    overflow: hidden;
    white-space: nowrap;
    max-height: 60px;
    transition: max-height .3s ease, padding .3s ease;
}

.ship-track {
    display: inline-flex;
    width: max-content;
    animation: shipScroll 28s linear infinite;
}

/* Üzerine gelince dursun */
.top-shipping-banner:hover .ship-track {
    animation-play-state: paused;
}

.ship-group {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.ship-item {
    display: inline-flex;
    align-items: center;
    padding: 0 60px;
}

    .ship-item::after {
        content: '•';
        margin-left: 120px;
        opacity: .5;
    }

.top-shipping-banner strong {
    color: #ffd166;
    font-weight: 800;
}

.top-shipping-banner .ship-sub {
    font-size: 12px;
    margin-left: 6px;
    opacity: .8;
}

.top-shipping-banner .truck {
    display: inline-block;
    margin-right: 6px;
}

@keyframes shipScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes bannerFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.sticky-nav-container.scrolled .top-shipping-banner {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.top-links-bar {
    background: var(--soft);
    padding: 6px 5%;
    display: flex;
    justify-content: flex-end;
    gap: 22px;
    border-bottom: 1px solid var(--line);
}

    .top-links-bar a {
        color: var(--muted);
        font-size: 12px;
        font-weight: 500;
        text-decoration: none;
        position: relative;
        transition: color .2s;
    }

        .top-links-bar a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -2px;
            width: 0;
            height: 1px;
            background: var(--brand);
            transition: width .25s;
        }

        .top-links-bar a:hover {
            color: var(--brand);
        }

            .top-links-bar a:hover::after {
                width: 100%;
            }

.nav-holder {
    margin-bottom: 30px;
}

.sticky-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 42, 74, .08);
    transition: box-shadow .3s;
}

    /* Aşağı kaydırınca: kullanıcı/hesap alanıyla birlikte en üstte sabitlenir */
    .sticky-nav-container.is-fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .sticky-nav-container.scrolled {
        box-shadow: 0 6px 24px rgba(15, 42, 74, .22);
    }

    /* Ölçüm anında animasyonu kapatmak için */
    .sticky-nav-container.no-anim,
    .sticky-nav-container.no-anim * {
        transition: none !important;
    }

/* ---------- Orta alan (beyaz) ---------- */
.middle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 2px 5%;
    background: #fff;
    transition: padding .3s ease;
}

.logo-area {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 32%; /* büyük logo arama ve butonları sıkıştırmasın */
}

    .logo-area img {
        display: block;
        max-height: 150px;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        transition: max-height .3s ease, transform .3s;
    }

        .logo-area img:hover {
            transform: scale(1.04);
        }

/* ---------- Arama (kaydırınca sadece boyu küçülür) ---------- */
.search-area {
    flex: 1 1 auto;
    width: 100%;
    max-width: 580px;
    min-width: 400px;
    margin: 0 auto;
    transition: max-width .4s var(--ease-pop);
}

    .search-area form {
        display: flex;
        align-items: stretch;
        width: 100%;
        background: var(--soft);
        border: 2px solid var(--line);
        border-radius: 50px;
        overflow: hidden;
        transition: border-color .3s, box-shadow .3s, background .3s;
    }

        .search-area form:focus-within {
            background: #fff;
            border-color: var(--brand);
            box-shadow: 0 4px 16px rgba(11, 107, 203, .18);
        }

    .search-area input {
        flex: 1;
        min-width: 0;
        padding: 12px 20px;
        font-size: 14px;
        color: var(--text);
        background: transparent;
        border: none;
        outline: none;
        transition: padding .3s ease, font-size .3s ease;
    }

    .search-area button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0 22px;
        background: var(--brand);
        color: #fff;
        border: none;
        cursor: pointer;
        transition: background .25s, padding .3s ease;
    }

        .search-area button svg {
            transition: width .3s, height .3s;
        }

        .search-area button:hover {
            background: var(--brand-dark);
        }

/* Kaydırınca header küçülür */
.sticky-nav-container.scrolled .middle-header {
    padding: 0px 1%;
}

.sticky-nav-container.scrolled .logo-area img {
    max-height: 140px;
}

/* Kaydırınca üst kurumsal linkler gizlenir (banner kalır) */
.sticky-nav-container.scrolled .top-links-bar {
    display: none;
}

/* Arama: genişlik aynı kalır, sadece boy (yükseklik) küçülür */
.sticky-nav-container.scrolled .search-area input {
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 13px;
}

.sticky-nav-container.scrolled .search-area button svg {
    width: 15px;
    height: 15px;
}

/* ---------- Sağ alan ---------- */
.actions-area {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform .3s;
}

    .header-phone:hover {
        transform: translateY(-2px);
    }

    .header-phone img {
        width: 30px;
        height: 30px;
        transition: width .3s, height .3s;
    }

.phone-numbers {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

    .phone-numbers a {
        color: var(--navy);
        text-decoration: none;
        transition: color .2s;
    }

        .phone-numbers a:hover {
            color: var(--brand);
        }

.sticky-nav-container.scrolled .header-phone img {
    width: 24px;
    height: 24px;
}

.account-cart-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

ul.account-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#my_account {
    position: relative;
    list-style: none;
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--soft);
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s;
}

    .account-btn:hover {
        background: #fff;
        color: var(--brand);
        border-color: var(--brand);
        transform: translateY(-2px);
    }

    .account-btn.logged-in {
        background: var(--brand);
        color: #fff;
        border-color: var(--brand);
    }

        .account-btn.logged-in:hover {
            background: var(--brand-dark);
            color: #fff;
        }

#my_account .dropdown-menu {
    display: block;
    list-style: none;
    position: absolute;
    right: 0;
    top: 78%;
    margin-top: 10px;
    min-width: 170px;
    padding: 8px 0;
    background: #fff;
    border-top: 3px solid var(--brand);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 42, 74, .18);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(.96);
    transition: all .35s var(--ease-pop);
}

#my_account:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}

    .dropdown-menu li a:hover {
        background: var(--soft);
        color: var(--brand);
        padding-left: 26px;
    }

.btn-shopping-cart {
    transition: transform .3s;
}

    .btn-shopping-cart:hover {
        transform: translateY(-2px) scale(1.04);
    }

.bottom-nav-bar {
    position: relative; /* mega menüler buna göre konumlanır */
    display: flex;
    align-items: stretch;
    padding: 0 5%;
    background: linear-gradient(180deg, var(--navy-2), var(--navy));
}

/* ---------- Tüm Kategoriler (en solda) ---------- */
.all-cat-wrap {
    position: relative;
    margin-right: 26px;
}

.all-categories-btn {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .3px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .3s, padding .3s ease;
}

    .all-categories-btn svg {
        transition: transform .4s var(--ease-pop);
    }

.all-cat-wrap:hover .all-categories-btn {
    background: var(--brand-dark);
}

    .all-cat-wrap:hover .all-categories-btn svg {
        transform: rotate(90deg);
    }

.sticky-nav-container.scrolled .all-categories-btn {
    padding-top: 9px;
    padding-bottom: 9px;
}

.all-cat-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 580px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 18px;
    background: #fff;
    border-top: 3px solid var(--accent);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 40px rgba(15, 42, 74, .25);
    overflow-y: auto;
    overscroll-behavior: contain;
    max-height: var(--mega-max, calc(100vh - 220px));
    scrollbar-width: thin;
    scrollbar-color: #b9c8d8 transparent;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px) scale(.97);
    transition: all .4s var(--ease-pop);
}

.all-cat-wrap:hover .all-cat-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.all-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(12px) scale(.9);
    transition: opacity .35s ease, transform .4s var(--ease-pop), background .25s, color .25s;
    transition-delay: calc(var(--i) * 35ms), calc(var(--i) * 35ms), 0s, 0s;
}

    .all-cat-item img {
        width: 70px;
        height: 70px;
        margin-bottom: 8px;
        object-fit: contain;
        transition: transform .4s var(--ease-pop);
    }

.all-cat-wrap:hover .all-cat-item {
    opacity: 1;
    transform: none;
}

.all-cat-item:hover {
    background: var(--soft);
    color: var(--brand);
}

    .all-cat-item:hover img {
        transform: scale(1.14) rotate(3deg);
    }

/* ---------- Düz sıralı kategoriler (sağ taraf) ---------- */
.inline-categories {
    display: flex;
    align-items: stretch;
    flex: 1;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .inline-categories > li {
        display: flex;
        align-items: center;
    }

        .inline-categories > li > a {
            position: relative;
            display: block;
            padding: 14px 0;
            color: #d8e6f5;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: .4px;
            text-transform: uppercase;
            text-decoration: none;
            white-space: nowrap;
            transition: color .3s, padding .3s ease;
        }

            .inline-categories > li > a::after {
                content: '';
                position: absolute;
                left: 0;
                bottom: 8px;
                width: 0;
                height: 3px;
                border-radius: 3px;
                background: var(--accent);
                transition: width .3s ease;
            }

        .inline-categories > li:hover > a {
            color: #fff;
        }

            .inline-categories > li:hover > a::after {
                width: 100%;
            }

.sticky-nav-container.scrolled .inline-categories > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
}

    .sticky-nav-container.scrolled .inline-categories > li > a::after {
        bottom: 5px;
    }

.mega-menu {
    position: absolute;
    top: 100%;
    left: 5%;
    right: 5%;
    background: #fff;
    border-top: 3px solid var(--accent);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 40px rgba(15, 42, 74, .25);
    overflow-x: hidden;
    overflow-y: auto; /* alt kategori çoksa menü içinde kaydırılır */
    overscroll-behavior: contain; /* tekerlek sayfaya geçmesin */
    max-height: var(--mega-max, calc(100vh - 220px));
    scrollbar-width: thin;
    scrollbar-color: #b9c8d8 transparent;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px) scale(.98);
    transition: all .4s var(--ease-pop);
}

    .mega-menu::-webkit-scrollbar,
    .all-cat-dropdown::-webkit-scrollbar {
        width: 8px;
    }

    .mega-menu::-webkit-scrollbar-thumb,
    .all-cat-dropdown::-webkit-scrollbar-thumb {
        background: #b9c8d8;
        border-radius: 8px;
    }

.inline-categories > li:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

/* Alt kategoriler (beyaz alan) */
.mega-menu-top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px 26px;
    background: #fff;
}

    .mega-menu-top:empty {
        display: none;
    }

.sub-cat-box {
    width: 128px;
    height: 158px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(14px) scale(.85);
    transition: opacity .35s ease, transform .4s var(--ease-pop), border-color .25s, box-shadow .25s, color .25s, background .25s;
    transition-delay: calc(var(--i) * 30ms), calc(var(--i) * 30ms), 0s, 0s, 0s, 0s;
}

    .sub-cat-box img {
        width: 105px;
        height: 105px;
        object-fit: contain;
        transition: transform .4s var(--ease-pop);
    }

    .sub-cat-box span {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.inline-categories > li:hover .sub-cat-box {
    opacity: 1;
    transform: none;
}

.sub-cat-box:hover {
    color: var(--brand);
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 8px 18px rgba(11, 107, 203, .2);
    transform: translateY(-4px) !important;
    transition-delay: 0s;
}

    .sub-cat-box:hover img {
        transform: scale(1.06);
    }

/* En çok satanlar (açık gri-mavi alan) */
.mega-menu-bottom {
    padding: 18px 26px 22px;
    background: var(--soft);
    border-top: 1px solid var(--line);
}

.bs-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--hot);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .3px;
}

    .bs-title svg {
        animation: starPulse 1.6s ease-in-out infinite;
    }

@keyframes starPulse {
    0%, 100% {
        transform: scale(1) rotate(0);
    }

    50% {
        transform: scale(1.25) rotate(15deg);
    }
}

.bs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.bs-item {
    width: 210px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity .4s ease, transform .4s var(--ease-pop), border-color .25s, box-shadow .25s;
    transition-delay: calc(var(--i) * 70ms + 150ms), calc(var(--i) * 70ms + 150ms), 0s, 0s;
}

    .bs-item img {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
        object-fit: contain;
        border-radius: 8px;
        transition: transform .3s;
    }

    .bs-item span {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.inline-categories > li:hover .bs-item {
    opacity: 1;
    transform: none;
}

.bs-item:hover {
    border-color: var(--hot);
    box-shadow: 0 8px 18px rgba(255, 107, 0, .2);
    transform: translateY(-4px) !important;
    transition-delay: 0s;
}

    .bs-item:hover img {
        transform: scale(1.08);
    }


    /*asd0*/
.search-area {
    position: relative; /* öneri listesi buna göre konumlanır */
}

.search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 70vh;
    overflow-y: auto;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 42, 74, .22);
    z-index: 1500;
}

    .search-suggest[hidden] {
        display: none;
    }

.suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 18px;
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

    .suggest-item svg {
        flex: 0 0 auto;
        color: var(--muted);
    }

    .suggest-item .s-text {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        /* Yazdığın kısım normal, tamamlanan kısım kalın */
        .suggest-item .s-text b {
            font-weight: 700;
        }

    .suggest-item .s-badge {
        flex: 0 0 auto;
        padding: 2px 9px;
        color: var(--brand);
        font-size: 11px;
        font-weight: 700;
        background: #e6f1fc;
        border-radius: 50px;
    }

    .suggest-item:hover,
    .suggest-item.active {
        background: var(--soft);
        color: var(--brand);
    }

        .suggest-item:hover svg,
        .suggest-item.active svg {
            color: var(--brand);
        }

        /*baba*/
@media (min-width: 992px) and (max-width: 1599.98px) {

    .sticky-nav-container .bottom-nav-bar {
        --nav-fs: clamp(10.5px, 0.78vw, 12px); /* kategori yazı boyu            */
        --nav-gap: clamp(12px, 1.25vw, 22px); /* kategoriler arası boşluk      */
        --nav-pad: clamp(12px, 1.2vw, 22px); /* "Tüm Kategoriler" yan padding */
        padding-left: 1%;
        padding-right: 1%;
    }
    /* Mega menü, çubuğun yeni kenar boşluğuyla hizalı kalsın */
    .sticky-nav-container .mega-menu {
        left: 2%;
        right: 2%;
    }
    /* "Tüm Kategoriler" butonu: biraz daha kompakt, asla ezilmesin */
    .sticky-nav-container .all-cat-wrap {
        flex-shrink: 0;
        margin-right: var(--nav-gap);
    }

    .sticky-nav-container .all-categories-btn {
        gap: 8px;
        padding-left: var(--nav-pad);
        padding-right: var(--nav-pad);
        font-size: clamp(11.5px, 0.85vw, 13px);
    }
    /* Kategori listesi: sığmazsa taşma yerine alt satıra insin */
    .sticky-nav-container .inline-categories {
        flex-wrap: wrap;
        min-width: 0;
        gap: 0 var(--nav-gap);
    }

        .sticky-nav-container .inline-categories > li > a {
            font-size: var(--nav-fs);
            letter-spacing: .2px;
        }
}