body {
    font-family: Arial, sans-serif;
    background-color: #a8f2fc;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(10, 248, 228, 0.1);
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
}

h2 {
    color: #333;
    margin: 0;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    /* Fondo blanco general */
}
th,
td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

th {
    background-color: #007bff;
    color: white;
}

tr:nth-child(even) {
    background-color: #ffffff;
    /* Fondo blanco para filas pares */
}

tr:hover {
    background-color: #ffffff;
    /* Fondo blanco al pasar el mouse */
}
img {
    width: 250px;
    height: auto;
    cursor: pointer;
}

.oferta {
    color: #d9534f;
    font-weight: bold;
    font-size: 1.2em;
}

.ahorro {
    color: #5cb85c;
    font-weight: bold;
}

.sku {
    color: blue;
    display: block;
}

.pedido-button {
    padding: 8px 10px;
    font-size: 14px;
    background-color: #036b1bad;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 4px;
    /* Separar los botones entre sí */
}

.pedido-button:hover {
    background-color: #1bd142d7;
}

/* Para pantallas muy pequeñas (por ejemplo, teléfonos móviles de tamaño muy reducido) */
@media (max-width: 480px) {
    .pedido-button {
        font-size: 12px;
        /* Fuente más pequeña */
        padding: 8px 15px;
        /* Reducir tamaño de los botones */
    }
}
/* Estilo para pantallas pequeñas (smartphones, por ejemplo) */
@media (max-width: 768px) {
    .pedido-button {
            width: 100%;
            /* Hacer que los botones ocupen el 100% del ancho */
            margin-bottom: 4px;
            /* Separar los botones entre sí */
            font-size: 16px;
    }

    header {
        align-items: center;
        text-align: center;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    th {
        display: none;
    }

    tr {
        margin-bottom: 18px;
        border-bottom: 4px solid #33e0ff;
            /* Línea gruesa color zanahoria */
    }

    td {
        text-align: right;
        border: none;
        position: relative;
        display: block;
        /* Hacer que las celdas de la tabla se apilen verticalmente */
        width: 100%;
        /* Centrar el contenido */
        padding: 2px 0;
        /* Espaciado entre celdas */
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 50%;
        text-align: left;
        font-weight: bold;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 600px;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.close-button:hover {
    background-color: #0056b3;
}

.terms-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.terms-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 600px;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.note {
    color: rgba(241, 142, 142, 0.856);
    /* Texto rojo */
    font-size: 0.8em;
    /* Más pequeño que el texto normal */
    display: block;
    /* Muestra las notas en líneas separadas */
}
