/* ==========================================
   CATÁLOGO DE PRODUCTOS (PÍLDORAS)
   Estilos exclusivos de productos.html
   ========================================== */
.catalog-section {
    padding-top: 40px;
    padding-bottom: 80px;
}

.filters-block {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-label {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    border: 1.5px solid #ddd;
    background: white;
    color: var(--text-dark);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.pill:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold-dark);
}

.pill.active {
    background: #111;
    border-color: #111;
    color: white;
}

.pill.active:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
}

.btn-limpiar {
    align-self: flex-end;
    margin-left: auto;
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid #ddd;
    padding: 10px 24px;
}

.btn-limpiar:hover {
    background: #111;
    color: white;
    border-color: #111;
}

.catalog-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.catalog-grid .product-card {
    cursor: default;
}

.card-media {
    position: relative;
    width: 100%;
}

.catalog-grid .product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 16px;
}

.color-dots {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    padding: 0;
}

.color-dot.active {
    box-shadow: 0 0 0 2px var(--accent-gold);
}

.catalog-grid .product-info p.desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
    line-height: 1.5;
}

.catalog-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 0;
    font-style: italic;
}

/* --- TABLET --- */
@media (max-width: 992px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* --- MÓVIL: grid de 2 columnas --- */
@media (max-width: 768px) {
    .filters-block {
        flex-direction: column;
        gap: 20px;
    }

    .btn-limpiar {
        align-self: stretch;
        margin-left: 0;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .catalog-grid .product-card {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }

    .catalog-grid .product-card img {
        width: 100%;
        height: 130px;
        /* Forzamos la altura a 130px como querías */
        object-fit: contain;
        /* <--- Mantenemos la foto entera */
        margin-bottom: 10px;

    }

    .catalog-grid .product-info h4 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .catalog-grid .product-info p.desc {
        display: none;
    }

    .catalog-grid .price {
        font-size: 1.15rem;
    }
}

/* --- MÓVIL PEQUEÑO --- */
@media (max-width: 420px) {
    .catalog-grid {
        gap: 10px;
    }

    .catalog-grid .product-card {
        padding: 10px;
    }

    .catalog-grid .product-card img {
        height: 110px;
    }
}