/* ======================================
   🔧 BASE GENERAL
====================================== */
body {
    background: #f5f5f5;
    padding-top: 110px;
}

/* ======================================
   📦 CONTENEDOR
====================================== */
.container {
    max-width: 95% !important;
    margin-left: 20px !important;
}

/* ======================================
   🧱 GRID PRODUCTOS
====================================== */
.product-item {
    display: flex;
}

/* MÁS GRANDES */
.col-md-4.product-item {
    flex: 0 0 31%;
    max-width: 31%;
}

/* ======================================
   🎯 TARJETAS PRO (IGUAL INDEX)
====================================== */
.product-card {
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* ======================================
   🖼️ IMAGEN PRO
====================================== */
.img-container {
    height: 200px;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.product-img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

/* ======================================
   🏷️ TEXTO
====================================== */
.product-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    min-height: 40px;
}

.text-success {
    font-size: 20px;
    font-weight: 800;
    color: #16a34a !important;
}

/* ======================================
   🛒 BOTONES EN LÍNEA (MEJORADOS)
====================================== */
.product-card form,
.product-card a {
    width: 100%;
}

/* CONTENEDOR BOTONES */
.product-card .card-body {
    display: flex;
    flex-direction: column;
}

/* AGRUPAR BOTONES */
.product-card form,
.product-card a {
    margin-top: 5px;
}

/* BOTONES */
.product-card .btn {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

/* AGREGAR */
.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34,197,94,0.4);
}

/* VER */
.btn-primary {
    background: linear-gradient(135deg, #111827, #000);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* ======================================
   🎛️ FILTROS PRO NIVEL TIENDA
====================================== */

.filtros-section {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    position: sticky;
    top: 120px;
}

/* TÍTULO */
.filtros-section h5 {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
    color: #111;
}

/* CADA BLOQUE */
.filtros-section .mb-3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* NOMBRE DEL FILTRO */
.filtro-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}


.filtros-box h5 {
    position: sticky;
    top: 0;
    background: white;
    padding-bottom: 10px;
    z-index: 10;
}




/* 🔥 SCROLL SOLO FILTROS */
.filtros-box {
    max-height: 75vh;
    overflow-y: auto;
    padding-right: 8px;
}

/* 🔥 SCROLL BONITO */
.filtros-box::-webkit-scrollbar {
    width: 6px;
}

.filtros-box::-webkit-scrollbar-track {
    background: transparent;
}

.filtros-box::-webkit-scrollbar-thumb {
    background: #198754; /* verde bootstrap */
    border-radius: 10px;
}

.filtros-box::-webkit-scrollbar-thumb:hover {
    background: #146c43;
}

/* 🔥 EFECTO SUAVE */
.filtros-box {
    scroll-behavior: smooth;
}











/* CHECKBOX CONTENEDOR */
.form-check {
    margin-bottom: 4px;

}

/* HOVER */
.form-check:hover {
    background: #f8f9fa;
}

/* CHECKBOX */
.form-check-input {
    cursor: pointer;
    transform: scale(1.1);
}

/* LABEL */
.form-check-label {
    font-size: 13px;
    cursor: pointer;
    color: #444;
}

/* CHECK ACTIVO */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* EFECTO SELECCIÓN */
.form-check-input:checked + .form-check-label {
    font-weight: 600;
    color: #0d6efd;
}

/* ======================================
   ✨ SCROLL INTERNO (SI HAY MUCHOS)
====================================== */

.filtros-section {
    max-height: 80vh;
    overflow-y: auto;
}

/* SCROLL BONITO */
.filtros-section::-webkit-scrollbar {
    width: 6px;
}

.filtros-section::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* ======================================
   📱 RESPONSIVE
====================================== */
@media (max-width: 992px) {
    .col-md-4.product-item {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

@media (max-width: 576px) {
    .col-md-4.product-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .filtros-section {
        position: static;
        max-height: none;
    }
}
