/* 🔥 Carrito Contenido General */
.carrito-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carrito-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 🔥 Imagen */
.carrito-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

/* 🔥 Contenido de la tarjeta */
.carrito-item-body {
    padding: 1rem;
}

.carrito-item-titulo {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.carrito-item-detalles {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.8rem;
}

.carrito-item-precio {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 1rem;
}

/* 🔥 Subtotal */
.carrito-item-subtotal {
    background: #f8f8f8;
    padding: 10px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: #444;
    text-align: center;
}

/* 🔥 Botón Eliminar */
.btn-eliminar-carrito {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff4d4f;
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 50%;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 77, 79, 0.4);
    transition: background 0.3s;
}

.btn-eliminar-carrito:hover {
    background: #e60000;
}

/* 🔥 Botones debajo (seguir comprando y proceder al pago) */
.botones-carrito {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    text-align: center;
}

.botones-carrito a,
.botones-carrito button {
    width: 100%;
    padding: 12px;
    font-weight: bold;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Botón seguir comprando */
.botones-carrito a {
    background: #f0f0f0;
    color: #333;
}

.botones-carrito a:hover {
    background: #d9d9d9;
}

/* Botón proceder al pago */
.botones-carrito button {
    background: #000;
    color: #fff;
}

.botones-carrito button:hover {
    background: #333;
}

/* 🔥 Responsive */
@media (min-width: 768px) {
    .botones-carrito {
        flex-direction: row;
        justify-content: center;
    }

    .botones-carrito a,
    .botones-carrito button {
        width: auto;
        min-width: 180px;
    }
}

/* Total a pagar (verde premium para el monto) */
.text-success {
    color: #1f7a4d !important;
    /* Verde elegante */
}

/* Botón "Seguir comprando" */
.btn-outline-dark {
    border: 2px solid #333;
    /* Gris oscuro borde */
    color: #333;
    font-weight: 600;
    border-radius: 12px;
    /* Bordes redondeados */
    padding: 10px 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: #333;
    color: #fff;
}

/* Botón "Proceder al pago" */
.btn-dark {
    background-color: #000;
    border: none;
    font-weight: 600;
    border-radius: 12px;
    /* Bordes redondeados */
    padding: 10px 20px;
    font-size: 0.95rem;
    color: #fff;
    transition: background-color 0.3s ease;
}

.btn-dark:hover {
    background-color: #111;
    /* Un negro un poquito más suave al pasar mouse */
}

/* Subtotal Badge */
.badge-subtotal {
    background-color: #f6f8fa;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
}

/* Texto del Total a pagar */
.total-pagar {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
}

.precio-final {
    font-size: 1.6rem;
    color: #111;
    /* Negro para precio */
    font-weight: bold;
}

.subtotal-badge {
    background-color: #f1f1f1;
    color: #555;
    /* Gris más elegante */
    font-weight: 600;
    border-radius: 12px;
    padding: 8px;
}

.total-pagar {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000;
    /* Negro fuerte */
}

.btn-eliminar {
    background-color: #000;
    /* 🔥 Negro elegante */
    border: none;
    color: white;
    width: 36px;
    /* Más grande */
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    /* SVG se adapta */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    /* Sombría elegante */
    transition: all 0.3s ease;
}

.btn-eliminar:hover {
    background-color: #111;
    /* 🔥 Un poco más claro al hover */
    transform: scale(1.05);
    /* Ligerísimo zoom */
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 🔥 Ocultar flechitas en Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* 🔥 Estilo para el contenedor */
.cantidad-control {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🔥 Estilo para los botones + y - */
.btn-restar,
.btn-sumar {
    background-color: #000;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-restar:hover,
.btn-sumar:hover {
    background-color: #111;
}

/* 🔥 Estilo para el input */
.cantidad-input {
    width: 60px;
    text-align: center;
    font-size: 1rem;
    border-radius: 10px;
}

/* 🔥 Quitar flechas nativas */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}