/* Reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  list-style: none;
}


/* Container principal do carrinho */
.cart-container {
  max-width: 900px;
  margin: 50px auto;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Cabeçalho do carrinho */
.cart-container header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

/* Barra de progresso */
.progress {
  display: flex;
  align-items: center;
}

.progress-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  font-weight: bold;
  
}

.completed {
  background-color: #81312f;
}

.current {
  background-color: #81312f;
  color: white;
}

/* Botão de fechar */
.close-btn {
  border: none;
  background-color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  color: #81312f;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

/* Conteúdo principal do carrinho */
.cart-content h2 {
  color: #81312f;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

/* Itens do carrinho */
.cart-items {
  margin-top: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  margin: 15px 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}

.cart-item img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  margin-right: 20px;
}

.item-details {
  flex-grow: 1;
}

.item-name {
  font-weight: bold;
}

ul{
  margin-left: 10px;
  margin-block:2px;
}

.item-price {
  color: #81312f;
  font-size: 1.2rem;
}

/* Controles de quantidade */
.quantity-controls {
  display: flex;
  align-items: center;
}

.quantity-label {
  border: 1px solid #000;
  border-color: rgb(107 114 128);
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.trash{
  max-width: 20px;
  max-height: 20px;
  margin: 0 !important;
}

.quantity-controls button {
  background: none;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
}

.remove-btn {
  background-color: red;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  margin: 0;
}

/* Rodapé do carrinho */
.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  gap: 20px;
}

.summary {
  text-align: right;
}

.summary p {
  color: #999;
  margin-bottom: 5px;
}

.summary h3 {
  color: #81312f;
  font-size: 1.5rem;
}

/* Botão de continuar */
.continue-btn {
  background-color: #81312f;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: #fff;
}

.continue-btn:hover {
  background-color: #b14441;
}

/* Adaptação para mobile */
@media (max-width: 768px) {
  .cart-container {
    width: 95%;
    margin: 30px auto;
  }

  .cart-item img {
    width: 60px;
    height: 60px;
  }

  .summary h3 {
    font-size: 1.2rem;
  }

  .continue-btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .cart-container {
    width: 95%;
    margin: 30px auto;
  }

  .cart-item img {
    width: 60px;
    height: 60px;
  }

  .summary h3 {
    font-size: 1.2rem;
  }

  .continue-btn {
    display: flex;
    width: 40%;
    justify-content: center;
    align-items: center;
    padding: 15px;
    font-size: 1rem;
  }
}


.delivery-options {
  margin-bottom: 1rem;
}
.delivery-options label {
  margin-right: 1.5rem;
  font-weight: bold;
}

/* From Uiverse.io by aboalsim114 */ 
/* Hide the default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}


/* Create a custom checkbox */
.checkmark {
  position: relative;
  box-shadow: rgb(255, 84, 0) 0px 0px 0px 2px;
  background-color: rgba(16, 16, 16, 0.5);
  height: 20px;
  width: 20px;
  margin-right: 10px;
  flex-shrink: 0;
  margin-top: -1px;
  transition: all 0.2s ease 0s;
  cursor: pointer;
  transform-origin: 0px 10px;
  border-radius: 4px;
  margin: -1px 10px 0px 0px;
  padding: 0px;
  box-sizing: border-box;

}

.container:nth-child(2) .checkmark:nth-child(2) {
  margin-left: 6.5px;
}

.container input:checked ~ .checkmark {
  box-shadow: rgb(255, 84, 0) 0px 0px 0px 2px;
  background-color: rgba(245, 24, 24, 0.5);
  height: 20px;
  width: 20px;
  margin-right: 10px;
  flex-shrink: 0;
  margin-top: -1px;
  transition: all 0.2s ease 0s;
  cursor: pointer;
  transform-origin: 0px 10px;
  border-radius: 4px;
  margin: -1px 10px 0px 0px;
  padding: 0px;
  box-sizing: border-box;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 0.45em;
  top: 0.25em;
  width: 0.25em;
  height: 0.5em;
  border: solid white;
  border-width: 0 0.15em 0.15em 0;
  transform: rotate(45deg);
  transition: all 500ms ease-in-out;
}