/* =============================================================
   Vendor Profile Menu Icon & Dropdown
   ============================================================= */

.vr-profile-menu {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

/* ── Trigger button ─────────────────────────────────────────── */
.vr-profile-trigger {
    background: #ffc107;
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.vr-profile-trigger:hover {
    background: #e0a800;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.4);
}

.vr-profile-trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.45);
}

.vr-profile-avatar svg {
    width: 22px;
    height: 22px;
    stroke: #1a1a1a;
    display: block;
}

/* ── Dropdown panel ─────────────────────────────────────────── */
.vr-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    min-width: 250px;
    z-index: 99999;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
    overflow: hidden;
}

.vr-profile-dropdown.vr-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ── Dropdown header (avatar + name + email) ────────────────── */
.vr-pd-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #f2f2f2;
}

.vr-pd-avatar {
    background: #ffc107;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vr-pd-avatar svg {
    width: 20px;
    height: 20px;
    stroke: #1a1a1a;
}

.vr-pd-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vr-pd-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.vr-pd-email {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
}

/* ── Dropdown nav list ──────────────────────────────────────── */
.vr-pd-nav {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.vr-pd-nav li {
    margin: 0;
    padding: 0;
}

.vr-pd-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.12s ease, color 0.12s ease;
}

.vr-pd-nav a:hover {
    background: #fafafa;
    color: #111;
    text-decoration: none;
}

.vr-pd-nav a svg {
    width: 17px;
    height: 17px;
    stroke: #888;
    flex-shrink: 0;
    transition: stroke 0.12s ease;
}

.vr-pd-nav a:hover svg {
    stroke: #444;
}

/* ── Guest state ────────────────────────────────────────────── */
.vr-profile-login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffc107;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.vr-profile-login-link:hover {
    background: #e0a800;
    color: #111;
    text-decoration: none;
}
