* {
  box-sizing: border-box;
}

@import url(./productDetail.css);

main {
  padding: 0;
}

.header-cart {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: white;
}

.header-cart h1 {
  font-size: 30px;
  font-weight: 800;
}

.header-cart p {
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.warning-sentence {
  display: flex;
  align-items: center;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.warning-sentence img {
  margin-top: -1.15rem;
}

.terms-products {
  font-size: 0.9rem;
  padding: 0.5rem;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.cart-remove-button {
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.cart-remove-button svg,
.terms-products svg {
  width: 2rem;
  height: 2rem;
  fill: white; /* tachito blanco */
  transition: fill 0.3s ease;
}
/*
.cart-remove-button:hover {
  color: #dc2626;
}
*/
.cart-remove-button:hover svg {
  fill: #dc2626;
}

.product-name-img {
  display: flex;
}

.img-product-cart {
  width: 10rem;
}

.product-name-img h2 {
  font-size: 0.9rem;
  margin-left: 0.5rem;
  color: #4a5568;
}

.name-ul-product {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-around;
}

.name-ul-product ul {
  margin-top: 1rem;
}

.product-price {
  font-size: 1.3rem;
  font-weight: bolder;
  margin-left: 1rem;
  color: #4a5568;
}

.description-product-cart {
  margin: 1rem;
  color: #4a5568;
}

.trash-button {
  margin: 0;
  background: transparent;
  font-size: 0;
}

.trash-button i {
  font-size: 1.5rem;
}

.quantity-items {
  height: 2rem;
  width: 4rem;
  background-color: #4e4e4e;
  font-size: 15px;
  border-radius: 2px;
  color: white;
  outline: none;
}

.quantity-box {
  display: flex;
  align-items: center;
}

.cards-products {
  margin: 1rem auto;
  width: 70%;
  border-radius: 0.5rem;
  /*background-color: white;*/
}

.pay-sentence {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 1rem;
  font-size: 14px;
  color: #4a5568;
}

.methods-img {
  display: flex;
  gap: 1rem;
  margin-left: 2rem;
  justify-content: center;
  align-items: center;
}

.methods-img img {
  margin: 8px;
}

.mover {
  display: flex;
}

.buy-product {
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
  font-weight: 900;
  color: #4a5568;
}

.payments {
  padding: 1rem 0;
}

.cart-container {
  max-width: 1280px;
  padding: 2rem 1rem;
  margin: 0 auto;
}

.cart-wrapper {
  max-width: 768px;
  margin: 0 auto;
}

.cart-header {
  text-align: center;
  color: #4a5568;
}
/*
.cart-title {
  font-size: 1.25rem;
  font-weight: bold;
}
*/
.cart-list {
  margin-top: 2rem;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cart-image {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 0.25rem;
}

.cart-details {
  flex-grow: 1;
  color: #4a5568;
}

.cart-product-name {
  font-size: 0.875rem;
  margin: 0;
}

.cart-attributes {
  margin-top: 0.25rem;
  font-size: 10px;
}

.cart-attributes div {
  margin-bottom: 2px;
}

.cart-attributes dt,
.cart-attributes dd {
  display: inline;
  margin: 0;
  font-size: 1.1rem;
  color: white;
}

.cart-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cart-quantity-input {
  height: 2rem;
  width: 3rem;
  padding: 0;
  text-align: center;
  font-size: 0.75rem;
  /* background-color: #f9fafb; */
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

.card-precio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  width: 100%;
  border-radius: 8px;
  flex-direction: row;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  backdrop-filter: blur(2px);
  color: #4a5568;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #dbeafe;
  color: #2563eb;
  stroke: currentColor;
  transition: stroke 0.2s ease-in-out;
}

.svg-icon {
  width: 2.5rem;
}

.info .amount,
.info .label,
.label {
  margin: 0;
  font-size: 1rem;
}

.total-container {
  display: grid;
  grid-template-columns: 22fr;
  gap: 1rem;
}

.flex-container {
  display: flex;
  gap: 1rem;
}

.item1,
.item2 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item1 {
  flex: 3;
}

.carrito-container,
.container-allMain-cart {
  padding: 2rem;
}



.btn-confirmar-reserva {
  background-color: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid white;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-confirmar-reserva:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-details {
    width: 100%;
  }

  .img-product-cart {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .product-name-img {
    flex-direction: column;
    align-items: flex-start;
  }

  .name-ul-product {
    align-items: flex-start;
  }

  .cart-actions {
    width: 100%;
    justify-content: space-between;
  }

  .buy-product {
    flex-direction: column;
    gap: 1rem;
  }

  .methods-img {
    flex-direction: column;
    margin: 0 auto;
  }

  .cards-products {
    margin: 0.5rem;
    padding: 1rem;
  }

  .cart-container {
    padding: 1rem;
  }

  .header-cart {
    padding: 0.5rem;
  }

  .cart-title {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .pay-sentence {
    margin-left: 0;
    font-size: 0.8rem;
  }

  .warning-sentence {
    font-size: 0.8rem;
  }

  .terms-products {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cart-quantity-input {
    width: 100%;
  }

  .card-precio {
    flex-direction: column;
    align-items: flex-start;
  }

  .carrito-container,
  .container-allMain-cart {
    padding: 1rem;
  }

  .btn-confirmar-reserva {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cart-title {
    font-size: 0.95rem;
  }

  .product-price {
    font-size: 1rem;
    margin-left: 0;
  }

  .header-cart h1 {
    font-size: 1.2rem;
  }

  .header-cart p {
    font-size: 0.75rem;
    margin-left: 0;
  }

  .warning-sentence {
    font-size: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .terms-products {
    font-size: 0.75rem;
    padding: 0.3rem;
  }

  .methods-img img {
    width: 50px;
    height: auto;
  }

  .cart-item {
    gap: 0.5rem;
  }

  .buy-product {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .cart-quantity-input {
    height: 1.8rem;
    width: 2.5rem;
    font-size: 0.7rem;
  }

  .cart-details {
    font-size: 0.8rem;
  }

  .pay-sentence {
    font-size: 0.75rem;
    margin: 0;
  }

  .btn-confirmar-reserva {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .mainLienzo {
    background-size: cover;
  }
}
.mainCarrito {
  background: url('/images/Lienzo01vero.jpeg') center top repeat-y;
  background-size: 100% auto;
  background-attachment: fixed;
  padding: 1rem;
}
.mainLienzo {
  background: url('/images/Lienzo01vero.jpeg') center top repeat-y;
  background-size: 100% auto;
  background-attachment: fixed;
  overflow: hidden;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.12);
}
.cart-card {
  background-color: rgba(255, 255, 255, 0.15); /* blanco translúcido */
  border: 1px solid white;
  border-radius: 10px;
  padding: 2rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.cart-card,
.cart-card h1,
.cart-card h2,
.cart-card h3,
.cart-card h4,
.cart-card p,
.cart-card li,
.cart-card span,
.cart-card label,
.cart-card a {
  color: white;
}