/* la barra naranja venta de fuegos art. en peru */
.nav-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.texto-centro {
  justify-self: center;
  font-weight: bold;
  font-size: 18px;
  color: #000;
  text-align: center;
}
/* fin del codigo */

.cart-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px;
    border-bottom: 3px solid #ccc;
	
}
.product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
}

.product-info {
    flex-grow: 1;
}

.price-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 200px;
}

.item-price {
    font-size: 18px;
    font-weight: bold;
    text-align: right;
    min-width: 80px;
}


.cart-summary {
    text-align: center;
    margin-top: 0px;
    font-size: 18px;
}

.cart-summary p {
    margin: 5px 0;
    font-weight: bold;
}


body {
    font-family: Arial, sans-serif;
    background-color: #222;
    color: white;
    text-align: center;
}

button {
    background-color: #444;
    color: white;
    border: none;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #666;
}

/* Estilos base para todos los botones */
.btn-clear,
.btn-continue,
.btn-yape,
.btn-cuentas {
    padding: 8px 14px;
    font-size: 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* vaciar carrito */
.btn-clear {
    background-color: #e74c3c; /* rojo */
}
.btn-clear:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}
/* seguir comprando */
.btn-continue {
    background-color: #3498db; /* azul */
}
.btn-continue:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.btn-yape {
    background-color: purple;
    color: white;
    border-radius: 10px;
    height: 30px;
}

.btn-yape:hover {
    color: ghostwhite;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Botón Cuentas */
.btn-cuentas {
    background-color: orange;
    color: white;
    border-radius: 10px;
    height: 30px;
}
.btn-cuentas:hover {
    color: ghostwhite;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Modal para QR */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #222;
    margin: 15% auto;
    padding: 20px;
    border: 2px solid #888;
    width: 300px;
    text-align: center;
    color: white;
    border-radius: 12px;
}

.cerrar {
    color: #aaa;
    float: right;
    font-size: 24px;
    cursor: pointer;
}
.cerrar:hover {
    color: white;
}

.qr-img {
  width: 330px;
  height: 330px;
  object-fit: contain;
  margin-top: 10px;
}


/*  dos botones arriba y dos abajo **/
.button-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}


#carrito {
    margin-top: 20px;
    border-top: 2px solid white;
    padding-top: 10px;
}

.carrito-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/*cart--*/
.cart-product {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cart-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-info {
    display: flex;
    flex-direction: column;
}

/* =====================================================
   CARRITO CON IMAGEN GRANDE (INACTIVO)
   NO BORRAR – solo desactivado
===================================================== */

/*
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    background-color: #111;
    min-height: 140px;
}

.cart-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background-color: white;
    padding: 5px;
    border-radius: 8px;
    display: block;
}

.product-details {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}
*/
/*FIN DEL CODIGO para carrito con imagen grande--*/

.product-name {
    flex: 1;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

.quantity-controls button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
	border-radius: 8px;
}

.quantity-controls span {
    font-size: 16px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}


/*es para mantener un espacio en blanco al final de la lista de productos que esta en la parte superior derecha.  trabaja con carrito.js */
.cart-items-list::after {
  content: "";
  display: block;
  height: 60px; /* espacio adicional al final para que el último item no quede cortado */
}






