		
/* ===== GRID PRINCIPAL ===== */
.mwstore_elcarrito_layout {
  width:95%;
  margin:auto;
  display: grid;
  gap: 10px;
  /* Columnas */
  /* Izquierda flexible, derecha entre 250 y 360px */
  grid-template-columns: 2fr minmax(250px, 350px);
}

/* ===== CAJAS ===== */
.mwstore_elcarrito_layout .box {
  display: flex;
  justify-content: center;
}

/* Posiciones */
.mwstore_elcarrito_layout .box1 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.mwstore_elcarrito_layout .box2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;  

  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;  /* eje vertical (TOP) */
  align-items: center;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 1500px) {
  .mwstore_elcarrito_layout {
     width: 1400px;
  }
}

@media (max-width: 900px) {

  .mwstore_elcarrito_layout {
    grid-template-columns: 1fr 1fr;   /* ahora sí 2 columnas iguales */
    grid-template-rows: auto auto auto;
  }
  .mwstore_elcarrito_layout .box1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .mwstore_elcarrito_layout .box2 {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  } 

  .mwstore_elcarrito_layout .box2 {
    flex-direction: row; /* Alinea los elementos en horizontal */
    flex-wrap: wrap;     /* Permite que los elementos salten de línea */
    justify-content: center; /* Centra las dos cajas horizontalmente */
  }
  /* El botón */
  .mwstore_elcarrito_layout .box2 button {
    flex-basis: 55%;  
  }
  .mwstore_elcarrito_layout .totales-card, .mwstore_elcarrito_layout .direccion-card {
    max-width: 48%;
    max-width: 48%;
  }
}

@media (max-width: 600px) {
  
  .mwstore_elcarrito_layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    width: 100%;
  }

  .mwstore_elcarrito_layout .box1,
  .mwstore_elcarrito_layout .box2 {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
  } 
  
  .mwstore_elcarrito_layout .box2 button {
    flex-basis: 100%;  
  }
  .mwstore_elcarrito_layout .totales-card, .mwstore_elcarrito_layout .direccion-card {
    max-width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 390px) {
.mwstore_elcarrito_layout {
    grid-template-columns: 98%;
  }
}
/*===============================================*/
/*======== ESTRUCTURA DEL CARRITO ===============*/
/*===============================================*/
.mwstore_elcarrito{
	width:100%;
}
.mwstore_elcarrito .cart {
  margin: auto;
  padding: 5px 10px 20px 10px;
  border-radius: 14px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.mwstore_elcarrito .cart h2 {
  font-size: 18px;
  margin: 10px 0px 24px 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ITEM */
.mwstore_elcarrito .cart-item {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 16px;
  align-items: center;
  padding: 18px 5px 18px 0;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}


/* PRODUCTO */
.mwstore_elcarrito .product {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left:45px;
}

.mwstore_elcarrito .product img {
  width: 90px;
  min-width: 90px;
  border-radius: 10px;
}

.mwstore_elcarrito .details{
	text-align:left;
}
.mwstore_elcarrito .details h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.mwstore_elcarrito .sku {
  font-size: 13px;
  color: #6b7280;
  display: block;
  margin: 4px 0;
}

/* PRECIOS */
.mwstore_elcarrito .price {
  margin-top: 6px;
}

.mwstore_elcarrito .price .old {
  text-decoration: line-through;
  color: #9ca3af;
  margin-right: 8px;
  font-size: 13px;
}

.mwstore_elcarrito .price .current {
  font-weight: 600;
  color: #000;
  font-size: 15px;
}

/* CANTIDAD */
.mwstore_elcarrito .quantity {
  display: flex;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  justify-content: center;
  height:38px;
}

.mwstore_elcarrito .quantity button {
  width: 34px;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
}

.mwstore_elcarrito .quantity input {
  width: 46px;
  border: none;
  text-align: center;
  font-size: 14px;
}

/* SUBTOTAL */
.mwstore_elcarrito .subtotal {
  text-align: right;
  font-weight: 600;
  font-size: 15px;
  padding-right: 10px;
}

/* ELIMINAR */
.mwstore_elcarrito .remove,.mwstore_elcarrito .change {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #E0E0E0;
  color: #707070;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .1s ease;

  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.mwstore_elcarrito .remove:hover {
  background: #fecaca;
}

.mwstore_elcarrito .change:hover {
  background: #D6FFE2;
}
.mwstore_elcarrito .cart-item:last-child {
  border-bottom: none;
}

.mwstore_elcarrito .txt-gratis {
  color: #16a34a;       
  font-weight: 600;
}

.mwstore_elcarrito .txt-gratis::before {
  content: "ˇGratis!";
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .mwstore_elcarrito .details h3 {
	  font-size: 13px;
  }
  .mwstore_elcarrito .cart-item {
    gap: 10px;
    padding: 10px 0;
    padding-right: 0;
  }

  .mwstore_elcarrito .remove ,.mwstore_elcarrito .change {
    top: 10px;
    right: 0;
    transform: none;
  }

  .mwstore_elcarrito .product img {
		width: 75px;
		min-width: 75px;
  }
  .mwstore_elcarrito .quantity {
    margin: 0px 1px 0px 0px;
  }

  .mwstore_elcarrito .subtotal {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  
  .mwstore_elcarrito .cart-item {
        grid-template-columns: 1fr;
		gap: 5px;
		padding: 10px 0;
    }
    
  .mwstore_elcarrito .product img {
		width: 65px;
		min-width: 65px;
	  }

  .mwstore_elcarrito .details h3 {
		font-size: 12px;
	  }
  .mwstore_elcarrito .quantity {
    margin: auto;
    height:30px;
   }   
}



