/* carrito_styles.css v2.6 - Moderno y 100% Responsivo */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.carrito-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    width: 100%;
}

.carrito-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.4em;
    font-weight: 600;
    color: #333;
}

.carrito-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

/* ---- Tabla de productos ---- */
.carrito-items {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px;
    overflow-x: auto;
}

.carrito-items table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.carrito-items th {
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #eee;
    background-color: #f1f3f5;
    white-space: nowrap;
}

.carrito-items td {
    padding: 16px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    font-size: 0.95em;
}

.carrito-items tr:last-child td {
    border-bottom: none;
}

/* Input de cantidad */
.item-cantidad input {
    width: 60px;
    padding: 6px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Adicionales estilo botón */
.opciones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.opciones label {
    background-color: #f1f1f1;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
}
.opciones input[type="checkbox"] {
    margin-right: 6px;
}

/* Botón eliminar */
.btn-eliminar {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 20px;
    cursor: pointer;
}

/* ---- Panel lateral resumen ---- */
.carrito-resumen-lateral {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cupon-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.cupon-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 150px;
}
.btn-aplicar-cupon {
    padding: 10px 15px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.totales-info {
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.totales-info div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1em;
}
.totales-info .total-final {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
}

/* Botón de pago */
.btn-finalizar-compra {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.btn-finalizar-compra:hover {
    background-color: #0056b3;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .carrito-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .carrito-items table {
        min-width: 100%;
        display: block;
        overflow-x: auto;
    }

    .cupon-form {
        flex-direction: column;
    }

    .btn-aplicar-cupon {
        width: 100%;
    }

    .opciones {
        flex-direction: column;
        gap: 5px;
    }

    .item-cantidad input {
        width: 100%;
        max-width: 80px;
    }

    .btn-finalizar-compra {
        font-size: 1.1em;
        padding: 14px;
    }

    .carrito-container {
        padding: 10px;
    }

    .carrito-container h1 {
        font-size: 2em;
    }
}
