/* Header auth cluster — login / register / profile */
.header-auth-cluster {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex-shrink: 0;
}

/* Misafir: geniş, tıklanabilir butonlar */
.header-auth-cluster__actions--guest {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.header-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 82px;
    padding: 0 1.125rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.header-auth-btn--primary {
    background: #007af1;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(0, 122, 241, 0.32);
    border: 1px solid #007af1;
}

.header-auth-btn--primary:hover {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 122, 241, 0.38);
}

.header-auth-btn--ghost {
    background: #fff;
    color: #1e293b !important;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.header-auth-btn--ghost:hover {
    background: #f8fafc;
    border-color: #007af1;
    color: #007af1 !important;
    transform: translateY(-1px);
}

/* Giriş yapmış kullanıcı */
.header-auth-cluster__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007af1 0%, #6b4cff 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(0, 122, 241, 0.22);
}

.header-auth-cluster__avatar--link {
    overflow: hidden;
    text-decoration: none;
}

.header-auth-cluster__avatar--link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-auth-cluster__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
}

.header-auth-cluster__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e293b !important;
    text-decoration: none !important;
    line-height: 1.25;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-auth-cluster__name:hover {
    color: #007af1 !important;
}

.header-auth-cluster__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    line-height: 1.2;
}

.header-auth-cluster__sub {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b !important;
    text-decoration: none !important;
}

.header-auth-cluster__sub:hover {
    color: #007af1 !important;
}

.header-auth-cluster__sub--logout:hover {
    color: #dc2626 !important;
}

.header-auth-cluster__dot {
    color: #cbd5e1;
    font-size: 0.8125rem;
}

/* Desktop header actions row */
.header__content-right .header__actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.header__content-right .header-auth-cluster {
    padding-left: 0.75rem;
    margin-left: 0.15rem;
    border-left: 1px solid #e2e8f0;
}

#header-wishlist-wrap.header__extra {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

#header-wishlist-wrap.header__extra:hover {
    background: #fff5f5;
    border-color: #fecaca;
    transform: translateY(-1px);
}

#header-wishlist-wrap .icon-heart {
    font-size: 1.2rem;
    color: #475569;
}

#header-wishlist-wrap:hover .icon-heart {
    color: crimson;
}

.header-wishlist-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff7f00;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(255, 127, 0, 0.35);
}

.header-wishlist-count i {
    font-style: normal;
}

.header-wishlist-mobile {
    position: relative;
    color: #fff !important;
    margin-right: 0.25rem;
}

.header-wishlist-mobile .icon-heart {
    font-size: 1.25rem;
}

.header-wishlist-mobile .header-wishlist-count {
    top: -6px;
    right: -8px;
}

/* Mobile */
.header-auth-cluster.mobile .header-auth-btn {
    min-height: 36px;
    min-width: 68px;
    padding: 0 0.85rem;
    font-size: 0.8125rem;
    border-radius: 8px;
}

.header-auth-cluster.mobile .header-auth-btn--primary {
    background: rgba(255, 255, 255, 0.96);
    color: #007af1 !important;
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header-auth-cluster.mobile .header-auth-btn--ghost {
    background: rgba(255, 255, 255, 0.18);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.header-auth-cluster.mobile .header-auth-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #fff !important;
    border-color: #fff;
}

.header-auth-cluster.mobile .header-auth-cluster__avatar {
    width: 38px;
    height: 38px;
    box-shadow: none;
}

.header-auth-cluster.mobile .header-auth-cluster__name {
    color: #fff !important;
    max-width: 100px;
    font-size: 0.875rem;
}

.header-auth-cluster.mobile .header-auth-cluster__sub {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.75rem;
}

.header-auth-cluster.mobile .header-auth-cluster__dot {
    color: rgba(255, 255, 255, 0.45);
}

.header--mobile .navigation__right .header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header--mobile .navigation__right .ps-block--user-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header--mobile .navigation__right .ps-block__right {
    display: flex !important;
}

@media (max-width: 991px) {
    .header-auth-cluster.desktop {
        display: none;
    }
}

@media (min-width: 992px) {
    .header-auth-cluster.mobile {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .header-auth-btn {
        min-width: 72px;
        padding: 0 0.85rem;
        font-size: 0.875rem;
    }
}
