/* Generic catalog / product listing */

.catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.filters-sidebar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.filter-group {
    margin-bottom: 1.25rem;
}

.filter-group h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gris-texto);
    margin-bottom: 0.5rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 0.35rem;
}

.check-list a {
    color: var(--text);
    font-size: 0.9rem;
    text-decoration: none;
}

.check-list a:hover,
.check-list a.active {
    color: var(--brand-primary);
    font-weight: 600;
}

.filter-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
}

.filter-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-filter {
    width: 100%;
    padding: 0.6rem;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}

.clear-filters {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.grid-productos {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.card-producto {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-carrusel {
    height: 180px;
    background: var(--bg);
    overflow: hidden;
}

.card-img-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.card-img-slide.visible,
.card-img-slide:first-child {
    display: block;
}

.card-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.card-info h3 a {
    color: inherit;
    text-decoration: none;
}

.btn-ver-mas {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--brand-primary);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-ver-mas:hover {
    background: var(--rojo-hover);
    color: white;
    text-decoration: none;
}

.btn-consultar-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #25D366;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.compare-wrapper {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.95);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    border: 1px solid var(--border);
}

.card-color-selector {
    display: flex;
    gap: 6px;
    margin-top: 0.75rem;
}

.card-selector {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
}

.card-selector.active {
    border-color: var(--brand-primary);
}

#btn-float-comparar {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--brand-primary);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    z-index: 50;
}

#btn-float-comparar:hover {
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
}

/* Honda / Recomovil catalog */
.filters-sidebar {
    border-top: 3px solid var(--brand-primary);
}

.product-card {
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

#btn-float-comparar {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    border-radius: 2px;
}
