/* Global sticky site header */
.siteHeader.siteHeader--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}

body.has-sticky-header {
    padding-top: var(--site-header-h, 76px);
}

/* Banner altı menü sticky (tüm hp-subnav sayfaları) */
.hp-subnav {
    position: sticky;
    top: var(--site-header-h, 76px);
    z-index: 10000;
}

.hp-subnav-inner {
    flex-wrap: nowrap;
}

.hp-subnav-links {
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hp-subnav-links::-webkit-scrollbar {
    display: none;
}

.hp-subnav-links a {
    white-space: nowrap;
}

.hp-subnav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 10px;
}

.hp-scroll-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: var(--hp-accent, #20bc7e);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: -10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hp-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hp-scroll-top:hover {
    background: var(--hp-accent-dark, #1a9a68);
}

.hp-scroll-top i {
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 768px) {
    .hp-subnav-inner {
        padding-left: 12px;
        padding-right: 8px;
        gap: 6px;
    }

    .hp-subnav-actions {
        gap: 8px;
        padding-left: 6px;
    }

    .hp-scroll-top {
        width: 34px;
        height: 34px;
        margin-right: -6px;
    }

    .hp-scroll-top i {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hp-subnav-inner {
        padding-left: 10px;
        padding-right: 6px;
    }

    .hp-subnav-links a {
        padding: 10px 10px;
        font-size: 12px;
    }

    .hp-subnav-actions {
        gap: 6px;
        padding-left: 4px;
    }

    .hp-currency-rate {
        font-size: 11px;
    }

    .hp-scroll-top {
        width: 32px;
        height: 32px;
        margin-right: -4px;
    }
}

/* hp-subnav sayfalarında subnav butonu kullanılır */
body:has(.hp-subnav) #scrollUp {
    display: none !important;
}
