
/* Página de productos */
.pagina-productos {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 16px;
    box-sizing: border-box;
}

/* Título de la categoría */
.productos-titulo {
    margin: 0 0 22px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
    text-align: left;
}

/* Grilla: 6 productos en desktop */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

/* Tarjeta del producto */
.producto-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
    background-color: #ffffff;
}

/* Contenedor cuadrado de la imagen */
.producto-imagen-contenedor {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 10px;
    box-sizing: border-box;
    background-color: #ffffff;
}

/* Imagen del producto */
.producto-imagen {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Nombre y precio */
.producto-info {
    padding: 10px 12px 14px;
    background-color: #ffffff;
    color: #000000;
}

/* Nombre en negrita */
.producto-nombre {
    margin: 0 0 8px;
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
/* contador */
.producto-cantidad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.cantidad-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.cantidad-btn:hover:not(:disabled) {
    background: #cfcfcf;
}

.cantidad-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cantidad-valor {
    width: 40px;
    height: 32px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/*boton*/
.producto-boton {
    margin-top: 8px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    background: #25a244;
    color: #fff;
    transition: background 0.2s;
}

.producto-boton.agregado {
    background: #1b7a33;
}

.producto-boton:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Precio */
.producto-precio {
    margin: 0;
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
}

/* Mensajes */
.productos-mensaje {
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

/*agotado*/
/* ===== Producto agotado ===== */
.producto-imagen-contenedor {
  position: relative;
  overflow: hidden;
}

.producto-card.agotado .producto-imagen {
  filter: grayscale(1);
  opacity: 0.45;
}

.producto-card.agotado .producto-nombre,
.producto-card.agotado .producto-precio {
  opacity: 0.55;
}

.producto-franja {
  position: absolute;
  top: 50%;
  left: -15%;
  width: 130%;
  padding: 9px 0;
  transform: translateY(-50%) rotate(-12deg);
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b0d0d;
  background: linear-gradient(90deg, #dcc9c9 0%, #e8a0a0 50%, #dcc9c9 100%);
  border-top: 2px solid #c0392b;
  border-bottom: 2px solid #c0392b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}

/* Mobile: 3 productos por fila */
@media (max-width: 600px) {
    .pagina-productos {
        padding: 18px 10px;
    }

    .productos-titulo {
        margin-bottom: 16px;
        font-size: 23px;
    }

    .productos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .producto-imagen-contenedor {
        padding: 6px;
    }

    .producto-info {
        padding: 8px 7px 10px;
    }

    .producto-nombre {
        margin-bottom: 6px;
        font-size: 12px;
    }

    .producto-precio {
        font-size: 13px;
    }
}
