@import url("../variavel_css/variavel.css");

html, body {
  height: 100%;
  padding: 0;
  margin: 0;
  bottom: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

.section {
  max-width: 600px;
  margin: 1.5rem auto;
  padding: 1rem;
  background-color: var(--fundo-branco-cinzaDark);
  border-radius: 10px;
  box-shadow: 1px 1px 4px var(--pretoTransparente-cinzaDark10);
}

.section h2 {
  text-align: center;
  color: var(--vermelho);
}

.section h3 {
  color: var(--texto-preto-branco);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--texto-preto-branco);
}

.section img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.warning {
  background-color: var(--vermelho);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  text-align: center;
  box-shadow: 1px 1px 4px var(--pretoTransparente-cinzaDark10);
}


.card {
  width: 630px;
  border-radius: 15px;
  box-shadow: 1px 1px 4px var(--pretoTransparente-cinzaDark10);
  overflow: hidden;
  background-color: var(--fundo-branco-cinzaDark);
  margin: auto;
  margin-top: 1rem;
  max-width: 100%;
}

.card-header {
  background-color: var(--vermelho);
  text-align: center;
  padding: 10px;
}

.icon {
  width: 30px;
  height: 30px;
}

.card-body {
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  color: var(--texto-preto-branco);
}

.card h2 {
  color: var(--texto-preto-branco);
  font-weight: bold;
  font-size: 1.5rem;
  text-align: center;
}

.tutorial-feedback-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}

.rating-box {
    width: 95%;
    max-width: 600px;
    border: 1px solid var(--cinzaDark05);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: var(--fundo-branco-cinzaDark);
    box-shadow: 0 2px 5px var(--pretoTransparente02);
}

.rating-box h2 {
    font-size: 1.4em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--texto-preto-branco);
}

.rating-box .author {
    font-size: 0.9em;
    margin-bottom: 20px;
    color: var(--cinzaDark20);
    display: none;
}

.rating-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: auto auto; 
    gap: 15px 10px;
    margin-bottom: 20px;
    text-align: left;
}

.rating-item p {
    font-size: 0.9em;
    color: var(--texto-preto-branco);
}

.stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.stars input[type="radio"] {
    display: none;
}

.stars label {
    font-size: 2em;
    color: var(--cinzaDark10); 
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.stars input:checked ~ label {
    color: var(--verdeDark); 
}

.stars label:hover,
.stars label:hover ~ label {
    color: var(--verdeDomus80); 
}

.rating-item.quality {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.rating-item.satisfaction {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.rating-item.comment {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: stretch;
}

.rating-item.comment textarea {
    width: 100%;
    height: 100px;
    min-height: 100px;
    resize: none;
    border: 1px solid var(--cinzaDark15);
    border-radius: 4px;
    padding: 5px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.9em;
    background-color: var(--fundo-branco-cinzaDark);
    color: var(--texto-preto-branco);
}

.evaluate-button {
    background-color: var(--fundo-cinzaDark15-cinzaDark60);
    color: var(--texto-preto-branco);
    border: none;
    padding: 8px 25px;
    border-radius: 4px; 
    cursor: pointer;
    font-size: 1em;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.evaluate-button:hover {
    background-color: var(--hover-roxoDomusClaro-cinzaDark60);
}


.partner-promotion {
    width: 95%;
    max-width: 600px;
    background-color: var(--fundo-branco-cinzaDark70);
    border: 1px solid var(--cinzaDark05);
    border-radius: 8px;
    padding: 15px;
    margin: 20px auto;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 2px 5px var(--pretoTransparente02);
}

.logo-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 3px var(--cinzaDiv);
    flex-shrink: 0;
}

.mercadolivre-logo {
    font-weight: 700;
    font-size: 0.7em;
    color: var(--texto-preto-branco);
    text-align: center;
    line-height: 1;
}

.promotion-text {
    flex-grow: 1;
}

.promotion-text h3 {
    font-size: 1em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--texto-preto-branco);
}

.promotion-text p {
    font-size: 0.85em;
    color: var(--texto-preto-branco);
    margin-bottom: 0;
}

.view-products-link {
    font-size: 0.8em;
    color: var(--azul);
    text-decoration: none;
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.view-products-link span {
    font-size: 1.2em;
    transform: rotate(90deg);
    display: inline-block;
}

@media (max-width: 500px) {
    .rating-grid {
        grid-template-columns: 1fr; 
    }
    .rating-item.comment {
        grid-column: 1 / 2; 
        grid-row: 3 / 4; 
    }
    .partner-promotion {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .view-products-link {
        align-self: center;
    }
}

/* MODAL DE ERRO */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--pretoTransparente06);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--fundo-branco-cinzaDark70);
    padding: 0;
    width: 80%;
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--pretoTransparente-cinzaDark10);
    text-align: center;
}

