/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

body {
    background-color: #f4f7fa;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1e293b;
}

.fw-800 { font-weight: 800; }
.fw-extrabold { font-weight: 800; }

/* --- HEADER ESTILIZADO --- */
header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* --- MENÚ LATERAL (ADIÓS FISHER-PRICE) --- */
.offcanvas {
    width: 300px !important;
    border-radius: 0 24px 24px 0;
    border: none;
    box-shadow: 15px 0 30px rgba(0,0,0,0.03);
}

.offcanvas-header {
    padding: 25px 20px;
    background: #fff;
}

.offcanvas-title {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #94a3b8;
}

.list-group-item {
    border: none !important;
    margin: 2px 12px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.88rem; /* Tamaño más real, no gigante */
    color: #475569;
    padding: 10px 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.list-group-item:hover {
    background-color: #f1f5f9;
    color: #0d6efd;
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: #eef2ff !important; /* Azul muy suave de fondo */
    color: #0d6efd !important;
    font-weight: 700;
    border-left: 4px solid #0d6efd !important; /* Indicador fino lateral */
    border-radius: 4px 12px 12px 4px;
}

/* --- TARJETAS PRO --- */
.card-producto {
    border: none;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-producto:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.07);
}

/* --- AJUSTE DE IMAGEN JPG (EL TRUCO MÁGICO) --- */
.img-container {
    height: 180px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff; /* Base blanca pura */
    border-radius: 24px 24px 0 0;
}

@media (min-width: 768px) { .img-container { height: 230px; } }

.img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    /* Elimina el fondo gris/sucio de los JPGs mezclándolo con el blanco del contenedor */
    mix-blend-mode: multiply; 
    /* Sombra al objeto, no a la caja */
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.05)); 
}

.modelo-tag {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    height: 2.5em;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #1e293b;
    margin: 8px 0;
}

.precio {
    color: #0f172a;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* --- BOTONES --- */
.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.btn-light {
    background: #f1f5f9;
    border: none;
    border-radius: 12px;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px;
}

.btn-light:hover {
    background: #e2e8f0;
}

/* --- MODAL --- */
.modal-content {
    border-radius: 28px;
    border: none;
    overflow: hidden;
}

.modal-header .btn-close {
    background-color: #f1f5f9;
    border-radius: 50%;
    opacity: 1;
    padding: 10px;
}