/* CONTENEDOR PRINCIPAL */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* TARJETA DEL PRODUCTO */
.product-card {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 30px;

    max-width: 900px;
    width: 100%;

    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* BLOQUE IMAGEN */
.product-image {
    flex: 1;
    max-width: 400px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 15px;
}

/* BLOQUE INFO */
.product-card > div,
.product-card form,
.product-card p,
.product-card .price {
    display: flex;
    flex-direction: column;
}

/* DESCRIPCIÓN */
.product-card p {
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
}

/* PRECIO */
.price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1a73e8;
    margin: 15px 0;
}

/* FORMULARIO */
.product-card form {
    justify-content: flex-start;
    gap: 15px;
}

/* FILA CANTIDAD + BOTÓN */
.form-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

/* INPUT */
.form-row input[type="number"] {
    width: 90px;
    padding: 10px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* BOTÓN */
.form-row button {
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #1a73e8;
    color: #fff;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.1s ease;
}

.form-row button:hover {
    background: #1558b0;
}

.form-row button:active {
    transform: scale(0.97);
}

/* HEADER LINK */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.header a:hover {
    text-decoration: underline;
}

/* ===================== */
/* RESPONSIVE (MÓVIL)    */
/* ===================== */

@media (max-width: 768px) {

    .product-card {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    .product-image {
        max-width: 100%;
    }

    .price {
        text-align: center;
    }

    .form-row {
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
    }

    .form-row input,
    .form-row button {
        width: 100%;
    }
}