.modal-body {
    padding: 20px;
    position: relative;
}

.modal-body h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 5px;
    color: var(--texto-preto-branco);
}

.modal-body p {
    font-size: 1.1em;
    color: var(--texto-preto-branco);
}

.close-x {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: var(--texto-preto-branco);
    cursor: pointer;
    line-height: 1;
}

.error-icon {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--texto-preto-branco);
    padding: 15px 0 5px;
}

.rating-item .stars-view span {
    font-size: 1.8em;
    color: var(--cinzaDark10);
    line-height: 1;
}

.rating-grid .rating-item.comment textarea[disabled] {
    background-color: var(--cinzaDark05);
    cursor: default;
    border: 1px solid var(--cinzaDark15);
}

.rating-box {
    position: relative;
}

.partner-promotion {
    background: var(--fundo-branco-cinzaDark70);
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 12px var(--pretoTransparente-cinzaDark10);
    margin-bottom: 30px;
}

.promo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-circle img {
    width: 70px;
}

.promotion-text {
    flex: 1;
    margin-left: 20px;
    color: var(--texto-preto-branco);
}

.view-products-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--texto-preto-branco);
}

.view-products-btn .arrow {
    transition: transform .3s ease;
}

.promo-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 20px;
    overflow: hidden;
    max-height: 0;
    transition: max-height .4s ease;
}

.product-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    background: var(--fundo-cinzaDark05-cinzaDark60);
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--texto-preto-branco);
    box-shadow: 0 4px 10px var(--pretoTransparente-cinzaDark10);
}

.product-card img {
    width: 100%;
    height: 100px;
    object-fit: contain;
}

.promo-products.open {
    max-height: 1000px !important;
    padding-bottom: 10px;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    margin-bottom: 60px;
}


h5 {
    text-align: center;
    color: var(--texto-preto-branco);
    margin-bottom: 40px;
    font-size: 28px;
    margin-top: 40px;
}

.blocos-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bloco-material {
    background: var(--fundo-branco-cinzaDark70);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--pretoTransparente02);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.bloco-material:hover {
    box-shadow: 0 4px 12px var(--pretoTransparente);
}

.bloco-header {
    background-color: var(--fundo-branco-cinzaDark70);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--cinzaDark15);
}

.logo-section {
    flex-shrink: 0;
}

.logo-parceiro {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--texto-preto-branco);
    object-fit: cover;
    background-color: var(--cinzaDiv);
}

.content-section {
    flex: 1;
}

.content-section h2 {
    font-size: 18px;
    color: var(--texto-preto-branco);
    margin-bottom: 8px;
    font-weight: 600;
}

.content-section p {
    font-size: 14px;
    color: var(--texto-preto-branco);
    line-height: 1.5;
}

.btn-expandir {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--azul);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 12px;
}

.btn-expandir:hover {
    color: var(--preto);
}

.btn-icone {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.btn-expandir.ativo .btn-icone {
    transform: rotate(180deg);
}

.btn-expandir.ativo .btn-texto {
    color: var(--azul);
}

.produtos-container {
    padding: 20px 24px;
    background-color: var(--fundo-branco-cinzaDark);
    animation: slideDown 0.3s ease;
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.produto-card {
    background: var(--fundo-branco-cinzaDark70);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 1px 3px var(--pretoTransparente02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    
}

.produto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px var(--pretoTransparente);
}

.produto-imagem {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
    background-color: var(--cinzaDark05);
}

.produto-nome {
    font-size: 13px;
    color: var(--texto-preto-branco);
    font-weight: 500;
    line-height: 1.3;
}

#contador{
    color: var(--texto-preto-branco);
}