.product-switcher {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1440px, calc(100% - 32px));
    margin: 10px auto 0;
    padding: 7px 8px 7px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: #fff;
    background: rgba(3, 8, 12, .96);
    box-shadow: 0 12px 34px rgba(0,0,0,.28);
    backdrop-filter: blur(16px);
}

/* No Guerra de Estudos há uma barra fixa no topo. O seletor permanece logo abaixo dela. */
.settings-bar ~ .product-switcher {
    position: sticky;
    top: 58px;
    z-index: 998;
    margin-top: 58px;
}

.product-switcher-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.68);
}

.product-switcher-mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(229,189,105,.5);
    border-radius: 50%;
    color: #e5bd69;
    font-family: Georgia, serif;
    font-size: 0.9rem;
}

.product-switcher-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.12; }
.product-switcher-brand strong { color: #fff; font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }
.product-switcher-brand small { margin-top: 2px; color: rgba(255,255,255,.38); font-size: .56rem; }

.product-switcher-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-switcher-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 6px 11px 6px 7px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255,255,255,0.62);
    text-decoration: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.product-switcher-link:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.045);
}

.product-switcher-link.is-active {
    color: #fff;
    border-color: rgba(229,189,105,.34);
    background: linear-gradient(135deg, rgba(200,146,50,.18), rgba(9,31,48,.9));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.product-switcher-link > img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.24); }

.product-switcher-link span {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.product-switcher-link strong {
    font-size: 0.76rem;
}

.product-switcher-link small {
    margin-top: 3px;
    color: inherit;
    font-size: 0.59rem;
    font-weight: 600;
    opacity: 0.66;
}

.product-switcher-wallet small i { margin-right: 3px; font-size: .52rem; }
.product-switcher-link[hidden] { display: none !important; }

.product-switcher-link::before { display: none; }

@media (max-width: 700px) {
    .settings-bar ~ .product-switcher {
        top: 58px;
        margin-top: 58px;
    }

    .product-switcher {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
        width: calc(100% - 22px);
    }

    .product-switcher-brand {
        padding: 4px 7px;
    }

    .product-switcher-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .product-switcher-link {
        justify-content: center;
    }
}
.product-switcher[hidden] { display: none !important; }
