/* ============================================================
   Header Extra
   ============================================================ */

:root {
    --header-height: 0px;
}

.rosa-header-extra {
    position: sticky;
    top: var(--header-height);
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    z-index: 100;
    width: 100%;
}

.rosa-header-extra__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    gap: 16px;
}

/* Categories */
.rosa-header-extra__categories {
    display: flex;
    align-items: center;
    gap: 24px;
}

.rosa-header-extra__cat-link {
    font-size: 14px;
    font-weight: 500;
    color: #5E606766;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.rosa-header-extra__cat-link.is-active,
.rosa-header-extra__cat-link:hover {
    color: #1E1E21;
}

/* Actions */
.rosa-header-extra__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    position: relative; /* anchor for dropdown */
}

/* Login */
.rosa-header-extra__login-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #1E1E21;
    cursor: pointer;
    padding: 6px 12px;
}

/* User block */
.rosa-header-extra__user {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px;
    position: relative;
}

.rosa-header-extra__user-name {
    font-size: 14px;
    font-weight: 500;
    color: #1E1E21;
}

.rosa-header-extra__user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #3988FF;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}

/* Cart */
.rosa-header-extra__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.rosa-header-extra__cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #3988FF;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

/* Dropdown */
.rosa-header-extra__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-width: 220px;
    padding: 8px 0;
    z-index: 101;
}

.rosa-header-extra__dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    color: #1E1E21;
    text-decoration: none;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.rosa-header-extra__dropdown-item:hover {
    background: #F3F5F9;
}

/* Responsive */
@media (max-width: 1100px) {
    .rosa-header-extra__categories {
        display: none;
    }
}