/* ============================================================
   Chelo — Estilos personalizados
   ============================================================ */

:root {
    --chelo-primary:   #D32F2F;
    --chelo-radius:    10px;
    --chelo-shadow:    0 2px 8px rgba(0,0,0,.08);
    --chelo-transition: .2s ease;
}

/* ── Slider ─────────────────────────────────────────────── */
.slider-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Tarjeta de producto ─────────────────────────────────── */
.tarjeta-producto {
    border-radius: var(--chelo-radius) !important;
    transition: transform var(--chelo-transition), box-shadow var(--chelo-transition);
    position: relative;
    overflow: hidden;
}
.tarjeta-producto:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}
.img-producto {
    height: 200px;
    object-fit: cover;
    object-position: center;
    background: #f8f9fa;
}
@media (max-width: 576px) {
    .img-producto { height: 150px; }
}
.badge-descuento {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    font-size: .75rem;
    border-radius: 6px;
    padding: 4px 8px;
}
.nombre-producto {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    line-height: 1.4em;
}
.resumen-producto {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Modal imagen ampliada ───────────────────────────────── */
#modalImagen .modal-dialog { margin: auto; }
#modalImagen { background: rgba(0,0,0,.85); }

/* ── Galería detalle producto ────────────────────────────── */
.img-detalle {
    max-height: 480px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: var(--chelo-radius);
}
.img-ampliar {
    cursor: zoom-in;
}
.badge-ampliar {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,.45);
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: .8rem;
    pointer-events: none;
}
.miniatura-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: border-color var(--chelo-transition), opacity var(--chelo-transition);
    opacity: .75;
}
.miniatura-img:hover,
.miniatura-img.activa {
    border-color: var(--chelo-primary);
    opacity: 1;
}
@media (max-width: 576px) {
    .miniatura-img { width: 56px; height: 56px; }
}

/* ── Sidebar categorías ──────────────────────────────────── */
.list-group-item {
    font-size: .9rem;
    border-left: none;
    border-right: none;
}
.list-group-item.sidebar-activo {
    background-color: #d6d6d6 !important;
    color: #222 !important;
    font-weight: 600;
    border-color: #ccc !important;
}
.btn-filtro {
    background-color: #d6d6d6;
    color: #222;
    border: none;
}
.btn-filtro:hover {
    background-color: #c2c2c2;
    color: #000;
}

/* ── Banner promociones ──────────────────────────────────── */
.promo-banner {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
}

/* ── WhatsApp botón flotante ─────────────────────────────── */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    z-index: 1050;
    text-decoration: none;
    transition: transform var(--chelo-transition), box-shadow var(--chelo-transition);
}
.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
    color: #fff;
}

/* ── QR Fallback ─────────────────────────────────────────── */
.qr-fallback {
    width: 100px;
    height: 100px;
    background: #f1f3f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #adb5bd;
}

/* ── Descripción completa ────────────────────────────────── */
.descripcion-completa {
    font-size: .95rem;
    line-height: 1.8;
    color: #444;
}

/* ── Paginación ──────────────────────────────────────────── */
.pagination .page-link {
    color: var(--chelo-primary);
    border-radius: 6px !important;
    margin: 0 2px;
}
.pagination .page-item.active .page-link {
    background-color: var(--chelo-primary);
    border-color: var(--chelo-primary);
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb-item a {
    color: #D32F2F;
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar-brand {
    letter-spacing: .03em;
}
.nav-link.active {
    font-weight: 600;
}

/* ── Footer ──────────────────────────────────────────────── */
footer a:hover {
    color: #ffc107 !important;
}

/* ── Utilidades generales ────────────────────────────────── */
body {
    background: #f8f9fb;
    font-family: 'Poppins', sans-serif;
}
.card {
    border-radius: var(--chelo-radius) !important;
}
