/* Itens Renderizados do carrinho */
.item-lista.removendo {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/*Loading de itens*/
.item-loading {
  position: relative;
}

.item-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #ccc;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    background: transparent;
    z-index: 10;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.item-loading > * {
  opacity: 0.4;
  pointer-events: none;
}

/*Container onde serão renderizados os itens*/
#itens-carrinho {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-lista {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 0px 10px 0px 10px;
    /* border-bottom: 1px solid #eee; */
}
.img-produto img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.info-produto {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.info-produto .nome {
    font-size: 12px;
    font-weight: bold;
    margin: 0
}
.info-produto .precos{
    margin: 5px 0;
}
.info-produto .precos del {
    font-size: 12px;
    color: #999;
    margin-right: 5px;
    text-decoration: line-through;
}
.info-produto .precos span {
    font-size: 14px;
    color: #107410;
    font-weight: bold;
}
.info-produto .subtotal,
.info-produto .economia {
    font-size: 12px;
    margin: 0;
    line-height: 22px;
}
.item-pego {
    opacity: 0.6;
    text-decoration: line-through;
}
.pegar {
    margin-top: 10px;
}
.pegar label {
    font-size: 12px;
    color: green;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.pegar label input{
    margin: 0
}
#limpar-carrinho i{
    margin-right: 10px;
}
.acoes {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-left: 10px;
}
.acoes button {
    background: #f0f0f0;
    border: none;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 15px;
    font-weight: 500;
}

/* .remover button {
    background: none;
    border: none;
    color: #e53935;
    font-size: 8px;
    border: 1px solid #e53935;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin-left: 10px;
} */
.valor-total {
    /* position: sticky; */
    bottom: -15px;
    background: #8b8b8b;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    font-size: 16px;
    width: calc(40px + 100%);
    margin-left: -20px;
}
.valor-total p {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
}

.item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 10px;
  margin-bottom: 0px;
  border-radius: 12px;
  gap: 6px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  border: 1px solid #eee;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  min-height: 105px;
}

.item-card-revisao{
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 0px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  border: 1px solid #eee;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.item-card .info-produto {
  flex: 1;
}

.item-card .nome {
  font-weight: 600;
  margin: 0 0 4px;
  color: #222;
}

.item-card .precos {
  margin: 0;
  display: flex;
  gap: 8px;
  font-size: 0.95rem;
}

.item-card .precos del {
  color: #888;
}

.item-card .acoes {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-card .acoes button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  font-weight: bold;
  background: #f2f2f2;
  cursor: pointer;
  transition: background 0.2s;
}

.item-card .acoes button:hover {
  background: #ddd;
}

.item-card .acoes span {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}

.item-card .remover {
  color: #ff7474;;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}

.item-card .remover:hover {
  color: #e60023;
}

.revisao{
  font-size: 14px;
  margin-top: 5px;    
}

#modal-revisao h4{
  font-weight: bold;;
}

#revisaoRetirada {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}

.btn-custom{
  background: none;
  border: none;
  color: #0066cc;
  font-size: 10px;
  margin-top: 5px;
  position: absolute;
  right: 5px;
  top: 0px;
  /* border: 1px solid lightgray; */
  border-radius: 12px;
}

/* #retirada-revisao .btn-custom, #entrega-revisao .btn-custom{
  background: none;
  border: none;
  color: #0066cc;
  font-size: 10px;
  margin-top: 5px;
  position: absolute;
  right: 0px;
  top: 0px;
  border: 1px solid lightgray; 
  border-radius: 12px;
} */

#listaLojas{
  padding: 0px 15px 5px 5px;
  gap: 10px;
}

/*Footer do Ecommerce*/
.resume-footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 2px 0;
  min-width: 75px;
}

.resume-footer-line .label {
  font-weight: 500;
  color: #333;
}

.resume-footer-line .value {
  font-weight: 600;
  color: #000;
}
