/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    padding: 20px;
    margin: 0;
    background-color: #f5f5f5; /* Color de fondo suave */
}

/* Estilos para el encabezado y el logo */
header {
    text-align: center;
    margin-bottom: 20px;
}

header .logo {
    max-width: 150px;
    height: auto;
}

header h1 {
    font-size: 1.5em;
    color: #D2232A; /* Color principal de la marca */
    margin-top: 16px;
}


/* Información del Cliente */
.customer-info {
    max-width: 600px;
    margin: 0 auto 20px auto;
    padding: 10px;
    background-color: #fff; /* Fondo blanco */
    border-radius: 8px;
}

.customer-info h2 {
    color: #493838;
}

.customer-info label {
    display: block;
    margin-top: 10px;
    font-size: 1em;
    color: #333;
}

.customer-info input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    font-size: 1em;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Lista de Productos */
.product-list {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
}

.product-list h2 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #493838;
}

.product {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    background-color: #fafafa;
    padding: 10px;
    border-radius: 8px;
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-details {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.product-name {
    font-size: 1.2em;
    color: #333;
}

.product-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #000000;
    margin-top: 5px;
}

.product input {
    width: 100%;
    padding: 8px;
    font-size: 1em;
    box-sizing: border-box;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
/* Estilos para el total por producto */
.product-total {
    font-size: 1em;
    color: #493838;
    margin-top: 24px;
}

/* ... resto del CSS */


/* Total */
.total {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    color: #D2232A;
}

/* Botón de Envío */
#orderButton {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    padding: 15px;
    background-color: #D2232A; /* Color principal de la marca */
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 5px;
}

#orderButton:hover {
    background-color: #A81B21; /* Color más oscuro al pasar el cursor */
}

/* Media Queries para pantallas más anchas */
@media (min-width: 600px) {
    .product {
        flex-direction: row;
    }

    .product img {
        width: 170px;
        height: auto;
    }

    .product-details {
        flex: 1;
        margin-left: 20px;
    }

    .product input {
        width: 100px;
    }
}


/* Estilos para los controles de cantidad */
.quantity-control {
    display: flex;
    align-items: center;
    margin-top: 10px;
    border-radius: 4px;
    background-color: #ebebeb;
    padding: 9px;
    justify-content: space-around;
}

.quantity-control button {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    background-color: #D2232A;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.quantity-control button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.quantity-control .quantity {
    width: 50px;
    text-align: center;
    font-size: 1.2em;
    margin: 0 10px;
}

/* Ajustes en media queries para pantallas anchas */
@media (min-width: 600px) {
    .product input,
    .quantity-control {
        width: 150px;
    }
}
