/* ================================================================= */
/* ESTILOS PROFESIONALES PARA EL DETALLE DEL PRODUCTO                */
/* ================================================================= */

/* Botón de retorno moderno (consistente con el resto de vistas) */
.btn-regresar-detalle {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 50rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
    text-decoration: none !important;
}

.btn-regresar-detalle:hover {
    background-color: #f8fafc; /* Un gris muy sutil de fondo */
    color: #000000 !important; /* Letras e icono NEGROS */
    border-color: #cbd5e1;     /* Borde un poco más marcado */
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
}

/* Tarjeta principal con detalle superior decorativo */
.card {
    border-top: 4px solid #0d6efd !important;
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    box-shadow: 0 10.5px 25px rgba(0, 0, 0, 0.07) !important;
}

/* Zoom suave en la imagen del producto */
.hover-zoom {
    transition: transform 0.35s ease;
}

.position-relative:hover .hover-zoom {
    transform: scale(1.05);
}

/* Estilos de tipografía y textos secundarios */
.text-muted {
    color: #64748b !important;
}

/* Enlaces limpios para la tienda */
.card a.text-primary {
    transition: color 0.2s ease;
}

.card a.text-primary:hover {
    color: #0b5ed7 !important;
    text-decoration: underline !important;
}

/* Botón de WhatsApp estilizado */
.btn-success {
    background-color: #198754;
    border-color: #198754;
    transition: all 0.25s ease-in-out;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(25, 135, 84, 0.25) !important;
}

/* Botón de Añadir al Carrito estilizado */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.25s ease-in-out;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.25) !important;
}

/* Estado cuando el producto está agotado (botón desactivado) */
.btn-primary:disabled {
    background-color: #e2e8f0;
    border-color: #e2e8f0;
    color: #94a3b8;
    transform: none;
    box-shadow: none !important;
}

/* ================================================================= */
/* DISEÑO RESPONSIVO (MÓVILES Y TABLETS)                             */
/* ================================================================= */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h3.card-title {
        font-size: 1.25rem;
    }
}