@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

body {
    height: 100vh;
    margin: 0;
    font-family: "Poppins", serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, black 0%, #4D2C17 40%, #D87C2B 100%);
}

header {
    background-color: #262626;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}

.logo-empresa {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.icone-notificacao {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.icone-usuario {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.div-header-icones {
    display: flex;
    align-items: center;
}

.div-btn-busca {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-info-compartilhada {
    width: 100%;
    position: absolute;
    height: 160px;
}

.img-produto-compartilhado {
    width: 100px;
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    z-index: 2;
}

.img-adicionar-compartilhado {
    width: 70px;
    position: absolute;
    bottom: -30px;
    right: 16px;
}

.div-produto-compartilhado {
    width: 100%;
    height: 160px;
    position: relative;
}

.titulo-produto {
    color: white;
    position: absolute;
    right: 30px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
    font-size: 1.6rem;
}

.faixa-produto {
    color: white;
    position: absolute;
    right: 10px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
    width: 90%;
    height: 40px;
    margin-left: 6rem;
}

.info-alerta {
    width: 78px;
}

.div-infos {
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
}

.texto-infos {
    font-weight: 500;
}

.status-infos {
    font-weight: 500;
    color: red;
}

.div-medidas-compartilhadas {
    display: flex;
    background-color: grey;
    align-items: center;
    gap: 0.4rem;
    border-radius: 8px;
    padding: 0.4rem;
}

.div-medidas-compartilhadas h2 {
    font-size: 24px;
}

.texto-info-medidas {
    font-weight: 400;
    font-size: 16px;
    margin: 0;
}

.div_usuario_medida_compartilhada {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.icone_abertura_medidas_usuario {
    width: 32px;
    margin-right: 0.5rem;
}

.info-compartilhada {
    width: 50px;
    height: 50px;
}

.container_cards_medidas {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.container {
    height: 100%;
    gap: 0.8rem;
    margin: 1rem;
    overflow: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
}

.div-comentarios {
    background-color: white;
    flex: 1;
}

.div-usuario {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.card-comentario {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    position: relative;
}

.icone-ferramenta {
    width: 64px;
}

.fa-star {
    color: #EE0503;
    font-size: 24px;
}

.div-estrelas {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icone-user {
    width: 90px;
}

h2 {
    margin: 0;
}

.card-texto {
    position: absolute;
    background-color: white;
    width: 100%;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
}

.hidden {
    display: none;
}

.show {
    display: flex;
    flex-direction: column;
    max-height: 500px;
    box-sizing: border-box;
}

.icone-avaliacao {
    width: 82px;
}

.espaco {
    margin-bottom: 12rem;
}

#icone-comentario {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: black;
}

.texto-avaliacao {
    width: 160px;
    font-size: 1rem;
    text-align: center;
    font-weight: 400;
}

.container-avaliacao {
    display: flex;
    align-items: end;
    flex-direction: column;
}

.div-avaliacao {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.comentario-perfil {
    font-weight: 400;
}

.card_detalhes_usuario_medidas {
    background-color: white;
    padding: 0.4rem;
    border-radius: 8px;
}

.btn_peca_principal {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    color: #111;
    font-weight: 600;
    font-size: 1.2rem;
    border: none;
    border-radius: 12px;
    padding: 0.6rem;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.btn_medidas_compartilhadas {
    background: linear-gradient(145deg, #3c3c3c, #2b2b2b);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    padding: 0.7rem;
    width: 100%;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.img_usuario_compartilhada {
    border-radius: 50%;
    height: 48px;
    width: 48px;
    object-fit: cover;
}

.icone-medidas {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.img_inserindo_medida{
    border-radius: 6px;
    width: 32px;
}

.btn_peca_conteudo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.img_peca_principal {
    border-radius: 6px;
    object-fit: contain;
}

.btn_peca_principal span {
    flex: 1;
    font-weight: 600;
    color: #000;
    text-align: left;
}

.btn_medidas_proprias {
    background: linear-gradient(145deg, #ff2d2d, #b40000);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    padding: 0.7rem;
    width: 100%;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
}

.card_usuario {
    display: flex;
    background-color: white;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    gap: 0.4rem;
}

.container_medidas {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.detalhes-medidas-usuario.show {
    max-height: 500px;
    overflow: auto;
}

.icone_abertura_medidas_usuario {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.icone_abertura_medidas_usuario.rotacionada {
    transform: rotate(180deg);
}

details[open] {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

summary.div_usuario_medida_compartilhada {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

summary::-webkit-details-marker {
    display: none;
}

details[open] .icone_abertura_medidas_usuario {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.icone_abertura_medidas_usuario {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.linha-medida {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.linha-medida label {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-grupo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.input-grupo .input-modal {
    flex: 1;
}

.select-unidade {
    background: #2b2b2b;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
    height: 38px;
    flex: 1;
    min-width: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: #1c1c1c;
    border-radius: 12px;
    padding: 1rem;
    width: 90%;
    overflow: auto;
    max-height: 80%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-sizing: border-box;
    scrollbar-width: none;
}

.titulo-modal {
    color: #fff;
    text-align: center;
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
}

.div-foto-peca {
	justify-content: center;
	align-items: center;
    box-sizing: border-box;
}

.label-foto-peca {
	background: linear-gradient(145deg, #ff2d2d, #b40000);
	color: #fff;
	padding: 0.7rem;
	border-radius: 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 600;
	font-size: 14px;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
	transition: all 0.2s ease;
    text-align: center;
    justify-content: center;
}

.label-foto-peca i {
	font-size: 14px;
}

.preview-foto {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
}

.preview-foto img {
	border-radius: 10px;
	border: 2px solid #444;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

.btn_remover_foto {
	background: #444;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0.5rem 1rem;
	cursor: pointer;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	transition: 0.2s;
    width: 100%;
    justify-content: center;
}

.btn_remover_foto:hover {
	background: #555;
}

.hidden {
	display: none !important;
}


.label-modal {
    color: #ccc;
    font-size: 14px;
    margin-bottom: -0.4rem;
}

.hidden {
	display: none !important;
}

#labelMedidaSelecionada {
	color: #fff;
	font-size: 1rem;
	font-weight: 500;
	display: block;
}

.div_inserindo_medida{
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.img_inserindo_medida{
    width: 32px;
}


.input-modal {
    background: #2b2b2b;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 0.6rem;
    font-size: 14px;
    width: 100%;
    outline: none;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
}

.btn_modal_salvar {
    background: linear-gradient(145deg, #ff2d2d, #b40000);
    border: none;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 48%;
    transition: 0.2s;
    font-size: 14px;
}

.btn_modal_cancelar {
    background: #444;
    border: none;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    width: 48%;
    font-weight: 500;
    transition: 0.2s;
    font-size: 14px;
}

.hidden {
    display: none !important;
}